Home
last modified time | relevance | path

Searched refs:Motion (Results 1 - 7 of 7) sorted by relevance

/test/xts/hats/hdf/motion/motionBenchmarkTest/
H A Dhdf_motion_benchmark_test.cpp33 using namespace OHOS::HDI::Motion::V1_1;
37 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr;
53 g_motionInterface = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(); in SetUpTestCase()
128 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); in BENCHMARK_F()
129 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP); in BENCHMARK_F()
130 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE); in BENCHMARK_F()
131 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_ROTATION); in BENCHMARK_F()
137 ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_MAX); in BENCHMARK_F()
138 g_motionInterface->DisableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_MAX); in BENCHMARK_F()
160 vec.push_back(OHOS::HDI::Motion in BENCHMARK_F()
[all...]
/test/xts/hats/hdf/motion/hdi_additional/
H A Dhdf_motion_hdi_test.cpp30 using namespace OHOS::HDI::Motion::V1_1;
34 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr;
48 void HdfMotionTestAdditional::SetUpTestCase() { g_motionInterface = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(); } in SetUpTestCase()
55 printf("Motion is not supported "); in SetUp()
74 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_CLOSE_TO_EAR); in HWTEST_F()
89 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_POCKET_MODE); in HWTEST_F()
104 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_LEAVE_EAR); in HWTEST_F()
119 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_WRIST_UP); in HWTEST_F()
137 ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_CLOSE_TO_EAR); in HWTEST_F()
154 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion in HWTEST_F()
[all...]
H A Dmotion_callback_impl.cpp21 namespace Motion { namespace
29 } // namespace Motion
H A Dmotion_callback_impl.h24 namespace Motion { namespace
33 } // namespace Motion
/test/xts/hats/hdf/motion/hdi/
H A Dhdf_motion_hdi_test.cpp30 using namespace OHOS::HDI::Motion::V1_1;
34 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr;
50 g_motionInterface = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(); in SetUpTestCase()
60 printf("Motion is not supported "); in SetUp()
141 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); in HWTEST_F()
142 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP); in HWTEST_F()
143 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE); in HWTEST_F()
144 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_ROTATION); in HWTEST_F()
152 printf("Motion %d enabled successfully\n", vec[i]); in HWTEST_F()
154 printf("Motion in HWTEST_F()
[all...]
H A Dmotion_callback_impl.cpp21 namespace Motion { namespace
29 } // Motion
H A Dmotion_callback_impl.h24 namespace Motion { namespace
33 } // Motion

Completed in 3 milliseconds