Home
last modified time | relevance | path

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

/drivers/peripheral/motion/test/unittest/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()
67 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
72 if (g_motionInterface == nullptr) { in HWTEST_F()
73 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
76 int32_t ret = g_motionInterface->Register(g_motionCallback); in HWTEST_F()
78 ret = g_motionInterface->Unregister(g_motionCallback); in HWTEST_F()
84 if (g_motionInterface == nullptr) { in HWTEST_F()
85 ASSERT_NE(nullptr, g_motionInterface); in HWTEST_F()
88 int32_t ret = g_motionInterface in HWTEST_F()
[all...]
/drivers/peripheral/motion/test/fuzztest/motion_fuzzer/
H A Dmotion_fuzzer.cpp64 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = in DoSomethingInterestingWithMyAPI() local
66 if (g_motionInterface == nullptr) { in DoSomethingInterestingWithMyAPI()
71 new OHOS::HDI::Motion::V1_1::MotionInterfaceStub(g_motionInterface); in DoSomethingInterestingWithMyAPI()

Completed in 1 milliseconds