Thanks Wale for this super clever temp solution. (^_^)
Introduce DisplayHomeButtonHandler to make flags handled per display.
The changes are:
- Extend DoubleTapHomeTimeoutRunnable to DisplayHomeButtonHandler
- Move mHomePressed, mHomeConsumed, mHomeDoubleTapPedding into DisplayHomeButtonHandler to be its members
- Move home handling logic to handleHomeButton, which is a method in DisplayHomeButtonHandler
- Add a displayId - handler map to handle home keys per display
Bug: 115978725
Test: atest com.android.server.policy
Test: Manual - Press home on secondary display and verify if home
activity launched on secondary display
Change-Id: Ie7b4c72c8f9ff46b20b0a94cf6c36ba7db777128
Update api name to getRecommendedTimeoutMillis.
Api returns timeout for interactive or non-interactive controls.
Also provide the options for a11y service to specify two kinds of
timeout.
Bug: 111210981
Test: atest SettingsBackupTest
Test: atest AccessibilityManagerTest
Test: atest AccessibilityServiceInfoTest
Change-Id: I37d35796fd72bb4d6628a6bb33b111987f321552
Updated documentation on ColorDrawable to clarify that the alpha
value provided is combined with the color's already existing alpha
value instead of overwriting it.
Bug: 119004459
Test: Build and boots
Change-Id: Id62462c4ac7d2f46cdc3236876f7e0711fbc4c16
Deprecated getOpacity method on Drawable as the graphics optimization
is no longer utilized in the framework
Bug: 118841703
Test: Build and boots
Change-Id: Ie21c9379a5e9737ed68c09c2e518732c1578b3cb
* changes:
Apply fg/bg state in default grant policy
Do not inherit grant of background location
Split permissions inherit state from their parents
Have a map of background -> foreground permssions
Give 'restorePermissionState' a better name
Currently, if AppStandbyController is enabled after some listeners have
already registered, the listeners will be told that the system is in a
state of parole even though AppStandbyController thinks it's not in
parole. This change informs AppIdleStateChangeListeners when
AppStandbyController's enabled state changes as well so that they can be
in the correct state.
I also removed the call to setAppIdleEnabled() in onBootPhase() since
updateSettings() is called right afterwards and that also calls
setAppIdleEnabled().
Bug: 112329453
Test: atest AppStandbyControllerTests
also check logs to confirm that NetworkPolicyManagerService and
JobSchedulerService's listeners switch from ON to OFF when the system is
ready.
Change-Id: I88bc293c70b459f54f75f92126ad306d6ab8d9b7
It's not being used anywhere and it's probably not something we want
people to be using. The KEY_GPS_MODE flag still exists as a key in
Global.BATTERY_SAVER_CONSTANTS.
Test: atest com.android.server.power.BatterySaverPolicyTest
Change-Id: If437b427b4574c15e4cb75d85a25f7aff514c102
Creating a class/object that details the specific policy will make it
easier to have multiple different policies simultaneously that are
well-defined and in one place.
Bug: 119261320
Test: atest com.android.server.power.BatterySaverPolicyTest
Change-Id: I8ba89ff2f308ffcdedc09739e513734d200eee56