Home
last modified time | relevance | path

Searched refs:g_motionInterface (Results 1 - 3 of 3) sorted by relevance

/test/xts/hats/hdf/motion/hdi_additional/
H A Dhdf_motion_hdi_test.cpp34 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr; member
48 void HdfMotionTestAdditional::SetUpTestCase() { g_motionInterface = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(); } in SetUpTestCase()
54 if (g_motionInterface == nullptr) { in SetUp()
70 if (g_motionInterface == nullptr) { in HWTEST_F()
71 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
74 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_CLOSE_TO_EAR); in HWTEST_F()
85 if (g_motionInterface == nullptr) { in HWTEST_F()
86 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
89 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_POCKET_MODE); in HWTEST_F()
100 if (g_motionInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/motion/hdi/
H A Dhdf_motion_hdi_test.cpp34 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr; member
50 g_motionInterface = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(); in SetUpTestCase()
59 if (g_motionInterface == nullptr) { in SetUp()
72 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
77 if (g_motionInterface == nullptr) { in HWTEST_F()
78 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
81 int32_t ret = g_motionInterface->Register(g_motionCallback); in HWTEST_F()
83 ret = g_motionInterface->Unregister(g_motionCallback); in HWTEST_F()
89 if (g_motionInterface == nullptr) { in HWTEST_F()
90 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
[all...]
/test/xts/hats/hdf/motion/motionBenchmarkTest/
H A Dhdf_motion_benchmark_test.cpp37 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr; member
53 g_motionInterface = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(); in SetUpTestCase()
75 if (g_motionInterface == nullptr) { in BENCHMARK_F()
76 ASSERT_NE(nullptr, g_motionInterface); in BENCHMARK_F()
82 ret =g_motionInterface->Register(g_motionCallback); in BENCHMARK_F()
83 g_motionInterface->Unregister(g_motionCallback); in BENCHMARK_F()
99 if (g_motionInterface == nullptr) { in BENCHMARK_F()
100 ASSERT_NE(nullptr, g_motionInterface); in BENCHMARK_F()
106 g_motionInterface->Register(g_motionCallback); in BENCHMARK_F()
107 ret = g_motionInterface in BENCHMARK_F()
[all...]

Completed in 3 milliseconds