/drivers/peripheral/sensor/test/unittest/hdi/ |
H A D | hdf_sensor_hdi_test.cpp | 34 sptr<ISensorInterface> g_sensorInterface = nullptr; member 103 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 126 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() 137 if (g_sensorInterface == nullptr) { in HWTEST_F() 138 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() 141 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); in HWTEST_F() 165 if (g_sensorInterface == nullptr) { in HWTEST_F() 166 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() 169 int32_t ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in HWTEST_F() 171 ret = g_sensorInterface in HWTEST_F() [all...] |
/drivers/peripheral/sensor/test/benchmarktest/ |
H A D | sensor_benchmark_test.cpp | 36 sptr<ISensorInterface> g_sensorInterface = nullptr;
member 58 g_sensorInterface = ISensorInterface::Get();
in SetUp() 73 ASSERT_NE(nullptr, g_sensorInterface);
in BENCHMARK_F() 78 ret = g_sensorInterface->GetAllSensorInfo(g_info);
in BENCHMARK_F() 94 ASSERT_NE(nullptr, g_sensorInterface);
in BENCHMARK_F() 99 ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback);
in BENCHMARK_F() 102 ret = g_sensorInterface->Unregister(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback);
in BENCHMARK_F() 117 ASSERT_NE(nullptr, g_sensorInterface);
in BENCHMARK_F() 122 ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback);
in BENCHMARK_F() 125 ret = g_sensorInterface in BENCHMARK_F() [all...] |
H A D | sensor_single_interface_benchmark_test.cpp | 36 sptr<ISensorInterface> g_sensorInterface = nullptr; member 55 g_sensorInterface = ISensorInterface::Get(); in SetUp() 71 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); in BENCHMARK_F() 88 int32_t ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in BENCHMARK_F() 105 int32_t ret = g_sensorInterface->SetBatch(g_sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in BENCHMARK_F() 122 int32_t ret = g_sensorInterface->SetMode(g_sensorId, SENSOR_MODE_ON_CHANGE); in BENCHMARK_F() 139 int32_t ret = g_sensorInterface->SetOption(g_sensorId, OPTION); in BENCHMARK_F() 156 int32_t ret = g_sensorInterface->Unregister(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in BENCHMARK_F() 173 int32_t ret = g_sensorInterface->Enable(g_sensorId); in BENCHMARK_F() 175 ret = g_sensorInterface in BENCHMARK_F() [all...] |
/drivers/peripheral/sensor/test/fuzztest/sensordisable_fuzzer/ |
H A D | sensordisable_fuzzer.cpp | 26 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorDisableFuzzTest() local 27 if (!g_sensorInterface->Enable(*(int32_t *)data)) { in SensorDisableFuzzTest() 30 if (!g_sensorInterface->Disable(*(int32_t *)data)) { in SensorDisableFuzzTest()
|
/drivers/peripheral/sensor/test/performance/hdi/ |
H A D | hdf_sensor_hdi_performance_test.cpp | 35 sptr<ISensorInterface> g_sensorInterface = nullptr; member 49 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 50 if (g_sensorInterface == nullptr) { in SetUpTestCase() 80 int ret = g_sensorInterface->Register(0, g_callback); in HWTEST_F() 102 int ret = g_sensorInterface->GetAllSensorInfo(info); in HWTEST_F() 123 int ret = g_sensorInterface->Enable(SENSOR_ID); in HWTEST_F() 144 int ret = g_sensorInterface->SetBatch(SENSOR_ID, SENSOR_INTERVAL, SENSOR_POLL_TIME); in HWTEST_F() 168 int ret = g_sensorInterface->Disable(SENSOR_ID); in HWTEST_F() 189 int ret = g_sensorInterface->SetMode(SENSOR_ID, 1); in HWTEST_F() 210 int ret = g_sensorInterface in HWTEST_F() [all...] |
/drivers/peripheral/sensor/test/fuzztest/sensorenable_fuzzer/ |
H A D | sensorenable_fuzzer.cpp | 26 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorEnableFuzzTest() local 27 if (!g_sensorInterface->Enable(*(int32_t *)data)) { in SensorEnableFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetoption_fuzzer/ |
H A D | sensorsetoption_fuzzer.cpp | 26 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorSetOptionFuzzTest() local 28 if (!g_sensorInterface->SetOption(*(int32_t *)data, *(uint32_t *)data)) { in SensorSetOptionFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetmode_fuzzer/ |
H A D | sensorsetmode_fuzzer.cpp | 26 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorSetModeFuzzTest() local 28 if (!g_sensorInterface->SetMode(*(int32_t *)data, *(int32_t *)data)) { in SensorSetModeFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetbatch_fuzzer/ |
H A D | sensorsetbatch_fuzzer.cpp | 26 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorSetBatchFuzzTest() local 28 if (!g_sensorInterface->SetBatch(*(int32_t *)data, (int64_t)(*data), (int64_t)(*data))) { in SensorSetBatchFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorgetsdcsensorInfo_fuzzer/ |
H A D | sensorgetsdcsensorInfo_fuzzer.cpp | 35 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorGetSdcSensorInfoFuzzTest() local 48 if (!g_sensorInterface->GetSdcSensorInfo(sdcSensorInfos)) { in SensorGetSdcSensorInfoFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetsdcsensor_fuzzer/ |
H A D | sensorsetsdcsensor_fuzzer.cpp | 28 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(); in SensorSetSdcSensorFuzzTest() local 30 if (!g_sensorInterface->SetSdcSensor(*(int32_t *)data, *(bool *)data, *(int32_t *)data)) { in SensorSetSdcSensorFuzzTest()
|
/drivers/peripheral/sensor/test/fuzztest/sensor_fuzzer/ |
H A D | sensor_fuzzer.cpp | 63 sptr<ISensorInterface> g_sensorInterface = ISensorInterface::Get(false); in DoSomethingInterestingWithMyAPI() local 64 if (g_sensorInterface == nullptr) { in DoSomethingInterestingWithMyAPI() 68 sptr<SensorInterfaceStub> sensorInterface = new SensorInterfaceStub(g_sensorInterface); in DoSomethingInterestingWithMyAPI()
|