Commit Graph

3216 Commits

Author SHA1 Message Date
Glenn Kasten
7f0fe91b72 Merge "Fix typo" into nyc-dev am: 5cb05f8
am: c5e036a

* commit 'c5e036a67ebe6083bb3bf567d65890d285de434e':
  Fix typo

Change-Id: Icb732597e13ff8dedadcd4a2300a1c20bfe62bf1
2016-04-05 15:11:43 +00:00
Glenn Kasten
5cb05f810b Merge "Fix typo" into nyc-dev 2016-04-05 15:00:22 +00:00
Ruchi Kandoi
ba412dd370 Merge "PowerManager: Adds isSustainedPerformanceModeSupported()" into nyc-dev am: a68fe1e
am: aa2936a

* commit 'aa2936af2c87888cfe8ec1f02ae0ceb3e87bbf01':
  PowerManager: Adds isSustainedPerformanceModeSupported()

Change-Id: Ifad993dceff69d16134e679f507dab8a0918c965
2016-04-04 20:50:52 +00:00
Glenn Kasten
570f1c8b23 Fix typo
Change-Id: I973dfaa17adbb7dce4ceda2e6985937823ef039c
2016-04-04 12:27:32 -07:00
Ruchi Kandoi
b4aa2e9c37 PowerManager: Adds isSustainedPerformanceModeSupported()
isSustainedPerformanceModeSupported() returns true if the device
supports the mode. It checks for the boolean config
"config_sustainedPerformanceModeSupported" to be set.

Bug: 22864186
Change-Id: I0f9f0bcbb8c02b19f37e9c87570d88e8f78f7992
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-04-04 19:25:23 +00:00
Christopher Tate
8f1ebb5de3 Merge "Handle interaction of Bundle.hasFileDescriptors() with removal" into nyc-dev am: 1486557
am: d4306fd

* commit 'd4306fd59029a650c741bcb9a305e83e09f2a8e4':
  Handle interaction of Bundle.hasFileDescriptors() with removal

Change-Id: I6a0431d4231c3aad55161fa46ccb3fb420dff3ae
2016-03-31 22:31:59 +00:00
Christopher Tate
250985f556 Handle interaction of Bundle.hasFileDescriptors() with removal
Removing entries from a Bundle may change its has-FDs state, so now
induce a recheck after removals.  In support of that, make the
recheck set the known state in all cases, not just in the has-FDs
case; and note that filterValues() inherently produces a result that
is known to have no FDs.

Bug 26676151

Change-Id: Ida07b77ad2046aeafb98e0b164cd571ce45d064f
2016-03-31 13:57:42 -07:00
Dianne Hackborn
475ab1b1b5 (Docs only) Make battery stats process state docs more clear.
Change-Id: Ib6284cb6325d4e4991a3f66f0e46508b1f94078e
2016-03-31 13:57:19 -07:00
Ruben Brunk
b839b91fde Merge "Include VR throttling limit in hardware properties." into nyc-dev am: ee1062e
am: f5d1bc3

* commit 'f5d1bc31fe66881bbf81c54e0a8d24699bfc54ea':
  Include VR throttling limit in hardware properties.

Change-Id: I7861d381c5fec4eab38d78ec24eb80e44bb21e55
2016-03-31 18:14:18 +00:00
Ruben Brunk
ee1062e4c0 Merge "Include VR throttling limit in hardware properties." into nyc-dev 2016-03-31 18:03:37 +00:00
Jeff Sharkey
562ac8b9bb Merge changes Ifecff4f1,Ia302de46 into nyc-dev am: 2c0ae91
am: 4d5806d

* commit '4d5806d0e662e0163ad174f61779a4d4ddf48b81':
  Make preferred activities direct-boot aware.
  Make Parcelable classes final, API cleanup.

Change-Id: I7aa9858905cc241343da5a1fb3479bf3f74b8ba8
2016-03-31 07:00:10 +00:00
Jeff Sharkey
2c0ae91f2d Merge changes Ifecff4f1,Ia302de46 into nyc-dev
* changes:
  Make preferred activities direct-boot aware.
  Make Parcelable classes final, API cleanup.
2016-03-31 06:48:55 +00:00
Jeff Sharkey
70168dde6e Make Parcelable classes final, API cleanup.
Remove some Context methods that leaked through.  Add lint rule to
recommend using List<? extends Parcelable> instead of Parcelable[].

Bug: 27932224, 27930145, 27932911
Change-Id: Ia302de46cdb0c5101fa175a09316df91aeefcf0d
2016-03-30 23:31:39 -06:00
Adam Lesinski
ba9f9d9458 Merge "BatteryStats: Add ble scans to checkin data and start global ble scan timer" into nyc-dev am: ac4dfec1
am: ed72f0e

* commit 'ed72f0e9ba9a9261cb70d77e6172a582923f31d7':
  BatteryStats: Add ble scans to checkin data and start global ble scan timer

Change-Id: I9e0172d22ada763e3a7b5337cb72454121387b66
2016-03-31 03:06:10 +00:00
Adam Lesinski
ac4dfec1c6 Merge "BatteryStats: Add ble scans to checkin data and start global ble scan timer" into nyc-dev 2016-03-31 02:58:26 +00:00
Amith Yamasani
383eb0256e Merge "Fix a deadlock due to wtf in BaseBundle" into nyc-dev am: 27c49d5
am: 54ef247

* commit '54ef24779fee7060c3da52e8973a3e1240ac3d10':
  Fix a deadlock due to wtf in BaseBundle

Change-Id: I739db48b3133ff963a786bb9b00aa8f842883ef8
2016-03-31 02:32:58 +00:00
Ruchi Kandoi
cb1078ec7d Merge "Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."" into nyc-dev am: 93cfef4
am: 29e7471

* commit '29e747140ff82b1d48890e9109d669e884eb57fe':
  Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."

Change-Id: I4b042099a0b5f0da7a59556d81075ac55d6c8326
2016-03-31 02:22:49 +00:00
Felipe Leme
5314b4855c Merge "Minor tweaks on Scoped Directory Access:" into nyc-dev am: d847b51
am: 25530a0

* commit '25530a0a8bd9baa72cef4b1a739d9632061f6e63':
  Minor tweaks on Scoped Directory Access:

Change-Id: If1d76956f5fbcbc75266496f20efec1ba99513e5
2016-03-31 02:22:32 +00:00
Jeff Sharkey
27c49d5790 Merge "Fix a deadlock due to wtf in BaseBundle" into nyc-dev 2016-03-31 02:18:53 +00:00
Adam Lesinski
d9b99be587 BatteryStats: Add ble scans to checkin data and start global ble scan timer
Bug:27930206
Change-Id: Ieb81eddeb0ac54ad93615f3abdc18cbcab19a729
2016-03-30 18:58:27 -07:00
Ruchi Kandoi
93cfef460c Merge "Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."" into nyc-dev 2016-03-31 00:54:25 +00:00
Amith Yamasani
2387932b74 Fix a deadlock due to wtf in BaseBundle
Use Slog.wtf instead of Log.wtf, so that it is
asynchronously reported.

Mark incoming application restrictions as defusable
since they are being unparceled.

Bug: 27811728
Change-Id: I166de69a74417e439ec5ef9159fbbfbfe711dde6
2016-03-30 17:28:53 -07:00
Felipe Leme
2ac876945b Minor tweaks on Scoped Directory Access:
- Only allow entire directory access on non-primary volumes.
- Do not display primary storage label on scoped access.

BUG: 27743842
BUG: 27676858
Change-Id: I9884fb1e2df3534fceebc5d5bef44adfb758724c
2016-03-30 16:42:10 -07:00
Ruchi Kandoi
7ef20dd340 Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."
This reverts commit 302710deaa.

Change-Id: I3e7e071838bae9460e126aac099b31f5213e3c6c
2016-03-30 14:23:58 -07:00
Tao Bao
c0d4b37a16 Merge "UpdateEngine: Add resetStatus() as system API." into nyc-dev am: 9971d02
am: 85b0ba3

* commit '85b0ba3cc369cc5106a5368434524ae479dfa00d':
  UpdateEngine: Add resetStatus() as system API.
2016-03-28 21:17:04 +00:00
Tao Bao
9971d02c38 Merge "UpdateEngine: Add resetStatus() as system API." into nyc-dev 2016-03-28 19:51:36 +00:00
Jeff Sharkey
9bd527d0f6 Merge "Include "invisible" volumes in new storage API." into nyc-dev am: 4d9b6e4
am: 0f6805e

* commit '0f6805ee0566d170c520610a9b2c0802ae930b62':
  Include "invisible" volumes in new storage API.
2016-03-28 05:49:05 +00:00
Jeff Sharkey
c02bfae73e Include "invisible" volumes in new storage API.
The purpose of the new StorageVolume API is to grant access to
volumes that aren't typically "visible" to a developer, so include
them in the returned results.

Also return the real mounted state instead of augmenting based on
the caller's storage permissions.  Clean up API naming slightly and
return as List.

Bug: 27615770
Change-Id: Ida921a4b91e5af81e418e76f672d9108f45a9781
2016-03-27 15:06:57 -06:00
Jeff Sharkey
3c664a9b39 Update PRE_BOOT_COMPLETED for FBE. am: bd91e2f
am: bef5aad

* commit 'bef5aad065fd2f5f222ac14a8d063d12348c7c34':
  Update PRE_BOOT_COMPLETED for FBE.
2016-03-27 17:50:04 +00:00
Jeff Sharkey
bd91e2f3f6 Update PRE_BOOT_COMPLETED for FBE.
Now that CE data isn't available until after a user is unlocked, we
need to delay the PRE_BOOT_COMPLETED broadcasts.  This is done by
adding a new RUNNING_UNLOCKING user state to the UserController
lifecycle.

We now track the last fingerprint a user was logged in under, and we
dispatch PRE_BOOT receivers when that fingerprint changes.  To work
around battery pull issues, we only persist the updated fingerprint
once all PRE_BOOT receivers have finished.  This is less granular
than the original solution, but it's still correct.  We only consider
a user as "logged in" once it transitions into the RUNNING_UNLOCKED
state.

When starting a process, track if the user was "unlocked" when
started, so that we only spin up unaware providers in processes
started before user unlock.

Add generic IProgressListener to communicate PRE_BOOT progress and
strings up to lock screen.  For now, LockSettingsService just blocks
until finished, but it could display these strings in the future.

Bug: 27220885
Change-Id: I349439776b885acd32f6a578d8951ffd95640be2
2016-03-27 10:56:48 -06:00
Ruben Brunk
946ef6417b Include VR throttling limit in hardware properties.
Bug: 27549685
Change-Id: I0e7f06c772c6547bb3357218c1ebf295cbd1dbd2
2016-03-25 14:56:34 -07:00
Felipe Leme
93a8799b6e Merge "Refactored NetworkManagerService to support Data Saver." into nyc-dev am: 771d0c2
am: 244089a

* commit '244089a3806282e20d603d9be8942d3e550f03b1':
  Refactored NetworkManagerService to support Data Saver.
2016-03-25 20:50:21 +00:00
Felipe Leme
771d0c2be4 Merge "Refactored NetworkManagerService to support Data Saver." into nyc-dev 2016-03-25 20:39:59 +00:00
Felipe Leme
65be3025fd Refactored NetworkManagerService to support Data Saver.
Netd provides 2 bandwidth control rules to restrict which uids can use
metered networks:

- bw_penalty_box is a blacklist-based firewall chain used to determine
  which uids do not have access to metered interfaces.

- bw_happy_box is whitelist-based firewall chain used to determine which
  uids have access to metered interfaces.

Currently, both NetworkManagerService (NMS) and
NetworkPolicyManagerService (NPMS) uses just the bw_penalty_box rule,
which makes turning Data Saver mode on / off too slow (since NPMS needs
to build the bw_penalty_box on demand); this CL adds support for both
rules on NMS, although NPMS doesn't take advantage of it yet (it will be
refactored in a separate CL).

BUG: 27127112
BUG: 26685616
Change-Id: Ib954574f7c86269fc9b4cf8ce4ba72ba5878c23d
2016-03-25 12:33:47 -07:00
Griff Hazen
51f3b887e9 Merge "Detect ranchu as emulator" into nyc-dev am: b63188d
am: 228f051

* commit '228f051748088c8831064b72c6ca4064840e215b':
  Detect ranchu as emulator
2016-03-25 19:04:06 +00:00
Griff Hazen
d3c454db29 Detect ranchu as emulator
Bug: 27780791

Change-Id: I23e5511acfba22260714874baf5e9380480b22bf
2016-03-25 09:35:20 -07:00
Dianne Hackborn
bc2d5fe818 Merge "Fix issue #25817435: Batterystats missing UIDs for secondary users" into nyc-dev am: 966f1c9
am: d6b6709

* commit 'd6b6709b21a99797be472a997ebd18d1d1f25c0f':
  Fix issue #25817435: Batterystats missing UIDs for secondary users
2016-03-25 02:00:05 +00:00
Dianne Hackborn
966f1c9348 Merge "Fix issue #25817435: Batterystats missing UIDs for secondary users" into nyc-dev 2016-03-25 01:50:33 +00:00
Ruben Brunk
a0148b8903 Merge "Allow current VrListenerService to read thermal info." into nyc-dev am: 41f02e5
am: 328ca70

* commit '328ca707537e18f313fe6c5642bca1e7d8d123fc':
  Allow current VrListenerService to read thermal info.
2016-03-25 01:14:07 +00:00
Ruben Brunk
41f02e5d50 Merge "Allow current VrListenerService to read thermal info." into nyc-dev 2016-03-25 01:08:18 +00:00
Dianne Hackborn
9cfba35020 Fix issue #25817435: Batterystats missing UIDs for secondary users
Change-Id: I9ad907571f04b5825d234758347659544a4de6ab
2016-03-24 17:31:28 -07:00
Felipe Leme
fe66a2b3f0 Merge "Removed obsolete @NonNull." into nyc-dev am: 657c2fa
am: 8127d6f

* commit '8127d6f04fcfc316ae8c5b7ca38cad8c610e3d53':
  Removed obsolete @NonNull.
2016-03-24 23:01:18 +00:00
Felipe Leme
541af9b119 Removed obsolete @NonNull.
BUG: 27676858
Change-Id: Ic3916769c1fa9d557294bcdbbc94e00c68376a5d
2016-03-23 16:05:57 -07:00
Felipe Leme
8bd2c937c7 Merge "Allow Scoped Directory Access on whole volume." into nyc-dev am: 9eb5555
am: b4fb50f

* commit 'b4fb50f8ccd8840c3f5179d8733a9cb0f002eebd':
  Allow Scoped Directory Access on whole volume.
2016-03-23 18:07:22 +00:00
Felipe Leme
9eb5555aa6 Merge "Allow Scoped Directory Access on whole volume." into nyc-dev 2016-03-23 17:58:48 +00:00
Ruben Brunk
8f1d5cbabb Allow current VrListenerService to read thermal info.
Bug: 27549685
Bug: 22855417
Change-Id: I2d0cb85b54767876bcbf503b5f198bd7f4065680
2016-03-23 08:23:15 -07:00
Tao Bao
b7e47ae84f UpdateEngine: Add resetStatus() as system API.
It calls update engine to reset an already applied payload.

Also change all the RemoteExceptions in UpdateEngine class to be
rethrown as RuntimeExceptions according to API guidelines [FW9].

Bug: 27123767
Change-Id: I936331019cdb00f4f225f5605e51cc94bb491e24
2016-03-22 16:16:34 -07:00
Aga Wronska
92b77f13f1 Merge "Add config flag to show/hide internal storage. Hide internal storage by default." into nyc-dev am: 5f7d673
am: c9f5b17

* commit 'c9f5b17df45fe9ee3952c4d0e6d067fc0aa43a82':
  Add config flag to show/hide internal storage. Hide internal storage by default.
2016-03-22 17:11:42 +00:00
Aga Wronska
5f7d673f3b Merge "Add config flag to show/hide internal storage. Hide internal storage by default." into nyc-dev 2016-03-22 17:04:28 +00:00
Tony Mak
fe5cd89cb9 Revert getUserInfo change and add isManagedPorfile(int userId) am: 8673b28
am: 438b3f2

* commit '438b3f218dbf3e0fe33676afe5e1e4fcfd4f2dcc':
  Revert getUserInfo change and add isManagedPorfile(int userId)
2016-03-22 15:32:58 +00:00