Searched refs:g_sensorInterface (Results 1 – 9 of 9) sorted by relevance
/drivers/peripheral/sensor/test/unittest/hdi/ |
D | hdf_sensor_hdi_test.cpp | 31 sptr<ISensorInterface> g_sensorInterface = nullptr; variable 95 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 118 ASSERT_NE(nullptr, g_sensorInterface); 129 if (g_sensorInterface == nullptr) { 130 ASSERT_NE(nullptr, g_sensorInterface); 133 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); 157 if (g_sensorInterface == nullptr) { 158 ASSERT_NE(nullptr, g_sensorInterface); 161 int32_t ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); 163 ret = g_sensorInterface->Unregister(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); [all …]
|
/drivers/peripheral/sensor/test/benchmarktest/ |
D | sensor_benchmark_test.cpp | 35 sptr<ISensorInterface> g_sensorInterface = nullptr; variable 55 g_sensorInterface = ISensorInterface::Get(); in SetUp() 70 ASSERT_NE(nullptr, g_sensorInterface); in BENCHMARK_F() 75 ret = g_sensorInterface->GetAllSensorInfo(g_info); in BENCHMARK_F() 91 ASSERT_NE(nullptr, g_sensorInterface); in BENCHMARK_F() 96 ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in BENCHMARK_F() 99 ret = g_sensorInterface->Unregister(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in BENCHMARK_F() 114 ASSERT_NE(nullptr, g_sensorInterface); in BENCHMARK_F() 119 ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in BENCHMARK_F() 122 ret = g_sensorInterface->Unregister(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in BENCHMARK_F() [all …]
|
/drivers/peripheral/sensor/test/performance/hdi/ |
D | hdf_sensor_hdi_performance_test.cpp | 35 sptr<ISensorInterface> g_sensorInterface = nullptr; variable 49 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 50 if (g_sensorInterface == nullptr) { in SetUpTestCase() 80 int ret = g_sensorInterface->Register(0, g_callback); 102 int ret = g_sensorInterface->GetAllSensorInfo(info); 123 int ret = g_sensorInterface->Enable(SENSOR_ID); 144 int ret = g_sensorInterface->SetBatch(SENSOR_ID, SENSOR_INTERVAL, SENSOR_POLL_TIME); 168 int ret = g_sensorInterface->Disable(SENSOR_ID); 189 int ret = g_sensorInterface->SetMode(SENSOR_ID, 1); 210 int ret = g_sensorInterface->SetOption(SENSOR_ID, 1); [all …]
|
/drivers/peripheral/sensor/test/fuzztest/sensordisable_fuzzer/ |
D | sensordisable_fuzzer.cpp | 27 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorDisableFuzzTest() local 28 if (!g_sensorInterface->Enable(*(int32_t *)data)) { in SensorDisableFuzzTest() 31 if (!g_sensorInterface->Disable(*(int32_t *)data)) { in SensorDisableFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensor_fuzzer/ |
D | sensor_fuzzer.cpp | 56 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(false); in DoSomethingInterestingWithMyAPI() local 57 if (g_sensorInterface == nullptr) { in DoSomethingInterestingWithMyAPI() 61 sptr<SensorInterfaceStub> sensorInterface = new SensorInterfaceStub(g_sensorInterface); in DoSomethingInterestingWithMyAPI()
|
/drivers/peripheral/sensor/test/fuzztest/sensorenable_fuzzer/ |
D | sensorenable_fuzzer.cpp | 27 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorEnableFuzzTest() local 28 if (!g_sensorInterface->Enable(*(int32_t *)data)) { in SensorEnableFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetoption_fuzzer/ |
D | sensorsetoption_fuzzer.cpp | 27 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorSetOptionFuzzTest() local 29 if (!g_sensorInterface->SetOption(*(int32_t *)data, *(uint32_t *)data)) { in SensorSetOptionFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetmode_fuzzer/ |
D | sensorsetmode_fuzzer.cpp | 27 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorSetModeFuzzTest() local 29 if (!g_sensorInterface->SetMode(*(int32_t *)data, *(int32_t *)data)) { in SensorSetModeFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetbatch_fuzzer/ |
D | sensorsetbatch_fuzzer.cpp | 27 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorSetBatchFuzzTest() local 29 if (!g_sensorInterface->SetBatch(*(int32_t *)data, (int64_t)(*data), (int64_t)(*data))) { in SensorSetBatchFuzzTest()
|