Searched refs:Motion (Results 1 – 18 of 18) sorted by relevance
1 # Motion chapter5 基于HDF(Hardware Driver Foundation)驱动框架开发的Motion驱动,能够屏蔽硬件器件差异,为上层服务提供稳定的手势识别基础能力接口,包括Motion使能/去使能、Mot…7 Motion驱动模块如图1所示,上层为Framework层,提供MSDP服务,通过UHDF(User Hardware Driver Foundation)层的Motion Proxy与Motion…9 **图 1** Motion驱动模块架构图15 Motion驱动源代码目录结构如下所示:28 Motion驱动模块为上层服务提供可直接调用的能力接口,涉及的主要功能有:使能/去使能手势识别、订阅/取消订阅手势识别数据等操作。Motion驱动模型对HDI开放的API接口功能如表1:30 **表 1** Motion HDI 接口列表
1 # Motion chapter7 …interacts with the Motion Hardware Device Interface (HDI) Server through the Motion HDI Client. Th…30 **Table 1** Motion HDI APIs
27 using namespace OHOS::HDI::Motion::V1_1;31 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr;46 g_motionInterface = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(); in SetUpTestCase()132 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP);133 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP);134 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE);135 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_ROTATION);170 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_MAX);174 ret = g_motionInterface->DisableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_MAX);184 … int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_WRIST_UP);[all …]
21 namespace Motion { namespace
24 namespace Motion {
22 using namespace OHOS::HDI::Motion::V1_1;56 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = in DoSomethingInterestingWithMyAPI()57 OHOS::HDI::Motion::V1_1::IMotionInterface::Get(false); in DoSomethingInterestingWithMyAPI()62 sptr<OHOS::HDI::Motion::V1_1::MotionInterfaceStub> motionInterface = in DoSomethingInterestingWithMyAPI()63 new OHOS::HDI::Motion::V1_1::MotionInterfaceStub(g_motionInterface); in DoSomethingInterestingWithMyAPI()
22 using namespace OHOS::HDI::Motion::V1_1;71 auto serviceImpl = OHOS::HDI::Motion::V1_1::IMotionInterface::Get(true); in HdfMotionInterfaceDriverBind()79 OHOS::HDI::Motion::V1_1::IMotionInterface::GetDescriptor()); in HdfMotionInterfaceDriverBind()
26 namespace Motion {
20 namespace Motion { namespace
24 namespace Motion { namespace
17 * @addtogroup Motion51 …* Motion users need to register this callback to subscribe to motion data and can receive the data…60 * @param event Motion data to report. For details, see {@link HdfMotionEvent}.
17 * @addtogroup Motion58 * @param motionType Motion type. For details, see {@link HdfMotionTypeTag}.71 * @param motionType Motion type. For details, see {@link HdfMotionTypeTag}.
17 * @addtogroup Motion
27 namespace Motion {
17 * @addtogroup Motion59 * @param motionType Motion type. For details, see {@link HdfMotionTypeTag}.60 * @param data Motion wave config parameters for a trick. For details, see {@link WaveParam}.