/foundation/multimodalinput/input/intention/common/channel/include/ |
H A D | channel.h | 29 template<typename Event> 31 static_assert(std::is_enum_v<Event> || std::is_integral_v<Event> || 32 (std::is_class_v<Event> && 33 std::is_default_constructible_v<Event> && 34 std::is_copy_constructible_v<Event>)); 45 friend class Channel<Event>; 74 int32_t Send(const Event &event) in Send() 83 Sender(std::shared_ptr<Channel<Event>> channel) in Sender() 87 std::shared_ptr<Channel<Event>> channel [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/eventcenter/ |
H A D | event.h | 24 class Event { class 35 API_EXPORT Event(int32_t evtId); 36 API_EXPORT Event(Event &&) noexcept = delete; 37 API_EXPORT Event(const Event &) = delete; 38 API_EXPORT Event &operator=(Event &&) noexcept = delete; 39 API_EXPORT Event &operator=(const Event [all...] |
H A D | event_center.h | 36 API_EXPORT Defer(std::function<void(const Event &)> handler = nullptr, int32_t evtId = Event::EVT_INVALID); 44 API_EXPORT bool Subscribe(int32_t evtId, const std::function<void(const Event &)> &observer); 46 API_EXPORT int32_t PostEvent(std::unique_ptr<Event> evt) const; 48 void Dispatch(const Event &evt) const; 55 void Post(std::unique_ptr<Event> event); 56 void AddHandler(int32_t evtId, std::function<void(const Event &)> handler); 58 std::map<int32_t, std::function<void(const Event &)>> handlers_; 59 std::deque<std::unique_ptr<Event>> events_; 62 ConcurrentMap<int32_t, std::list<std::function<void(const Event [all...] |
/foundation/distributeddatamgr/pasteboard/framework/framework/include/eventcenter/ |
H A D | event.h | 24 class Event { class 32 API_EXPORT Event(int32_t evtId); 33 API_EXPORT Event(Event &&) noexcept = delete; 34 API_EXPORT Event(const Event &) = delete; 35 API_EXPORT Event &operator=(Event &&) noexcept = delete; 36 API_EXPORT Event &operator=(const Event [all...] |
H A D | event_center.h | 36 API_EXPORT Defer(std::function<void(const Event &)> handler = nullptr, int32_t evtId = Event::EVT_INVALID); 44 API_EXPORT bool Subscribe(int32_t evtId, const std::function<void(const Event &)> &observer); 46 API_EXPORT int32_t PostEvent(std::unique_ptr<Event> evt) const; 49 void Dispatch(const Event &evt) const; 56 void Post(std::unique_ptr<Event> event); 57 void AddHandler(int32_t evtId, std::function<void(const Event &)> handler); 60 std::map<int32_t, std::function<void(const Event &)>> handlers_; 61 std::deque<std::unique_ptr<Event>> events_; 64 ConcurrentMap<int32_t, std::list<std::function<void(const Event [all...] |
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/utils/ |
H A D | hgm_state_machine.h | 32 using Event = EventType;
34 using EventCallback = std::function<void(Event)>;
45 void OnEvent(Event event);
52 void RegisterEventCallback(Event event, const EventCallback& callback);
53 void UnRegisterEventCallback(Event event);
77 std::unordered_map<Event, EventCallback> eventCallbacks_;
80 template<typename State, typename Event>
81 void HgmStateMachine<State, Event>::ChangeState(State state)
in ChangeState() 115 template<typename State, typename Event>
116 void HgmStateMachine<State, Event> [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/eventcenter/ |
H A D | event.cpp | 19 Event::Event(int32_t evtId) : evtId_(evtId) in Event() function in OHOS::DistributedData::Event 22 Event::~Event() in ~Event() 25 int32_t Event::GetEventId() const in GetEventId() 30 bool Event::Equals(const Event &) const in Equals()
|
/foundation/distributeddatamgr/pasteboard/framework/framework/eventcenter/ |
H A D | event.cpp | 18 Event::Event(int32_t evtId) : evtId_(evtId) {} in Event() function in OHOS::MiscServices::Event 19 Event::~Event() {} in ~Event() 20 int32_t Event::GetEventId() const in GetEventId() 25 bool Event::Equals(const Event &) const in Equals()
|
/foundation/ability/ability_runtime/test/mock/frameworks_kits_ability_native_test/include/ |
H A D | mock_lifecycle_observer.h | 39 state_ = LifeCycle::Event::ON_ACTIVE; in OnActive() 52 state_ = LifeCycle::Event::ON_INACTIVE; in OnInactive() 68 state_ = LifeCycle::Event::ON_START; in OnStart() 80 state_ = LifeCycle::Event::ON_STOP; in OnStop() 90 virtual void OnStateChanged(LifeCycle::Event event, const Want& want) in OnStateChanged() 104 virtual void OnStateChanged(LifeCycle::Event event) in OnStateChanged() 122 state_ = LifeCycle::Event::ON_BACKGROUND; in OnBackground() 137 state_ = LifeCycle::Event::ON_FOREGROUND; in OnForeground() 146 LifeCycle::Event GetLifecycleState() in GetLifecycleState() 152 LifeCycle::Event state [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/ |
H A D | event.h | 25 class Event; 27 class Event<IEvent> { class 31 Event(const BASE_NS::shared_ptr<IEvent>& ev) : event_(ev) {} in Event() function in Event 50 class Event : public Event<IEvent> { class 52 using Event<IEvent>::Event; 53 Event(const BASE_NS::shared_ptr<EventT>& ev) : Event<IEvent>(interface_pointer_cast<IEvent>(ev)) {} in Event() function in Event
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/include/ |
H A D | event.h | 32 typedef struct Event Event; typedef 35 * @brief Perform instantiation of the Event, set Event Attributes isAutoClear. 37 * @param isAutoClear Event isAutoClear or not. If Event is not autoClear, 39 * @return Event pointer. 42 Event *EventCreate(bool isAutoClear); 45 * @brief Delete an Event object. 47 * @param event Event pointe [all...] |
/foundation/bundlemanager/bundle_framework/test/resource/common/src/ |
H A D | event.cpp | 20 int WaitCompleted(Event &event, const std::string &eventName, const int code, const int timeout) in WaitCompleted() 25 void Completed(Event &event, const std::string &eventName, const int code) in Completed() 30 void CleanMsg(Event &event) in CleanMsg() 35 Event::Event() in Event() function in STtools::Event 41 Event::~Event() in ~Event() 49 bool Event::Compare() in Compare() 63 int Event::WaitingMessage(const std::string &message, int timeout_ms, bool locked) in WaitingMessage() 83 void Event [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_api.h | 24 Event *event; 31 Event *event; 38 Event *event; 46 Event *event; 54 Event *event; 63 Event *event; 71 Event *event; 80 Event *event; 88 Event *event; 96 Event *even [all...] |
H A D | avdtp.c | 46 Event *event = EventCreate(true); in AVDT_Startup() 56 Event *event = (Event *)context; in AvdtStartup() 69 Event *event = EventCreate(true); in AVDT_Shutdown() 79 Event *event = (Event *)context; in AvdtShutdown()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_sync_state_machine.cpp | 35 using Event = SingleVerSyncStateMachine::Event; 44 // State switch table v3, has three columns, CurrentState, Event, and OutSate 46 {State::IDLE, Event::START_SYNC_EVENT, State::TIME_SYNC}, 49 {State::TIME_SYNC, Event::TIME_SYNC_FINISHED_EVENT, State::ABILITY_SYNC}, 50 {State::TIME_SYNC, Event::TIME_OUT_EVENT, State::SYNC_TIME_OUT}, 51 {State::TIME_SYNC, Event::INNER_ERR_EVENT, State::INNER_ERR}, 54 {State::ABILITY_SYNC, Event::VERSION_NOT_SUPPOR_EVENT, State::INNER_ERR}, 55 {State::ABILITY_SYNC, Event::ABILITY_SYNC_FINISHED_EVENT, State::START_INITIACTIVE_DATA_SYNC}, 56 {State::ABILITY_SYNC, Event [all...] |
H A D | single_ver_sync_state_machine.h | 51 enum Event { enum in DistributedDB::SingleVerSyncStateMachine 150 Event DoTimeSync() const; 153 Event DoAbilitySync() const; 156 Event DoWaitForDataRecv() const; 159 Event DoSyncTaskFinished(); 162 Event DoTimeout(); 165 Event DoInnerErr(); 167 Event DoInitiactiveDataSyncWithSlidingWindow() const; 169 Event DoPassiveDataSyncWithSlidingWindow(); 171 Event DoInitiactiveControlSyn [all...] |
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
H A D | ability_lifecycle.cpp | 21 LifeCycle::Event LifeCycle::GetLifecycleState() in GetLifecycleState() 39 void LifeCycle::DispatchLifecycle(const LifeCycle::Event &event, const Want &want) in DispatchLifecycle() 42 if ((event != LifeCycle::Event::ON_FOREGROUND) && (event != LifeCycle::Event::ON_START)) { in DispatchLifecycle() 73 void LifeCycle::DispatchLifecycle(const LifeCycle::Event &event) in DispatchLifecycle() 76 if ((event != LifeCycle::Event::ON_ACTIVE) && (event != LifeCycle::Event::ON_BACKGROUND) && in DispatchLifecycle() 77 (event != LifeCycle::Event::ON_INACTIVE) && (event != LifeCycle::Event::ON_STOP)) { in DispatchLifecycle()
|
/foundation/arkui/ace_engine/frameworks/core/components/declaration/common/ |
H A D | event.h | 56 struct Event { struct 71 struct CommonRawEvent : Event { 90 struct CommonGestureEvent : Event { 107 struct CommonFocusEvent : Event { 112 struct CommonKeyEvent : Event { 116 struct CommonMouseEvent : Event { 122 struct CommonSwipeEvent : Event { 128 struct CommonAttachEvent : Event { 133 struct CommonCrownEvent : Event {
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/ |
H A D | cloud_sync_state_machine.cpp | 26 using Event = CloudSyncEvent; 36 {State::IDLE, Event::START_SYNC_EVENT, State::DO_DOWNLOAD}, 37 {State::IDLE, Event::ERROR_EVENT, State::DO_FINISHED}, 40 {State::DO_DOWNLOAD, Event::DOWNLOAD_FINISHED_EVENT, State::DO_UPLOAD}, 41 {State::DO_DOWNLOAD, Event::ERROR_EVENT, State::DO_FINISHED}, 44 {State::DO_UPLOAD, Event::UPLOAD_FINISHED_EVENT, State::DO_FINISHED}, 45 {State::DO_UPLOAD, Event::ERROR_EVENT, State::DO_FINISHED}, 46 {State::DO_UPLOAD, Event::REPEAT_CHECK_EVENT, State::DO_REPEAT_CHECK}, 49 {State::DO_REPEAT_CHECK, Event::REPEAT_DOWNLOAD_EVENT, State::DO_DOWNLOAD}, 50 {State::DO_REPEAT_CHECK, Event [all...] |
/foundation/bundlemanager/bundle_framework/test/resource/common/include/ |
H A D | event.h | 23 class Event { class 25 Event(); 26 ~Event(); 39 int WaitCompleted(Event &event, const std::string &eventName, const int code, const int timeout = 60); 40 void Completed(Event &event, const std::string &eventName, const int code); 41 void CleanMsg(Event &event);
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | event_center_test.cpp | 24 TEST_EVT_UNKNOWN = Event::EVT_CUSTOM, 25 TEST_EVT_BEGIN = Event::EVT_CUSTOM + 1, 29 class TestBegin : public Event { 31 TestBegin(): Event(TEST_EVT_BEGIN) {}; in TestBegin() 33 class TestMiddle : public Event { 35 TestMiddle(): Event(TEST_EVT_MIDDLE) {}; in TestMiddle() 37 class TestEnd : public Event { 39 TestEnd(): Event(TEST_EVT_END) {}; in TestEnd() 47 EventCenter::GetInstance().Subscribe(TEST_EVT_BEGIN, [this](const Event &evt) { in SetUp() 54 EventCenter::GetInstance().Subscribe(TEST_EVT_MIDDLE, [this](const Event in SetUp() [all...] |
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | event_center_test.cpp | 27 TEST_EVT_UNKNOWN = Event::EVT_REMOTE_CHANGE, 28 TEST_EVT_BEGIN = Event::EVT_REMOTE_CHANGE + 1, 32 class TestBegin : public Event { 34 TestBegin() : Event(TEST_EVT_BEGIN){}; in TestBegin() 36 class TestMiddle : public Event { 38 TestMiddle() : Event(TEST_EVT_MIDDLE){}; in TestMiddle() 40 class TestEnd : public Event { 42 TestEnd() : Event(TEST_EVT_END){}; in TestEnd() 50 EventCenter::GetInstance().Subscribe(TEST_EVT_BEGIN, [this](const Event &evt) { in SetUp() 57 EventCenter::GetInstance().Subscribe(TEST_EVT_MIDDLE, [this](const Event in SetUp() [all...] |
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/ |
H A D | ability_lifecycle_test.cpp | 66 LifeCycle::Event state = lifeCycle_->GetLifecycleState(); in HWTEST_F() 67 EXPECT_EQ(LifeCycle::Event::UNDEFINED, state); in HWTEST_F() 99 lifeCycle_->DispatchLifecycle(LifeCycle::Event::ON_ACTIVE); in HWTEST_F() 116 lifeCycle_->DispatchLifecycle(LifeCycle::Event::ON_ACTIVE); in HWTEST_F() 118 lifeCycle_->DispatchLifecycle(LifeCycle::Event::ON_ACTIVE); in HWTEST_F() 134 lifeCycle_->DispatchLifecycle(LifeCycle::Event::ON_ACTIVE); in HWTEST_F() 136 lifeCycle_->DispatchLifecycle(LifeCycle::Event::ON_ACTIVE); in HWTEST_F() 154 lifeCycle_->DispatchLifecycle(LifeCycle::Event::UNDEFINED, want); in HWTEST_F() 172 lifeCycle_->DispatchLifecycle(LifeCycle::Event::ON_ACTIVE, want); in HWTEST_F() 190 lifeCycle_->DispatchLifecycle(LifeCycle::Event in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
H A D | event.c | 23 typedef struct Event { struct 30 Event *EventCreate(bool isAutoClear) in EventCreate() 32 Event *event = (Event *)malloc(sizeof(Event)); in EventCreate() 42 void EventDelete(Event *event) in EventDelete() 55 void EventSet(Event *event) in EventSet() 70 void EventClear(Event *event) in EventClear() 80 static int32_t EventWaitInternal(Event *event, int64_t ms) in EventWaitInternal() 97 int32_t EventWait(Event *even [all...] |
/foundation/arkui/ui_lite/frameworks/events/ |
H A D | event.cpp | 20 Event::Event() : timeStamp_(HALTick::GetInstance().GetTime()), curPos_({ 0, 0 }) {} in Event() function in OHOS::Event 22 Event::Event(const Point& curPos) : timeStamp_(HALTick::GetInstance().GetTime()), curPos_(curPos) {} in Event() function in OHOS::Event
|