Lines Matching refs:service

43 static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) {  in getToken()  argument
46 gToken = service->getToken(new BBinder()); in getToken()
65 sp<IAppOpsService> service = mService; in getService() local
66 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService()
75 service = nullptr; in getService()
80 service = interface_cast<IAppOpsService>(binder); in getService()
81 mService = service; in getService()
84 return service; in getService()
90 sp<IAppOpsService> service = getService(); in checkOp() local
91 return service != nullptr in checkOp()
92 ? service->checkOperation(op, uid, callingPackage) in checkOp()
98 sp<IAppOpsService> service = getService(); in checkAudioOpNoThrow() local
99 return service != nullptr in checkAudioOpNoThrow()
100 ? service->checkAudioOperation(op, usage, uid, callingPackage) in checkAudioOpNoThrow()
105 sp<IAppOpsService> service = getService(); in noteOp() local
106 return service != nullptr in noteOp()
107 ? service->noteOperation(op, uid, callingPackage) in noteOp()
113 sp<IAppOpsService> service = getService(); in startOpNoThrow() local
114 return service != nullptr in startOpNoThrow()
115 ? service->startOperation(getToken(service), op, uid, callingPackage, in startOpNoThrow()
120 sp<IAppOpsService> service = getService(); in finishOp() local
121 if (service != nullptr) { in finishOp()
122 service->finishOperation(getToken(service), op, uid, callingPackage); in finishOp()
128 sp<IAppOpsService> service = getService(); in startWatchingMode() local
129 if (service != nullptr) { in startWatchingMode()
130 service->startWatchingMode(op, packageName, callback); in startWatchingMode()
135 sp<IAppOpsService> service = getService(); in stopWatchingMode() local
136 if (service != nullptr) { in stopWatchingMode()
137 service->stopWatchingMode(callback); in stopWatchingMode()
142 sp<IAppOpsService> service = getService(); in permissionToOpCode() local
143 if (service != nullptr) { in permissionToOpCode()
144 return service->permissionToOpCode(permission); in permissionToOpCode()