diff options
author | Dave Mankoff <mankoff@google.com> | 2020-05-13 12:46:18 -0400 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2020-05-19 10:04:19 -0400 |
commit | dddcae9a95c74b703a8d679062c97ba4b572ffe3 (patch) | |
tree | 09223c98801348ba01c4a27d6e2bd8ccf5f8df6a /rs/java/android/renderscript/ProgramStore.java | |
parent | ec4e1edb6db0720feae7eedd27384885184972bd (diff) |
Prevent recursive calls to proximity sensor.
This CL contains two main changes:
1) If a caller asks an instance of ProximitySensor to alert its
listeners recursively, the call will be ignored.
2) The DozeSensors and DozeTriggers both use the same instance of
a ProximitySensor so that they can share each other's prox calls.
Also, a DelayableExecutor is now passed into ProximityCheck where
once we used a Handler in order to make testing easier.
Fixes: 152821688
Test: atest SystemUITests
Change-Id: I8be62222c4e2b586218696b1d8b6ac158ebeffb5
Merged-In: I8be62222c4e2b586218696b1d8b6ac158ebeffb5
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions