/ohos5.0/foundation/multimodalinput/input/service/event_handler/test/ |
H A D | input_event_handler_test.cpp | 301 vTouchpad_.SendEvent(EV_ABS, ABS_X, 1511); 302 vTouchpad_.SendEvent(EV_ABS, ABS_Y, 384); 307 vTouchpad_.SendEvent(EV_ABS, ABS_X, 1510); 308 vTouchpad_.SendEvent(EV_ABS, ABS_Y, 386); 347 vTouchpad_.SendEvent(EV_ABS, ABS_X, 1511); 348 vTouchpad_.SendEvent(EV_ABS, ABS_Y, 384); 360 vTouchpad_.SendEvent(EV_ABS, ABS_Y, 386); 395 vTouchpad_.SendEvent(EV_ABS, ABS_X, 10); 408 vTouchpad_.SendEvent(EV_ABS, ABS_Y, 386); 447 vTouchpad_.SendEvent(EV_ABS, ABS_X, 10); [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/touch_event_normalize/test/src/ |
H A D | touch_transform_processor_test.cpp | 232 vTouchscreen_.SendEvent(EV_SYN, SYN_MT_REPORT, 0); 233 vTouchscreen_.SendEvent(EV_KEY, BTN_TOUCH, 1); 234 vTouchscreen_.SendEvent(EV_SYN, SYN_REPORT, 0); 286 vTouchscreen_.SendEvent(EV_SYN, SYN_REPORT, 0); 319 vTouchscreen_.SendEvent(EV_KEY, BTN_TOUCH, 0); 320 vTouchscreen_.SendEvent(EV_SYN, SYN_REPORT, 0); 347 vTouchscreen_.SendEvent(EV_KEY, BTN_TOUCH, 1); 348 vTouchscreen_.SendEvent(EV_SYN, SYN_REPORT, 0); 385 vTouchscreen_.SendEvent(EV_SYN, SYN_REPORT, 0); 416 vTouchscreen_.SendEvent(EV_KEY, BTN_TOUCH, 0); [all …]
|
H A D | touchpad_transform_processor_test.cpp | 411 vTouchpad_.SendEvent(EV_SYN, SYN_REPORT, 0); 413 vTouchpad_.SendEvent(EV_SYN, SYN_REPORT, 0); 447 vTouchpad_.SendEvent(EV_SYN, SYN_REPORT, 0); 449 vTouchpad_.SendEvent(EV_SYN, SYN_REPORT, 0); 484 vTouchpad_.SendEvent(EV_SYN, SYN_REPORT, 0); 486 vTouchpad_.SendEvent(EV_SYN, SYN_REPORT, 0); 524 vTouchpad_.SendEvent(EV_SYN, SYN_REPORT, 0); 702 vTouchpad_.SendEvent(EV_KEY, BTN_TOUCH, 0); 722 vTouchpad_.SendEvent(EV_KEY, BTN_TOUCH, 1); 760 vTouchpad_.SendEvent(EV_KEY, BTN_TOUCH, 0); [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/key_event_normalize/test/ |
H A D | key_event_normalize_test.cpp | 92 vKeyboard_.SendEvent(EV_KEY, 29, 1); 96 vKeyboard_.SendEvent(EV_KEY, 29, 0); 119 vKeyboard_.SendEvent(EV_KEY, 29, 1); 123 vKeyboard_.SendEvent(EV_KEY, 29, 0); 150 vKeyboard_.SendEvent(EV_KEY, 29, 1); 154 vKeyboard_.SendEvent(EV_KEY, 29, 0); 181 vKeyboard_.SendEvent(EV_KEY, 29, 1); 185 vKeyboard_.SendEvent(EV_KEY, 29, 0); 208 vKeyboard_.SendEvent(EV_KEY, 29, 1); 212 vKeyboard_.SendEvent(EV_KEY, 29, 0); [all …]
|
/ohos5.0/base/telephony/core_service/utils/common/include/ |
H A D | tel_event_handler.h | 92 inline bool SendEvent(AppExecFwk::InnerEvent::Pointer &event, Priority priority) in SendEvent() function 94 return SendEvent(event, 0, priority); in SendEvent() 108 return SendEvent(event, delayTime, priority); 119 inline bool SendEvent(uint32_t innerEventId, int64_t param, int64_t delayTime) in SendEvent() function 121 return SendEvent(AppExecFwk::InnerEvent::Get(innerEventId, param), delayTime); in SendEvent() 132 inline bool SendEvent( 145 inline bool SendEvent(uint32_t innerEventId, Priority priority) in SendEvent() function 147 return SendEvent(AppExecFwk::InnerEvent::Get(innerEventId, 0), 0, priority); in SendEvent() 161 return SendEvent(AppExecFwk::InnerEvent::Get(innerEventId, object), delayTime); 214 return SendEvent(event, 0, Priority::IMMEDIATE); in SendImmediateEvent() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestStateMachine.cpp | 104 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::SET_SOURCE, source)); in TEST_F() 111 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::PREPARE)); in TEST_F() 118 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::NOTIFY_ERROR)); in TEST_F() 126 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::SET_SOURCE, source)); in TEST_F() 128 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::PREPARE)); in TEST_F() 130 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::NOTIFY_READY)); in TEST_F() 137 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::PLAY)); in TEST_F() 144 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::PAUSE)); in TEST_F() 151 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::PLAY)); in TEST_F() 159 EXPECT_EQ(ErrorCode::SUCCESS, stateMachine.SendEvent(Intent::NOTIFY_COMPLETE)); in TEST_F() [all …]
|
/ohos5.0/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_touchscreen.cpp | 92 SendEvent(EV_ABS, ABS_MT_TRACKING_ID, s); in SendTouchEvent() 93 SendEvent(EV_SYN, SYN_MT_REPORT, SYNC_VALUE); in SendTouchEvent() 117 SendEvent(EV_KEY, BTN_TOUCH, DOWN_VALUE); in DownButton() 119 SendEvent(EV_SYN, SYN_MT_REPORT, SYNC_VALUE); in DownButton() 121 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in DownButton() 143 SendEvent(EV_SYN, SYN_MT_REPORT, SYNC_VALUE); in UpButton() 145 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in UpButton() 150 SendEvent(EV_KEY, BTN_TOUCH, UP_VALUE); in UpButton() 151 SendEvent(EV_SYN, SYN_MT_REPORT, SYNC_VALUE); in UpButton() 152 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in UpButton() [all …]
|
H A D | virtual_keyboard.cpp | 69 SendEvent(EV_MSC, MSC_SCAN, OBFUSCATED); in Down() 70 SendEvent(EV_KEY, key, DOWN_VALUE); in Down() 71 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in Down() 83 SendEvent(EV_MSC, MSC_SCAN, OBFUSCATED); in Up() 84 SendEvent(EV_KEY, key, UP_VALUE); in Up() 85 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in Up()
|
H A D | virtual_mouse.cpp | 125 SendEvent(EV_MSC, MSC_SCAN, OBFUSCATED); in DownButton() 126 SendEvent(EV_KEY, button, DOWN_VALUE); in DownButton() 127 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in DownButton() 139 SendEvent(EV_MSC, MSC_SCAN, OBFUSCATED); in UpButton() 140 SendEvent(EV_KEY, button, UP_VALUE); in UpButton() 141 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in UpButton() 160 SendEvent(EV_REL, REL_WHEEL, wheelValue); in Scroll() 161 SendEvent(EV_REL, REL_HWHEEL_HI_RES, wheelHiResValue); in Scroll() 162 SendEvent(EV_SYN, SYN_REPORT, SYNC_VALUE); in Scroll() 191 SendEvent(EV_REL, REL_X, static_cast<int32_t>(tx)); in Move() [all …]
|
/ohos5.0/base/telephony/state_registry/frameworks/js/napi/src/ |
H A D | napi_telephony_observer.cpp | 33 …EventListenerManager::SendEvent(ToUint32t(TelephonyCallbackEventId::EVENT_ON_CALL_STATE_UPDATE), c… in OnCallStateUpdated() 46 …EventListenerManager::SendEvent(ToUint32t(TelephonyCallbackEventId::EVENT_ON_SIGNAL_INFO_UPDATE), … in OnSignalInfoUpdated() 59 EventListenerManager::SendEvent( in OnNetworkStateUpdated() 73 EventListenerManager::SendEvent( in OnSimStateUpdated() 85 …EventListenerManager::SendEvent(ToUint32t(TelephonyCallbackEventId::EVENT_ON_CELL_INFOMATION_UPDAT… in OnCellInfoUpdated() 100 EventListenerManager::SendEvent( in OnCellularDataConnectStateUpdated() 114 EventListenerManager::SendEvent( in OnCellularDataFlowUpdated() 127 EventListenerManager::SendEvent( in OnCfuIndicatorUpdated() 134 … EventListenerManager::SendEvent(ToUint32t(TelephonyCallbackEventId::EVENT_ON_ICC_ACCOUNT_UPDATE)); in OnIccAccountUpdated() 147 EventListenerManager::SendEvent( in OnVoiceMailMsgIndicatorUpdated()
|
/ohos5.0/base/notification/eventhandler/frameworks/test/moduletest/ |
H A D | event_handler_set_get_remove_module_test.cpp | 64 bool result = handler->SendEvent(STOP_EVENT_ID); 84 bool allowSend = handler->SendEvent(Random()); 249 inHandler->SendEvent(STOP_EVENT_ID); in __anon93d6534f0302() 255 handler->SendEvent(STOP_EVENT_ID); 308 bool result = handler->SendEvent(RUN_EVENT_ID); 325 handler->SendEvent(RUN_EVENT_ID); 332 handler->SendEvent(STOP_EVENT_ID); 352 bool result = handler->SendEvent(RUN_EVENT_ID); 370 handler->SendEvent(RUN_EVENT_ID, param, 0); 377 handler->SendEvent(STOP_EVENT_ID); [all …]
|
H A D | event_handler_send_event_module_test.cpp | 34 bool lValueResult = handler->SendEvent(event, delayTime, priority); in SendAndCheck() 40 handler->SendEvent(STOP_EVENT_ID, 0, delayTime + 1); in SendAndCheck() 73 handler->SendEvent(STOP_EVENT_ID); in SendEventWithPriority() 95 sendResult = handler->SendEvent(RUN_EVENT_ID, param, delayTime); in SendEventWithPriorityByEventId() 109 handler->SendEvent(STOP_EVENT_ID); in SendEventWithPriorityByEventId() 126 retVal = handler->SendEvent(RUN_EVENT_ID, ptr, 0); in SendEventWithSharedOrWeakPtr() 220 handler->SendEvent(STOP_EVENT_ID, 0, 1); in SendEventWithSmartPtr() 339 handler->SendEvent(newEventId, param, delayTime + 1); 376 bool result = handler->SendEvent(nullPtr); 377 handler->SendEvent(STOP_EVENT_ID); [all …]
|
H A D | event_handler_press_module_test.cpp | 129 bool sentResult = handler->SendEvent(RUN_EVENT_ID); 130 handler->SendEvent(STOP_EVENT_ID); 158 bool sentResult1 = handler1->SendEvent(RUN_EVENT_ID); 159 bool sentResult2 = handler2->SendEvent(RUN_EVENT_ID); 160 handler2->SendEvent(STOP_EVENT_ID); 185 bool sentResult = handler->SendEvent(Random() + 1); 190 handler->SendEvent(STOP_EVENT_ID); 222 handler->SendEvent(STOP_EVENT_ID, param, delayTime);
|
H A D | event_handler_post_task_module_test.cpp | 69 handler->SendEvent(STOP_EVENT_ID, param, delayTime + 1); 94 handler->SendEvent(STOP_EVENT_ID); 119 handler->SendEvent(STOP_EVENT_ID); 145 handler->SendEvent(STOP_EVENT_ID); 170 handler->SendEvent(STOP_EVENT_ID); 200 handler->SendEvent(RUN_EVENT_ID, param, delayTime + offsetTime); 229 handler->SendEvent(RUN_EVENT_ID, param, delayTime + offsetTime); 260 handler->SendEvent(STOP_EVENT_ID, param, 1); 291 handler->SendEvent(STOP_EVENT_ID, param, 1); 322 handler->SendEvent(STOP_EVENT_ID, param, 1); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler/ |
H A D | event_handler.h | 112 inline bool SendEvent(InnerEvent::Pointer &event, Priority priority) in SendEvent() function 114 return SendEvent(event, 0, priority); in SendEvent() 127 return SendEvent(event, delayTime, priority); 140 return SendEvent(InnerEvent::Get(innerEventId, param), delayTime); in SendEvent() 163 inline bool SendEvent(uint32_t innerEventId, Priority priority) in SendEvent() function 165 return SendEvent(InnerEvent::Get(innerEventId, 0), 0, priority); in SendEvent() 179 return SendEvent(InnerEvent::Get(innerEventId, object), delayTime); 193 return SendEvent(InnerEvent::Get(innerEventId, object), delayTime); 207 return SendEvent(InnerEvent::Get(innerEventId, object), delayTime); 232 return SendEvent(event, 0, Priority::IMMEDIATE); in SendImmediateEvent() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/common/src/ |
H A D | event_handler_wrap.cpp | 43 bool EventHandlerWrap::SendEvent(uint32_t eventId) in SendEvent() function in OHOS::AAFwk::EventHandlerWrap 45 return SendEvent(EventWrap(eventId, 0)); in SendEvent() 47 bool EventHandlerWrap::SendEvent(uint32_t eventId, int64_t delayMillis) in SendEvent() function in OHOS::AAFwk::EventHandlerWrap 49 return SendEvent(EventWrap(eventId, 0), delayMillis); in SendEvent() 51 bool EventHandlerWrap::SendEvent(EventWrap event) in SendEvent() function in OHOS::AAFwk::EventHandlerWrap 53 return SendEvent(event, 0); in SendEvent() 55 bool EventHandlerWrap::SendEvent(EventWrap event, int64_t delayMillis, bool forceInsert) in SendEvent() function in OHOS::AAFwk::EventHandlerWrap
|
/ohos5.0/base/notification/eventhandler/interfaces/inner_api/ |
H A D | event_handler.h | 100 inline bool SendEvent(InnerEvent::Pointer &event, Priority priority) in SendEvent() function 102 return SendEvent(event, 0, priority); in SendEvent() 115 return SendEvent(event, delayTime, priority); 129 return SendEvent(InnerEvent::Get(innerEventId, param, caller), delayTime); 141 inline bool SendEvent(uint32_t innerEventId, int64_t delayTime = 0, 157 return SendEvent(InnerEvent::Get(innerEventId, 0, caller), 0, priority); 186 inline bool SendEvent(uint32_t innerEventId, const std::weak_ptr<T> &object, 202 inline bool SendEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object, 218 inline bool SendEvent(uint32_t innerEventId, std::unique_ptr<T, D> &&object, 233 return SendEvent(event, 0, Priority::IMMEDIATE); in SendImmediateEvent() [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/mouse_event_normalize/test/src/ |
H A D | mouse_transform_processor_test.cpp | 912 vMouse_.SendEvent(EV_REL, REL_X, 5); 955 vMouse_.SendEvent(EV_REL, REL_X, 5); 980 vMouse_.SendEvent(EV_REL, REL_X, 5); 1152 vMouse_.SendEvent(EV_REL, REL_X, 5); 1176 vMouse_.SendEvent(EV_REL, REL_X, 5); 1200 vMouse_.SendEvent(EV_REL, REL_X, 5); 1227 vMouse_.SendEvent(EV_REL, REL_X, 5); 1249 vMouse_.SendEvent(EV_REL, REL_X, 5); 1277 vMouse_.SendEvent(EV_REL, REL_X, 5); 1465 vMouse_.SendEvent(EV_REL, REL_X, 5); [all …]
|
H A D | mouse_event_normalize_test.cpp | 144 vMouse_.SendEvent(EV_REL, REL_X, 5); 145 vMouse_.SendEvent(EV_REL, REL_Y, -10); 146 vMouse_.SendEvent(EV_SYN, SYN_REPORT, 0); 170 vMouse_.SendEvent(EV_REL, REL_X, 5); 171 vMouse_.SendEvent(EV_REL, REL_Y, -10); 206 vMouse_.SendEvent(EV_REL, REL_X, 5); 207 vMouse_.SendEvent(EV_REL, REL_Y, -10); 521 vMouse_.SendEvent(EV_REL, REL_X, 5); 522 vMouse_.SendEvent(EV_REL, REL_Y, -10); 556 vMouse_.SendEvent(EV_REL, REL_X, 5); [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/crown_transform_processor/test/src/ |
H A D | crown_transform_processor_test.cpp | 129 vCrown_.SendEvent(EV_REL, REL_WHEEL, 5); 130 vCrown_.SendEvent(EV_SYN, SYN_REPORT, 0); 150 vCrown_.SendEvent(EV_REL, REL_WHEEL, 5); 151 vCrown_.SendEvent(EV_SYN, SYN_REPORT, 0); 171 vCrown_.SendEvent(EV_REL, REL_WHEEL, 30); 172 vCrown_.SendEvent(EV_SYN, SYN_REPORT, 0); 194 vCrown_.SendEvent(EV_REL, REL_WHEEL, -30); 195 vCrown_.SendEvent(EV_SYN, SYN_REPORT, 0); 229 vCrown_.SendEvent(EV_REL, REL_WHEEL, 10); 230 vCrown_.SendEvent(EV_SYN, SYN_REPORT, 0);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/src/ |
H A D | mtp_event.cpp | 53 SendEvent(MTP_EVENT_OBJECT_ADDED_CODE); in SendObjectAdded() 74 SendEvent(MTP_EVENT_OBJECT_REMOVED_CODE); in SendObjectRemoved() 88 SendEvent(MTP_EVENT_OBJECT_REMOVED_CODE); in SendObjectRemovedByHandle() 103 SendEvent(MTP_EVENT_OBJECT_INFO_CHANGED_CODE); in SendObjectInfoChanged() 117 SendEvent(MTP_EVENT_DEVICE_PROP_CHANGED_CODE); in SendDevicePropertyChanged() 133 SendEvent(MTP_EVENT_STORE_ADDED_CODE); in SendStoreAdded() 149 SendEvent(MTP_EVENT_STORE_REMOVED_CODE); in SendStoreRemoved() 152 void MtpEvent::SendEvent(const int32_t &code) in SendEvent() function in OHOS::Media::MtpEvent
|
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/src/ |
H A D | dsoftbus_handler.cpp | 201 SendEvent(CooperateEvent( in OnBind() 211 SendEvent(CooperateEvent( in OnShutdown() 221 SendEvent(CooperateEvent( in OnConnected() 255 SendEvent(CooperateEvent( in OnCommunicationFailure() 278 SendEvent(CooperateEvent( in OnStartCooperate() 290 SendEvent(CooperateEvent( in OnStopCooperate() 311 SendEvent(CooperateEvent( in OnComeBack() 328 SendEvent(CooperateEvent( in OnRelayCooperate() 344 SendEvent(CooperateEvent( in OnRelayCooperateFinish() 358 SendEvent(CooperateEvent( in OnSubscribeMouseLocation() [all …]
|
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/src/ |
H A D | dsoftbus_handler.cpp | 201 SendEvent(CooperateEvent( in OnBind() 211 SendEvent(CooperateEvent( in OnShutdown() 221 SendEvent(CooperateEvent( in OnConnected() 255 SendEvent(CooperateEvent( in OnCommunicationFailure() 278 SendEvent(CooperateEvent( in OnStartCooperate() 290 SendEvent(CooperateEvent( in OnStopCooperate() 311 SendEvent(CooperateEvent( in OnComeBack() 328 SendEvent(CooperateEvent( in OnRelayCooperate() 344 SendEvent(CooperateEvent( in OnRelayCooperateFinish() 358 SendEvent(CooperateEvent( in OnSubscribeMouseLocation() [all …]
|
/ohos5.0/base/notification/eventhandler/test/systemtest/ems_event_handler_system_test/ |
H A D | ems_event_handler_test.cpp | 252 handler->SendEvent(event); in ProcessEventTest() 712 handler->SendEvent(event); 731 handler->SendEvent(event); 750 handler->SendEvent(event); 769 handler->SendEvent(event); 788 handler->SendEvent(event); 986 handler->SendEvent(event, FLAG_ONE); 1004 handler->SendEvent(event, FLAG_TWO); 1022 handler->SendEvent(event, FLAG_THREE); 1040 handler->SendEvent(event, FLAG_FOUR); [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/core/ |
H A D | net_policy_base.cpp | 46 void NetPolicyBase::SendEvent(int32_t eventId, int64_t delayTime) in SendEvent() function in OHOS::NetManagerStandard::NetPolicyBase 49 SendEvent(eventId, policyEvent, delayTime); in SendEvent() 52 void NetPolicyBase::SendEvent(int32_t eventId, std::shared_ptr<PolicyEvent> &policyEvent, int64_t d… in SendEvent() function in OHOS::NetManagerStandard::NetPolicyBase 56 DelayedSingleton<NetPolicyCore>::GetInstance()->SendEvent(eventId, policyEvent, delayTime); in SendEvent()
|