Lines Matching refs:service
36 sp<IActivityManager> service = mService; in getService() local
37 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService()
46 service = nullptr; in getService()
51 service = interface_cast<IActivityManager>(binder); in getService()
52 mService = service; in getService()
55 return service; in getService()
60 sp<IActivityManager> service = getService(); in openContentUri() local
61 return service != nullptr ? service->openContentUri(stringUri) : -1; in openContentUri()
69 sp<IActivityManager> service = getService(); in registerUidObserver() local
70 if (service != nullptr) { in registerUidObserver()
71 service->registerUidObserver(observer, event, cutpoint, callingPackage); in registerUidObserver()
77 sp<IActivityManager> service = getService(); in unregisterUidObserver() local
78 if (service != nullptr) { in unregisterUidObserver()
79 service->unregisterUidObserver(observer); in unregisterUidObserver()
85 sp<IActivityManager> service = getService(); in isUidActive() local
86 if (service != nullptr) { in isUidActive()
87 return service->isUidActive(uid, callingPackage); in isUidActive()
94 sp<IActivityManager> service = getService(); in getUidProcessState() local
95 if (service != nullptr) { in getUidProcessState()
96 return service->getUidProcessState(uid, callingPackage); in getUidProcessState()
102 sp<IActivityManager> service = getService(); in linkToDeath() local
103 if (service != nullptr) { in linkToDeath()
104 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
110 sp<IActivityManager> service = getService(); in unlinkToDeath() local
111 if (service != nullptr) { in unlinkToDeath()
112 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()