commit | df11ff29247cf049d26bcc09368d1e899705ba80 | [log] [tgz] |
---|---|---|
author | Chris Kuiper <ckuiper@google.com> | Tue Oct 12 16:30:01 2021 -0700 |
committer | Chris Kuiper <ckuiper@google.com> | Thu Oct 14 14:02:23 2021 -0700 |
tree | d1ebd8211bb6fc628cea18efe8ac2aa0a32c4b3d | |
parent | 41b552872df5a10a996340b0faa13ccceedb5f14 [diff] |
sensorservice: Refactor tracking logic for the Proximity sensor. This simplifies the code that tracks if the proximity sensor is active by removing all counting of clients and simply checking the sensor's isSensorActive() method and reporting changes to it. Bug: b/202328704 Tests: See b/202328704#comment9 for tests done. Change-Id: Idd72b82ed0fd5ee089e795ab4b233241350979c2