/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
D | event.c | 32 Event *event = (Event *)malloc(sizeof(Event)); in EventCreate() local 33 if (event != NULL) { in EventCreate() 34 pthread_mutex_init(&event->mutex, NULL); in EventCreate() 35 pthread_cond_init(&event->cond, 0); in EventCreate() 36 event->autoClear = isAutoClear; in EventCreate() 37 event->signal = false; in EventCreate() 39 return event; in EventCreate() 42 void EventDelete(Event *event) in EventDelete() argument 44 if (event == NULL) { in EventDelete() 48 while (EBUSY == pthread_cond_destroy(&event->cond)) { in EventDelete() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/ |
D | hfp_hf_profile_event_sender.cpp | 28 void HfpHfProfileEventSender::SendMessageToService(const HfpHfMessage &event) in SendMessageToService() argument 32 service->PostEvent(event); in SendMessageToService() 40 HfpHfMessage event(HFP_HF_INTERACTIVE_EVT, state); in NetworkStateChanged() local 41 event.dev_ = address; in NetworkStateChanged() 42 event.type_ = HFP_HF_TYPE_NETWORK_STATE; in NetworkStateChanged() 43 SendMessageToService(event); in NetworkStateChanged() 48 HfpHfMessage event(HFP_HF_INTERACTIVE_EVT, state); in NetworkRoamingChanged() local 49 event.dev_ = address; in NetworkRoamingChanged() 50 event.type_ = HFP_HF_TYPE_NETWORK_ROAM; in NetworkRoamingChanged() 51 SendMessageToService(event); in NetworkRoamingChanged() [all …]
|
D | hfp_hf_statemachine.cpp | 79 HfpHfMessage &event = (HfpHfMessage &)msg; in Dispatch() local 81 __FUNCTION__, HfpHfStateMachine::GetEventName(event.what_).c_str()); in Dispatch() 82 switch (event.what_) { in Dispatch() 88 profile_.AcceptDataConnection(event.arg1_); in Dispatch() 113 HfpHfMessage &event = (HfpHfMessage &)msg; in Dispatch() local 115 __FUNCTION__, HfpHfStateMachine::GetEventName(event.what_).c_str()); in Dispatch() 116 switch (event.what_) { in Dispatch() 127 stateMachine_.AddDeferredMessage(event); in Dispatch() 144 stateMachine_.AddDeferredMessage(event); in Dispatch() 155 profile_.ReportBatteryLevel(event.arg1_); in Dispatch() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/declaration/web/ |
D | web_declaration.h | 94 auto& event = MaybeResetEvent<WebEvent>(EventTag::SPECIALIZED_EVENT); in SetPageStartedEventId() local 95 event.pageStartEventId = pageStartedEventId; in SetPageStartedEventId() 100 auto& event = static_cast<WebEvent&>(GetEvent(EventTag::SPECIALIZED_EVENT)); in GetPageStartedEventId() local 101 return event.pageStartEventId; in GetPageStartedEventId() 106 auto& event = MaybeResetEvent<WebEvent>(EventTag::SPECIALIZED_EVENT); in SetPageFinishedEventId() local 107 event.pageFinishEventId = pageFinishedEventId; in SetPageFinishedEventId() 112 auto& event = static_cast<WebEvent&>(GetEvent(EventTag::SPECIALIZED_EVENT)); in GetPageFinishedEventId() local 113 return event.pageFinishEventId; in GetPageFinishedEventId() 118 auto& event = MaybeResetEvent<WebEvent>(EventTag::SPECIALIZED_EVENT); in SetTitleReceiveEventId() local 119 event.titleReceiveEventId = titleReceiveEventId; in SetTitleReceiveEventId() [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/evloop/src/ |
D | event_loop_impl.cpp | 35 EventRequest(int type, EventImpl *event, EventsMask events) in EventRequest() argument 37 event_(event), in EventRequest() 41 if (event != nullptr) { in EventRequest() 42 event->IncObjRef(event); in EventRequest() 46 EventRequest(int type, EventImpl *event, EventTime timeout) in EventRequest() argument 48 event_(event), in EventRequest() 52 if (event != nullptr) { in EventRequest() 53 event->IncObjRef(event); in EventRequest() 78 void GetEvent(EventImpl *&event) const in GetEvent() 80 event = event_; in GetEvent() [all …]
|
/foundation/multimodalinput/input/frameworks/proxy/events/include/ |
D | event_log_helper.h | 32 …template <class T> static void PrintEventData(std::shared_ptr<T> event, int32_t actionType, int32_… 33 template <class T> static void PrintEventData(std::shared_ptr<T> event); 36 static void Print(const std::shared_ptr<KeyEvent> event) in Print() argument 39 event->GetKeyCode() != KeyEvent::KEYCODE_POWER) { in Print() 42 std::vector<KeyEvent::KeyItem> eventItems{ event->GetKeyItems() }; in Print() 47 …event->GetKeyCode(), event->GetKeyIntention(), event->GetActionTime(), event->GetActionStartTime(), in Print() 48 InputEvent::EventTypeToString(event->GetEventType()), event->GetFlag(), in Print() 49 …KeyEvent::ActionToString(event->GetKeyAction()), event->GetFunctionKey(KeyEvent::NUM_LOCK_FUNCTION… in Print() 50 event->GetFunctionKey(KeyEvent::CAPS_LOCK_FUNCTION_KEY), in Print() 51 event->GetFunctionKey(KeyEvent::SCROLL_LOCK_FUNCTION_KEY), in Print() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/map_mse/ |
D | map_mse_event.cpp | 44 MapMseEvent::MapMseEvent(const MseEventType11 &event) in MapMseEvent() argument 46 eventType_(event.eventType_), in MapMseEvent() 47 handle_(event.handle_), in MapMseEvent() 48 folder_(event.folder_), in MapMseEvent() 49 msgType_(event.msgType_), in MapMseEvent() 50 datetime_(event.datetime_), in MapMseEvent() 51 subject_(event.subject_), in MapMseEvent() 52 senderName_(event.senderName_), in MapMseEvent() 53 priority_(event.priority_) in MapMseEvent() 55 SetFolderPath(event.folder_, event.msgType_); in MapMseEvent() [all …]
|
/foundation/multimodalinput/input/tools/event_inject/src/ |
D | device_base.cpp | 33 injectEvent.event.input_event_sec = tm.tv_sec; in SetTimeToLibinputEvent() 34 injectEvent.event.input_event_usec = tm.tv_usec; in SetTimeToLibinputEvent() 41 injectEvent.event.type = EV_SYN; in SetSynConfigReport() 42 injectEvent.event.code = SYN_REPORT; in SetSynConfigReport() 43 injectEvent.event.value = SYN_CONFIG; in SetSynConfigReport() 52 injectEvent.event.type = EV_KEY; in SetKeyLongPressEvent() 53 injectEvent.event.code = static_cast<uint16_t>(code); in SetKeyLongPressEvent() 54 injectEvent.event.value = LONG_PRESS; in SetKeyLongPressEvent() 63 injectEvent.event.type = EV_SYN; in SetSynReport() 64 injectEvent.event.code = SYN_REPORT; in SetSynReport() [all …]
|
/foundation/barrierfree/accessibility/services/aams/test/unittest/ |
D | accessibility_mouse_autoclick_test.cpp | 85 std::shared_ptr<MMI::PointerEvent> event = MMI::PointerEvent::Create(); variable 86 if (!event) { 95 event->SetSourceType(MMI::PointerEvent::SOURCE_TYPE_MOUSE); 96 event->SetPointerAction(MMI::PointerEvent::POINTER_ACTION_MOVE); 98 event->AddPointerItem(item); 99 mouseAutoclick_->OnPointerEvent(*event); 102 EXPECT_NE(event.get(), nullptr); 118 std::shared_ptr<MMI::PointerEvent> event = MMI::PointerEvent::Create(); variable 119 if (!event) { 128 event->SetSourceType(MMI::PointerEvent::SOURCE_TYPE_MOUSE); [all …]
|
D | accessibility_mouse_key_test.cpp | 36 void OnKeyEventPresss(MMI::KeyEvent &event, const int32_t keycode); 65 void AccessibilityMouseKeyUnitTest::OnKeyEventPresss(MMI::KeyEvent &event, const int32_t keycode) in OnKeyEventPresss() argument 68 event.SetKeyCode(keycode); in OnKeyEventPresss() 72 event.AddKeyItem(item); in OnKeyEventPresss() 73 mouseKey_->OnKeyEvent(event); in OnKeyEventPresss() 74 event.RemoveReleasedKeyItems(item); in OnKeyEventPresss() 89 std::shared_ptr<MMI::PointerEvent> event = MMI::PointerEvent::Create(); variable 90 if (!event) { 94 event->SetSourceType(MMI::PointerEvent::SOURCE_TYPE_MOUSE); 95 event->SetPointerAction(MMI::PointerEvent::POINTER_ACTION_MOVE); [all …]
|
/foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
D | mock_accessibility_touch_guider.cpp | 57 void TGEventHandler::ProcessEvent(const AppExecFwk::InnerEvent::Pointer& event) in ProcessEvent() argument 60 switch (event->GetInnerEventId()) { in ProcessEvent() 81 bool TouchGuider::OnPointerEvent(MMI::PointerEvent& event) in OnPointerEvent() argument 84 if (event.GetSourceType() != MMI::PointerEvent::SOURCE_TYPE_TOUCHSCREEN) { in OnPointerEvent() 85 EventTransmission::OnPointerEvent(event); in OnPointerEvent() 88 if (event.GetPointerAction() == MMI::PointerEvent::POINTER_ACTION_CANCEL) { in OnPointerEvent() 89 Clear(event); in OnPointerEvent() 92 RecordReceivedEvent(event); in OnPointerEvent() 93 if (gestureRecognizer_.OnPointerEvent(event)) { in OnPointerEvent() 98 HandleTouchGuidingState(event); in OnPointerEvent() [all …]
|
/foundation/distributedhardware/distributed_input/common/include/test/whitelistunittest/ |
D | white_list_test.cpp | 188 BusinessEvent event; variable 189 event.pressedKeys.push_back(11); 190 event.pressedKeys.push_back(33); 191 event.keyCode = 55; 192 event.keyAction = 66; 193 bool ret = WhiteListUtil::GetInstance().IsNeedFilterOut(deviceId, event); 201 BusinessEvent event; variable 202 event.pressedKeys.push_back(11); 203 event.pressedKeys.push_back(44); 204 event.keyCode = 55; [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/ |
D | hid_host_service.cpp | 72 HidHostMessage event(HID_HOST_SERVICE_STARTUP_EVT); in Enable() local 73 PostEvent(event); in Enable() 80 HidHostMessage event(HID_HOST_SERVICE_SHUTDOWN_EVT); in Disable() local 81 PostEvent(event); in Disable() 166 HidHostMessage event(HID_HOST_API_OPEN_EVT); in Connect() local 167 event.dev_ = address; in Connect() 168 PostEvent(event); in Connect() 190 HidHostMessage event(HID_HOST_API_CLOSE_EVT); in Disconnect() local 191 event.dev_ = address; in Disconnect() 192 PostEvent(event); in Disconnect() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/ |
D | scene_viewer_touch_handler.cpp | 20 bool SceneViewerTouchHandler::HandleEvent(const TouchEvent& event) in HandleEvent() argument 23 eventCallback_(CreateSceneTouchEvent(event)); in HandleEvent() 26 switch (event.type) { in HandleEvent() 28 touches_[event.id] = event; in HandleEvent() 32 touches_.emplace(event.id, event); in HandleEvent() 36 touches_.erase(event.id); in HandleEvent() 40 touches_.erase(event.id); in HandleEvent() 51 bool SceneViewerTouchHandler::DispatchEvent(const TouchEvent& event) in DispatchEvent() argument 59 OHOS::Render3D::SceneViewerTouchEvent event(point.id); in CreateSceneTouchEvent() local 61 event.SetEventType(point.type); in CreateSceneTouchEvent() [all …]
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
D | ability_event_handler.cpp | 32 void AbilityEventHandler::ProcessEvent(const EventWrap &event) in ProcessEvent() argument 34 HILOG_DEBUG("Event id obtained: %{public}u.", event.GetEventId()); in ProcessEvent() 44 switch (event.GetEventId()) { in ProcessEvent() 46 ProcessLoadTimeOut(event); in ProcessEvent() 50 ProcessActiveTimeOut(event.GetParam()); in ProcessEvent() 56 ProcessInactiveTimeOut(event.GetParam()); in ProcessEvent() 60 ProcessForegroundTimeOut(event); in ProcessEvent() 64 ProcessShareDataTimeOut(event.GetParam()); in ProcessEvent() 74 void AbilityEventHandler::ProcessLoadTimeOut(const EventWrap &event) in ProcessLoadTimeOut() argument 79 if (event.GetRunCount() == 0) { in ProcessLoadTimeOut() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
D | hfp_ag_statemachine.cpp | 84 HfpAgMessage event = deferMsgs_.front(); in ProcessDeferredMessage() local 86 HfpAgService::GetService()->PostEvent(event); in ProcessDeferredMessage() 172 HfpAgMessage event(HFP_AG_CONNECTION_TIMEOUT_EVT); in ConnectionTimeout() local 173 event.dev_ = address_; in ConnectionTimeout() 174 HfpAgService::GetService()->PostEvent(event); in ConnectionTimeout() 225 HfpAgMessage &event = (HfpAgMessage &)msg; in Dispatch() local 227 HfpAgStateMachine::GetEventName(event.what_).c_str()); in Dispatch() 228 switch (event.what_) { in Dispatch() 234 profile_.DoServiceDiscovery(HFP_AG_ACCEPTOR, event.arg1_); in Dispatch() 260 HfpAgMessage &event = (HfpAgMessage &)msg; in Dispatch() local [all …]
|
/foundation/barrierfree/accessibility/services/aams/src/ |
D | accessibility_touch_guider.cpp | 58 void TGEventHandler::ProcessEvent(const AppExecFwk::InnerEvent::Pointer &event) in ProcessEvent() argument 61 switch (event->GetInnerEventId()) { in ProcessEvent() 82 bool TouchGuider::OnPointerEvent(MMI::PointerEvent &event) in OnPointerEvent() argument 85 if (event.GetSourceType() != MMI::PointerEvent::SOURCE_TYPE_TOUCHSCREEN) { in OnPointerEvent() 86 EventTransmission::OnPointerEvent(event); in OnPointerEvent() 89 if (event.GetPointerAction() == MMI::PointerEvent::POINTER_ACTION_CANCEL) { in OnPointerEvent() 90 Clear(event); in OnPointerEvent() 93 RecordReceivedEvent(event); in OnPointerEvent() 94 if (gestureRecognizer_.OnPointerEvent(event)) { in OnPointerEvent() 99 HandleTouchGuidingState(event); in OnPointerEvent() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
D | ability_lifecycle.cpp | 39 void LifeCycle::DispatchLifecycle(const LifeCycle::Event &event, const Want &want) in DispatchLifecycle() argument 41 HILOG_DEBUG("LifeCycle::DispatchLifecycle: event:%{public}d", event); in DispatchLifecycle() 42 if ((event != LifeCycle::Event::ON_FOREGROUND) && (event != LifeCycle::Event::ON_START)) { in DispatchLifecycle() 43 HILOG_ERROR("event value error: event is %{public}d", event); in DispatchLifecycle() 47 state_ = event; in DispatchLifecycle() 50 switch (event) { in DispatchLifecycle() 69 callback->OnStateChanged(event, want); in DispatchLifecycle() 75 void LifeCycle::DispatchLifecycle(const LifeCycle::Event &event) in DispatchLifecycle() argument 77 HILOG_DEBUG("LifeCycle::DispatchLifecycle: event:%{public}d", event); in DispatchLifecycle() 78 if ((event != LifeCycle::Event::ON_ACTIVE) && (event != LifeCycle::Event::ON_BACKGROUND) && in DispatchLifecycle() [all …]
|
/foundation/multimodalinput/input/util/common/src/ |
D | input_event_data_transformation.cpp | 149 int32_t InputEventDataTransformation::SerializeInputEvent(std::shared_ptr<InputEvent> event, NetPac… in SerializeInputEvent() argument 151 CHKPR(event, ERROR_NULL_POINTER); in SerializeInputEvent() 152 pkt << event->GetEventType() << event->GetId() << event->GetActionTime() in SerializeInputEvent() 153 …<< event->GetAction() << event->GetActionStartTime() << event->GetSensorInputTime() << event->GetD… in SerializeInputEvent() 154 << event->GetTargetDisplayId() << event->GetTargetWindowId() in SerializeInputEvent() 155 << event->GetAgentWindowId() << event->GetFlag(); in SerializeInputEvent() 163 …utEventDataTransformation::DeserializeInputEvent(NetPacket &pkt, std::shared_ptr<InputEvent> event) in DeserializeInputEvent() argument 165 CHKPR(event, ERROR_NULL_POINTER); in DeserializeInputEvent() 169 event->SetId(tField); in DeserializeInputEvent() 172 event->SetActionTime(rField); in DeserializeInputEvent() [all …]
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/include/ |
D | daudio_source_dev.h | 50 void NotifyEvent(const AudioEvent &event) override; 80 int32_t HandleOpenDSpeaker(const AudioEvent &event); 81 int32_t HandleCloseDSpeaker(const AudioEvent &event); 82 int32_t HandleDSpeakerOpened(const AudioEvent &event); 83 int32_t HandleDSpeakerClosed(const AudioEvent &event); 84 int32_t HandleOpenDMic(const AudioEvent &event); 85 int32_t HandleCloseDMic(const AudioEvent &event); 86 int32_t HandleDMicOpened(const AudioEvent &event); 87 int32_t HandleDMicClosed(const AudioEvent &event); 88 int32_t HandleOpenCtrlTrans(const AudioEvent &event); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/ |
D | swipe_recognizer.cpp | 76 void SwipeRecognizer::HandleTouchDownEvent(const TouchEvent& event) in HandleTouchDownEvent() argument 78 …GI("swipe recognizer receives %{public}d touch down event, begin to detect swipe event", event.id); in HandleTouchDownEvent() 91 touchPoints_[event.id] = event; in HandleTouchDownEvent() 92 downEvents_[event.id] = event; in HandleTouchDownEvent() 93 time_ = event.time; in HandleTouchDownEvent() 94 lastTouchEvent_ = event; in HandleTouchDownEvent() 97 touchDownTime_ = event.time; in HandleTouchDownEvent() 102 void SwipeRecognizer::HandleTouchDownEvent(const AxisEvent& event) in HandleTouchDownEvent() argument 110 axisEventStart_ = event; in HandleTouchDownEvent() 113 touchDownTime_ = event.time; in HandleTouchDownEvent() [all …]
|
/foundation/multimodalinput/input/service/event_handler/src/ |
D | event_normalize_handler.cpp | 43 void EventNormalizeHandler::HandleEvent(libinput_event* event) in HandleEvent() argument 46 CHKPV(event); in HandleEvent() 48 auto type = libinput_event_get_type(event); in HandleEvent() 56 OnEventDeviceAdded(event); in HandleEvent() 60 OnEventDeviceRemoved(event); in HandleEvent() 64 HandleKeyboardEvent(event); in HandleEvent() 75 HandleMouseEvent(event); in HandleEvent() 82 HandleTouchPadEvent(event); in HandleEvent() 92 HandleGestureEvent(event); in HandleEvent() 99 HandleTouchEvent(event); in HandleEvent() [all …]
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
D | js_key_function.cpp | 22 JSRef<JSObject> JsKeyFunction::createKeyEvent(KeyEventInfo& event) in createKeyEvent() argument 27 keyEventObj->SetProperty<int32_t>("type", static_cast<int32_t>(event.GetKeyType())); in createKeyEvent() 28 keyEventObj->SetProperty<int32_t>("keyCode", static_cast<int32_t>(event.GetKeyCode())); in createKeyEvent() 29 keyEventObj->SetProperty<const char*>("keyText", event.GetKeyText()); in createKeyEvent() 30 keyEventObj->SetProperty<int32_t>("keySource", static_cast<int32_t>(event.GetKeySource())); in createKeyEvent() 31 keyEventObj->SetProperty<int64_t>("deviceId", event.GetDeviceId()); in createKeyEvent() 32 keyEventObj->SetProperty<int32_t>("metaKey", event.GetMetaKey()); in createKeyEvent() 33 …keyEventObj->SetProperty<double>("timestamp", static_cast<double>(event.GetTimeStamp().time_since_… in createKeyEvent() 35 … keyEventObj->SetProperty<int32_t>("intentionCode", static_cast<int32_t>(event.GetKeyIntention())); in createKeyEvent() 36 keyEventObj->Wrap<KeyEventInfo>(&event); in createKeyEvent() [all …]
|
/foundation/distributedhardware/distributed_input/services/source/inputinject/test/sourceinjectunittest/ |
D | distributed_input_sourceinject_test.cpp | 164 RawEvent* event = writeBuffer; variable 166 event->when = 0; 167 event->type = EV_KEY; 168 event->code = KEY_D; 169 event->value = 1; 170 event->descriptor = "afv4s8b1dr1b8er1bd65fb16redb1dfb18d1b56df1b68d"; 171 event += 1; 173 event->when = 1; 174 event->type = EV_KEY; 175 event->code = KEY_D; [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/ |
D | pan_statemachine.cpp | 65 const PanMessage &event) in ProcessL2capConnectionEvent() argument 68 PanStateMachine::GetEventName(event.what_).c_str()); in ProcessL2capConnectionEvent() 69 panBnep_.ProcessEvent(event); in ProcessL2capConnectionEvent() 100 PanMessage &event = (PanMessage &)msg; in Dispatch() local 102 __FUNCTION__, PanStateMachine::GetEventName(event.what_).c_str()); in Dispatch() 103 switch (event.what_) { in Dispatch() 105 stateMachine_.ProcessOpenEvent(event); in Dispatch() 130 PanMessage &event = (PanMessage &)msg; in Dispatch() local 132 PanStateMachine::GetEventName(event.what_).c_str()); in Dispatch() 133 switch (event.what_) { in Dispatch() [all …]
|