summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2022-11-04 12:39:33 +0000
committer Yasin Kilicdere <tyk@google.com> 2022-12-01 19:37:21 +0000
commit3430907152a3a65b3d190c405b1bb94a8652f6ee (patch)
tree4a38ed92da81f187c1bbd9cc82d85a55f04b344b /services/coverage/java
parent8c6312f12b6f6ce96060895e785e42be3989f71d (diff)
Defer sending broadcasts to when the user switch is complete.
Send the following broadcasts after a user switch is complete, instead of while the switch is happening. * ACTION_USER_BACKGROUND * ACTION_USER_FOREGROUND * ACTION_USER_SWITCHED Otherwise managing these broadcasts occupy system_server process and make the user switch longer than it could be. If a code should be run while the user switch is happening, in other words while the screen is frozen, (because possibly they move things around on the screen), they should register a UserSwitchObserver and override its onUserSwitching method. Then when they are done, they should call reply.sendResult(null); on the provided reply parameter. Bug: 257437695 Test: atest FrameworksServicesTests:UserControllerTest Change-Id: I7b8662600b45459cd83653ac6f15e73335903262
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions