Home
last modified time | relevance | path

Searched refs:callbacks_ (Results 1 – 14 of 14) sorted by relevance

/base/notification/distributed_notification_service/services/ans/src/
Dsystem_event_observer.cpp27 SystemEventObserver::SystemEventObserver(const ISystemEvent &callbacks) : callbacks_(callbacks) in SystemEventObserver()
69 if (callbacks_.onBundleRemoved != nullptr) { in OnReceiveEvent()
72 callbacks_.onBundleRemoved(bundleOption); in OnReceiveEvent()
77 if (callbacks_.onScreenOn != nullptr) { in OnReceiveEvent()
78 callbacks_.onScreenOn(); in OnReceiveEvent()
81 if (callbacks_.onScreenOff != nullptr) { in OnReceiveEvent()
82 callbacks_.onScreenOff(); in OnReceiveEvent()
93 if (callbacks_.onResourceRemove != nullptr) { in OnReceiveEvent()
94 callbacks_.onResourceRemove(userId); in OnReceiveEvent()
97 if (callbacks_.onBundleDataCleared != nullptr) { in OnReceiveEvent()
[all …]
/base/powermgr/power_manager/services/native/src/
Dshutdown_service.cpp147 auto retIt = callbacks_.insert(object); in AddCallback()
152 callbacks_.size(), retIt.second); in AddCallback()
160 auto it = find(callbacks_.begin(), callbacks_.end(), object); in RemoveCallback()
161 if (it != callbacks_.end()) { in RemoveCallback()
162 callbacks_.erase(it); in RemoveCallback()
165 POWER_HILOGD(FEATURE_SHUTDOWN, "callbacks.size = %{public}zu", callbacks_.size()); in RemoveCallback()
178 for (auto &obj : callbacks_) { in WaitingCallback()
Dpower_mode_module.cpp135 auto retIt = callbacks_.insert(object); in AddCallback()
140 callbacks_.size(), retIt.second); in AddCallback()
148 auto it = find(callbacks_.begin(), callbacks_.end(), object); in RemoveCallback()
149 if (it != callbacks_.end()) { in RemoveCallback()
150 callbacks_.erase(it); in RemoveCallback()
153 POWER_HILOGD(FEATURE_POWER_MODE, "callbacks.size = %{public}zu,", callbacks_.size()); in RemoveCallback()
167 for (auto& obj: callbacks_) { in WaitingCallback()
/base/msdp/device_status/libs/src/
Ddevicestatus_msdp_mock.cpp136 callbacks_.insert(std::make_pair(timerFd_, &DeviceStatusMsdpMock::TimerCallback)); in InitTimer()
228 if (callbacks_.empty()) { in LoopingThreadEntry()
232 size_t cbct = callbacks_.size(); in LoopingThreadEntry()
242 (callbacks_.find(events[n].data.fd)->second)(func); in LoopingThreadEntry()
Ddevicestatus_msdp_rdb.cpp234 callbacks_.insert(std::make_pair(timerFd_, &DevicestatusMsdpRdb::TimerCallback)); in InitTimer()
314 size_t cbct = callbacks_.size(); in LoopingThreadEntry()
327 (callbacks_.find(events[n].data.fd)->second)(func); in LoopingThreadEntry()
Ddevicestatus_sensor_rdb.cpp252 callbacks_.insert(std::make_pair(timerFd_, &DevicestatusSensorRdb::TimerCallback)); in InitTimer()
332 size_t cbct = callbacks_.size(); in LoopingThreadEntry()
345 (callbacks_.find(events[n].data.fd)->second)(func); in LoopingThreadEntry()
/base/notification/distributed_notification_service/services/ans/include/
Dsystem_event_observer.h49 ISystemEvent callbacks_; variable
/base/security/access_token/services/tokensyncmanager/src/remote/
Dsoft_bus_channel.cpp44 : deviceId_(deviceId), mutex_(), callbacks_(), responseResult_(""), loadedCond_() in SoftBusChannel()
157 callbacks_.insert(std::pair<std::string, std::function<void(std::string)>>(uuid, callback)); in ExecuteCommand()
168 callbacks_.erase(uuid); in ExecuteCommand()
176 callbacks_.erase(uuid); in ExecuteCommand()
397 auto callback = callbacks_.find(id); in HandleResponse()
398 if (callback != callbacks_.end()) { in HandleResponse()
400 callbacks_.erase(callback); in HandleResponse()
/base/powermgr/power_manager/services/native/include/
Dpower_mode_module.h56 std::set<sptr<IRemoteObject>> callbacks_; variable
Dshutdown_service.h58 std::set<sptr<IRemoteObject>> callbacks_; variable
/base/msdp/device_status/libs/include/
Ddevicestatus_msdp_mock.h68 std::map<int32_t, Callback> callbacks_; variable
Ddevicestatus_msdp_rdb.h73 std::map<int32_t, Callback> callbacks_; variable
Ddevicestatus_sensor_rdb.h75 std::map<int32_t, Callback> callbacks_; variable
/base/security/access_token/services/tokensyncmanager/include/remote/
Dsoft_bus_channel.h281 std::map<std::string, std::function<void(std::string)>> callbacks_; variable