commit | 6a6ec1122e1d4651df551908ea870f02ac4a5d92 | [log] [tgz] |
---|---|---|
author | Darryl L Johnson <darryljohnson@google.com> | Mon Nov 16 17:57:17 2020 -0800 |
committer | Darryl L Johnson <darryljohnson@google.com> | Thu Nov 19 11:24:27 2020 -0800 |
tree | 49abbc3169b3485c2c2f1461c108e37ae071e8bc | |
parent | 1ddaa9f63f4ea774e916c61e6fc70317fadce6d4 [diff] |
Add support for sensor conditions in device state configuration file. This change adds support for toggling device states based on sensor values. For ex, a device with a hinge angle sensor can specify device states based on the current hinge angle. Test: atest DeviceStateProviderImplTest Test: manual - place config on device and verify device state changes with hinge angle sensor Bug: 159401800 Change-Id: I41372c252fdc4c9d4f0306283cf260f793271195