/ohos5.0/foundation/window/window_manager/window_scene/intention_event/service/event_stage/src/ |
H A D | event_stage.cpp | 32 EventStage::EventStage() {} in EventStage() function in OHOS::Rosen::EventStage 33 EventStage::~EventStage() {} in ~EventStage() 35 void EventStage::SetAnrStatus(int32_t persistentId, bool status) in SetAnrStatus() 41 bool EventStage::CheckAnrStatus(int32_t persistentId) in CheckAnrStatus() 51 void EventStage::SaveANREvent(int32_t persistentId, int32_t eventId, int32_t timerId) in SaveANREvent() 58 std::vector<int32_t> EventStage::GetTimerIds(int32_t persistentId) in GetTimerIds() 72 std::vector<int32_t> EventStage::DelEvents(int32_t persistentId, int32_t eventId) in DelEvents() 93 void EventStage::OnSessionLost(int32_t persistentId) in OnSessionLost()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/touch_listener/ |
H A D | touch_listener_component.h | 71 eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_DOWN] = onTouchDownId; in SetOnTouchDownId() 75 eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_MOVE] = onTouchMoveId; in SetOnTouchMoveId() 79 eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_UP] = onTouchUpId; in SetOnTouchUpId() 83 eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_CANCEL] = onTouchCancel; in SetOnTouchCancel() 97 return eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_DOWN]; in GetOnTouchDownId() 101 return eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_MOVE]; in GetOnTouchMoveId() 105 return eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_UP]; in GetOnTouchUpId() 109 return eventIds_[EventAction::ON][EventStage::BUBBLE][EventType::TOUCH_CANCEL]; in GetOnTouchCancelId() 131 EventMarker eventIds_[EventAction::SIZE][EventStage::SIZE][EventType::SIZE]; 132 EventMarker swipeIds_[EventAction::SIZE][EventStage::SIZE];
|
H A D | render_touch_listener.cpp | 43 for (uint32_t eventStage = 0; eventStage < EventStage::SIZE; eventStage++) { in Update() 79 …if (!touchComponent->GetEvent(EventAction::CATCH, EventStage::CAPTURE, EventType::TOUCH_DOWN).IsEm… in Update() 82 rawRecognizer_->SetCatchEventCallback(event, EventStage::CAPTURE, EventType::TOUCH_UP); in Update() 83 rawRecognizer_->SetCatchEventCallback(event, EventStage::CAPTURE, EventType::TOUCH_MOVE); in Update()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | raw_recognizer.h | 31 namespace EventStage { 69 onEventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_DOWN] = onTouchDown; in SetOnTouchDown() 74 onEventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_MOVE] = onTouchMove; in SetOnTouchMove() 79 onEventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_UP] = onTouchUp; in SetOnTouchUp() 84 onEventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_CANCEL] = onTouchCancel; in SetOnTouchCancel() 98 OnTouchEventCallback onEventCallbacks_[EventStage::SIZE][EventType::SIZE]; 99 CatchTouchEventCallback catcheventCallbacks_[EventStage::SIZE][EventType::SIZE];
|
H A D | raw_recognizer.cpp | 71 HandleRawEvent(point, EventStage::CAPTURE); in DispatchEvent() 74 catchCallback = catcheventCallbacks_[EventStage::CAPTURE][EventType::TOUCH_DOWN]; in DispatchEvent() 76 catchCallback = catcheventCallbacks_[EventStage::CAPTURE][EventType::TOUCH_MOVE]; in DispatchEvent() 78 catchCallback = catcheventCallbacks_[EventStage::CAPTURE][EventType::TOUCH_UP]; in DispatchEvent() 80 catchCallback = catcheventCallbacks_[EventStage::CAPTURE][EventType::TOUCH_CANCEL]; in DispatchEvent() 92 HandleRawEvent(point, EventStage::BUBBLE); in HandleEvent() 95 catchCallback = catcheventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_DOWN]; in HandleEvent() 97 catchCallback = catcheventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_MOVE]; in HandleEvent() 99 catchCallback = catcheventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_UP]; in HandleEvent() 101 catchCallback = catcheventCallbacks_[EventStage::BUBBLE][EventType::TOUCH_CANCEL]; in HandleEvent()
|
H A D | swipe_recognizer.cpp | 124 return HandleSwipeEvent(point, EventStage::BUBBLE); in HandleEvent() 129 HandleSwipeEvent(point, EventStage::CAPTURE); in DispatchEvent() 137 auto catchCallback = swipeCatchCallback_[EventStage::CAPTURE]; in DispatchEvent()
|
H A D | swipe_recognizer.h | 74 SwipeCallback swipeCallback_[EventStage::SIZE]; 75 CatchSwipeCallback swipeCatchCallback_[EventStage::SIZE];
|
/ohos5.0/foundation/window/window_manager/window_scene/intention_event/service/anr_manager/src/ |
H A D | anr_manager.cpp | 58 DelayedSingleton<EventStage>::GetInstance()->SetAnrStatus(persistentId, true); in AddTimer() 64 …std::vector<int32_t> timerIds = DelayedSingleton<EventStage>::GetInstance()->GetTimerIds(persisten… in AddTimer() 77 DelayedSingleton<EventStage>::GetInstance()->SaveANREvent(persistentId, eventId, timerId); in AddTimer() 87 …std::vector<int32_t> timerIds = DelayedSingleton<EventStage>::GetInstance()->DelEvents(persistentI… in MarkProcessed() 97 if (DelayedSingleton<EventStage>::GetInstance()->CheckAnrStatus(persistentId)) { in IsANRTriggered() 155 …std::vector<int32_t> timerIds = DelayedSingleton<EventStage>::GetInstance()->GetTimerIds(persisten… in RemoveTimers() 166 DelayedSingleton<EventStage>::GetInstance()->OnSessionLost(persistentId); in RemovePersistentId()
|
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | anr_manager_test.cpp | 68 DelayedSingleton<EventStage>::GetInstance()->isAnrProcess_.emplace(123, true); 72 DelayedSingleton<EventStage>::GetInstance()->isAnrProcess_.emplace(156, false); 88 std::vector<EventStage::EventTime> events; 89 DelayedSingleton<EventStage>::GetInstance()->events_.emplace(1, events); 90 DelayedSingleton<EventStage>::GetInstance()->events_.emplace(2, events);
|
H A D | event_stage_test.cpp | 34 EventStage eventStage_;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_node.h | 746 if (action == EventAction::ON && stage == EventStage::CAPTURE) { in GetSwipeId() 748 } else if (action == EventAction::CATCH && stage == EventStage::BUBBLE) { in GetSwipeId() 750 } else if (action == EventAction::ON && stage == EventStage::BUBBLE) { in GetSwipeId() 768 …if (action == EventAction::ON && stage == EventStage::CAPTURE && type == EventType::TOUCH_CANCEL) { in GetTouchId() 770 …} else if (action == EventAction::ON && stage == EventStage::CAPTURE && type == EventType::TOUCH_U… in GetTouchId() 772 …} else if (action == EventAction::ON && stage == EventStage::CAPTURE && type == EventType::TOUCH_M… in GetTouchId() 774 …} else if (action == EventAction::ON && stage == EventStage::CAPTURE && type == EventType::TOUCH_D… in GetTouchId() 778 …} else if (action == EventAction::CATCH && stage == EventStage::BUBBLE && type == EventType::TOUCH… in GetTouchId() 794 …} else if (action == EventAction::ON && stage == EventStage::BUBBLE && type == EventType::TOUCH_UP… in GetTouchId() 796 …} else if (action == EventAction::ON && stage == EventStage::BUBBLE && type == EventType::TOUCH_MO… in GetTouchId() [all …]
|
H A D | dom_node.cpp | 114 for (uint32_t eventStage = 0; eventStage < EventStage::SIZE; eventStage++) { in ~DOMNode() 1842 for (uint32_t eventStage = 0; eventStage < EventStage::SIZE; eventStage++) { in UpdateTouchEventComponent() 1868 for (uint32_t eventStage = 0; eventStage < EventStage::SIZE; eventStage++) { in UpdateTouchEventComponent() 1876 eventAction == EventAction::ON && eventStage == EventStage::BUBBLE) { in UpdateTouchEventComponent()
|
/ohos5.0/foundation/window/window_manager/window_scene/intention_event/service/event_stage/include/ |
H A D | event_stage.h | 25 class EventStage final { 26 DECLARE_DELAYED_SINGLETON(EventStage); 28 DISALLOW_COPY_AND_MOVE(EventStage);
|