11763 Commits

Author SHA1 Message Date
Sunny Goyal
a21e6b2fac Adding context flag to open database with no localized collators
Bug: 25956606
Change-Id: I209a8d18a7e83c1af54309fae8607f8b46772196
2015-12-02 11:11:37 -08:00
Jeff Sharkey
18201f89ee Merge "API to create SharedPreferences from File." 2015-12-01 01:03:39 +00:00
Jeff Sharkey
8fc29cf105 API to create SharedPreferences from File.
Needed to support storage of SharedPreferences on both credential-
encrypted and device-encrypted storage paths.

Bug: 22358539
Change-Id: I576b696951b2a9de817d5be63d31b06f7e166a19
2015-11-30 18:01:20 -07:00
Jeff Sharkey
96b2da271f Merge "Wire up lifecycle, send unlocked broadcast." 2015-12-01 00:13:00 +00:00
Jeff Sharkey
8924e8759f Wire up lifecycle, send unlocked broadcast.
When the correct lock pattern is presented, ask the system to also
unlock credential-encrypted storage, if enabled.  The token passed
along is empty for now, but can be wired up to gatekeeper in the
future.

During each system boot, ask vold to lock all users keys to give us
a known starting state.  This also has the effect of chmod'ing away
any CE data when in emulation mode.

Define and send a new foreground broadcast when the CE storage is
unlocked for the first time.  Add stronger last-ditch checking for
encryption-awareness before starting an app.

Bug: 22358539
Change-Id: Id1f1bece96a2b4e6f061214d565d51c7396ab521
2015-11-30 17:07:54 -07:00
Tom Taylor
3589230400 Add two new intents
One intent notifies the new and previous default sms app when the user
changes which app is the default sms app. The second intent is sent to the
default sms app when some other white-listed app, such as Android Auto or
the phone, modifies the Telephony db behind the default sms app's back.

Change-Id: Iee1e1c4a4c299846f382bd8247c295cf7aaa040e
2015-11-30 13:45:57 -08:00
Zhijun He
53373658a7 Camera2: fix build break
Change-Id: I1641c012eb34fee15b1f4ffa3206de7631014440
2015-11-27 12:58:34 -08:00
Zhijun He
69bd9144b6 Merge "Camera2: update dynamic black level type" 2015-11-27 20:40:10 +00:00
Michael Wright
b2b2c0e7d0 Add new TestApi annotation.
This allows us to build a special jar with methods exposed strictly
for CTS. An @TestApi should not be a public API or a system
API.

Bug: 25608286

Change-Id: Ifbc64bb6958d2deec5b9cf0b944acfd068f0f051
2015-11-25 13:01:03 +00:00
Neil Fuller
7ff6e9e7e8 Merge "Add ICU4J APIs for Android" 2015-11-25 09:38:08 +00:00
Zhijun He
8998ad9675 Camera2: update dynamic black level type
They should be floats rather than integers for better precision.

Bug: 23011454
Change-Id: I8c10ff0bc5f07f1d53cdbda36da55b4483f721aa
2015-11-25 01:14:02 +00:00
Tyler Gunn
a3e0072504 Merge "Add "acceptRingingCall()" API which accepts a videoState." 2015-11-25 00:04:13 +00:00
Tyler Gunn
6676bb5da5 Add "acceptRingingCall()" API which accepts a videoState.
- Added acceptRingingCall API which accepts a videostate to complement the
existing API.

Bug: 20159300
Change-Id: I2a9d53fd4dbbb0be49d95416f7e26d3ec61774cd
2015-11-24 15:43:20 -08:00
Makoto Onuki
a31ebbc439 Add DO API to get wifi mac address
Bug 25496044

Change-Id: Ib1f0ce4ca10951edcfaa0aa79ae5c2d142a74599
2015-11-24 15:38:16 -08:00
Vladislav Kaznacheev
f2d7fa3a99 Merge "Implement View.updateDragShadow" 2015-11-24 00:31:10 +00:00
Zhijun He
cd950b682c Camera2: add dynamic black level support
Also add the optical black regions static memtadata.

Bug: 23011454
Change-Id: I217f33e89e046991f4cded7f7213ce6793ec4e68
2015-11-23 12:09:10 -08:00
Nicolas Prévot
fbabc7f552 Merge "Add extra in DevicePolicyManager to colorize the provisioning." 2015-11-23 11:51:35 +00:00
Przemyslaw Szczepaniak
7e1fb09d0b API update for OpenJdk based libcore
Bug: 25758743
Change-Id: Ic91a29e41d83798b3558438ddd9e0f60d3e5ab59
2015-11-21 14:51:25 +00:00
Vladislav Kaznacheev
4f63974963 Implement View.updateDragShadow
The new method allows changing the drag shadow image
while the drag is in process.

It has to be called on a View in the same window (under the
same ViewRootImpl) that the view which started the drag.

Bug: 25520420
Change-Id: I57e752626a4a6a86d42c597c09dbd7ec77f42f30
2015-11-20 17:07:23 -08:00
Sandra Kwan
4657518dcf Merge "AccountManager: add startUpdateCredentials API." 2015-11-21 01:05:06 +00:00
Sandra Kwan
e68c37eead AccountManager: add startUpdateCredentials API.
Adding startUpdateCredentials API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: Id9a1ff86764f2fde01fd8482594e4ae34e1f3bd1
2015-11-20 16:44:31 -08:00
Vladislav Kaznacheev
82063913ae Implement View.cancelDragAndDrop
View.cancelDragAndDrop cancels a drag operation initiated by
View.startDragAndDrop.

It has to be called on a View in the same window (under the
same ViewRootImpl) that the view which started the drag.

Bug: 24415683
Change-Id: If9a265fd8cc4d26b207d582d0d02d5c9ae78eba1
2015-11-20 15:22:36 -08:00
Vladislav Kaznacheev
3fac65d960 Merge "Add View.startDragAndDrop and deprecate View.startDrag" 2015-11-20 22:18:30 +00:00
Vladislav Kaznacheev
e311034ee8 Add View.startDragAndDrop and deprecate View.startDrag
This in preparation to adding a new method to cancel an
ongoing drag. This method cannot be called cancelDrag,
stopDrag or endDrag because these names are already
taken by View-derived classes in the framework or in
important apps.

Change-Id: Ie21a778c3253b2d526c0c1bcc423c374ca70ee01
2015-11-20 12:59:42 -08:00
Julia Reynolds
e31444f7c9 Merge "Implement notification ranking by topic." 2015-11-20 20:31:08 +00:00
Julia Reynolds
233a5f97ea Implement notification ranking by topic.
Including sensitive notification visibility & DND bypass.

Bug: 22451710
Change-Id: I5f3a0c6d59de0495cb904bad6f886eb29ed4bda4
2015-11-20 14:25:07 -05:00
Nicolas Prevot
caf11cdc12 Add extra in DevicePolicyManager to colorize the provisioning.
The dpc may pass an extra to indicate a color that will be used
to colorize the provisioning.

BUG:25678389
Change-Id: I8b818cca3dbb5300cec2de7b861bdff90200cf7c
2015-11-20 16:18:30 +00:00
Neil Fuller
d7fa3e79f0 Add ICU4J APIs for Android
Add the planned set of new I18N public APIs for
Android N.

This APIs consists of a whitelisted subset of ICU4J APIs
repackaged under android.icu (not com.ibm.icu).

It includes no deprecated, provisional, internal methods from
ICU 56.

There may be future work to improve the ICU4J JavaDoc text
for Android, but the API surface area should be mostly
stable at this point.

Bug: 22023363
Change-Id: Ib4eca03c71c594ab098edcae3347f2ecc2c35c72
2015-11-20 15:50:45 +00:00
Ricky Wai
a5efc47723 Add ContactsContract.Contacts.CORP_CONTENT_FILTER_URI
Bug: 25797489

Change-Id: I0b862c1b179cffd3591e5082d6f9102a070a4053
2015-11-20 12:44:56 +00:00
Ricky Wai
4133dee9ec Merge "Add Work Contacts Directory APIs" 2015-11-20 12:33:11 +00:00
Nicolas Prévot
5bd8bfe95c Merge "Add an extra for the logo uri to DevicePolicyManager." 2015-11-20 11:37:02 +00:00
Tomasz Mikolajewski
a8057a9dce Add first-class support for virtual files in SAF.
Bug: 20820363
Change-Id: Ic509a6003a99997126f129a836fdd8c0e843108f
2015-11-20 16:26:18 +09:00
Roozbeh Pournader
cf8c77464a Merge "Support LocaleLists in ActivityManagerService." 2015-11-19 23:44:22 +00:00
Roozbeh Pournader
8bca69858a Support LocaleLists in ActivityManagerService.
Also add a placeholder method for locale negotiation to LocaleList,
to be filled later.

There is no change in behavior expected by this CL yet. But once we
support setting the first locale to something the system doesn't
support, and implement the locale negotiation, this will cause the
system locale to be set to the first supported locale, instead of
just the default from Settings.

Change-Id: Iec983a5707daffb5bf54eac79ff0856a96631960
2015-11-19 14:30:05 -08:00
Vladislav Kaznacheev
87ab07e9a7 Merge "Revert "Implement View.cancelDrag"" 2015-11-19 22:23:35 +00:00
Vladislav Kaznacheev
54d6b95e86 Revert "Implement View.cancelDrag"
This reverts commit 93cf731b26e2ab4db49bd80f60675b03e40512f3.

This is required because adding View.cancelDrag conflicts with existing app code.

Change-Id: I323fc5d2144266781d3168fe033c53cb5b37050e
2015-11-19 22:20:06 +00:00
Jason Monk
ee35d738f4 Merge "Add Quick Settings API" 2015-11-19 20:55:14 +00:00
Jason Monk
bbadff8603 Add Quick Settings API
It is a little bit limited right now, but it contains
the lifecycle of a tile getting added/removed, and
listening/not listening and clicks.

SysUI side will need some cleanup later on.

Change-Id: I4db803c8a271f8bf44f2ef710517969a84a95cf0
2015-11-19 14:57:11 -05:00
Filip Gruszczynski
8fbddc9367 Merge "API for overlaying app content over decor caption in freeform windows." 2015-11-19 19:51:55 +00:00
Adam Powell
ce805b3288 Merge "Add support for partial view layouts" 2015-11-19 18:59:06 +00:00
Todd Kennedy
b4fdb933cb Merge "Allow ephemeral provider/installer" 2015-11-19 18:54:57 +00:00
Filip Gruszczynski
63250651ca API for overlaying app content over decor caption in freeform windows.
Bug: 25486369

Change-Id: I8fba30dd690d9f0ccc48149f57ce254286b0c2ae
2015-11-19 10:38:38 -08:00
Todd Kennedy
b8a279ee83 Allow ephemeral provider/installer
The ephemeral provider is a service that simply determines whether or
not an ephemeral application is available. The ephemeral installer
does the heavy lifting of installing the ephemeral application.

Bug: 25119046
Change-Id: I591f4c2c3f2b149d299fa8b4f359f2582d9199cb
2015-11-19 10:25:53 -08:00
Nicolas Prevot
8b7991c1c6 Add an extra for the logo uri to DevicePolicyManager.
Define an extra apps can use to pass an image that will
be shown during the provisioning.

BUG:25660734
Change-Id: I63674d56c7135a6106c4b32f9d45fa9377368e30
2015-11-19 18:01:34 +00:00
Adam Powell
c55d5072ac Add support for partial view layouts
Traditionally, when a view called requestLayout it would force
recursive requestLayout calls for all parent views up the
hierarchy. This meant that there was no way to determine at traversal
time whether a parent view itself needed layout, or if just one of its
descendants did.

Add a ViewParent method requestPartialLayoutForChild(View). This lets
a caller state that a particular child of a given parent needs a
remeasure and relayout at its current measured size and position
within that parent. This can help prevent the full-tree relayout often
caused by otherwise trivial changes. Partial layouts are processed
after any pending "full" relayout during ViewRoot traversals, but
before drawing.

Add a ViewGroup method requestLayoutForChild(View). This lets a
ViewGroup decide whether it is more appropriate to request a
traditional relayout or a partial layout for itself or just the child
that changed.

Add a ViewParent method findDependentLayoutAxes. This allows a caller
to check if the ViewParent's layout is dependent on a specific direct
child view along one or both axes. Called recursively, this can be
used to determine if a change in a child view can be isolated to a
partial layout, even if its direct parent's own layout is tied to its
other ancestors. (e.g. MATCH_PARENT, LinearLayout weights)

Implement ViewGroup#requestPartialLayoutForChild to call new
ViewParent method findDependentLayoutAxes and based on the result,
either request a full layout for itself or a partial layout for the
child in question.

Implement findDependentLayoutAxes for common framework ViewGroups. A
private implementation in ViewGroup is available for use by framework
classes that will deal with basic LayoutParams. These implementations
specifically check for derived LayoutParams classes and abort the
optimization if they find something beyond their expected parameter
types.

Change-Id: I0a1a9b79293d17d4fae8d9892b96d3586f9401ae
2015-11-19 09:31:56 -08:00
Ricky Wai
e363121ed4 Add Work Contacts Directory APIs
Add Work Contacts Directory APIs, so primary profile application can get work directory info.

Bug: 25761127

Change-Id: I0bce6f8153d32e7da883911c5b0af182745e9d40
2015-11-19 14:34:59 +00:00
Sandra Kwan
7881228736 AccountManager: add startAddAccount API.
Adding startAddAccount API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I29e1defb2181ece1281534db0e36b28457085148
2015-11-18 18:25:08 -08:00
Wale Ogunwale
76415ee500 Merge "Allow apps to set launch bounds for activities." 2015-11-19 02:10:32 +00:00
Wale Ogunwale
7a8fa60962 Allow apps to set launch bounds for activities.
unhide ActivityOptions APIs for setting launch bounds for
an activitiy so apps can use it. Only works on devices that
support PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT.

Bug: 25499677
Change-Id: I75424681f25cbb9fe92f2ed73e6afbab765dab29
2015-11-18 18:04:45 -08:00
Vladislav Kaznacheev
f91e74d9a9 Merge "Implement View.cancelDrag" 2015-11-18 19:13:13 +00:00