Bug: 186479647
Test: open shade with shelf,
scroll notifications all the way up to show footer,
then scroll down => footer hides in place
Change-Id: If95b6f8682cc1d8980d6e2b9edf769fb55aad336
When a notification has had its lifetime extended by the NotificationRemoteInputManager$RemoteInputHistoryExtender, we will now terminate that lifetime extension 200ms after any other action has successfully started a PendingIntent. This gives apps 200ms to update the notification without the user seeing anything, and should otherwise prevent the 'dead notification' problem.
Bug: 183025105
Test: Use inline notification reply or smart replies for an app which cancels the notification on reply. Then tap "mark as read" or "done" on the notification. Notice that the notification now disappears.
Change-Id: I627aaaacf4caee98cc6e282da8f2d0f2bd42bffb
This change ensures mobile data state changes result in the reevaluation
of all NetworkRequests; ensuring that any requests that can be fulfilled
as a result of the mobile data state change start the relevant
GatewayConnections
Test: atest FrameworksVcnTests
Change-Id: I442ca2ee0fc8b9ad962a2491ddc3818535d9e042
When the RTT call was cleaned up, the "close()" method was not being
called. In practice I think the Dialer app never really stops RTT, but
the APIs (and test app) do allow it to be stopped mid-session. I'm
hypothesizing that is why we don't see this.
Test: Use Telecom test dialer to start and end RTT session. Observe no
strict mode violation.
Fixes: 186869727
Change-Id: Id474b493ac3fe39e97360f3ac326279fc9a9a5eb
Add flags to support device settings for support activities in multi
window.
Will use the new flag to determine whether an activity can be shown in
multi window.
Bug: 176061101
Test: atest WmTests:ActivityTaskManagerServiceTests
Change-Id: I2808b0bbf2ce436f972a0239ece7d6a781af035b
This command can be used to simulate calling
FontManager#updateFontFamily() API from shell.
Bug: 180364534
Test: cmd font update-family /data/local/tmp/test.xml
Change-Id: I4b53a9b598a5136ad4d34ab48bdcd0dc3ee9c899
To make sure we do not delay taking the thread dump
BUG: 186858453
Test: atest android.cts.statsdatom.statsd.UidAtomTests#testANROccurred
Change-Id: Ia076c72d0b9763f05ddf733dbd6ff73c7fa4c614
When revoking storage permissions due to storage escalation, ensure the
revoke happens for all users
Fixes: 186034260
Bug: 171430330
Test: atest --user-type secondary_user StorageEscalationTest
Merged-In: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Change-Id: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Also add support for games to opt-out of specific
interventions via manifest.
Manifest metadata tag name attributes need to be one of:
"com.android.graphics.intervention.wm.allowDownscale"
"com.android.app.gamemode.performance.enabled"
"com.android.app.gamemode.battery.enabled"
and the value attribute must be "true"
Bug: b/184849707, b/186582669
Test: atest com.android.server.app.GameManagerServiceTests
Change-Id: I0d09c1e1fb9ac704bb92cf65000d6f78a67e42fd
When revoking storage permissions due to storage escalation, ensure the
revoke happens for all users
Fixes: 186034260
Bug: 171430330
Test: atest --user-type secondary_user StorageEscalationTest
Merged-In: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Change-Id: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
When revoking storage permissions due to storage escalation, ensure the
revoke happens for all users
Bug: 186034260
Bug: 171430330
Test: atest --user-type secondary_user StorageEscalationTest
Merged-In: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Change-Id: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Also if the device is locked we shouldn't change the state of the
toggles, the system ui controls already prevent this but there's still a
workaround with adb.
Fixes: 186425724
Fixes: 186706938
Test: insert sim and \
`adb shell cmd phone emergency-number-test-mode -a <phone-#>`
Change-Id: Iaf7f3413d8875bb6d909c828f354c1cd9229d01f
as opposed to SystemBatteryConsumers, which will be removed
in a follow-up CL
Bug: 186006876
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Change-Id: Ie4166217be211d92293c2a107762801a7d3c206f