diff options
author | Stan Rokita <srok@google.com> | 2020-04-12 17:24:09 -0700 |
---|---|---|
committer | Stan Rokita <srok@google.com> | 2020-04-16 14:03:22 -0700 |
commit | f822ade06f6231f5e840fc898a8a91b03d7f3b84 (patch) | |
tree | 445e4970230c1a12ef042d38aa5c5d43a047ff4d /apps | |
parent | 9f9d916f74a19d2d9cb4f1282ff5c659f3b351d2 (diff) | |
download | chre-f822ade06f6231f5e840fc898a8a91b03d7f3b84.tar.gz |
Add support for light sensor in chre x-validation
Bug: 146052784
Test: Run light chre cross validation chqts tests
Change-Id: I9b39672548578ec06aeca738b5f10a110308503e
Diffstat (limited to 'apps')
-rw-r--r-- | apps/test/common/chre_cross_validator/src/chre_cross_validator_manager.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/test/common/chre_cross_validator/src/chre_cross_validator_manager.cc b/apps/test/common/chre_cross_validator/src/chre_cross_validator_manager.cc index 1d4958f9..4459efa7 100644 --- a/apps/test/common/chre_cross_validator/src/chre_cross_validator_manager.cc +++ b/apps/test/common/chre_cross_validator/src/chre_cross_validator_manager.cc @@ -87,6 +87,9 @@ void Manager::handleEvent(uint32_t senderInstanceId, uint16_t eventType, case CHRE_EVENT_SENSOR_PRESSURE_DATA: handleSensorFloatData(static_cast<const chreSensorFloatData *>(eventData), CHRE_SENSOR_TYPE_PRESSURE); + case CHRE_EVENT_SENSOR_LIGHT_DATA: + handleSensorFloatData(static_cast<const chreSensorFloatData *>(eventData), + CHRE_SENSOR_TYPE_LIGHT); break; default: LOGE("Got unknown event type from senderInstanceId %" PRIu32 |