Home
last modified time | relevance | path

Searched refs:handler_ (Results 1 – 25 of 84) sorted by relevance

1234

/base/telephony/core_service/services/satellite_service_interaction/src/
Dsatellite_core_callback.cpp24 …back::SatelliteCoreCallback(const std::shared_ptr<TelEventHandler> &handler) : handler_(handler) {} in SatelliteCoreCallback()
30 if (handler_ == nullptr) { in SetRadioStateResponse()
34 handler_->SendEvent(event, 0, AppExecFwk::EventQueue::Priority::IMMEDIATE); in SetRadioStateResponse()
40 if (handler_ == nullptr) { in RadioStateChanged()
44 handler_->SendEvent(event, 0, AppExecFwk::EventQueue::Priority::IMMEDIATE); in RadioStateChanged()
50 if (handler_ == nullptr) { in SatelliteStatusChanged()
54 handler_->SendEvent(event, 0, AppExecFwk::EventQueue::Priority::IMMEDIATE); in SatelliteStatusChanged()
60 if (handler_ == nullptr) { in SimStateChanged()
64 handler_->SendEvent(event, 0, AppExecFwk::EventQueue::Priority::IMMEDIATE); in SimStateChanged()
/base/telephony/sms_mms/services/sms/satellite_service_interaction/src/
Dsatellite_sms_callback.cpp24 …lback::SatelliteSmsCallback(const std::shared_ptr<TelEventHandler> &handler) : handler_(handler) {} in SatelliteSmsCallback()
30 if (handler_ == nullptr) { in SendSmsResponse()
34 handler_->SendEvent(event, 0, AppExecFwk::EventQueue::Priority::IMMEDIATE); in SendSmsResponse()
40 if (handler_ == nullptr) { in SmsStatusReportNotify()
44 handler_->SendEvent(event, 0, AppExecFwk::EventQueue::Priority::IMMEDIATE); in SmsStatusReportNotify()
50 if (handler_ == nullptr) { in NewSmsNotify()
55 handler_->SendEvent(event, 0, AppExecFwk::EventQueue::Priority::IMMEDIATE); in NewSmsNotify()
/base/update/updater/services/hdi/client/
Dupdate_hdi_client.cpp63 handler_ = dlopen(HDI_LIB_NAME, RTLD_LAZY); in LoadLibrary()
64 if (handler_ == nullptr) { in LoadLibrary()
69 auto getInterface = reinterpret_cast<IUpdateInterface *(*)()>(dlsym(handler_, getInstance)); in LoadLibrary()
88 if (handler_ == nullptr) { in CloseLibrary()
93 dlclose(handler_); in CloseLibrary()
94 handler_ = nullptr; in CloseLibrary()
Dupdate_hdi_client.h35 void *handler_ = nullptr; variable
/base/hiviewdfx/hicollie/frameworks/native/
Dhandler_checker.cpp24 if (!isCompleted_ || handler_ == nullptr) { in ScheduleCheck()
31 … if (!handler_->PostTask(fb, "IpcCheck Task", 0, AppExecFwk::EventQueue::Priority::IMMEDIATE)) { in ScheduleCheck()
41 …if (!handler_->PostTask(f, "XCollie Watchdog Task", 0, AppExecFwk::EventQueue::Priority::IMMEDIATE… in ScheduleCheck()
64 if (handler_ != nullptr) { in GetDumpInfo()
66 handler_->Dump(handlerDumper); in GetDumpInfo()
75 return handler_; in GetHandler()
Dhandler_checker.h36 : name_(name), handler_(handler) {}; in HandlerChecker()
47 std::shared_ptr<AppExecFwk::EventHandler> handler_; variable
/base/inputmethod/imf/services/adapter/system_language_observer/src/
Dsystem_language_observer.cpp22 SystemLanguageObserver::ChangeHandler SystemLanguageObserver::handler_; member in OHOS::MiscServices::SystemLanguageObserver
31 handler_ = std::move(handler); in Watch()
43 if (handler_ != nullptr) { in OnChange()
44 handler_(); in OnChange()
/base/telephony/call_manager/services/call/call_state_observer/src/
Dwired_headset.cpp55 WiredHeadset::WiredHeadset() : eventLoop_(nullptr), handler_(nullptr) {} in WiredHeadset()
73 if (handler_ != nullptr) { in NewCallCreated()
74 handler_->SendEvent(WiredHeadset::MEDIA_SET_ACTIVE_MSG); in NewCallCreated()
80 if (handler_ != nullptr) { in CallDestroyed()
81 handler_->SendEvent(WiredHeadset::MEDIA_SET_LEAVE_MSG); in CallDestroyed()
Dcall_records_handler.cpp129 CallRecordsHandlerService::CallRecordsHandlerService() : handler_(nullptr) {} in CallRecordsHandlerService()
135 handler_ = std::make_shared<CallRecordsHandler>(); in Start()
141 if (handler_.get() == nullptr) { in StoreCallRecord()
145 ffrt::submit([=]() { handler_->AddCallLogInfo(info); }); in StoreCallRecord()
175 if (handler_.get() == nullptr) { in QueryUnReadMissedCallLog()
179 ffrt::submit([=]() { handler_->QueryAndNotifyUnReadMissedCall(); }); in QueryUnReadMissedCallLog()
/base/theme/screenlock_mgr/frameworks/js/napi/src/
Dscreenlock_system_ability_callback.cpp30 std::shared_ptr<AppExecFwk::EventHandler> ScreenlockSystemAbilityCallback::handler_{ nullptr };
42 if (handler_ == nullptr) { in OnCallBack()
68 handler_->PostTask(task, "ScreenlockSystemAbilityCallback"); in OnCallBack()
74 if (handler_ == nullptr) { in GetEventHandler()
75 handler_ = AppExecFwk::EventHandler::Current(); in GetEventHandler()
77 return handler_; in GetEventHandler()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
Dinput_death_recipient.cpp24 handler_ = std::move(handler); in SetDeathRecipient()
30 if (handler_ != nullptr) { in OnRemoteDied()
31 handler_(remote); in OnRemoteDied()
/base/notification/common_event_service/frameworks/core/src/
Dcommon_event_listener.cpp53 handler_->PostTask(onReceiveEventFunc, "CommonEvent" + commonEventData.GetWant().GetAction()); in NotifyEvent()
82 if (handler_ == nullptr) { in Init()
83 handler_ = std::make_shared<EventHandler>(runner_); in Init()
84 if (!handler_) { in Init()
109 if (handler_ == nullptr) { in IsReady()
153 if (handler_) { in Stop()
154 handler_.reset(); in Stop()
/base/hiviewdfx/hiview/base/include/
Dpipeline.h32 : Event(sender), handler_(handler), startDeliver_(false), pipelineName_("") in PipelineEvent()
37 …PipelineEvent(const Event& event) : Event(event), handler_(nullptr), startDeliver_(false), pipelin… in PipelineEvent()
46 handler_(obj.handler_), in PipelineEvent()
60 handler_ = obj.handler_;
103 PipelineEventProducer* handler_;
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_freeze_test.cpp83 static std::shared_ptr<EventHandler> handler_; member in __anon236b45fe0111::CommonEventFreezeTest
91 handler_ = std::make_shared<EventHandler>(EventRunner::Create()); in SubscriberTest()
119 handler_->PostTask(asyncProcessFunc); in ProcessSubscriberTestCase1()
134 std::shared_ptr<EventHandler> handler_; member in __anon236b45fe0111::SubscriberTest
141 handler_ = std::make_shared<EventHandler>(EventRunner::Create()); in SubscriberTest2()
174 handler_->PostTask(asyncProcessFunc); in ProcessSubscriberTest2Case1()
189 std::shared_ptr<EventHandler> handler_; member in __anon236b45fe0111::SubscriberTest2
196 handler_ = std::make_shared<EventHandler>(EventRunner::Create()); in SubscriberTestLast()
201 handler_ = std::make_shared<EventHandler>(EventRunner::Create()); in SubscriberTestLast()
237 handler_->PostTask(asyncProcessFunc); in ProcessSubscriberTestLastCase1()
[all …]
/base/telephony/sms_mms/services/sms/
Dsms_broadcast_subscriber_receiver.cpp31 handler_ = handler; in SmsBroadcastSubscriberReceiver()
44 if (handler_ == nullptr) { in OnReceiveEvent()
52 handler_->DeleteMessageFormDb(refId_, dataBaseId_); in OnReceiveEvent()
/base/notification/common_event_service/frameworks/core/test/unittest/
Dcommon_event_listener_test.cpp73 …commonEventListener.handler_ = std::make_shared< OHOS::AppExecFwk::EventHandler>(commonEventListen…
88 commonEventListener.handler_ = nullptr;
104 commonEventListener->handler_ = nullptr;
121 …commonEventListener->handler_ = std::make_shared< OHOS::AppExecFwk::EventHandler>(commonEventListe…
/base/telephony/core_service/services/tel_ril/src/
Dtel_ril_base.cpp25 std::shared_ptr<TelRilHandler> TelRilBase::handler_; member in OHOS::Telephony::TelRilBase
31 handler_ = handler; in TelRilBase()
46 if (handler_ != nullptr) { in CreateTelRilRequest()
47 handler_->ApplyRunningLock(TelRilHandler::NORMAL_RUNNING_LOCK); in CreateTelRilRequest()
72 if (handler_ != nullptr) { in FindTelRilRequest()
73 handler_->ReduceRunningLock(TelRilHandler::NORMAL_RUNNING_LOCK); in FindTelRilRequest()
/base/customization/enterprise_device_management/framework/extension/src/
Djs_enterprise_admin_extension.cpp112 handler_->PostTask(task); in OnStart()
148 handler_->PostTask(task); in OnAdminEnabled()
157 handler_->PostTask(task); in OnAdminDisabled()
168 handler_->PostTask(task); in OnBundleAdded()
179 handler_->PostTask(task); in OnBundleRemoved()
190 handler_->PostTask(task); in OnAppStart()
201 handler_->PostTask(task); in OnAppStop()
212 handler_->PostTask(task); in OnSystemUpdate()
/base/hiviewdfx/hiview/base/
Dpipeline.cpp58 if (handler_ != nullptr) { in OnContinue()
59 handler_->PauseDispatch(plugin); in OnContinue()
89 if (handler_ != nullptr) { in OnFinish()
90 handler_->Recycle(this); in OnFinish()
/base/telephony/cellular_data/services/src/
Dcellular_data_controller.cpp327 : slotId_(slotId), handler_(handler) in SystemAbilityStatusChangeListener()
336 if (handler_ != nullptr) { in OnAddSystemAbility()
337 handler_->ClearAllConnections(DisConnectionReason::REASON_RETRY_CONNECTION); in OnAddSystemAbility()
351 if (handler_ != nullptr) { in OnAddSystemAbility()
352 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(handler_); in OnAddSystemAbility()
358 if (handler_ != nullptr) { in OnAddSystemAbility()
359 handler_->RegisterDataSettingObserver(); in OnAddSystemAbility()
380 if (handler_ != nullptr) { in OnRemoveSystemAbility()
381 … bool unSubscribeResult = EventFwk::CommonEventManager::UnSubscribeCommonEvent(handler_); in OnRemoveSystemAbility()
/base/print/print_fwk/frameworks/kits/extension/src/
Djs_print_extension_connection.cpp43 if (handler_ == nullptr) { in OnAbilityConnectDone()
56 handler_->PostTask(task, "OnAbilityConnectDone"); in OnAbilityConnectDone()
94 if (handler_ == nullptr) { in OnAbilityDisconnectDone()
107 handler_->PostTask(task, "OnAbilityDisconnectDone"); in OnAbilityDisconnectDone()
/base/location/services/location_locator/locator/source/
Dlocator_event_manager.cpp53 handler_ = std::make_shared<DftHandler>(AppExecFwk::EventRunner::Create(true)); in LocatorDftManager()
60 if (handler_ != nullptr) { in Init()
61 handler_->SendHighPriorityEvent(EVENT_SEND_DAILY_REPORT, 0, DAILY_INTERVAL); in Init()
/base/inputmethod/imf/services/adapter/system_language_observer/include/
Dsystem_language_observer.h34 static ChangeHandler handler_; variable
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
Dapp_event_observer_mgr.cpp123 handler_ = std::make_shared<AppEventHandler>(runner); in CreateEventHandler()
124 handler_->SendEvent(AppEventType::WATCHER_TIMEOUT, 0, TIMEOUT_INTERVAL); in CreateEventHandler()
147 handler_= nullptr; in DestroyEventHandler()
273 if (handler_ == nullptr) { in HandleTimeout()
277 handler_->SendEvent(AppEventType::WATCHER_TIMEOUT, 0, TIMEOUT_INTERVAL); in HandleTimeout()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
Dinput_death_recipient.h32 RemoteDiedHandler handler_{ nullptr };

1234