Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 188) sorted by relevance

12345678

/base/notification/eventhandler/test/systemtest/ems_event_handler_system_test/
Dems_event_handler_test.cpp248 auto handler = std::make_shared<TestEventHandler>(runner); in ProcessEventTest() local
252 handler->SendEvent(event); in ProcessEventTest()
274 auto handler = std::make_shared<EventHandler>(runner); variable
277 std::string eventName = handler->GetEventName(event001);
289 auto handler = std::make_shared<EventHandler>(runner); variable
292 std::string eventName = handler->GetEventName(event002);
304 auto handler = std::make_shared<EventHandler>(runner); variable
308 std::string eventName = handler->GetEventName(event003);
320 auto handler = std::make_shared<EventHandler>(runner); variable
324 std::string eventName = handler->GetEventName(event004);
[all …]
/base/notification/eventhandler/frameworks/test/moduletest/
Devent_handler_set_get_remove_module_test.cpp62 auto handler = std::make_shared<MyEventHandler>(nullptr); variable
63 handler->SetEventRunner(myRunner);
64 bool result = handler->SendEvent(STOP_EVENT_ID);
82 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
83 handler->SetEventRunner(nullptr);
84 bool allowSend = handler->SendEvent(Random());
101 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
102 auto currentRunner = handler->GetEventRunner();
118 auto handler = std::make_shared<MyEventHandler>(nullptr); variable
119 auto currentRunner = handler->GetEventRunner();
[all …]
Devent_handler_send_sync_event_module_test.cpp33 void WaitTaskCalled(const F &f, const std::shared_ptr<EventHandler> &handler) in WaitTaskCalled() argument
36 if (handler->PostTask(f)) { in WaitTaskCalled()
62 auto handler = std::make_shared<MyEventHandler>(myRunner); in SendEventWithSmartPtr() local
69 auto task = [&handler, &result, &sharedPtr, &weakPtr, &uniquePtr, &f, smartPointerType]() { in SendEventWithSmartPtr()
72 result = handler->SendSyncEvent(RUN_EVENT_ID, sharedPtr); in SendEventWithSmartPtr()
76 result = handler->SendSyncEvent(RUN_EVENT_ID, weakPtr); in SendEventWithSmartPtr()
80 result = handler->SendSyncEvent(RUN_EVENT_ID, uniquePtr); in SendEventWithSmartPtr()
84 …result = handler->SendSyncEvent(RUN_EVENT_ID, std::unique_ptr<int, void (*)(int *)>((new int(1)), … in SendEventWithSmartPtr()
92 WaitTaskCalled(task, handler); in SendEventWithSmartPtr()
146 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
[all …]
Devent_handler_post_task_module_test.cpp64 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
66 bool postResult = handler->PostTask(f, taskName, delayTime, EventQueue::Priority::LOW);
69 handler->SendEvent(STOP_EVENT_ID, param, delayTime + 1);
90 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
92 bool postResult = handler->PostTask(f, delayTime, EventQueue::Priority::HIGH);
94 handler->SendEvent(STOP_EVENT_ID);
115 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
117 bool postResult = handler->PostImmediateTask(f, taskName);
119 handler->SendEvent(STOP_EVENT_ID);
141 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
[all …]
Devent_handler_fd_listener_module_test.cpp93 auto handler = GetOwner(); in OnWritable() local
94 if (handler) { in OnWritable()
95 handler->RemoveFileDescriptorListener(fileDescriptor); in OnWritable()
98 handler->PostTask(f, delayTime); in OnWritable()
146 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
147 … auto inResult = handler->AddFileDescriptorListener(fds[0], FILE_DESCRIPTOR_INPUT_EVENT, listener);
149 …auto outResult = handler->AddFileDescriptorListener(fds[1], FILE_DESCRIPTOR_OUTPUT_EVENT, listener…
154 handler->SendEvent(STOP_EVENT_ID, param, delayTime);
173 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
176 auto inResult = handler->AddFileDescriptorListener(fd, FILE_DESCRIPTOR_INPUT_EVENT, listener);
[all …]
Devent_handler_send_event_module_test.cpp33 auto handler = std::make_shared<MyEventHandler>(myRunner); in SendAndCheck() local
34 bool lValueResult = handler->SendEvent(event, delayTime, priority); in SendAndCheck()
37 bool rValueResult = handler->SendEvent(InnerEvent::Get(RUN_EVENT_ID), delayTime, priority); in SendAndCheck()
40 handler->SendEvent(STOP_EVENT_ID, 0, delayTime + 1); in SendAndCheck()
54 auto handler = std::make_shared<MyEventHandler>(myRunner); in SendEventWithPriority() local
61 lvalueSendResult = handler->SendHighPriorityEvent(event, delayTime); in SendEventWithPriority()
63handler->SendHighPriorityEvent(InnerEvent::Get(RUN_EVENT_ID, std::make_unique<int>(1)), delayTime); in SendEventWithPriority()
67 lvalueSendResult = handler->SendImmediateEvent(event); in SendEventWithPriority()
68 …rvalueSendResult = handler->SendImmediateEvent(InnerEvent::Get(RUN_EVENT_ID, std::make_unique<int>… in SendEventWithPriority()
73 handler->SendEvent(STOP_EVENT_ID); in SendEventWithPriority()
[all …]
Devent_handler_send_timing_event_module_test.cpp43 void WaitTaskCalled(const F &f, const std::shared_ptr<EventHandler> &handler) in WaitTaskCalled() argument
48 if (handler->PostTimingTask(f, nowTime + delayTime)) { in WaitTaskCalled()
73 auto handler = std::make_shared<MyEventHandler>(myRunner); in SendEventWithSmartPtr() local
83 handler->SendTimingEvent(RUN_EVENT_ID, sharedPtr, nowTime + delayTime); in SendEventWithSmartPtr()
87 handler->SendTimingEvent(RUN_EVENT_ID, weakPtr, nowTime + delayTime); in SendEventWithSmartPtr()
91 handler->SendTimingEvent(RUN_EVENT_ID, uniquePtr, nowTime + delayTime); in SendEventWithSmartPtr()
95 handler->SendTimingEvent( in SendEventWithSmartPtr()
102 handler->SendTimingEvent(STOP_EVENT_ID, delayTime + delayTime + nowTime); in SendEventWithSmartPtr()
152 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
154 bool result = handler->SendTimingEvent(nullPtr, nowTime + delayTime, EventQueue::Priority::LOW);
[all …]
Devent_handler_press_module_test.cpp97 auto handler = GetOwner(); in OnWritable() local
98 if (handler) { in OnWritable()
99 handler->RemoveFileDescriptorListener(fileDescriptor); in OnWritable()
106 handler->PostTask(f, delayTime * (i + 1)); in OnWritable()
126 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
129 bool sentResult = handler->SendEvent(RUN_EVENT_ID);
130 handler->SendEvent(STOP_EVENT_ID);
183 auto handler = std::make_shared<MyEventHandler>(myRunner); variable
185 bool sentResult = handler->SendEvent(Random() + 1);
190 handler->SendEvent(STOP_EVENT_ID);
[all …]
/base/telephony/core_service/test/unittest/tel_ril_gtest/
Dtel_ril_test.h138 …ocessTest(int32_t index, int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
174 …etCurrentCallsStatusTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
175 …void SimGetSimStatusTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
176 void SimIccIoTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
177 void SimGetImsiTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
178 …oid GetSimLockStatusTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
179 void SetSimLockTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
180 void UnSetSimLockTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
181 …id ChangeSimPasswordTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
182 void EnterSimPinTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
[all …]
Dtel_ril_test.cpp121 …rocessTest(int32_t index, int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) in ProcessTest() argument
139 (this->*memberFunc)(slotId, handler); in ProcessTest()
281 …GetCurrentCallsStatusTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) in CallGetCurrentCallsStatusTest() argument
286 event->SetOwner(handler); in CallGetCurrentCallsStatusTest()
290 bool syncResult = WaitGetResult(eventId, handler, WAIT_TIME_SECOND); in CallGetCurrentCallsStatusTest()
301 …Test::SimGetSimStatusTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) in SimGetSimStatusTest() argument
306 event->SetOwner(handler); in SimGetSimStatusTest()
310 bool syncResult = WaitGetResult(eventId, handler, WAIT_TIME_SECOND); in SimGetSimStatusTest()
320 … TelRilTest::SimIccIoTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) in SimIccIoTest() argument
325 event->SetOwner(handler); in SimIccIoTest()
[all …]
/base/telephony/state_registry/frameworks/js/napi/src/
Devent_listener_manager.cpp24 auto handler = DelayedSingleton<EventListenerHandler>::GetInstance(); in RegisterEventListener() local
25 if (handler == nullptr) { in RegisterEventListener()
29 return handler->RegisterEventListener(eventListener); in RegisterEventListener()
35 auto handler = DelayedSingleton<EventListenerHandler>::GetInstance(); in UnregisterEventListener() local
36 if (handler == nullptr) { in UnregisterEventListener()
40 return handler->UnregisterEventListener(env, eventType, ref, removeListenerList); in UnregisterEventListener()
46 auto handler = DelayedSingleton<EventListenerHandler>::GetInstance(); in UnregisterEventListener() local
47 if (handler == nullptr) { in UnregisterEventListener()
51 return handler->UnregisterEventListener(env, eventType, removeListenerList); in UnregisterEventListener()
56 auto handler = DelayedSingleton<EventListenerHandler>::GetInstance(); in UnRegisterAllListener() local
[all …]
/base/notification/eventhandler/test/systemtest/ems_event_runner_system_test/
Dems_event_runner_system_test.cpp179 F const &f, const std::shared_ptr<EventHandler> &handler, const std::atomic<bool> &taskCalled) in WaitUntilTaskCalled() argument
184 if (handler->PostTask(f)) { in WaitUntilTaskCalled()
203 static void CreateRunnerWithName(const std::shared_ptr<EventHandler> &handler, const std::string &t… in CreateRunnerWithName() argument
221 WaitUntilTaskCalled(f, handler, taskCalled); in CreateRunnerWithName()
237 auto handler = std::make_shared<EventHandler>(runner); variable
243 handler->PostTask(task);
256 auto handler = std::make_shared<EventHandler>(runner); variable
261 handler->PostTask(task);
274 auto handler = std::make_shared<EventHandler>(runner); variable
279 handler->PostTask(task);
[all …]
/base/telephony/core_service/services/tel_ril/test/
Dtel_ril_test.cpp186 … void OnInitForRegister(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
188 …ocessInput(int32_t slotId, int32_t what, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
191 int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
193 …questSimGetSimStatusTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
195 …id OnRequestSimIccIoTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
197 …OnRequestOpenLGSimIOTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
200 const std::shared_ptr<AppExecFwk::EventHandler> &handler);
203 const std::shared_ptr<AppExecFwk::EventHandler> &handler);
205 …estSimAuthenticationTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
207 …nRequestCloseLGSimIOTest(int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
[all …]
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
Dlib_event_handler_event_runner_test.cpp43 static void WaitUntilTaskCalled(F const &f, const std::shared_ptr<EventHandler> &handler, const std… in WaitUntilTaskCalled() argument
48 if (handler->PostTask(f)) { in WaitUntilTaskCalled()
67 static void CreateRunnerWithName(const std::shared_ptr<EventHandler> &handler, const std::string &t… in CreateRunnerWithName() argument
85 WaitUntilTaskCalled(f, handler, taskCalled); in CreateRunnerWithName()
138 auto handler = std::make_shared<EventHandler>(EventRunner::Create()); variable
146 WaitUntilTaskCalled(f, handler, taskCalled);
162 auto handler = std::make_shared<EventHandler>(runner); variable
170 if (handler->PostTask(f)) {
188 auto handler = std::make_shared<EventHandler>(EventRunner::Create(threadName)); variable
194 CreateRunnerWithName(handler, threadName);
[all …]
Dlib_event_handler_checker_test.cpp81 auto handler = std::make_shared<EventHandler>(runner); variable
106 handler->PostTask(fs);
107 handler->PostTask(f);
109 handler->SetDeliveryTimeoutCallback(deliveryTimeoutThread);
110 handler->SetDistributeTimeoutCallback(distributeTimeoutThread);
133 auto handler = std::make_shared<EventHandler>(runner); variable
158 handler->PostTask(fs);
159 handler->PostTask(f);
161 handler->SetDeliveryTimeoutCallback(deliveryTimeoutThread);
162 handler->SetDistributeTimeoutCallback(distributeTimeoutThread);
[all …]
Dlib_event_handler_event_queue_test.cpp757 auto handler = std::make_shared<EventHandler>(runner); variable
766 if (handler->PostTask(f, REMOVE_DELAY_TIME, EventQueue::Priority::LOW)) {
767 handler->RemoveAllEvents();
785 auto handler = std::make_shared<MyEventHandler>(runner); variable
793 handler->SendEvent(event, REMOVE_DELAY_TIME, EventQueue::Priority::LOW);
794 handler->RemoveEvent(REMOVE_EVENT_ID);
812 auto handler = std::make_shared<MyEventHandler>(runner); variable
820 handler->SendEvent(event, REMOVE_DELAY_TIME, EventQueue::Priority::LOW);
821 handler->RemoveEvent(REMOVE_EVENT_ID, eventParam);
843 auto handler = std::make_shared<EventHandler>(runner); variable
[all …]
/base/telephony/core_service/interfaces/innerkits/include/
Dcore_manager_inner.h40 … int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler, int what, int32_t *obj);
56 …otId, int32_t eventId, int fun, int rst, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
58 … int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
59 …hutDown(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
61 const std::shared_ptr<AppExecFwk::EventHandler> &handler);
62 … Reject(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
64 …otId, int32_t eventId, int32_t gsmIndex, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
65 … Answer(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
67 … int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
68 …oldCall(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
[all …]
/base/theme/screenlock_mgr/services/src/
Ddump_helper.cpp38 for (auto &[key, handler] : cmdHandler) { in Dispatch()
39 … dprintf(fd, "\n%-15s: %-20s\n", handler->GetFormat().c_str(), handler->ShowHelp().c_str()); in Dispatch()
44 auto handler = cmdHandler.find(args.at(0)); in Dispatch() local
45 if (handler != cmdHandler.end()) { in Dispatch()
47 handler->second->DoAction(args, output); in Dispatch()
/base/notification/eventhandler/test/systemtest/ems_dumper_system_test/
Dems_dumper_system_test.cpp188 auto handler = std::make_shared<EventHandler>(runner); variable
192 handler->Dump(dump001);
205 auto handler = std::make_shared<EventHandler>(runner); variable
208 handler->PostTask(task, DELAY_TIME, EventQueue::Priority::LOW);
210 handler->Dump(dump002);
223 auto handler = std::make_shared<EventHandler>(runner); variable
226 handler->SendEvent(event, DELAY_TIME, EventQueue::Priority::LOW);
228 handler->Dump(dump003);
241 auto handler = std::make_shared<EventHandler>(runner); variable
244 handler->SendEvent(event, DELAY_TIME, EventQueue::Priority::LOW);
[all …]
/base/telephony/core_service/services/tel_ril/src/
Dobserver_handler.cpp26 …ObserverHandler::RegObserver(int32_t what, const std::shared_ptr<AppExecFwk::EventHandler> handler) in RegObserver() argument
32 auto it = find(handlers.begin(), handlers.end(), handler); in RegObserver()
34 handlers.push_back(handler); in RegObserver()
41 handlers.push_back(handler); in RegObserver()
52 void ObserverHandler::Remove(int32_t what, const std::shared_ptr<AppExecFwk::EventHandler> handler) in Remove() argument
54 if (handler == nullptr) { in Remove()
63 auto it = find(handlers.begin(), handlers.end(), handler); in Remove()
80 for (auto handler : iter->second) { in NotifyObserver() local
82 handler->SendEvent(what); in NotifyObserver()
/base/theme/wallpaper_mgr/utils/dfx/hidumper_adapter/
Ddump_helper.cpp37 for (auto &[key, handler] : cmdHandler_) { in Dispatch()
38 … dprintf(fd, "\n%-15s: %-20s", handler->GetFormat().c_str(), handler->ShowHelp().c_str()); in Dispatch()
42 auto handler = cmdHandler_.find(args.at(0)); in Dispatch() local
43 if (handler != cmdHandler_.end()) { in Dispatch()
45 bool ret = handler->second->DoAction(args, output); in Dispatch()
/base/telephony/core_service/frameworks/native/src/
Dcore_manager_inner.cpp80 … int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler, int what, int32_t *obj) in RegisterCoreNotify() argument
87 networkSearchManager_->RegisterCoreNotify(slotId, handler, what); in RegisterCoreNotify()
93 simManager_->RegisterCoreNotify(slotId, handler, what); in RegisterCoreNotify()
99 return telRilManager_->RegisterCoreNotify(slotId, handler, what, obj); in RegisterCoreNotify()
186 const std::shared_ptr<AppExecFwk::EventHandler> &handler) const in SetUssd()
197 response->SetOwner(handler); in SetUssd()
202 int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const in GetUssd()
213 response->SetOwner(handler); in GetUssd()
218 int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const in GetMute()
229 response->SetOwner(handler); in GetMute()
[all …]
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_thread_handler.h37 auto handler = std::make_shared<MockThreadHandler>(); in InvokeDirectly() local
38 EXPECT_CALL(*handler, PostTask(_)).Times(AnyNumber()); in InvokeDirectly()
39 ON_CALL(*handler, PostTask).WillByDefault([](const ThreadHandler::Task &f) { in InvokeDirectly()
44 EXPECT_CALL(*handler, EnsureTask).Times(AnyNumber()); in InvokeDirectly()
45 return handler; in InvokeDirectly()
/base/time/time_service/services/dfx/src/
Dtime_cmd_dispatcher.cpp28 for (auto &[key, handler] : cmdHandler) { in Dispatch()
29 … dprintf(fd, "\n%-15s: %-20s", handler->GetFormat().c_str(), handler->ShowHelp().c_str()); in Dispatch()
34 auto handler = cmdHandler.find(cmdTitle); in Dispatch() local
35 if (handler != cmdHandler.end()) { in Dispatch()
36 handler->second->DoAction(fd, args); in Dispatch()
/base/notification/distributed_notification_service/frameworks/core/common/src/
Dans_watchdog.cpp22 void AnsWatchdog::AddHandlerThread(std::shared_ptr<AppExecFwk::EventHandler> handler, in AddHandlerThread() argument
25 if (handler != nullptr && runner != nullptr) { in AddHandlerThread()
26 std::string threadName = handler->GetEventRunner()->GetRunnerThreadName(); in AddHandlerThread()
27 if (Singleton<HiviewDFX::Watchdog>::GetInstance().AddThread(threadName, handler) != 0) { in AddHandlerThread()

12345678