summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2024-10-01 02:11:42 +0000
committer Ming-Shin Lu <lumark@google.com> 2024-11-07 01:16:18 +0000
commit4bb7e51ff5a889504091f658697103a89235bb21 (patch)
tree5385612f4e41a19cd293ba47bb74cdccefae053e /libs/androidfw/FileStream.cpp
parent4a3ff7a91d7016abf458f495227a5eae6b74b108 (diff)
Show the warning toast when the brightness slider unable to control
As the top app can use WindowManager.LayoutParams.screenBrightness to set the preferred brightness value on the foreground window, in that case the user won't be aware the brightness slider will no-op when the brightness value has been controlled by the application side. With this CL, SystemUI will show the warning toast to better understanding the reason of why unable controlling brightness value through the brightness slider. Flag: com.android.systemui.show_toast_when_app_control_brightness Bug: 363225340 Test: atest -d PlatformScenarioTests:SwipeBrightnessShowToast Test: atest SystemUITests:BrightnessControllerTest Test: atest BrightnessClamperControllerTest Test: manual as the issue step: 1) Open Netflix and starts a video playback 2. Swipe the brightness slider, expect a warning toast will be shown when the app controls screenBrightness value. Change-Id: I57eb1371c2e7e637dc8a01813029a29046ef83f5
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions