Lines Matching defs:handler
121 bool ImCommonEventManager::SubscribeWindowManagerService(const Handler &handler)
129 sptr<ISystemAbilityStatusChange> listener = new (std::nothrow) SystemAbilityStatusChangeListener([handler]() {
130 if (handler != nullptr) {
131 handler();
146 bool ImCommonEventManager::SubscribeMemMgrService(const Handler &handler)
153 sptr<ISystemAbilityStatusChange> listener = new (std::nothrow) SystemAbilityStatusChangeListener([handler]() {
154 if (handler != nullptr) {
155 handler();
170 bool ImCommonEventManager::SubscribeAccountManagerService(Handler handler)
177 sptr<ISystemAbilityStatusChange> listener = new (std::nothrow) SystemAbilityStatusChangeListener([handler]() {
178 if (handler != nullptr) {
179 handler();