Commit Graph

309538 Commits

Author SHA1 Message Date
jackqdyulei
92681e8cfb Hook up screen brightness knob to DisplayPowerController.
This knob is designed to effectively tune the battery saver.

Bug: 34693888
Test: FrameworksServicesTests
Change-Id: I9fd7896f59fabd9baf649cdb12f01b1baaf4c34b
2017-03-08 13:15:19 -08:00
jackqdyulei
455e90add2 Add BatterySaverPolicy for power save mode
The BatterySaverPolicy is designed to consolidate all battery saver
knobs into a central location. Usually it is consistent to
mLowPowerModeEnabled unless it gets different data for specific
service. By adding these knobs, we can effectively tune the battery
saver.

This cl sets up the framework for BatterySaverPolicy and updates
following service to get battery saver data from BatterySaverPolicy

1. GnssLocationProvider
2. VibratorService
3. WindowManagerService
4. BackupManagerService
5. SoundTriggerService
6. NetworkPolicyManagerService

Screen brightness will come in a following cl.

Bug: 34693888
Test: FrameworksServicesTests

Change-Id: I6b040e93391614b44d136a485faa4a332c396e51
2017-03-08 09:20:36 -08:00
TreeHugger Robot
acc9668235 Merge "Change action bar text color back to accent." 2017-03-06 23:56:49 +00:00
TreeHugger Robot
ca006f9d3d Merge "Rename DPM.isDefaultInputMethodSetByOwner()" 2017-03-06 23:41:44 +00:00
TreeHugger Robot
5b2731a8da Merge "Add labelFor attributes to text input mode of TimePicker." 2017-03-06 23:40:26 +00:00
TreeHugger Robot
a9e8d358e8 Merge changes I546a3133,I5d892b2d
* changes:
  Don't skip verification of Instant Apps
  Expose ACCESS_INSTANT_APPS to the verifier
2017-03-06 23:12:36 +00:00
TreeHugger Robot
23f3508b2a Merge "Add @LargeTest to (Secondary|Managed)UserContentResolverTest classes." 2017-03-06 22:45:40 +00:00
TreeHugger Robot
a70c57cf73 Merge "Show help icon in actionbar" 2017-03-06 22:41:26 +00:00
Fan Zhang
f5d8a886ff Change action bar text color back to accent.
Bug: 34978809
Test: visual

This is a partial rollback of 59d488a136

Based on user feedback we are changing text color back to use accent
in action bar.

Change-Id: Id041a7bf6c6b2552f111c20e8290b70b7801c976
2017-03-06 14:21:57 -08:00
Aurimas Liutikas
7dadd70aa1 Add labelFor attributes to text input mode of TimePicker.
Bug: 30044800
Test: now talkback includes label name when reading EditText values
Change-Id: I2a2e46d803b471afe61777fa98314330e6942771
2017-03-06 22:00:28 +00:00
Santos Cordon
25e333cb3c Merge "Add VR_DISPLAY_MODE settings to be backed up." 2017-03-06 21:56:07 +00:00
TreeHugger Robot
a485f71fd7 Merge "Refactor EphemeralResolverService" 2017-03-06 21:39:17 +00:00
Chad Brubaker
b94103d25d Don't skip verification of Instant Apps
Test: builds
Change-Id: I546a31334b8f15f360ca5599d96ac8783496fc92
2017-03-06 13:24:54 -08:00
TreeHugger Robot
a2f8f4970e Merge "PlaybackActivityMonitor: fix comment typo" 2017-03-06 21:18:41 +00:00
Chad Brubaker
e45606d6c6 Expose ACCESS_INSTANT_APPS to the verifier
The package verifier needs to be able to see Instant Apps in order to do
its job. It already sees them on first install so no new information
about what Instant Apps are installed is leaked.

Test: builds
Change-Id: I5d892b2d7aa820a9c0c00ac357f20a3210cf3395
2017-03-06 13:14:01 -08:00
Fan Zhang
c93dadacdd Show help icon in actionbar
Fix: 35955986
Test: RunSettingsLibRoboTests
Change-Id: If4c328cacf1e3c9a5f66eeb248749c97c80cdb6c
2017-03-06 13:06:38 -08:00
Lingjun Li
6f93478951 Merge "Null check before calling TrustAgentService and throw Security exception if the API is not allowed. Test: manual" 2017-03-06 21:01:34 +00:00
Sudheer Shanka
f5666dc801 Add @LargeTest to (Secondary|Managed)UserContentResolverTest classes.
Test: runtest -c android.content.SecondaryUserContentResolverTest frameworks-core
      runtest -c android.content.ManagedUserContentResolverTest frameworks-core

Change-Id: I2e9c944c03d1b8a99105b90348634939cea9fc7f
2017-03-06 12:57:57 -08:00
Tom Cherry
4d7094dc99 Merge "Check for spurious wake ups" am: 3a3cd0a27f am: c2dcebe6e6
am: 1344c034c5

Change-Id: I8ffc749ab6fbd825ce238fff4ba1d12609585c04
2017-03-06 20:14:37 +00:00
Tom Cherry
1344c034c5 Merge "Check for spurious wake ups" am: 3a3cd0a27f
am: c2dcebe6e6

Change-Id: I6777a0845cbfbef3681e3f3779779c83001c0456
2017-03-06 20:06:31 +00:00
TreeHugger Robot
df2870df9a Merge "AAPT2: Fix parsing ResTable_type" 2017-03-06 20:01:17 +00:00
Tom Cherry
c2dcebe6e6 Merge "Check for spurious wake ups"
am: 3a3cd0a27f

Change-Id: Ia445070278f5a80c85b48e06ddf614d462db45af
2017-03-06 19:57:18 +00:00
TreeHugger Robot
a3d279fa4b Merge "Limit instant app access to clipboard" 2017-03-06 19:48:19 +00:00
TreeHugger Robot
3a47175778 Merge "Fix Loader bugs" 2017-03-06 19:31:30 +00:00
Tom Cherry
3a3cd0a27f Merge "Check for spurious wake ups" 2017-03-06 19:25:59 +00:00
Jean-Michel Trivi
31901bd920 PlaybackActivityMonitor: fix comment typo
Test: no test for typo
Change-Id: If2c5cc6c634d044c2b92347783c068aedbfbd890
2017-03-06 11:19:47 -08:00
Roozbeh Pournader
b85f02e9ad Merge "Frameworks support for hyphenation for various complex cases" 2017-03-06 19:19:11 +00:00
Jeff Davidson
272fe5c338 Merge "Declare new com.android.phone permission in whitelist." 2017-03-06 18:57:48 +00:00
TreeHugger Robot
d4bd7f1ee6 Merge "Removing check for launched-from package to expand PiP." 2017-03-06 18:46:07 +00:00
Ajay Panicker
8aa30c04b8 Merge "Bluetooth: Use content observer for airplane mode" am: 8871623b8d -s ours am: 4ddee9722d
am: a38d289d8a

Change-Id: I8f4d104bef04919b0ca74394a94d2d75b65ced6e
2017-03-06 18:35:08 +00:00
Michal Karpinski
8ff1e7ab73 Merge "BackupManagerService#cancelBackups() releases mCurrentOpLock sooner" 2017-03-06 18:30:05 +00:00
Ajay Panicker
a38d289d8a Merge "Bluetooth: Use content observer for airplane mode" am: 8871623b8d -s ours
am: 4ddee9722d

Change-Id: Ia3653b1737eb48d52eed98c3b6ba99d8e95636d7
2017-03-06 18:26:56 +00:00
Ajay Panicker
4ddee9722d Merge "Bluetooth: Use content observer for airplane mode"
am: 8871623b8d  -s ours

Change-Id: I83e81bd944c36c0f96a213bf57f99e61a7b35404
2017-03-06 18:21:33 +00:00
TreeHugger Robot
74f649a23f Merge "Change group ranking." 2017-03-06 18:16:15 +00:00
Treehugger Robot
8871623b8d Merge "Bluetooth: Use content observer for airplane mode" 2017-03-06 17:59:03 +00:00
Ajay Panicker
b208a1f0ac Bluetooth: Use content observer for airplane mode
We are making this switch as the airplane mode switch intent is going away.

Fix: 35256299
Test: Toggle Airplane Mode
Change-Id: I3b1e5bbdf689b0db98cfbb0ab377198d34f0ba05
2017-03-06 17:55:34 +00:00
Chad Brubaker
34ffba62b3 Limit instant app access to clipboard
Instant apps can access the clipboard (both read and write) in order for
copy/paste UI to work correctly. In order to limit the exposure of user
data Instant Apps can only access the clipboard while running in the
foreground.

Longer term it would be nice to gate Instant Apps clipboard access
around user interaction to prevent shenanigains, but this is a good
start.

Test: Manually verified that ClipboardManager.getPrimaryClip returns
null when the instant app transitions out of the foreground
Bug: 34231507

Change-Id: I7ea83e503d249c61e9df2d8bd83028e24705be11
2017-03-06 09:53:27 -08:00
Makoto Onuki
845dcf0471 Merge "Mention the relaxed security check on UM.isUserRunningOrStopping()." 2017-03-06 17:22:55 +00:00
Mathieu Chartier
748bf77274 Merge "Generate app image for system-server" 2017-03-06 16:49:24 +00:00
TreeHugger Robot
5f19b59491 Merge "Import translations. DO NOT MERGE" 2017-03-06 16:31:59 +00:00
TreeHugger Robot
627c9476e8 Merge "Import translations. DO NOT MERGE" 2017-03-06 16:26:26 +00:00
Charlie Tsai
072d7ac548 Merge "Implement drawPoint and drawPoints of BaseCanvas_Delegate" 2017-03-06 13:43:42 +00:00
Michal Karpinski
eb4ab301e1 BackupManagerService#cancelBackups() releases mCurrentOpLock sooner
Incoming operations don't have to block until all backup ops to be
cancelled are handled.

Test: make gts -j40 && gts-tradefed run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.backup.BackupManagerHostTest
Bug: 35767318
Change-Id: I1c6f7a1cfbfc18483311044a75e46cd4e8f9f4f3
2017-03-06 13:42:27 +00:00
Filip Pavlis
ac24f094f6 Merge "Improve preferences for PreferenceDataStore." 2017-03-06 13:29:32 +00:00
Bartosz Fabianowski
172f7801c7 Rename DPM.isDefaultInputMethodSetByOwner()
Settings.Secure.DEFAULT_INPUT_METHOD is a misnomer. It does not really
record a permanent default of any sort - it just indicates the currently
chosen IME. Thus, isDefaultInputMethodSetByOwner() should more
appropriately be called isCurrentInputMethodSetByOwner().

Furthermore, it turns out that setting a different IME for a user and
the user's work profile is unsupported. Thus, it is sufficient for the
intended use case to just retrieve the calling user's default IME.
There is no need for a |user| parameter.

Bug: 32692748
Test: unit tests (see DevicePolicyManagerTest.java for invocation)
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases

Change-Id: Ia0846d38a1361042429dae7430a8b055575ef2e0
2017-03-06 14:24:12 +01:00
Bill Yi
7fab80002c Import translations. DO NOT MERGE
Change-Id: Id4a9d4c2e278304cbc4bb76cc59a266b9a6f693e
Auto-generated-cl: translation import
2017-03-06 04:46:32 -08:00
Hugo Benichi
45deba76fc Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499." am: 704520c392 am: 4cf199383f
am: 22d4258a75

Change-Id: I8e66e223003a38735b707d21d7bedb19170b1937
2017-03-06 12:45:10 +00:00
Hugo Benichi
22d4258a75 Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499." am: 704520c392
am: 4cf199383f

Change-Id: I79234b267fccb31dfd53cf970a8da039654e684b
2017-03-06 12:37:36 +00:00
Hugo Benichi
4cf199383f Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499."
am: 704520c392

Change-Id: Ia0ae78f8406b81377491407cf5ef8ca339952def
2017-03-06 12:30:05 +00:00
Hugo Benichi
704520c392 Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499." 2017-03-06 12:20:45 +00:00