Searched refs:g_sensorInterface (Results 1 – 3 of 3) sorted by relevance
| /test/xts/hats/hdf/sensor/hdiService_additional/ |
| D | hdf_sensor_hdiService_test.cpp | 33 sptr<ISensorInterface> g_sensorInterface = nullptr; variable 65 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 87 if (g_sensorInterface == nullptr) { in SetUp() 102 if (g_sensorInterface == nullptr) { 103 ASSERT_NE(nullptr, g_sensorInterface); 106 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); 107 ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); 110 …ret = g_sensorInterface->SetBatch(HDF_SENSOR_TYPE_ACCELEROMETER, SENSOR_INTERVAL2, SENSOR_POLL_TIM… 121 if (g_sensorInterface == nullptr) { 122 ASSERT_NE(nullptr, g_sensorInterface); [all …]
|
| /test/xts/hats/hdf/sensor/hdiService/ |
| D | hdf_sensor_hdiService_test.cpp | 30 sptr<ISensorInterface> g_sensorInterface = nullptr; variable 110 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 119 if (g_sensorInterface == nullptr) { in SetUp() 137 ASSERT_NE(nullptr, g_sensorInterface); 147 if (g_sensorInterface == nullptr) { 148 ASSERT_NE(nullptr, g_sensorInterface); 151 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); 174 if (g_sensorInterface == nullptr) { 175 ASSERT_NE(nullptr, g_sensorInterface); 178 int32_t ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); [all …]
|
| /test/xts/hats/hdf/sensor/sensorBenchmarkTest/ |
| D | hdf_sensor_benchmark_test.cpp | 37 sptr<ISensorInterface> g_sensorInterface = nullptr; variable 94 g_sensorInterface = ISensorInterface::Get(); in SetUp() 109 if (g_sensorInterface == nullptr) { in BENCHMARK_F() 110 ASSERT_NE(nullptr, g_sensorInterface); in BENCHMARK_F() 115 ret = g_sensorInterface->GetAllSensorInfo(g_info); in BENCHMARK_F() 140 if (g_sensorInterface == nullptr) { in BENCHMARK_F() 141 ASSERT_NE(nullptr, g_sensorInterface); in BENCHMARK_F() 146 ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_medicalCallback); in BENCHMARK_F() 148 ret = g_sensorInterface->Unregister(TRADITIONAL_SENSOR_TYPE, g_medicalCallback); in BENCHMARK_F() 165 if (g_sensorInterface == nullptr) { in BENCHMARK_F() [all …]
|