commit | 6023ccbea1568d8b22db82cac9bf7a03367d0a61 | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Wed Jun 28 16:22:02 2017 +0200 |
committer | Adrian Roos <roosa@google.com> | Fri Jun 30 18:06:13 2017 +0200 |
tree | b547e45e3ae8d2f7614bdeabb5042b7df90f296a | |
parent | ef5cf2b4d11f841d3f836b9f536b2e7562ee118b [diff] |
AOD: Add hysteresis to pausing the display Delays pausing the display by several seconds to avoid flickering when the prox is only covered transiently. Also adds cooldown to the proximity sensor, such that when it toggles too often it gets disabled for a while. Bug: 62292293 Test: cover prox for less than 10s, observe display stays on. Cover for more, observe display turns off. Change-Id: Ifa407b84760fc299fbbcfa92d9e942e0093c4b73