diff options
| author | 2024-06-07 21:30:30 +0000 | |
|---|---|---|
| committer | 2024-06-07 21:32:17 +0000 | |
| commit | 65d8f469273a0a68aec18e1d4022100617169fcc (patch) | |
| tree | de611b830d405a58c4589ac6c29c7b1f8bf882c2 | |
| parent | fcf135270ee8580d531d2a9f7a1a5779afcc1a2e (diff) | |
Avoid mutating requests HashSet from different threads.
Bug: 336780799
Test: verified manually,
1. Enroll fingerprint on affected device
2. Enable assistant and activating assistant on lockscreen
3. Enable AOD
4. Go to lockscreen
5. Long press the power button to trigger assistant on lockscreen
6. Say play the news
7. Press power button to go to AOD
8. Tap on the screen to go to lockscreen
9. Tap on the weather icon or calendar event in smart space or any notification on lockscreen
10. It should show the alternate bouncer with the Side FPS indicator
11. Authenticate with fingerprint
12. SFPS indicator should not linger after unlock.
Flag: NONE bugfix
Merged-In: Ied1e743db40ecffc0ed07aa506eaf9be82c57a0a
Change-Id: Iaee9ddb261977de39db43ce25befd5c4046671cb
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt index 4674ac601634..f7913e899a64 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt +++ b/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt @@ -180,14 +180,19 @@ constructor( override fun show( sensorId: Int, @BiometricRequestConstants.RequestReason reason: Int - ) = + ) { + Log.d(TAG, "ISidefpsController#show invoked $sensorId, $reason") if (reason.isReasonToAutoShow(activityTaskManager)) { show(SideFpsUiRequestSource.AUTO_SHOW, reason) } else { hide(SideFpsUiRequestSource.AUTO_SHOW) } + } - override fun hide(sensorId: Int) = hide(SideFpsUiRequestSource.AUTO_SHOW) + override fun hide(sensorId: Int) { + Log.d(TAG, "ISidefpsController#hide invoked $sensorId") + hide(SideFpsUiRequestSource.AUTO_SHOW) + } } ) listenForAlternateBouncerVisibility() @@ -247,9 +252,9 @@ constructor( /** Hides the fps overlay if shown. */ fun hide(request: SideFpsUiRequestSource) { SideFpsControllerRefactor.assertInLegacyMode() - Log.d(TAG, "hide(request=${request.name}): removing request") - requests.remove(request) mainExecutor.execute { + Log.d(TAG, "hide(request=${request.name}): removing request") + requests.remove(request) if (requests.isEmpty()) { traceSection("SideFpsController#hide(${request.name})") { Log.d( |