Christopher Tate
b911676209
Avoid parceling redundant ApplicationInfo objects within PackageInfo
...
Two benefits:
1) marshaling one flattened ApplicationInfo as part of a PackageInfo parcel
rather than one per included ComponentInfo; and
2) producing one ApplicationInfo at unmarshaling time and sharing the
reference to it among all included ComponentInfo instances, rather
than the previous implementation that generated a separate
ApplicationInfo instance for each ComponentInfo.
In some cases there can be many hundreds of ComponentInfo objects embedded
in a single PackageInfo, so coalescing duplicates is a significant win
for both payload size and object pressure.
Bug 19519502
Bug 20453802
Change-Id: Ib888810dad4471084fab9ead1ebb5e0b932905f1
2015-09-10 14:04:01 -07:00
Nick Armstrong-Crews
9fb0b5b12c
am 13d2fa50: am 740cf71c: am 56ecfcce: Handle KEYCODE_SOFT_SLEEP from Ungaze.
...
* commit '13d2fa50b0815c63d2d289c27d8edacf1ace01eb':
Handle KEYCODE_SOFT_SLEEP from Ungaze.
2015-09-08 05:38:30 +00:00
Nick Armstrong-Crews
13d2fa50b0
am 740cf71c: am 56ecfcce: Handle KEYCODE_SOFT_SLEEP from Ungaze.
...
* commit '740cf71c9978e5dcb0a68b6558531a52dc26d44f':
Handle KEYCODE_SOFT_SLEEP from Ungaze.
2015-09-08 05:28:51 +00:00
Nick Armstrong-Crews
dc6aa5fc53
am d70377b5: am 36afc2b7: am 9b8f82a3: Merge "Revert "Handle KEYCODE_SOFT_SLEEP from Ungaze."" into cw-e-dev
...
* commit 'd70377b537450d03d5cdc2efb15977d48e5cfebd':
Revert "Handle KEYCODE_SOFT_SLEEP from Ungaze."
2015-09-08 04:48:30 +00:00
Nick Armstrong-Crews
56ecfcce6c
Handle KEYCODE_SOFT_SLEEP from Ungaze.
...
Needed for Ungaze to trigger "soft sleep" (respecting wake locks); operates by
sending new KEYCODE_SOFT_SLEEP to PhoneWindowManager, which calls
PowerManagerService's new method setUserInactiveOverride (thereby
causing immediate sleep, modulo wakelocks, upon next iteration of
PowerManagerService's main loop).
BUG: b/23589870
Change-Id: Iddafdde923605d119075e890eeda5d3fd3fd2bc7
2015-09-07 21:46:50 -07:00
Nick Armstrong-Crews
d70377b537
am 36afc2b7: am 9b8f82a3: Merge "Revert "Handle KEYCODE_SOFT_SLEEP from Ungaze."" into cw-e-dev
...
* commit '36afc2b76743b2b2803da20dc6a8b2142d1f9b17':
Revert "Handle KEYCODE_SOFT_SLEEP from Ungaze."
2015-09-08 04:43:38 +00:00
Nick Armstrong-Crews
b331bf9514
Revert "Handle KEYCODE_SOFT_SLEEP from Ungaze."
...
This reverts commit 677adf1e66 .
Hiding new keycode to prevent change to public API before resubmitting.
Change-Id: Ic43273dd0c7ade1d51a36b77f363543f1df466e8
2015-09-08 04:25:01 +00:00
Nick Armstrong-Crews
e097d341a4
am 7f37402d: am 43c4459d: am 6f0ba402: Merge "Handle KEYCODE_SOFT_SLEEP from Ungaze." into cw-e-dev
...
* commit '7f37402d8c5667f72c1ef02a20112d49d7a149b8':
Handle KEYCODE_SOFT_SLEEP from Ungaze.
2015-09-04 18:35:23 +00:00
Nick Armstrong-Crews
7f37402d8c
am 43c4459d: am 6f0ba402: Merge "Handle KEYCODE_SOFT_SLEEP from Ungaze." into cw-e-dev
...
* commit '43c4459d995ce7a723d92945a7e4ccb81d48e224':
Handle KEYCODE_SOFT_SLEEP from Ungaze.
2015-09-04 18:22:54 +00:00
Nick Armstrong-Crews
677adf1e66
Handle KEYCODE_SOFT_SLEEP from Ungaze.
...
Needed for Ungaze to trigger "soft sleep" (respecting wake locks); operates by
sending new KEYCODE_SOFT_SLEEP to PhoneWindowManager, which calls
PowerManagerService's new method setUserInactiveOverride (thereby
causing immediate sleep, modulo wakelocks, upon next iteration of
PowerManagerService's main loop).
BUG: b/23589870
Change-Id: I24a96bd6db8ff28674c907f2898e49c4f6140209
2015-09-04 10:20:22 -07:00
Yasuhiro Matsuda
6d444185e5
resolved conflicts for merge of fcf9ab5a to master
...
Change-Id: I69ad6e525430c5c4fc3c274b8bf6ebf653716124
2015-09-03 00:12:30 +09:00
Yasuhiro Matsuda
fcf9ab5ab3
am ebf9465d: resolved conflicts for merge of ef57e5e0 to stage-aosp-master
...
* commit 'ebf9465d213336819b15e3b21d02afce64470d4f':
Add trace code to system server.
2015-09-02 14:31:26 +00:00
Yasuhiro Matsuda
ebf9465d21
resolved conflicts for merge of ef57e5e0 to stage-aosp-master
...
Change-Id: I1c31b38936dc74619dea27f0d5eecab43360bb8c
2015-09-02 22:57:53 +09:00
Yasuhiro Matsuda
ef57e5e03b
Merge "Add trace code to system server."
2015-09-02 12:54:23 +00:00
Adam Lesinski
54c070ef14
am f7ce28fa: am d0ce1fbb: am 69e17f59: am da43a3aa: Merge "BatteryStats: Start using cpu power from kernel" into mnc-dr-dev
...
* commit 'f7ce28fad5d76267a9e69a05f6a2147c6baae827':
BatteryStats: Start using cpu power from kernel
2015-09-01 16:07:56 +00:00
Adam Lesinski
f7ce28fad5
am d0ce1fbb: am 69e17f59: am da43a3aa: Merge "BatteryStats: Start using cpu power from kernel" into mnc-dr-dev
...
* commit 'd0ce1fbbba497e9b5082c69d8da7260e85b0b579':
BatteryStats: Start using cpu power from kernel
2015-08-31 19:33:24 +00:00
Adam Lesinski
da43a3aaca
Merge "BatteryStats: Start using cpu power from kernel" into mnc-dr-dev
2015-08-31 19:04:46 +00:00
Fyodor Kupolov
3f1099b062
Merge "Non-system users can now have restricted profiles"
2015-08-28 21:44:54 +00:00
Ashish Sharma
56d4ce51c2
am b804f413: am fec26a37: am 7c388b0f: am ffa3d040: am 3883e72a: Merge "BatteryStats: Bump checkin version" into mnc-dev
...
* commit 'b804f4134a21989c94ead728b6d36f93a647ce36':
BatteryStats: Bump checkin version
2015-08-28 00:09:24 +00:00
Ashish Sharma
b804f4134a
am fec26a37: am 7c388b0f: am ffa3d040: am 3883e72a: Merge "BatteryStats: Bump checkin version" into mnc-dev
...
* commit 'fec26a37a15dc406ae6a3aee67059cb93ef2ae5a':
BatteryStats: Bump checkin version
2015-08-27 23:55:47 +00:00
Ashish Sharma
ffa3d0408f
am 3883e72a: Merge "BatteryStats: Bump checkin version" into mnc-dev
...
* commit '3883e72aeda7dcc5f76eba7ad2e95ad2cb041687':
BatteryStats: Bump checkin version
2015-08-27 23:28:22 +00:00
Fyodor Kupolov
06a484adb9
Non-system users can now have restricted profiles
...
In the non split system user, only USER_OWNER is allowed to have restricted
profiles. This is now changed in split user mode, where multiple secondary
users can have restricted profiles.
Added UserInfo.restrictedProfileGroupId field, which defines parent/child
relationship between secondary users and linked restricted profiles. Adjusted
shared accounts handling logic to not assume that USER_OWNER is the only owner.
Bug: 23191995
Change-Id: I5f3fc2aa4f229103d6e75ec2c3dfce866b8007de
2015-08-27 15:38:29 -07:00
Yasuhiro Matsuda
1ab43d5978
Add trace code to system server.
...
- Add TRACE_TAG_SYSTEM_SERVER for tracing system server code.
- Add a few more tracing code to the code paths related to boot.
BUG: 21739901
BUG: 22207144
Change-Id: I08b424d2f83783f512c3818394099909cd55f327
2015-08-27 12:22:07 +09:00
Adam Lesinski
ab7672d45a
BatteryStats: Start using cpu power from kernel
...
This allows us to stop using approximate methods of attributing
cpu frequency time across apps and to use a more precise kernel
method that is aware of the time spent by a process on a given core
at a given frequency.
Bug:22773176
Change-Id: I3c34365fa8c73204f178a5610423901b13453d06
2015-08-21 16:46:14 -07:00
Adam Lesinski
bb5ac7976d
BatteryStats: Bump checkin version
...
Bug:23391894
Change-Id: I2af980531e07b106cc560c877fa128bbd9c2f18e
2015-08-20 16:44:37 -07:00
Nicolas Prévot
be8b98b939
Merge "Allow non-owner users to have managed profiles."
2015-08-20 14:48:18 +00:00
Nicolas Prevot
b818681dca
Allow non-owner users to have managed profiles.
...
In the split system user model:
The only users that are not allowed to have managed profiles are:
- purely system user (user 0)
- guest users
- restricted profiles
- managed profiles
In the non-split system user model, the behavior does not change:
only the primary user can have managed profiles.
BUG:22956426
Change-Id: If908c30f110fd3e740770174f050c9b6cf87ce1b
2015-08-20 14:15:19 +01:00
Jeff Sharkey
36d4aaeb6e
am 39c49625: am e6983e87: am cd6ba412: am bbb5717d: am f3ad1eab: Merge "Pass underlying volume UUID to StorageVolume." into mnc-dev
...
* commit '39c4962580a52d5ca07f3576009564dddc8f4624':
Pass underlying volume UUID to StorageVolume.
2015-08-20 01:59:19 +00:00
Jeff Sharkey
39c4962580
am e6983e87: am cd6ba412: am bbb5717d: am f3ad1eab: Merge "Pass underlying volume UUID to StorageVolume." into mnc-dev
...
* commit 'e6983e877888dd51abe090b75fa568a64e9fc16e':
Pass underlying volume UUID to StorageVolume.
2015-08-20 01:57:52 +00:00
Jeff Sharkey
bbb5717dee
am f3ad1eab: Merge "Pass underlying volume UUID to StorageVolume." into mnc-dev
...
* commit 'f3ad1eabc1fa5252165bfe1516690d1026507f0a':
Pass underlying volume UUID to StorageVolume.
2015-08-20 01:33:59 +00:00
Jeff Sharkey
746aee22e8
am f3ad1eab: Merge "Pass underlying volume UUID to StorageVolume." into mnc-dev
...
* commit 'f3ad1eabc1fa5252165bfe1516690d1026507f0a':
Pass underlying volume UUID to StorageVolume.
2015-08-20 01:33:46 +00:00
Jeff Sharkey
8e2ea2a9f1
Pass underlying volume UUID to StorageVolume.
...
To help MediaProvider uniquely identify storage devices, pass through
the UUID of the underlying private storage volume.
Bug: 23329611
Change-Id: I22ee7ea98fcb208d7797310acb3396a3f074f09b
2015-08-19 14:16:05 -07:00
Tao Bao
53c217f6c4
am efb71f44: am 2e3746ab: am 9bcb0fcc: Merge "Recursively delete directories in handleAftermath()."
...
* commit 'efb71f442c6dbdb75113d29df49106217f22cea3':
Recursively delete directories in handleAftermath().
2015-08-18 22:46:26 +00:00
Tao Bao
efb71f442c
am 2e3746ab: am 9bcb0fcc: Merge "Recursively delete directories in handleAftermath()."
...
* commit '2e3746abc7d70dd72f60a7912cd45472f3032acb':
Recursively delete directories in handleAftermath().
2015-08-18 22:41:34 +00:00
Tao Bao
9d995335f0
am 2e3746ab: am 9bcb0fcc: Merge "Recursively delete directories in handleAftermath()."
...
* commit '2e3746abc7d70dd72f60a7912cd45472f3032acb':
Recursively delete directories in handleAftermath().
2015-08-18 22:41:32 +00:00
Tao Bao
5065e12dbe
Recursively delete directories in handleAftermath().
...
RecoverySystem.handleAftermath() is called to clean up recovery-related
files. It needs to handle non-empty directories as well such as leftover
stashes from failed OTAs.
Bug: 23199081
Change-Id: I33fb326d376d04c793ad7b5948a10e8c1c572812
2015-08-18 13:48:17 -07:00
Adam Lesinski
e789fc02ae
am c852a3e3: am eb694bb6: am 546909c9: am 479c482c: am 504600bb: Merge "Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs" into mnc-dev
...
* commit 'c852a3e39c1bbb112e2705edc6714b6b687cb55d':
Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs
2015-08-14 21:28:51 +00:00
Adam Lesinski
c852a3e39c
am eb694bb6: am 546909c9: am 479c482c: am 504600bb: Merge "Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs" into mnc-dev
...
* commit 'eb694bb6e69dd382e9ed114dde604c6a0942c3c2':
Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs
2015-08-14 20:12:44 +00:00
Adam Lesinski
479c482ca1
am 504600bb: Merge "Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs" into mnc-dev
...
* commit '504600bb09e51f0187d81cacb1dc2de77c6256b6':
Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs
2015-08-14 19:47:54 +00:00
Adam Lesinski
4fe0a44658
am 504600bb: Merge "Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs" into mnc-dev
...
* commit '504600bb09e51f0187d81cacb1dc2de77c6256b6':
Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs
2015-08-14 19:45:55 +00:00
Adam Lesinski
621e06a64d
Fix UserHandle.getAppIdFromSharedAppGid to allow system UIDs
...
System UIDs are also run as shared GIDs, so this should not throw
an exception.
Bug:23189342
Change-Id: Ia180db012c25615cde1720ae0d41d1378f7bfb1a
2015-08-13 22:06:31 -07:00
Dianne Hackborn
d38e7c9387
am 1dd2f5a3: am 40bc2066: am a54d4583: am 9512a857: am ff9912d5: Merge "Fix issue #23116383 : Include security patch level in Settings" into mnc-dev
...
* commit '1dd2f5a3ebd4768ebc8bf4c08c7f62c8c1300c7f':
Fix issue #23116383 : Include security patch level in Settings
2015-08-13 02:10:15 +00:00
Dianne Hackborn
1dd2f5a3eb
am 40bc2066: am a54d4583: am 9512a857: am ff9912d5: Merge "Fix issue #23116383 : Include security patch level in Settings" into mnc-dev
...
* commit '40bc20660d3dc65f66e4409893f1ba6bf729d97f':
Fix issue #23116383 : Include security patch level in Settings
2015-08-13 01:18:13 +00:00
Dianne Hackborn
6d52d7616d
am ff9912d5: Merge "Fix issue #23116383 : Include security patch level in Settings" into mnc-dev
...
* commit 'ff9912d594bc5cdc10a4a224b9a2296bac50851b':
Fix issue #23116383 : Include security patch level in Settings
2015-08-13 00:57:51 +00:00
Dianne Hackborn
9512a85745
am ff9912d5: Merge "Fix issue #23116383 : Include security patch level in Settings" into mnc-dev
...
* commit 'ff9912d594bc5cdc10a4a224b9a2296bac50851b':
Fix issue #23116383 : Include security patch level in Settings
2015-08-13 00:54:35 +00:00
Dianne Hackborn
c3f7449517
Fix issue #23116383 : Include security patch level in Settings
...
Change-Id: I4934c7d26bf69b5c599962cd74ac1e4ea4ad4b51
2015-08-12 16:10:58 -07:00
Dianne Hackborn
908109c1f9
am 0385e3e9: am 8e63bbfd: am efa4dee1: am 977d421a: am f0e5501e: Merge "Fix issue #22989030 : Separate battery whitelists" into mnc-dev
...
* commit '0385e3e908fb9988bb2d2d0d15e32cb6a819b34e':
Fix issue #22989030 : Separate battery whitelists
2015-08-08 02:49:41 +00:00
Dianne Hackborn
0385e3e908
am 8e63bbfd: am efa4dee1: am 977d421a: am f0e5501e: Merge "Fix issue #22989030 : Separate battery whitelists" into mnc-dev
...
* commit '8e63bbfd00ee27fcdbb04cfc0cf96ccdb2c50cc5':
Fix issue #22989030 : Separate battery whitelists
2015-08-07 22:30:17 +00:00
Dianne Hackborn
10faec4bc0
am f0e5501e: Merge "Fix issue #22989030 : Separate battery whitelists" into mnc-dev
...
* commit 'f0e5501e093c688cd293308e0aafc2b55326c255':
Fix issue #22989030 : Separate battery whitelists
2015-08-07 22:06:31 +00:00
Dianne Hackborn
977d421af9
am f0e5501e: Merge "Fix issue #22989030 : Separate battery whitelists" into mnc-dev
...
* commit 'f0e5501e093c688cd293308e0aafc2b55326c255':
Fix issue #22989030 : Separate battery whitelists
2015-08-07 22:06:00 +00:00