Lines Matching refs:callback
43 binder::Status SuspendControlService::registerCallback(const sp<ISuspendCallback>& callback, in registerCallback() argument
45 if (!callback) { in registerCallback()
50 sp<IBinder> cb = IInterface::asBinder(callback); in registerCallback()
61 mCallbacks.push_back(callback); in registerCallback()
66 const sp<IWakelockCallback>& callback, const std::string& name, bool* _aidl_return) { in registerWakelockCallback() argument
67 if (!callback || name.empty()) { in registerWakelockCallback()
73 [&callback](const sp<IWakelockCallback>& i) { in registerWakelockCallback()
74 return IInterface::asBinder(callback) == IInterface::asBinder(i); in registerWakelockCallback()
80 if (IInterface::asBinder(callback)->remoteBinder() && in registerWakelockCallback()
81 IInterface::asBinder(callback)->linkToDeath(this) != NO_ERROR) { in registerWakelockCallback()
85 mWakelockCallbacks[name].push_back(callback); in registerWakelockCallback()
128 for (const auto& callback : callbacksCopy) { in notifyWakelock() local
130 callback->notifyAcquired().isOk(); // ignore errors in notifyWakelock()
132 callback->notifyReleased().isOk(); // ignore errors in notifyWakelock()
145 for (const auto& callback : callbacksCopy) { in notifyWakeup() local
146 callback->notifyWakeup(success, wakeupReasons).isOk(); // ignore errors in notifyWakeup()