summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorYogisha Dixit <ydixit@google.com>2020-09-25 13:15:00 +0100
committerYogisha Dixit <ydixit@google.com>2020-09-25 20:13:43 +0100
commit784b62a517d869d639f7da8e4977c68367b38f84 (patch)
tree1541b81679df15e6a9b36f044010ee91427315f8 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2986c13edd4c60da2be2b4fc1b74784342db51df (diff)
Add a hidden API to check if ambient display is suppressed for a token.
Added 1 method: boolean isAmbientDisplaySuppressedForTokenByApp(String token, int appUid) Context: The Settings team is working on adding a string to the AOD settings page when ambient display is suppressed by Bedtime mode: b/168790245. The current PowerManager#isAmbientDisplaySuppressedForToken(String token) method will only work if the calling app is also the app that suppressed the ambient display. That is, if Digital Wellbeing called suppressAmbientDisplay("winddown"), then isAmbientDisplaySuppressedForToken("winddown") will only return true for Digital Wellbeing. It will return false for Settings app This CL adds a hidden API PowerManager#isAmbientDisplaySuppressedForTokenByApp(String token, int appUid) that will return true if the given app is suppressing ambient display with the given token. Settings can then call isAmbientDisplaySuppressedForTokenByApp("winddown", digitalWellbeingUid) to get whether ambient display is suppressed by Bedtime mode. Test: atest FrameworksServicesTests:PowerManagerServiceTest Bug: 169241595 Change-Id: I41aecc4ff0ab159d67e62193af27362a96c3174c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions