commit | 1761fce0d661a134bda131f36171ef750725bc16 | [log] [tgz] |
---|---|---|
author | Alex Salo <asalo@google.com> | Wed Feb 13 15:54:50 2019 -0800 |
committer | Alex Salo <asalo@google.com> | Wed Feb 13 18:40:21 2019 -0800 |
tree | 759ebaa4ff4b2e95981fe9a53ebe91058555cb85 | |
parent | a0d18b60f3a3d771d21749bc77a6f5ec55dc0c45 [diff] |
Fix whenToCheck returned by AttentionDetector There could be a situation in which updateUserActivity would not be called within [dim_t-3s(attention_timeout), dim_t], in which case we will miss the "bad" event. Fix that by returning the computed whenToCheck value, which is nextScreenDimming-attention_timeout. Test: manually with logging Bug: 111939367 Change-Id: I66e4a1e86582afe06a277ba8dbb127583940ea19