Commit Graph

56282 Commits

Author SHA1 Message Date
Daniel Estrada Alva
5e19f91585 Merge "Update ContextHubManager's System APIs." into nyc-dev 2016-03-16 21:49:12 +00:00
Eric Laurent
495defd74f Merge "AudioService: do not persist mic mute and master mute" into nyc-dev 2016-03-16 21:09:31 +00:00
destradaa
8bad3fec0f Update ContextHubManager's System APIs.
- Consolidates the use of handles in context hub, and nano apps.
- Quick fixes to typos.
- Update the signature to find nano apps to use primitive types

Change-Id: Icffa6fa86e0e33a536516d98bc4674c0a39b2163
2016-03-16 14:05:58 -07:00
Jeff Sharkey
215fe69342 Merge "Remove references to Google packages." into nyc-dev 2016-03-16 20:55:48 +00:00
Jeff Sharkey
237db27c58 Remove references to Google packages.
Bug: 26441633
Change-Id: Iba6566215e2b6d224fd3b9c11d086f5c2db87dca
2016-03-16 14:54:09 -06:00
Jeff Sharkey
c4b0ade245 Merge "Defuse Bundles parsed by the system process." into nyc-dev 2016-03-16 20:52:05 +00:00
Jeff Sharkey
d136e51a99 Defuse Bundles parsed by the system process.
It's easy for apps to throw custom Parcelables into Bundles, but
if the system tries peeking inside one of these Bundles, it triggers
a BadParcelableException.  If that Bundle was passed away from the
Binder thread that delivered it into the system, we end up with a
nasty runtime restart.

This change mitigates this trouble by "defusing" any Bundles parsed by
the system server.  That is, if it encounters BadParcelableException
while unpacking a Bundle, it logs and delivers an empty Bundle as
the result.

Simultaneously, to help catch the system process sticking its
fingers into Bundles that are destined for other processes, a Bundle
now tracks if it's "defusable."  For example, any Intents delivered
through ActivityThread are marked as being defusable, since they've
arrived at their final destination.  Any other Bundles are considered
to be "in transit" and we log if the system tries unparceling them.

Merges several Parcel boolean fields into a flags int.  Add better
docs to several classes.

Bug: 27581063
Change-Id: I28cf3e7439503b5dc9a429bafae5eb48f21f0d93
2016-03-16 14:45:26 -06:00
Yigit Boyar
f1f8bfb764 Merge "DO NOT MERGE Fix conditional when checking for confirm key." into nyc-dev 2016-03-16 20:27:21 +00:00
Peng Xu
83d0078f95 Merge "Fix NC caused by race condition in SystemSensorManager" into nyc-dev 2016-03-16 19:30:55 +00:00
Peng Xu
aa957274e7 Fix NC caused by race condition in SystemSensorManager
This change fixes a race condition when two SystemSensorManager
instances are initialized the same time.

Bug: 27334914
Change-Id: I7a886abcbff2ed6f8abf87556a78d1a4afb71f91
2016-03-16 17:46:59 +00:00
Ashutosh Joshi
ac329d3e34 Merge "Exposing Context Hub service." into nyc-dev 2016-03-16 17:21:33 +00:00
Anna Galusza
bc2849449b Merge "Remove Intent to start screen reader tutorial. Reverts ag/867242. Bug: 27218687" into nyc-dev 2016-03-16 17:07:49 +00:00
Julia Reynolds
af56824e35 Merge "Prevent apps without DND access from toggling DND via AudioService." into nyc-dev 2016-03-16 16:48:33 +00:00
Esteban Talavera
5fbfa1b0d2 Merge "Clarified documentation as requested by API review" into nyc-dev 2016-03-16 14:24:40 +00:00
Julia Reynolds
48034f89b7 Prevent apps without DND access from toggling DND via AudioService.
Bug: 25395278
Change-Id: Id72830607b01a43848d1261292e5835315ef70d0
2016-03-16 09:33:02 -04:00
Nicolas Prévot
c25c9032ff Merge "Update documentation of DevicePolicyManager.isProvisioningAllowed." into nyc-dev 2016-03-16 12:05:35 +00:00
Esteban Talavera
96895cae3e Clarified documentation as requested by API review
Bug: 27532433
Change-Id: I5fada6c0a4636528393308d5ce098cd0398e5ff5
2016-03-16 12:00:40 +00:00
Tony Mak
4dc008cda2 Fix NotificationListenerService fail to mirror work notification
1. Instead of getting application info in runtime, just retrieve the
   one in the context to avoid cross user operation.

2. Functions in PackageManager that retrieve badged icon now return
   badged icon if the targer user is managed profile instead of checking
   whether target user is a managed profile of the user in mContext.

3. Relax the restriction of getUserInfo, if the caller is asking a user
   in the same profile group or having the manage user permission, we let
   it go.

Bug: 26469166

Change-Id: Ia1ffc5743f7d94bd489cdb7571eaed51499ebdd9
2016-03-16 10:49:02 +00:00
Tomasz Mikolajewski
fe023137d0 Update docs for ACTION_QUICK_VIEW.
Bug: 27531273
Change-Id: I917ca16c14db20e6a2773018e00a61ff5fcf7ecd
2016-03-16 02:08:53 +00:00
Steve McKay
709be25f04 Merge "Add FLAG_PARTIAL. Partial files can't be copied." into nyc-dev 2016-03-16 01:37:08 +00:00
Eric Laurent
c02324864f AudioService: do not persist mic mute and master mute
Master mute and mic mute are fully managed by user restrictions so there
is no need to persist their states.

Bug: 27486437
Change-Id: I7e58d1ddf409f6c80af371c7f5a5f305ee996386
2016-03-15 18:21:48 -07:00
Adam Powell
3c8702dd81 Merge "Add View#onVisibilityAggregated" into nyc-dev 2016-03-16 00:22:22 +00:00
Michael Wright
759f9fed70 DO NOT MERGE Fix conditional when checking for confirm key.
Bug: 26914975
Bug: 27599828
Change-Id: I1641a44e860901d2aab83138e47af6dad3ad87b1
(cherry picked from commit 6cbdc339ce)
2016-03-16 00:09:19 +00:00
Steve McKay
168e464812 Add FLAG_PARTIAL. Partial files can't be copied.
This allows us to exclude in-progress downloads from copy.
Will update Downloads in a followup CL to flag active downloads.

Bug: 27526321
Change-Id: I50d1db5cfb69bc6b47e10cc0f520a51e3d3cb43e
2016-03-15 16:51:23 -07:00
Joseph Pirozzo
d91859d246 Merge "Add BluetoothProfile for PBAP PCE role." into nyc-dev 2016-03-15 23:21:12 +00:00
Adam Powell
41d9690c3e Add View#onVisibilityAggregated
There's a common misconception (even across the framework) that
View#onVisibilityChanged determines and reports visibility on 'this'
up to the changed view and the total visibility within the
window. Knowing this is useful for things like starting/stopping
animations. onVisibilityChanged only reports the visibility for the
specific changed view, not the effects that would have down the tree.

Add onVisibilityAggregated to report what some code thought it was
getting already, and move ImageView and ProgressBar over to using it.

Bug 27461617

Change-Id: I433f41de453e27a53f907f1d9805350f30f31de9
2016-03-15 16:20:11 -07:00
Suprabh Shukla
ff29237e89 Merge "Updating javadoc for DPM apis" into nyc-dev 2016-03-15 23:18:20 +00:00
Peng Xu
9ff7d22354 Exposing Context Hub service.
Adding the Context hub service. This is the service that exposes
the context hub HAL to the system. The API exposed is a System API.

Change-Id: I854141714ecd21f6386e6b15b7bc9a997483ccf6
2016-03-15 15:18:56 -07:00
Tao Bao
1b478f756a Merge "Don't reboot into recovery if block map file is missing." into nyc-dev 2016-03-15 22:02:10 +00:00
Suprabh Shukla
34d92ef631 Updating javadoc for DPM apis
Added @throws tag in the javadoc for many APIs which might throw a
SecurityException in cases when such information might be useful for the
caller. E.g. when the caller has to be a device owner or must request
certain policies before making the API call.

Bug: b/27532288
Change-Id: I18e1a49a5e86a0322c035996ed7e9c3217da78c8
2016-03-15 14:43:46 -07:00
Makoto Onuki
ed1b89878b Merge "Fix launcher side callback" into nyc-dev 2016-03-15 21:02:48 +00:00
Mahaver Chopra
8a8e8ea19a Merge "Update DPM.reboot with new restriction" into nyc-dev 2016-03-15 19:48:33 +00:00
Mahaver Chopra
1216ae5d02 Update DPM.reboot with new restriction
DPM.reboot() should not be called when there is an ongoing call on the
device.

Bug:27531799
Change-Id: Idc1fa4c7aa79b20ec9c2afcccf855455ee316787
2016-03-15 19:46:05 +00:00
Makoto Onuki
4dbe0ded4a Fix launcher side callback
- Fix crash in work profile case
- Calculate shortcuts for each caller
- Add tests

Bug 27548047

Change-Id: I1a5b6a96956abac75d01eb5cc1cec9a9e8e379a3
2016-03-15 12:38:41 -07:00
Sudheer Shanka
b5a4d9605f Merge "Show admin support dialog if app is suspended." into nyc-dev 2016-03-15 18:50:01 +00:00
Dimitry Ivanov
53ea5a2f07 Merge "Restore fix for native activity without a java-code" into nyc-dev 2016-03-15 18:23:03 +00:00
Andrii Kulian
68b36ee07b Merge "Update ActivityOptions#setLaunchBounds() docs" into nyc-dev 2016-03-15 18:19:13 +00:00
Anna Galusza
00958ac380 Remove Intent to start screen reader tutorial. Reverts ag/867242.
Bug: 27218687

Change-Id: I5709f4393b2f1467757140c306c30aa88dfcc7f4
2016-03-15 18:14:26 +00:00
Nicolas Prevot
797fca5fd9 Update documentation of DevicePolicyManager.isProvisioningAllowed.
Do not mention the possibility of races for consistency with
other methods.

BUG:27532561
Change-Id: If81e8478742458456d1f2a23c61dded3e3a4f876
2016-03-15 17:44:40 +00:00
Ronghua Wu
a052cbda80 Merge "core: add hdr capabilities to display" into nyc-dev 2016-03-15 17:40:14 +00:00
Sudheer Shanka
7a9c34bd7a Show admin support dialog if app is suspended.
Bug: 26922950
Change-Id: I21f048873244df52d14910cc01a658af476d9149
2016-03-15 10:40:04 -07:00
Tao Bao
36baafe92c Don't reboot into recovery if block map file is missing.
We added a third parameter to RecoverySystem.installPackage() to let the
caller to indicate the package has been processed (uncrypt'd). We need
to ensure the caller's claim is true by checking the existence of the
block map. Otherwise the device will fail for sure when booting into
recovery.

Bug: 27620932
Change-Id: I6325455253480055f14eb0cf020689ac37328602
2016-03-15 10:36:19 -07:00
Dimitry Ivanov
43b28b17d2 Restore fix for native activity without a java-code
The regression was introduced by 39bfee5e36
which undid the fix to classloader construction.

This commit reapplies the fix from b9c9026bdd

Bug: http://b/27250344
Change-Id: I6c341d911ba0f311c63e380dd9dd064ba2faf391
2016-03-15 10:17:35 -07:00
Ian Pedowitz
440ef18fe7 Merge "Revert "Permissions: Get rid of GET_ACCOUNTS"" into nyc-dev 2016-03-15 17:09:53 +00:00
Ian Pedowitz
358e51f3d1 Revert "Permissions: Get rid of GET_ACCOUNTS"
This reverts commit d39600585b.

Bug: 27665091
Change-Id: I7d017ba7062ac594225229436d2877c7d21fb065
2016-03-15 17:08:27 +00:00
Adam Powell
421806380d Merge "Un-deprecate Activity#onRetainNonConfigurationInstance" into nyc-dev 2016-03-15 16:51:03 +00:00
Kirill Grouchnikov
a487ab1368 Merge "Remove tracking of all drawables in ViewOverlay.clear()" into nyc-dev 2016-03-15 16:25:50 +00:00
Alan Viverette
f068cff176 Merge "Push flags from top-level TypedValue into ComplexColor changing configs" into nyc-dev 2016-03-15 14:36:11 +00:00
Michal Karpinski
37cfe71693 Addressing API council feedback for remote bugreports
In DeviceAdminReceiver fixed a broken link in javadocs and improved
javadocs for bugreport error codes.

Bug: 27532425
Change-Id: I6cf90b4109065615778e69ea9d21b1869841593b
2016-03-15 11:35:34 +00:00
Keisuke Kuroyanagi
531d8d2fae Merge "Re-disable drag and drop in full screen extracted mode." into nyc-dev 2016-03-15 08:21:11 +00:00