/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-motion-des.md | 1 # Motion chapter 12 Motion驱动框架如图1所示,上层为Framework层,提供MSDP服务,通过UHDF(User Hardware Driver Foundation)层的Motion Proxy与Motion… 14 **图1** Motion驱动框架 16  22 **图 2** Motion驱动运行图 24  27 …Motion Proxy获取到Motion HDI接口服务实例。而Motion Proxy获取到的接口实例是由IService Manager进行分配。当MSDP服务层成功获取到Motion HD… 28 …Motion Interface Driver、Motion Service和Motion Impl三个部分。其中Motion Interface Driver为手势识别接口的驱动代码,在这部分驱… 106 /* Motion驱动对外提供的服务绑定到HDF框架 */ 138 /* 释放Motion驱动中的资源 */ [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/motion_v1_0/cpp_target/motion/v1_0/ |
H A D | motion_interface_stub.cpp.txt | 29 namespace Motion { 33 sptr<OHOS::HDI::Motion::V1_0::IMotionInterface> OHOS::HDI::Motion::V1_0::IMotionInterface::Get(bool… 38 sptr<OHOS::HDI::Motion::V1_0::IMotionInterface> OHOS::HDI::Motion::V1_0::IMotionInterface::Get(cons… 49 return reinterpret_cast<OHOS::HDI::Motion::V1_0::IMotionInterface *>(impl); 53 OHOS::HDI::Motion::V1_0::MotionInterfaceStub::MotionInterfaceStub(const sptr<OHOS::HDI::Motion::V1_… 58 OHOS::HDI::Motion::V1_0::MotionInterfaceStub::~MotionInterfaceStub() 169 sptr<OHOS::HDI::Motion::V1_0::IMotionCallback> callbackObj; 176 callbackObj = new OHOS::HDI::Motion::V1_0::MotionCallbackProxy(callbackObjRemote); 203 sptr<OHOS::HDI::Motion::V1_0::IMotionCallback> callbackObj; 210 callbackObj = new OHOS::HDI::Motion::V1_0::MotionCallbackProxy(callbackObjRemote); [all …]
|
H A D | motion_interface_proxy.cpp.txt | 30 namespace Motion { 34 sptr<OHOS::HDI::Motion::V1_0::IMotionInterface> OHOS::HDI::Motion::V1_0::IMotionInterface::Get(bool… 39 sptr<OHOS::HDI::Motion::V1_0::IMotionInterface> OHOS::HDI::Motion::V1_0::IMotionInterface::Get(cons… 64 …sptr<OHOS::HDI::Motion::V1_0::MotionInterfaceProxy> proxy = new OHOS::HDI::Motion::V1_0::MotionInt… 91 int32_t OHOS::HDI::Motion::V1_0::MotionInterfaceProxy::Reconnect( 92 sptr<OHOS::HDI::Motion::V1_0::MotionInterfaceProxy> proxy) 131 int32_t OHOS::HDI::Motion::V1_0::MotionInterfaceProxy::Register(const sptr<OHOS::HDI::Motion::V1_0:… 136 int32_t OHOS::HDI::Motion::V1_0::MotionInterfaceProxy::Unregister(const sptr<OHOS::HDI::Motion::V1_… 208 int32_t OHOS::HDI::Motion::V1_0::MotionInterfaceProxy::Register_(const sptr<OHOS::HDI::Motion::V1_0… 243 int32_t OHOS::HDI::Motion::V1_0::MotionInterfaceProxy::Unregister_(const sptr<OHOS::HDI::Motion::V1… [all …]
|
H A D | motion_callback_stub.cpp.txt | 24 namespace Motion { 29 OHOS::HDI::Motion::V1_0::MotionCallbackStub::MotionCallbackStub(const sptr<OHOS::HDI::Motion::V1_0:… 30 : IPCObjectStub(OHOS::HDI::Motion::V1_0::IMotionCallback::GetDescriptor()), impl_(impl) 34 OHOS::HDI::Motion::V1_0::MotionCallbackStub::~MotionCallbackStub() 39 int32_t OHOS::HDI::Motion::V1_0::MotionCallbackStub::OnRemoteRequest(uint32_t code, MessageParcel& … 63 …Motion::V1_0::MotionCallbackStub::MotionCallbackStubOnDataEvent_(MessageParcel& motionCallbackData… 65 …if (motionCallbackData.ReadInterfaceToken() != OHOS::HDI::Motion::V1_0::IMotionCallback::GetDescri… 70 OHOS::HDI::Motion::V1_0::HdfMotionEvent event; 90 …Motion::V1_0::MotionCallbackStub::MotionCallbackStubGetVersion_(MessageParcel& motionCallbackData,… 92 …if (motionCallbackData.ReadInterfaceToken() != OHOS::HDI::Motion::V1_0::IMotionCallback::GetDescri… [all …]
|
H A D | motion_interface_proxy.h.txt | 25 namespace Motion { 28 class MotionInterfaceProxy : public IProxyBroker<OHOS::HDI::Motion::V1_0::IMotionInterface> { 44 result = OHOS::HDI::Motion::V1_0::MotionInterfaceProxy::Reconnect(proxy); 50 wptr<OHOS::HDI::Motion::V1_0::MotionInterfaceProxy> proxy_; 74 int32_t Register(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 76 int32_t Unregister(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 84 static int32_t Register_(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj, 87 static int32_t Unregister_(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj, 92 static int32_t Reconnect(sptr<OHOS::HDI::Motion::V1_0::MotionInterfaceProxy> proxy); 104 static inline BrokerDelegator<OHOS::HDI::Motion::V1_0::MotionInterfaceProxy> delegator_; [all …]
|
H A D | motion_callback_proxy.cpp.txt | 28 namespace Motion { 32 int32_t OHOS::HDI::Motion::V1_0::MotionCallbackProxy::OnDataEvent(const OHOS::HDI::Motion::V1_0::Hd… 34 return OHOS::HDI::Motion::V1_0::MotionCallbackProxy::OnDataEvent_(event, Remote()); 37 int32_t OHOS::HDI::Motion::V1_0::MotionCallbackProxy::GetVersion(uint32_t& majorVer, uint32_t& mino… 39 return OHOS::HDI::Motion::V1_0::MotionCallbackProxy::GetVersion_(majorVer, minorVer, Remote()); 42 int32_t OHOS::HDI::Motion::V1_0::MotionCallbackProxy::OnDataEvent_(const OHOS::HDI::Motion::V1_0::H… 49 …if (!motionCallbackData.WriteInterfaceToken(OHOS::HDI::Motion::V1_0::IMotionCallback::GetDescripto… 54 if (!OHOS::HDI::Motion::V1_0::HdfMotionEventBlockMarshalling(motionCallbackData, event)) { 73 int32_t OHOS::HDI::Motion::V1_0::MotionCallbackProxy::GetVersion_(uint32_t& majorVer, uint32_t& min… 80 …if (!motionCallbackData.WriteInterfaceToken(OHOS::HDI::Motion::V1_0::IMotionCallback::GetDescripto… [all …]
|
H A D | motion_interface_stub.h.txt | 28 namespace Motion { 39 …ionInterfaceReply, MessageOption& motionInterfaceOption, sptr<OHOS::HDI::Motion::V1_0::IMotionInte… 41 …ionInterfaceReply, MessageOption& motionInterfaceOption, sptr<OHOS::HDI::Motion::V1_0::IMotionInte… 43 …ionInterfaceReply, MessageOption& motionInterfaceOption, sptr<OHOS::HDI::Motion::V1_0::IMotionInte… 45 …ionInterfaceReply, MessageOption& motionInterfaceOption, sptr<OHOS::HDI::Motion::V1_0::IMotionInte… 47 …ionInterfaceReply, MessageOption& motionInterfaceOption, sptr<OHOS::HDI::Motion::V1_0::IMotionInte… 61 …static inline ObjectDelegator<OHOS::HDI::Motion::V1_0::MotionInterfaceStub, OHOS::HDI::Motion::V1_… 62 sptr<OHOS::HDI::Motion::V1_0::IMotionInterface> impl_; 65 } // Motion
|
H A D | motion_callback_proxy.h.txt | 24 namespace Motion { 27 class MotionCallbackProxy : public IProxyBroker<OHOS::HDI::Motion::V1_0::IMotionCallback> { 29 …llbackProxy(const sptr<IRemoteObject>& remote) : IProxyBroker<OHOS::HDI::Motion::V1_0::IMotionCall… 38 int32_t OnDataEvent(const OHOS::HDI::Motion::V1_0::HdfMotionEvent& event) override; 42 …static int32_t OnDataEvent_(const OHOS::HDI::Motion::V1_0::HdfMotionEvent& event, const sptr<IRemo… 47 static inline BrokerDelegator<OHOS::HDI::Motion::V1_0::MotionCallbackProxy> delegator_; 51 } // Motion
|
H A D | motion_callback_stub.h.txt | 28 namespace Motion { 39 …otionCallbackReply, MessageOption& motionCallbackOption, sptr<OHOS::HDI::Motion::V1_0::IMotionCall… 41 …otionCallbackReply, MessageOption& motionCallbackOption, sptr<OHOS::HDI::Motion::V1_0::IMotionCall… 49 …static inline ObjectDelegator<OHOS::HDI::Motion::V1_0::MotionCallbackStub, OHOS::HDI::Motion::V1_0… 50 sptr<OHOS::HDI::Motion::V1_0::IMotionCallback> impl_; 53 } // Motion
|
H A D | motion_interface_service.h.txt | 23 namespace Motion { 25 class MotionInterfaceService : public OHOS::HDI::Motion::V1_0::IMotionInterface { 34 int32_t Register(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 36 int32_t Unregister(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 40 } // Motion
|
H A D | imotion_interface.h.txt | 48 namespace Motion { 67 static sptr<OHOS::HDI::Motion::V1_0::IMotionInterface> Get(bool isStub = false); 68 …static sptr<OHOS::HDI::Motion::V1_0::IMotionInterface> Get(const std::string &serviceName, bool is… 74 virtual int32_t Register(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) = 0; 76 … virtual int32_t Unregister(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) = 0; 96 } // Motion
|
H A D | motion_callback_service.h.txt | 23 namespace Motion { 25 class MotionCallbackService : public OHOS::HDI::Motion::V1_0::IMotionCallback { 30 int32_t OnDataEvent(const OHOS::HDI::Motion::V1_0::HdfMotionEvent& event) override; 34 } // Motion
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/motion_v1_1/cpp_target/motion/v1_1/ |
H A D | motion_interface_stub.cpp.txt | 27 namespace Motion { 55 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> OHOS::HDI::Motion::V1_1::IMotionInterface::Get(bool… 57 return OHOS::HDI::Motion::V1_1::IMotionInterface::Get("motion_interface_service", isStub); 60 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> OHOS::HDI::Motion::V1_1::IMotionInterface::Get(cons… 65 std::string desc = Str16ToStr8(OHOS::HDI::Motion::V1_1::IMotionInterface::GetDescriptor()); 71 return reinterpret_cast<OHOS::HDI::Motion::V1_1::IMotionInterface *>(impl); 75 OHOS::HDI::Motion::V1_1::MotionInterfaceStub::MotionInterfaceStub(const sptr<OHOS::HDI::Motion::V1_… 76 : IPCObjectStub(OHOS::HDI::Motion::V1_1::IMotionInterface::GetDescriptor()), impl_(impl) 80 OHOS::HDI::Motion::V1_1::MotionInterfaceStub::~MotionInterfaceStub() 137 …Motion::V1_1::MotionInterfaceStub::MotionInterfaceStubSetMotionConfig_(MessageParcel& motionInterf… [all …]
|
H A D | motion_interface_proxy.cpp.txt | 29 namespace Motion { 76 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> OHOS::HDI::Motion::V1_1::IMotionInterface::Get(bool… 81 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> OHOS::HDI::Motion::V1_1::IMotionInterface::Get(cons… 106 …sptr<OHOS::HDI::Motion::V1_1::MotionInterfaceProxy> proxy = new OHOS::HDI::Motion::V1_1::MotionInt… 133 int32_t OHOS::HDI::Motion::V1_1::MotionInterfaceProxy::Reconnect( 134 sptr<OHOS::HDI::Motion::V1_1::MotionInterfaceProxy> proxy) 163 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> OHOS::HDI::Motion::V1_1::IMotionInterface::CastFrom… 165 …return CastFromTemplate<OHOS::HDI::Motion::V1_1::IMotionInterface, OHOS::HDI::Motion::V1_0::IMotio… 201 int32_t OHOS::HDI::Motion::V1_1::MotionInterfaceProxy::Register(const sptr<OHOS::HDI::Motion::V1_0:… 206 int32_t OHOS::HDI::Motion::V1_1::MotionInterfaceProxy::Unregister(const sptr<OHOS::HDI::Motion::V1_… [all …]
|
H A D | motion_types.cpp.txt | 23 namespace Motion { 28 bool WaveParamBlockMarshalling(OHOS::MessageParcel& data, const OHOS::HDI::Motion::V1_1::WaveParam&… 30 … if (!data.WriteUnpadBuffer((const void*)&dataBlock, sizeof(OHOS::HDI::Motion::V1_1::WaveParam))) { 36 bool WaveParamBlockUnmarshalling(OHOS::MessageParcel& data, OHOS::HDI::Motion::V1_1::WaveParam& dat… 38 …DI::Motion::V1_1::WaveParam *dataBlockPtr = reinterpret_cast<const OHOS::HDI::Motion::V1_1::WavePa… 43 …if (memcpy_s(&dataBlock, sizeof(OHOS::HDI::Motion::V1_1::WaveParam), dataBlockPtr, sizeof(OHOS::HD… 51 } // Motion
|
H A D | motion_interface_proxy.h.txt | 26 namespace Motion { 29 class MotionInterfaceProxy : public IProxyBroker<OHOS::HDI::Motion::V1_1::IMotionInterface> { 33 …IServiceManagerDeathRecipient(wptr<OHOS::HDI::Motion::V1_1::MotionInterfaceProxy> proxy) : proxy_(… 45 result = OHOS::HDI::Motion::V1_1::MotionInterfaceProxy::Reconnect(proxy); 51 wptr<OHOS::HDI::Motion::V1_1::MotionInterfaceProxy> proxy_; 77 int32_t Register(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 79 int32_t Unregister(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 86 static int32_t Reconnect(sptr<OHOS::HDI::Motion::V1_1::MotionInterfaceProxy> proxy); 95 …sptr<OHOS::HDI::Motion::V1_1::MotionInterfaceProxy::IServiceManagerDeathRecipient> deathRecipient_; 98 static inline BrokerDelegator<OHOS::HDI::Motion::V1_1::MotionInterfaceProxy> delegator_; [all …]
|
H A D | imotion_interface.h.txt | 50 namespace Motion { 54 using namespace OHOS::HDI::Motion::V1_0; 60 class IMotionInterface : public OHOS::HDI::Motion::V1_0::IMotionInterface { 66 static sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> Get(bool isStub = false); 67 …static sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> Get(const std::string &serviceName, bool is… 69 …static sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> CastFrom(const sptr<OHOS::HDI::Motion::V1_0… 86 } // Motion
|
H A D | motion_interface_stub.h.txt | 29 namespace Motion { 40 …ionInterfaceReply, MessageOption& motionInterfaceOption, sptr<OHOS::HDI::Motion::V1_1::IMotionInte… 56 …static inline ObjectDelegator<OHOS::HDI::Motion::V1_1::MotionInterfaceStub, OHOS::HDI::Motion::V1_… 57 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> impl_; 60 } // Motion
|
H A D | motion_interface_service.h.txt | 23 namespace Motion { 25 class MotionInterfaceService : public OHOS::HDI::Motion::V1_1::IMotionInterface { 36 int32_t Register(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 38 int32_t Unregister(const sptr<OHOS::HDI::Motion::V1_0::IMotionCallback>& callbackObj) override; 42 } // Motion
|
/ohos5.0/drivers/peripheral/motion/ |
H A D | Readme_zh.md | 1 # Motion chapter 5 基于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 接口列表
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/motion/ |
H A D | Readme-CN.md | 1 # Motion HDI 参考 4 - [Motion (V1_1)](_motion_v11.md) 5 - [Motion (V1_0)](_motion_v10.md) 7 - Motion (V1_1) 10 - Motion (V1_0) 15 - Motion (V1_1) 18 - Motion (V1_0)
|
/ohos5.0/drivers/peripheral/motion/test/unittest/hdi/ |
H A D | hdf_motion_hdi_test.cpp | 30 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() 136 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); 137 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP); 138 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE); 139 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_ROTATION); 178 ret = g_motionInterface->DisableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_MAX); 192 ret = g_motionInterface->DisableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_WRIST_UP); 220 ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); [all …]
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-peripherals-motion-des.md | 1 # Motion chapter 11 …nteracts with the Motion Stub through the Motion Proxy in the User Hardware Driver Foundation (UHD… 13 **Figure 1** Motion driver architecture 25 1. MSDP: The MSDP service obtains a Motion HDI service instance from the Motion Proxy and calls the… 26 …Motion HDI service instance from the Motion Proxy and calls the Motion HDI API. The interface inst… 27 …Motion Interface Driver, Motion Service, and Motion Impl. Motion Interface Driver provides the mot… 176 using namespace OHOS::HDI::Motion::V1_0; 232 printf("Motion %d enabled successfully\n", vec[i]); 234 printf("Motion %d enable failed\n", vec[i]); 241 printf("Motion %d disabled successfully\n", vec[i]); [all …]
|
/ohos5.0/drivers/peripheral/motion/test/fuzztest/motion_fuzzer/ |
H A D | motion_fuzzer.cpp | 22 using namespace OHOS::HDI::Motion::V1_1; 64 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = in DoSomethingInterestingWithMyAPI() 65 OHOS::HDI::Motion::V1_1::IMotionInterface::Get(false); in DoSomethingInterestingWithMyAPI() 70 sptr<OHOS::HDI::Motion::V1_1::MotionInterfaceStub> motionInterface = in DoSomethingInterestingWithMyAPI() 71 new OHOS::HDI::Motion::V1_1::MotionInterfaceStub(g_motionInterface); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/animator/ |
H A D | cj_animator.h | 50 extern RefPtr<Motion> ParseOptionToMotion(const std::shared_ptr<AnimatorOption>& option); 75 const RefPtr<Motion>& GetMotion() const in GetMotion() 80 void SetMotion(const RefPtr<Motion>& motion) in SetMotion() 104 RefPtr<Motion> motion_;
|