commit | cf06eb3a92d3ac66f928810e46e13cc6a6fe9a4c | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Mon Aug 12 14:14:08 2019 -0700 |
committer | Lucas Dupin <dupin@google.com> | Mon Aug 12 14:29:50 2019 -0700 |
tree | 7c80d2b9b69e50a4f724980acad57739913ba6f2 | |
parent | 82aec2e913bf6b0df7f5dbf40ffca6e054ee1317 [diff] |
Fix sensor triggering issue Code duplication was causing the wrong sensor to be re-registered, also, binned brightness isn't a drop-in replacement for proximity as expected. Brightness can be low when prox is not covered, the correct behavior is to verify if brightness is not 0 Test: manual, covering sensor Test: atest DozeSensorsTest Fixes: 139298207 Change-Id: I8673e7d9bcb56d7a34741cfad35cf397d976c18d