diff options
author | Darryl L Johnson <darryljohnson@google.com> | 2021-04-22 17:03:48 -0700 |
---|---|---|
committer | Darryl L Johnson <darryljohnson@google.com> | 2021-04-22 17:03:48 -0700 |
commit | f89a5e337d5e473b5328afa88ea647525aaf505b (patch) | |
tree | 0058632a7d9dfdf8ff946359f6f38bc83719f902 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 062dde5e2b0269eb0756dd38e793843e2d17b084 (diff) |
Don't throw exception if DeviceStateProviderImpl can't find required
sensor.
DeviceStateProviderImpl would thrown an exception when constructed if
the config it is based on required the presence of a Sensor that did not
exist. This changes the provider to ignore states with conditions that
have unknown sensors. If there are no states with known conditions it
defaults to the state with the lowest identifier.
Fixes: 186166148
Test: atest DeviceStateProviderImplTest
Change-Id: Iec73e33e2b464680fb9404863d11a26e9643248b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions