Commit Graph

53655 Commits

Author SHA1 Message Date
Makoto Onuki
e7927da1b6 Don't call DPM from UserManager to avoid lock inversion
- Also make sure DPMS.mOwners is always guarded with DPMS.this.
(and remove synchronization from Owners.)

Bug 25796840

Change-Id: I83f7b78e7b437d9c2a2b1d6e714346cd15f95330
2015-11-25 11:17:08 -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
Jorim Jaggi
b0cab35c18 Merge changes Ieb3c8c73,If494fddf,Ia9415fa6
* changes:
  Add ability to supply initial bounds when docking task
  Make sure to clear pending spec
  Clear spec future when clearing transition
2015-11-24 23:11:34 +00:00
Jorim Jaggi
9ea2f7ba31 Add ability to supply initial bounds when docking task
Add an optional parameter in moveTaskToDockedStack to supply an
initial rect to be used when creating the dockeds tack. Pass in
the adjusted rect when dragging up from the navbar so it doesn't
flicker anymore.

Change-Id: Ieb3c8c73b9e2a769a2ec6270bd76a713201a2aed
2015-11-24 15:08:49 -08:00
Makoto Onuki
c8a5a555f1 DPM.isDeviceOwnerApp() and getDeviceOwner() now check calling user
- Previously on MNC, they would return the same result regardless who
the calling user is.

- Now they properly take DO user-id into account.  Meaning, they'll
always return false and null respectively, if the calling user doesn't
run device owner.

- Note isDeviceOwnerApp() is a public API and getDeviceOwner() is
a system API.  Meaning we're changing the behavior or non-private
APIs.

- Also cleaned up hidden APIs, and gave them explicit suffixes
to avoid confusion.  Bundled code should prefer them for clarity.

Now we have:

* APIs that work cross-users: They all require MANAGE_USERS.
boolean isDeviceOwnerAppOnAnyUser(String packageName)
ComponentName getDeviceOwnerComponentOnAnyUser()

int getDeviceOwnerUserId()
boolean isDeviceOwnedByDeviceOwner()

String getDeviceOwnerNameOnAnyUser()

* APIs that work within user.  No permissions are required.

boolean isDeviceOwnerAppOnCallingUser(String packageName)
ComponentName getDeviceOwnerComponentOnCallingUser()

Bug 24676413

Change-Id: I751a907c7aaf7b019335d67065d183236effaa80
2015-11-24 14:54:48 -08:00
Julia Reynolds
ccec4f6d43 Merge "Be more resiliant to notifications that don't use a builder." 2015-11-24 19:25:08 +00:00
Sunny Goyal
6cbc2fec91 Using ParceledListSlice to get the list of activities in LauncherApps
Bug: 25430879
Change-Id: I3a93bb1abcbcc54bc467e57c51f592b5946850cf
2015-11-24 11:22:16 -08:00
Sunny Goyal
9549544ab9 Merge "Fetching firstInstallTime on demand" 2015-11-24 19:01:47 +00:00
Sunny Goyal
0736e20125 Fetching firstInstallTime on demand
Change-Id: I96442aaf119553ffb0ea94ff06713752e4490e0b
2015-11-24 10:42:32 -08:00
Alan Viverette
936fdcd897 Merge "Allow activities to handle density configuration changes" 2015-11-24 17:42:54 +00:00
Filip Gruszczynski
c76e27e4a9 Merge "Allow preloading of freefore multi window drawables." 2015-11-24 16:30:49 +00:00
Julia Reynolds
da30354438 Be more resiliant to notifications that don't use a builder.
Bug: 25772839
Change-Id: I526001a21f959f7229443f487439c51c8d84f1ea
2015-11-24 10:41:55 -05:00
Mahaver Chopra
15a46b07c5 Add method isManagedProfile and isSystemOnlyUser
Adding method isManagedProfile() and isSystemOnlyUser() for DPC to know
if running in a managed profile or system only user

Bug: 24464823
Change-Id: I79974fdfd60d2bfe52dee3b4c95becf47a5bf0b1
2015-11-24 15:00:18 +00:00
Filip Gruszczynski
811dc3b42b Allow preloading of freefore multi window drawables.
Bug: 25081468
Change-Id: Ic6ec6050882e5362e1ab8734962d163fff04b53d
2015-11-23 18:16:24 -08:00
Winson Chung
b3709400d1 Merge "Adding tuner params for paging and full screen thumbnails." 2015-11-24 00:41:54 +00:00
Vladislav Kaznacheev
f2d7fa3a99 Merge "Implement View.updateDragShadow" 2015-11-24 00:31:10 +00:00
Winson
8b1871d741 Adding tuner params for paging and full screen thumbnails.
- Adding “focused” stack state to support paging
- Changing the paging to match UX spec (only auto-page after the first
  tap)
- Removing old header focus animation

Change-Id: Id72825b8a1b1c0a2238ee184a6695b13c1d8cb1c
2015-11-23 15:55:52 -08:00
Adrian Roos
10613a9472 Merge "Visuals for Inline Reply" 2015-11-23 22:19:09 +00:00
Zhijun He
bfeaa0aee5 Merge "Camera2: add dynamic black level support" 2015-11-23 21:42:58 +00:00
Alan Viverette
432cfef802 Merge "Always assume layout params changed if app targets <= M" 2015-11-23 21:07:39 +00:00
Alan Viverette
71ec0a9ba7 Always assume layout params changed if app targets <= M
Previously we were lax about whether an app needed to call
setLayoutParams() when changing layout param (ex. height), but now
failing to call set will break layout.

Bug: 25801251
Bug: 25836190
Change-Id: I4431526ab38b9e3cbdf3553e41db6251d2a7fbc3
2015-11-23 15:54:10 -05: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
Adrian Roos
fe84e1f436 Visuals for Inline Reply
Change-Id: I374a7ec82795f95fe2f3ce8c9e6b02c1479433af
2015-11-23 20:07:49 +00:00
Jorim Jaggi
1aaed1a162 Merge "Don't play animation when docking stack with affordance" 2015-11-23 18:43:38 +00:00
Makoto Onuki
42490c074d Merge "Remove UserManager.setSystemControlledUserRestriction()" 2015-11-23 18:42:55 +00:00
Makoto Onuki
ac65e1e1db Remove UserManager.setSystemControlledUserRestriction()
Now that we don't have UM.setUserRestriction*s*() that could remove
all existing restrictions, there's almost no point handling
DISALLOW_RECORD_AUDIO differently.

Now DISALLOW_RECORD_AUDIO is handled just like other restrictions,
except we don't persist it.

Bug 24954662

Change-Id: I27875b4a74dd95a3ce6bb774081eeaf718eaec15
2015-11-23 10:41:42 -08:00
Jorim Jaggi
030979c1e4 Don't play animation when docking stack with affordance
Change-Id: I1bb8ae4047e3de3a4ea159e7fad718914b9b5ba7
2015-11-23 18:35:02 +00:00
Alan Treadway
883f12ac5a Merge "Revert "Disable multiple user for corp-liable mode"" 2015-11-23 17:58:39 +00:00
Alan Treadway
86e5d6b868 Revert "Disable multiple user for corp-liable mode"
This reverts commit 1dc510eb5b.

Change-Id: I12ea8275369cbdc4e95b21c7f5d51b4f0e5da7b2
2015-11-23 17:40:54 +00:00
Alan Viverette
12209b9afe Merge "Only look for nearest child View in ViewGroup" 2015-11-23 17:26:38 +00:00
Niels Egberts
38afea91ef Merge "Fix docs build failure." 2015-11-23 15:40:23 +00:00
Niels Egberts
5fd28893f2 Fix docs build failure.
Change-Id: If8d215f34a48e0c61aec0d35f10f1bfd633a4254
2015-11-23 15:39:21 +00:00
Nicolas Prévot
959ad4a029 Merge "Fix doc for EXTRA_PROVISIONING_COLOR." 2015-11-23 15:15:08 +00:00
Ricky Wai
9aa233899f Merge "Add work contacts directory support in Quick Contacts API" 2015-11-23 14:50:06 +00:00
Ricky Wai
494b95d302 Add work contacts directory support in Quick Contacts API
Bug: 25764505

Change-Id: I61f9d13ea03352e3df1686ee4b3bcc43e9a9a760
2015-11-23 13:32:45 +00:00
Nicolas Prevot
cd2d85941a Fix doc for EXTRA_PROVISIONING_COLOR.
Change-Id: Ic6fdb7978658e0187af9e2b29960dbd0a803dc85
2015-11-23 13:27:21 +00:00
Niels Egberts
a66bc0d082 Merge "Restrict audioformat to 8bit, 16bit or float PCM with an annotation and a warning." 2015-11-23 12:22:46 +00:00
Nicolas Prévot
fbabc7f552 Merge "Add extra in DevicePolicyManager to colorize the provisioning." 2015-11-23 11:51:35 +00:00
Niels Egberts
a24b50bee1 Restrict audioformat to 8bit, 16bit or float PCM with an annotation and
a warning.

TextToSpeech.synthesizeToFile has only ever worked with 8bit and 16bit
PCM. In case of float PCM an invalid file would be generated and in case
of other encodings the TTS engine would crash.

Also add more annotations to SynthesisCallback.

Change-Id: I1c44a44509e9b53bb2e1b0f2044b1a5919875e1c
2015-11-23 10:15:39 +00:00
Mahaver Chopra
71c84e515e Merge "Disable multiple user for corp-liable mode" 2015-11-23 10:07:43 +00:00
Przemyslaw Szczepaniak
9ad08ec5be Switch RecoverySystem impl to use sun.security.pkcs
Due to org.apache.harmony.security package removal,
RecoverySystem#verifyPackage was rewritten to use
sun.security.pkcs package for verifining package
signature.

(cherry-picked from 84acbd76f7e1300e8404ac1b94f008826f9cc0fb)

Change-Id: I3a2058982beadab1aaae793c25db5c6f7387a72b
2015-11-21 14:51:05 +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
Filip Gruszczynski
a7308c1bd8 Merge "Handling touch events on the caption." 2015-11-21 00:42:01 +00:00
Vladislav Kaznacheev
15d8e43ce2 Merge "Implement View.cancelDragAndDrop" 2015-11-20 23:58:21 +00: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
Fyodor Kupolov
09b108e2bb Merge "Added keep-uninstalled-packages DO policy" 2015-11-20 23:18:29 +00:00
Fyodor Kupolov
cb6fd80721 Added keep-uninstalled-packages DO policy
This policy allows DO to specify a list of apps to cache even without being
installed on any user.

Bug: 23938464
Change-Id: I2eeab7f148409739fc23a5c44e955ad12b63fd04
2015-11-20 14:51:56 -08:00
Alan Viverette
28c4a0bb4c Allow activities to handle density configuration changes
Some activities, like the density preference dialog in Settings, may need
to implement custom handling of display density changes.

This corresponds to the bit specified in ActivityInfo.CONFIG_NATIVE_BITS.

Change-Id: Idd4b9ec11a217b1f9af847d7ed8a6f3639e1f8ee
2015-11-20 17:23:46 -05:00