diff options
| author | Dave Mankoff <mankoff@google.com> | 2020-06-03 15:09:13 -0400 |
|---|---|---|
| committer | Dave Mankoff <mankoff@google.com> | 2020-06-03 16:57:41 -0400 |
| commit | 23537575fd5eae2161cd0f82d37543daba7225ba (patch) | |
| tree | 2e2695e004d02ce6ecff5c981d897a2811454dfe /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
| parent | 13f35c602091318255957082f72cbc25d5feaae1 (diff) | |
Keep secondary prox registered when covered.
We were pinging the secondary proximity sensor every 5 seconds to see
if the "near" state had changed. However, after some amount of time,
this 5 second delay would be extended as the cpu would stop waking up,
presumably for power saving reasons.
Instead, we now keep the secondary proxmity sensor registered when
the phone is covered. This means that the phone will immediately wake
up when uncovered, as expected.
The ThresholdSensorImpl now reports a change from below to above when
the latch value is equaled, rather surpassed. This ensures that some,
coarse grained sensors will still trigger when a small change in their
value is detected. Prior to this, a larger change was needed, meaning
that uncovering a phone in a dark room could leave the screen off.
Fixes: 157630609
Test: atest SystemUITests && manual
Change-Id: I4b4e936b19045d38445bf6ab92df2bb6e3d90a28
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions
