Home
last modified time | relevance | path

Searched refs:g_sensorInterface (Results 1 – 9 of 9) sorted by relevance

/drivers/peripheral/sensor/test/unittest/hdi/
Dhdf_sensor_hdi_test.cpp31 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/
Dsensor_benchmark_test.cpp35 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/
Dhdf_sensor_hdi_performance_test.cpp35 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/
Dsensordisable_fuzzer.cpp27 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/
Dsensor_fuzzer.cpp56 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/
Dsensorenable_fuzzer.cpp27 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/
Dsensorsetoption_fuzzer.cpp27 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/
Dsensorsetmode_fuzzer.cpp27 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/
Dsensorsetbatch_fuzzer.cpp27 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()