Searched refs:g_sensorInterface (Results 1 - 3 of 3) sorted by relevance
/test/xts/hats/hdf/sensor/hdiService_additional/ |
H A D | hdf_sensor_hdiService_test.cpp | 33 sptr<ISensorInterface> g_sensorInterface = nullptr; member 65 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 87 if (g_sensorInterface == nullptr) { in SetUp() 102 if (g_sensorInterface == nullptr) { in HWTEST_F() 103 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() 106 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); in HWTEST_F() 107 ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback); in HWTEST_F() 110 ret = g_sensorInterface->SetBatch(HDF_SENSOR_TYPE_ACCELEROMETER, SENSOR_INTERVAL2, SENSOR_POLL_TIME); in HWTEST_F() 121 if (g_sensorInterface == nullptr) { in HWTEST_F() 122 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() [all...] |
/test/xts/hats/hdf/sensor/hdiService/ |
H A D | hdf_sensor_hdiService_test.cpp | 30 sptr<ISensorInterface> g_sensorInterface = nullptr; member 110 g_sensorInterface = ISensorInterface::Get(); in SetUpTestCase() 119 if (g_sensorInterface == nullptr) { in SetUp() 137 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() 147 if (g_sensorInterface == nullptr) { in HWTEST_F() 148 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() 151 int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info); in HWTEST_F() 174 if (g_sensorInterface == nullptr) { in HWTEST_F() 175 ASSERT_NE(nullptr, g_sensorInterface); in HWTEST_F() 178 int32_t ret = g_sensorInterface in HWTEST_F() [all...] |
/test/xts/hats/hdf/sensor/sensorBenchmarkTest/ |
H A D | hdf_sensor_benchmark_test.cpp | 37 sptr<ISensorInterface> g_sensorInterface = nullptr;
member 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 in BENCHMARK_F() [all...] |
Completed in 3 milliseconds