diff options
| author | Kris Chen <chenkris@google.com> | 2019-03-12 21:40:19 +0800 |
|---|---|---|
| committer | Kris Chen <chenkris@google.com> | 2019-03-15 15:26:52 +0800 |
| commit | a9d5131007b019b039c3f89b419b73ebd4e40ff1 (patch) | |
| tree | f4f549f035bb204e673a1ad6811715237c6e85f0 /tests | |
| parent | 4cbd27fec1a393262637af677a2e5667492e8289 (diff) | |
| download | android_hardware_knowles_athletico_sound_trigger_hal-a9d5131007b019b039c3f89b419b73ebd4e40ff1.tar.gz android_hardware_knowles_athletico_sound_trigger_hal-a9d5131007b019b039c3f89b419b73ebd4e40ff1.tar.bz2 android_hardware_knowles_athletico_sound_trigger_hal-a9d5131007b019b039c3f89b419b73ebd4e40ff1.zip | |
oslo_config_test: add new fields for factory config V1
Bug: 126888604
Test: adb shell oslo_config_test -s config_factory_presence_v1 -v 1
adb shell oslo_config_test -s config_factory_reach_v1 -v 1
Change-Id: I2fe24ca88dec7aa2650a8a9b6509148dc325bffb
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/oslo_config_test.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/oslo_config_test.c b/tests/oslo_config_test.c index a1a0744..6237bb1 100644 --- a/tests/oslo_config_test.c +++ b/tests/oslo_config_test.c @@ -64,7 +64,7 @@ #define CAL_MODE_IS_VALID(x) (x >= 0 && x < CAL_MODES_MAX) #define CAL_VERSION_DEFAULT 1.0f -/* copy of SensorDriver.h from athletico repository */ +/* copy of oslo.h from polygon */ #define OSLO_PRESET_CONFIG_START_INDEX 100 #define OSLO_CONTROL_START_INDEX 200 #define OSLO_SETTING_START_INDEX 300 @@ -87,6 +87,9 @@ typedef enum OSLO_CONFIG_FACTORY_PRESENCE, OSLO_CONFIG_FACTORY_REACH, OSLO_CONFIG_CW_MODE, + OSLO_CONFIG_IDLE, + OSLO_CONFIG_FACTORY_PRESENCE_V1, + OSLO_CONFIG_FACTORY_REACH_V1, /* oslo control - restart oslo when settings change */ OSLO_CONTROL_RESTART = OSLO_CONTROL_START_INDEX, @@ -179,6 +182,8 @@ static const oslo_settings_t oslo_driver_settings[] = {OSLO_CONFIG_FACTORY_PRESENCE, "config_factory_presence"}, {OSLO_CONFIG_FACTORY_REACH, "config_factory_reach"}, {OSLO_CONFIG_CW_MODE, "config_cw_mode"}, + {OSLO_CONFIG_FACTORY_PRESENCE_V1, "config_factory_presence_v1"}, + {OSLO_CONFIG_FACTORY_REACH_V1, "config_factory_reach_v1"}, {OSLO_CONTROL_RESTART, "oslo_control_restart"}, {OSLO_CONTROL_STRIP_HEADERS, "oslo_control_strip_headers"}, {OSLO_CONTROL_SLPI_INT, "oslo_control_slpi_interrupt"}, @@ -241,7 +246,7 @@ static const oslo_settings_t oslo_driver_settings[] = {OSLO_PARAM_CHARGE_PUMP, "param_charge_pump"}, }; -/* copy of OsloSensorPluginInternal.h from athletico repository */ +/* copy of OsloSensorPluginInternal.h from polygon */ /* OsloSensor Plugin Param Ids */ typedef enum oslo_sensor_param_id_e { |
