Searched refs:g_motionInterface (Results 1 – 6 of 6) sorted by relevance
67 ASSERT_NE(nullptr, g_motionInterface);72 if (g_motionInterface == nullptr) {84 if (g_motionInterface == nullptr) {98 if (g_motionInterface == nullptr) {109 if (g_motionInterface == nullptr) {119 if (g_motionInterface == nullptr) {130 if (g_motionInterface == nullptr) {170 if (g_motionInterface == nullptr) {184 if (g_motionInterface == nullptr) {198 if (g_motionInterface == nullptr) {[all …]
164 1. 通过调用IMotionInterface::Get()获取到手势识别实例,并赋给IMotionInterface类型的智能指针对象g_motionInterface。166 2. 通过g_motionInterface实例调用Register接口注册回调,回调函数需要根据自己的需求来设计。170 4. 通过g_motionInterface实例调用DisableMotion接口去使能手势识别类型。181 sptr<IMotionInterface> g_motionInterface = nullptr;197 g_motionInterface = IMotionInterface::Get();214 if (g_motionInterface == nullptr) {215 ASSERT_NE(nullptr, g_motionInterface);226 int32_t ret = g_motionInterface->Register(g_motionCallback);231 ret = g_motionInterface->EnableMotion(vec[i]);240 ret = g_motionInterface->DisableMotion(vec[i]);[all …]
66 sptr<IMotionInterface> g_motionInterface = nullptr;71 g_motionInterface = IMotionInterface::Get();72 if (g_motionInterface == nullptr) {76 ret = g_motionInterface->Register(g_motionCallback);81 ret = g_motionInterface->EnableMotion(HDF_MOTION_TYPE_PICKUP);86 ret = g_motionInterface->DisableMotion(HDF_MOTION_TYPE_PICKUP);91 ret = g_motionInterface->Unregister(g_motionCallback);
163 …** to obtain a motion recognition instance and assign it with the **g_motionInterface** object of …165 2. Call **Register()** using the **g_motionInterface** instance to register a callback. The callbac…169 4. Call **DisableMotion** using the **g_motionInterface** instance to disable motion recognition.180 sptr<IMotionInterface> g_motionInterface = nullptr;196 g_motionInterface = IMotionInterface::Get();213 if (g_motionInterface == nullptr) {214 ASSERT_NE(nullptr, g_motionInterface);225 int32_t ret = g_motionInterface->Register(g_motionCallback);230 ret = g_motionInterface->EnableMotion(vec[i]);239 ret = g_motionInterface->DisableMotion(vec[i]);[all …]
64 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = in DoSomethingInterestingWithMyAPI() local66 if (g_motionInterface == nullptr) { in DoSomethingInterestingWithMyAPI()71 new OHOS::HDI::Motion::V1_1::MotionInterfaceStub(g_motionInterface); in DoSomethingInterestingWithMyAPI()