Home
last modified time | relevance | path

Searched refs:eventId (Results 1 – 25 of 246) sorted by relevance

12345678910

/foundation/appexecfwk/standard/libs/libeventhandler/test/unittest/
Dlib_event_handler_event_test.cpp90 uint32_t eventId = 0; variable
92 auto event = InnerEvent::Get(eventId, eventParam);
95 EXPECT_EQ(eventId, id);
110 uint32_t eventId = 0; variable
113 auto event = InnerEvent::Get(eventId, object, eventParam);
117 EXPECT_EQ(eventId, id);
134 uint32_t eventId = 0; variable
138 auto event = InnerEvent::Get(eventId, weakObject, eventParam);
143 EXPECT_EQ(eventId, id);
160 uint32_t eventId = 0; variable
[all …]
Dlib_event_handler_event_queue_test.cpp100 static void GetEventAndCompare(uint32_t eventId, EventQueue &queue) in GetEventAndCompare() argument
106 EXPECT_EQ(eventId, id); in GetEventAndCompare()
119 uint32_t eventId = 0; in DelayTest() local
127 auto event = InnerEvent::Get(eventId); in DelayTest()
144 EXPECT_EQ(eventId, id); in DelayTest()
160 uint32_t eventId = 0; in InsertPriorityTest() local
164 eventIds.push_back(eventId); in InsertPriorityTest()
165 auto event = InnerEvent::Get(eventId); in InsertPriorityTest()
169 ++eventId; in InsertPriorityTest()
200 static void BreakQueueTest(EventQueue &queue, uint32_t eventId) in BreakQueueTest() argument
[all …]
/foundation/aafwk/standard/services/abilitymgr/src/
Dability_event_handler.cpp65 void AbilityEventHandler::ProcessLoadTimeOut(int64_t eventId) in ProcessLoadTimeOut() argument
70 server->HandleLoadTimeOut(eventId); in ProcessLoadTimeOut()
73 void AbilityEventHandler::ProcessActiveTimeOut(int64_t eventId) in ProcessActiveTimeOut() argument
78 server->HandleActiveTimeOut(eventId); in ProcessActiveTimeOut()
81 void AbilityEventHandler::ProcessInactiveTimeOut(int64_t eventId) in ProcessInactiveTimeOut() argument
86 server->HandleInactiveTimeOut(eventId); in ProcessInactiveTimeOut()
89 void AbilityEventHandler::ProcessForegroundNewTimeOut(int64_t eventId) in ProcessForegroundNewTimeOut() argument
94 server->HandleForegroundNewTimeOut(eventId); in ProcessForegroundNewTimeOut()
97 void AbilityEventHandler::ProcessBackgroundNewTimeOut(int64_t eventId) in ProcessBackgroundNewTimeOut() argument
102 server->HandleBackgroundNewTimeOut(eventId); in ProcessBackgroundNewTimeOut()
/foundation/communication/netmanager_base/frameworks/js/napi/netstats/src/
Dnet_stats_event_listener_manager.cpp53 int32_t eventId = EVENT_NET_UNKNOW_CHANGE; in FindListener() local
55 … NETMGR_LOG_I("NetStatsCallback it->eventId = %{public}d, callbackRef = %{public}d", it->eventId, in FindListener()
57 if (it->eventId == listen.eventId) { in FindListener()
58 eventId = listen.eventId; in FindListener()
59 listen.eventId = it->eventId; in FindListener()
64 return eventId; in FindListener()
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
Dbundle_active_package_stats.cpp131 void BundleActivePackageStats::UpdateAbility(const int64_t timeStamp, const int eventId, in UpdateAbility() argument
134 …if (eventId != BundleActiveEvent::ABILITY_FOREGROUND && eventId != BundleActiveEvent::ABILITY_BACK… in UpdateAbility()
135 eventId != BundleActiveEvent::ABILITY_STOP) { in UpdateAbility()
138 if (abilities_.empty() && eventId == BundleActiveEvent::ABILITY_FOREGROUND) { in UpdateAbility()
154 switch (eventId) { in UpdateAbility()
159 abilities_[abilityId] = eventId; in UpdateAbility()
162 abilities_[abilityId] = eventId; in UpdateAbility()
172 const int eventId) in UpdateLongTimeTask() argument
174 …if (eventId != BundleActiveEvent::LONG_TIME_TASK_STARTTED && eventId != BundleActiveEvent::LONG_TI… in UpdateLongTimeTask()
190 switch (eventId) { in UpdateLongTimeTask()
[all …]
Dbundle_active_period_stats.cpp56 const int64_t timeStamp, const int eventId, const std::string abilityId) in Update() argument
58 if (eventId == BundleActiveEvent::SHUTDOWN || eventId == BundleActiveEvent::FLUSH) { in Update()
63 tmpUsageStats->Update("", timeStamp, eventId, abilityId); in Update()
68 usageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId); in Update()
/foundation/ace/ace_engine/frameworks/core/components/video/
Dvideo_component.h251 void SetPreparedEventId(const EventMarker& eventId) in SetPreparedEventId() argument
253 preparedEventId_ = eventId; in SetPreparedEventId()
261 void SetStartEventId(const EventMarker& eventId) in SetStartEventId() argument
263 startEventId_ = eventId; in SetStartEventId()
271 void SetPauseEventId(const EventMarker& eventId) in SetPauseEventId() argument
273 pauseEventId_ = eventId; in SetPauseEventId()
281 void SetStopEventId(const EventMarker& eventId) in SetStopEventId() argument
283 stopEventId_ = eventId; in SetStopEventId()
291 void SetFinishEventId(const EventMarker& eventId) in SetFinishEventId() argument
293 finishEventId_ = eventId; in SetFinishEventId()
[all …]
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/
Dnet_policy_event_listener_context.cpp38 NETMGR_LOG_D("eventListener.eventId = [%{public}d]", eventListener.eventId); in AddEventListener()
41 listenses.insert(std::pair<int32_t, EventListener>(eventListener.eventId, eventListener)); in AddEventListener()
52 std::map<int32_t, EventListener>::iterator it = listenses.find(eventListener.eventId); in RemoveEventListener()
55 listenses.erase(eventListener.eventId); in RemoveEventListener()
63 int32_t eventId = EVENT_NET_UNKNOW_CHANGE; in FindEventListense() local
64 std::map<int32_t, EventListener>::iterator it = listenses.find(eventListener.eventId); in FindEventListense()
67 eventId = it->first; in FindEventListense()
69 return eventId; in FindEventListense()
/foundation/ace/ace_engine/frameworks/core/common/
Dplatform_res_register.h35 void RegisterEvent(const std::string& eventId, const EventCallback&& eventCallback) in RegisterEvent() argument
37 eventMap_[eventId] = std::move(eventCallback); in RegisterEvent()
40 void UnregisterEvent(const std::string& eventId) in UnregisterEvent() argument
42 eventMap_.erase(eventId); in UnregisterEvent()
45 void OnEvent(const std::string& eventId, const std::string& param) in OnEvent() argument
47 auto event = eventMap_.find(eventId); in OnEvent()
51 LOGW("failed to find eventId = %{public}s", eventId.c_str()); in OnEvent()
/foundation/aafwk/standard/services/abilitymgr/include/
Dability_event_handler.h45 void ProcessLoadTimeOut(int64_t eventId);
46 void ProcessActiveTimeOut(int64_t eventId);
47 void ProcessInactiveTimeOut(int64_t eventId);
48 void ProcessForegroundNewTimeOut(int64_t eventId);
49 void ProcessBackgroundNewTimeOut(int64_t eventId);
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/hfp_ag/
Dhfp_ag_data_connection_server.cpp32 uint16_t handle, uint32_t eventId, const std::string &inComingAddr) in ProcessDataConnectionServerCallback() argument
39 eventId); in ProcessDataConnectionServerCallback()
41 switch (eventId) { in ProcessDataConnectionServerCallback()
65 … LOG_DEBUG("[HFP AG]%{public}s():Invalid event from rfcomm eventId[%u]", __FUNCTION__, eventId); in ProcessDataConnectionServerCallback()
74 uint16_t handle, uint32_t eventId, const void *eventData, void *context) in DataConnectionServerCallback() argument
79 if (eventId == RFCOMM_CHANNEL_EV_CONNECT_INCOMING) { in DataConnectionServerCallback()
85 …std::bind(&HfpAgDataConnectionServer::ProcessDataConnectionServerCallback, handle, eventId, addr)); in DataConnectionServerCallback()
Dhfp_ag_data_connection.cpp26 void HfpAgDataConnection::DataConnectionCallback(uint16_t handle, uint32_t eventId, in DataConnectionCallback() argument
31 std::bind(&HfpAgDataConnection::ProcessDataConnectionCallback, handle, eventId)); in DataConnectionCallback()
35 void HfpAgDataConnection::ProcessDataConnectionCallback(uint16_t handle, uint32_t eventId) in ProcessDataConnectionCallback() argument
42 eventId); in ProcessDataConnectionCallback()
44 switch (eventId) { in ProcessDataConnectionCallback()
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/hfp_hf/
Dhfp_hf_data_connection_server.cpp32 uint16_t handle, uint32_t eventId, const std::string &inComingAddr) in ProcessDataConnectionServerCallback() argument
39 eventId); in ProcessDataConnectionServerCallback()
41 switch (eventId) { in ProcessDataConnectionServerCallback()
65 … LOG_DEBUG("[HFP HF]%{public}s():Invalid event from rfcomm eventId[%u]", __FUNCTION__, eventId); in ProcessDataConnectionServerCallback()
74 uint16_t handle, uint32_t eventId, const void *eventData, void *context) in DataConnectionServerCallback() argument
79 if (eventId == RFCOMM_CHANNEL_EV_CONNECT_INCOMING) { in DataConnectionServerCallback()
85 …std::bind(&HfpHfDataConnectionServer::ProcessDataConnectionServerCallback, handle, eventId, addr)); in DataConnectionServerCallback()
Dhfp_hf_data_connection.cpp26 void HfpHfDataConnection::ProcessDataConnectionCallback(uint16_t handle, uint32_t eventId) in ProcessDataConnectionCallback() argument
33 eventId); in ProcessDataConnectionCallback()
35 switch (eventId) { in ProcessDataConnectionCallback()
61 void HfpHfDataConnection::DataConnectionCallback(uint16_t handle, uint32_t eventId, in DataConnectionCallback() argument
66 std::bind(&HfpHfDataConnection::ProcessDataConnectionCallback, handle, eventId)); in DataConnectionCallback()
/foundation/ace/ace_engine/frameworks/core/components/marquee/
Dmarquee_component.h135 void SetBounceEventId(const EventMarker& eventId) in SetBounceEventId() argument
137 bounceEventId_ = eventId; in SetBounceEventId()
145 void SetFinishEventId(const EventMarker& eventId) in SetFinishEventId() argument
147 finishEventId_ = eventId; in SetFinishEventId()
155 void SetStartEventId(const EventMarker& eventId) in SetStartEventId() argument
157 startEventId_ = eventId; in SetStartEventId()
/foundation/appexecfwk/standard/libs/test/moduletest/common/event_handler/
Devent_handler_test_common.cpp32 auto eventId = event->GetInnerEventId(); in ProcessEvent() local
33 if (eventId == STOP_EVENT_ID) { in ProcessEvent()
37 if (eventId == RUN_EVENT_ID) { in ProcessEvent()
/foundation/appexecfwk/standard/interfaces/innerkits/napi/eventhandler/src/
Devents_emitter.cpp111 uint32_t eventId = event->GetInnerEventId(); in ProcessEvent() local
112 HILOGI("ProcessEvent, eventId = %d", eventId); in ProcessEvent()
113 auto subscribe = emitterInstances.find(eventId); in ProcessEvent()
151 emitterInstances.erase(eventId); in ProcessEvent()
220 napi_value eventId; in OnOrOnce() local
223 napi_get_named_property(env, argv[0], "eventId", &eventId); in OnOrOnce()
225 napi_get_value_uint32(env, eventId, &eventIdValue); in OnOrOnce()
258 uint32_t eventId; in JS_Off() local
259 napi_get_value_uint32(env, argv[0], &eventId); in JS_Off()
260 auto subscribe = emitterInstances.find(eventId); in JS_Off()
[all …]
/foundation/ace/ace_engine/frameworks/core/event/
Dback_end_event_manager.h61 … bind event id is %{public}s, the manager is %{private}p", marker.GetData().eventId.c_str(), this); in BindBackendEvent()
66 auto result = eventMap_.try_emplace(marker.GetData().eventId, event); in BindBackendEvent()
76 … Fire event id is %{public}s, the manager is %{private}p", marker.GetData().eventId.c_str(), this); in FireBackEndEvent()
80 auto iter = eventMap_.find(marker.GetData().eventId); in FireBackEndEvent()
96 eventMap_.erase(marker.GetData().eventId); in RemoveBackEndEvent()
Dace_event_handler.h43 Data(const std::string& eventId, const std::string& eventType, int32_t pageId, bool isFront) in Data()
44 : eventId(eventId), eventType(eventType), pageId(pageId), isFront(isFront), in Data()
48 …: uiFunction(std::move(func)), eventId("-1"), eventType(eventType), pageId(pageId), isFront(isFron… in Data()
52 …: uiArgFunction(std::move(func)), eventId("-1"), eventType(eventType), pageId(pageId), isFront(isF… in Data()
56 …: uiStrFunction(std::move(func)), eventId("-1"), eventType(eventType), pageId(pageId), isFront(isF… in Data()
71 std::string eventId; member
81 …explicit EventMarker(const std::string& eventId, const std::string& eventType = std::string(), int…
83 : data_(std::make_unique<Data>(eventId, eventType, pageId, isFront)) in data_() argument
124 return GetData().eventId != markerEventId;
129 return GetData().eventId == markerEventId;
[all …]
/foundation/communication/netmanager_base/frameworks/js/napi/netconn/src/
Devent_listener_context.cpp45 listenses[index].insert(std::pair<int32_t, EventListener>(listen.eventId, listen)); in AddListense()
56 listenses[index].erase(listen.eventId); in RemoveListense()
148 itt->first, itt->second.eventId); in RemoveIndexListense()
161 itt->second.eventId); in Display()
170 int32_t eventId = EVENT_NET_UNKNOW_CHANGE; in FindListener() local
177 eventId = listen.eventId; in FindListener()
178 listen = listenses[index][eventId]; in FindListener()
182 return eventId; in FindListener()
/foundation/aafwk/standard/services/appmgr/include/
Dapp_running_manager.h135 void HandleTerminateTimeOut(int64_t eventId);
137 std::shared_ptr<AppRunningRecord> GetAppRunningRecord(const int64_t eventId);
149 void HandleAddAbilityStageTimeOut(const int64_t eventId);
150 void HandleStartSpecifiedAbilityTimeOut(const int64_t eventId);
154 std::shared_ptr<AbilityRunningRecord> GetAbilityRunningRecord(const int64_t eventId);
/foundation/ace/ace_engine/frameworks/core/components/navigation_bar/
Dnavigation_bar_element.cpp103 std::string eventId = menuItem.second.clickEvent.GetData().eventId; in BindClickEventToOptions() local
107 menuItem.second.clickEvent, [navigationBar, eventId, weak]() { in BindClickEventToOptions()
108 LOGD("click menuItem %{public}s in bar", eventId.c_str()); in BindClickEventToOptions()
116 auto menuItemIter = menuItemsInBar.find(eventId); in BindClickEventToOptions()
/foundation/ace/ace_engine/frameworks/core/components/test/unittest/rating/
Drender_rating_test.cpp84 eventCallback_(eventMarker.GetData().eventId, param); in HandleAsyncEvent()
184 [this, changeEventId, &score](const std::string& eventId, const std::string& param) { in __anon1d275c1c0202() argument
189 EXPECT_EQ(eventId, changeEventId); in __anon1d275c1c0202()
229 [this, changeEventId, &score](const std::string& eventId, const std::string& param) { in __anon1d275c1c0402() argument
234 EXPECT_EQ(eventId, changeEventId); in __anon1d275c1c0402()
267 [this, changeEventId, &score](const std::string& eventId, const std::string& param) { in __anon1d275c1c0602() argument
272 EXPECT_EQ(eventId, changeEventId); in __anon1d275c1c0602()
306 [this, changeEventId, &score](const std::string& eventId, const std::string& param) { in __anon1d275c1c0802() argument
311 EXPECT_EQ(eventId, changeEventId); in __anon1d275c1c0802()
356 [this, changeEventId, &score](const std::string& eventId, const std::string& param) { in __anon1d275c1c0a02() argument
[all …]
/foundation/ace/ace_engine/frameworks/bridge/js_frontend/
Djs_frontend.cpp314 const std::string& eventId, const std::string& param) { in InitializeFrontendDelegate() argument
319 jsEngine->FireAsyncEvent(eventId, param); in InitializeFrontendDelegate()
323 const std::string& eventId, const std::string& param) { in InitializeFrontendDelegate() argument
328 jsEngine->FireSyncEvent(eventId, param); in InitializeFrontendDelegate()
770 …eventMarker.GetData().pageId, eventMarker.GetData().eventId.c_str(), eventMarker.GetData().eventTy… in HandleAsyncEvent()
772 delegate_->FireAsyncEvent(eventMarker.GetData().eventId, param.append("null"), std::string("")); in HandleAsyncEvent()
775 accessibilityEvent.nodeId = StringUtils::StringToInt(eventMarker.GetData().eventId); in HandleAsyncEvent()
806 …eventMarker.GetData().pageId, eventMarker.GetData().eventId.c_str(), eventMarker.GetData().eventTy… in HandleAsyncEvent()
812 eventMarker.GetData().eventId.c_str()); in HandleAsyncEvent()
822 delegate_->FireAsyncEvent(eventMarker.GetData().eventId, param, ""); in HandleAsyncEvent()
[all …]
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
Dbundle_active_package_stats.h52 void Update(const std::string& longTimeTaskName, const int64_t timeStamp, const int eventId,
64 … void UpdateAbility(const int64_t timeStamp, const int eventId, const std::string& abilityId);
65 …pdateLongTimeTask(const std::string& longTimeTaskName, const int64_t timeStamp, const int eventId);

12345678910