summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEvan Laird <evanlaird@google.com>2020-09-29 01:09:12 -0400
committerEvan Laird <evanlaird@google.com>2020-11-18 16:53:35 +0000
commitd96f50a85f7762f50f672981c194ebb9e6ce4ff6 (patch)
tree9c99699f8bbcf4b3a0d1e377b01129727b7f6d7c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9649d433d0140ae2ded430aa1d52132385aa07cd (diff)
DO NOT MERGE: Associate notif cancels with notif posts
CancelNotificationRunnables just spin on the work handler of NotificationManagerService, hoping that they get executed at the correct moment after a PostNotificationRunnable and before the next EnqueueNotificationRunnable completes. Otherwise, you end up in a bad state where the cancel either is canceling notifications before they get a chance to post, or missing its only chance to cancel the notification (for instance, ActivityManagerService is the only caller that can cancel FGS notifications). This change attempts to execute a CancelNotificationRunnable at the moment its run() method is called, otherwise it associates the runnable with the latest enqueued notificaiton record which has yet to post. It then associates PostNotificationRunnable with the delayed cancel list, executing any missed cancel operations immediately upon finishing the PostNotificationRunnable. Test: atest SystemUITests; manual Bug: 162652224 Change-Id: I88d3c5f4fd910a83974c2f84ae3e8a9498d18133
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions