diff options
| author | Dave Mankoff <mankoff@google.com> | 2020-05-13 12:46:18 -0400 |
|---|---|---|
| committer | Dave Mankoff <mankoff@google.com> | 2020-05-18 21:55:47 -0400 |
| commit | 209e793a0b385d42f2c60a17167a0f07d73004e5 (patch) | |
| tree | 69f02782cd5866e4b266b8b4db4127952d7195b4 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
| parent | 6f718bba6faab759fde21650414020d74d77b5ba (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 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions
