Home
last modified time | relevance | path

Searched refs:getCallingUid (Results 1 – 25 of 64) sorted by relevance

123

/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java246 EventLog.writeEvent(0x534e4554, "62347125", Binder.getCallingUid(),
320 EventLog.writeEvent(0x534e4554, "62347125", Binder.getCallingUid(),
349 EventLog.writeEvent(0x534e4554, "62347125", Binder.getCallingUid(),
378 EventLog.writeEvent(0x534e4554, "62347125", Binder.getCallingUid(),
405 final int callingUid = Binder.getCallingUid();
430 final int callingUid = Binder.getCallingUid();
490 final int callingUid = Binder.getCallingUid();
770 enforceShellOnly(Binder.getCallingUid(), "setSystemDialer");
876 if (!enforceAnswerCallPermission(callingPackage, Binder.getCallingUid())) {
900 if (!enforceAnswerCallPermission(packageName, Binder.getCallingUid())) return;
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java383 if (!mServiceCache.registerAidGroupForService(userId, Binder.getCallingUid(), service, in registerAidGroupForService()
399 if (!mServiceCache.setOffHostSecureElement(userId, Binder.getCallingUid(), service, in setOffHostForService()
415 if (!mServiceCache.unsetOffHostSecureElement(userId, Binder.getCallingUid(), service)) { in unsetOffHostForService()
431 return mServiceCache.getAidGroupForService(userId, Binder.getCallingUid(), service, in getAidGroupForService()
443 if (!mServiceCache.removeAidGroupForService(userId, Binder.getCallingUid(), service, in removeAidGroupForService()
469 Binder.getCallingUid()); in setPreferredService()
476 Binder.getCallingUid()); in unsetPreferredService()
507 userId, Binder.getCallingUid(), service); in getSystemCodeForService()
520 userId, Binder.getCallingUid(), service, systemCode); in registerSystemCodeForService()
532 userId, Binder.getCallingUid(), service); in removeSystemCodeForService()
[all …]
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DEmbmsTestStreamingService.java79 int packageUid = Binder.getCallingUid();
106 new FrontendAppIdentifier(Binder.getCallingUid(), subscriptionId);
127 new FrontendAppIdentifier(Binder.getCallingUid(), subscriptionId);
146 new FrontendAppIdentifier(Binder.getCallingUid(), subscriptionId);
160 new FrontendAppIdentifier(Binder.getCallingUid(), subscriptionId);
172 new FrontendAppIdentifier(Binder.getCallingUid(), subscriptionId);
175 Log.i(TAG, "Disposing app with uid " + Binder.getCallingUid());
DEmbmsSampleDownloadService.java74 int packageUid = Binder.getCallingUid();
108 new FrontendAppIdentifier(Binder.getCallingUid(), subscriptionId);
126 new FrontendAppIdentifier(Binder.getCallingUid(), subscriptionId);
139 Binder.getCallingUid(), downloadRequest.getSubscriptionId());
163 Binder.getCallingUid(), downloadRequest.getSubscriptionId());
/packages/modules/NetworkStack/src/com/android/server/util/
DPermissionUtil.java20 import static android.os.Binder.getCallingUid;
38 final int caller = getCallingUid(); in enforceNetworkStackCallingPermission()
75 final int caller = getCallingUid(); in checkDumpPermission()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java1757 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber()
1944 .checkPackage(Binder.getCallingUid(), callingPackage); in updateServiceLocationWithPackageName()
1958 .setCallingUid(Binder.getCallingUid()) in updateServiceLocationWithPackageName()
1972 WorkSource workSource = getWorkSource(Binder.getCallingUid()); in updateServiceLocationWithPackageName()
2295 .checkPackage(Binder.getCallingUid(), callingPackage); in getCellLocation()
2303 .setCallingUid(Binder.getCallingUid()) in getCellLocation()
2316 WorkSource workSource = getWorkSource(Binder.getCallingUid()); in getCellLocation()
2388 packageName, 0, UserHandle.getUserHandleForUid(Binder.getCallingUid())); in getTargetSdk()
2392 + packageName + ", uid=" + Binder.getCallingUid()); in getTargetSdk()
2407 if (mAppOps.noteOp(AppOpsManager.OPSTR_NEIGHBORING_CELLS, Binder.getCallingUid(), in getNeighboringCellInfo()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java156 final int callingUid = Binder.getCallingUid(); in insert()
177 final int callingUid = Binder.getCallingUid(); in delete()
198 final int callingUid = Binder.getCallingUid(); in update()
219 final int callingUid = Binder.getCallingUid(); in bulkInsert()
251 final int callingUid = Binder.getCallingUid(); in applyBatch()
DCallLogProvider.java268 final int callingUid = Binder.getCallingUid(); in applyBatch()
283 final int callingUid = Binder.getCallingUid(); in bulkInsert()
300 final int callingUid = Binder.getCallingUid(); in query()
444 applyingBatch() ? mCallingUid.get() : Binder.getCallingUid(); in insert()
457 applyingBatch() ? mCallingUid.get() : Binder.getCallingUid(); in update()
470 applyingBatch() ? mCallingUid.get() : Binder.getCallingUid(); in delete()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java144 final int uid = mInjector.getCallingUid();
321 final int callingUid = mInjector.getCallingUid();
550 return UserHandle.isSameApp(mInjector.getCallingUid(), Process.SYSTEM_UID);
554 return getPackageManager().getNameForUid(mInjector.getCallingUid());
707 public int getCallingUid() { in getCallingUid() method in KeyChainService.Injector
708 return Binder.getCallingUid(); in getCallingUid()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipSettings.java96 int profileUid = mProfile.getCallingUid(); in updateSummary()
230 if (mUid == p.getCallingUid()) { in retrieveSipLists()
253 profile.setCallingUid(activeProfile.getCallingUid()); in processActiveProfilesFromSipService()
285 int uid = profile.getCallingUid(); in handleProfileClick()
/packages/services/Car/service/src/com/android/car/
DVmsPublisherService.java66 this(context, statsService, brokerService, clientManager, Binder::getCallingUid); in VmsPublisherService()
75 IntSupplier getCallingUid) { in VmsPublisherService() argument
80 mGetCallingUid = getCallingUid; in VmsPublisherService()
DCarProjectionService.java226 UserHandle userHandle = UserHandle.getUserHandleForUid(Binder.getCallingUid()); in bindToService()
344 + " from uid " + Binder.getCallingUid()); in requestBluetoothProfileInhibit()
377 + " from uid " + Binder.getCallingUid()); in releaseBluetoothProfileInhibit()
403 final int callingUid = Binder.getCallingUid(); in updateProjectionStatus()
DAppFocusService.java72 info = new ClientInfo(mAllChangeClients, listener, Binder.getCallingUid(), in registerFocusListener()
121 Binder.getCallingUid(), Binder.getCallingPid()); in requestAppFocus()
/packages/services/Car/car-lib/src/com/android/car/internal/
DCarPermission.java42 if (Binder.getCallingUid() != Process.myUid()) { in checkGranted()
59 + Binder.getCallingUid()); in assertGranted()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBluetoothSocketManagerBinder.java54 Binder.getCallingUid())); in connectSocket()
69 Binder.getCallingUid())); in createSocketChannel()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java336 int callingUid = Binder.getCallingUid(); in checkCaller()
347 int callingUid = Binder.getCallingUid(); in checkCallerAllowManagedProfiles()
500 return appOps.noteOp(op, Binder.getCallingUid(), callingPackage) in isAppOppAllowed()
554 return "uid/pid=" + Binder.getCallingUid() + "/" + Binder.getCallingPid(); in getUidPidString()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java724 Preconditions.checkArgument(Binder.getCallingUid() == Process.myUid(), in call()
750 Preconditions.checkArgument(Binder.getCallingUid() == Process.myUid(), in call()
873 int uid = Binder.getCallingUid(); in insert()
897 filteredValues.put(Constants.UID, Binder.getCallingUid()); in insert()
898 if (Binder.getCallingUid() == 0) { in insert()
972 Binder.getCallingUid()); in insert()
1177 Binder.getCallingUid(), getCallingPackage()) == AppOpsManager.MODE_ALLOWED; in checkDownloadedFilePath()
1655 appendWhereExpression(where, Constants.UID + "=" + Binder.getCallingUid() in getQueryBuilder()
1656 + " OR " + COLUMN_OTHER_UID + "=" + Binder.getCallingUid()); in getQueryBuilder()
1812 "No file found for " + uri + " as UID " + Binder.getCallingUid()); in openFile()
[all …]
/packages/services/Car/evs/manager/
DEnumerator.cpp43 if (AID_AUTOMOTIVE_EVS != ipc->getCallingUid()) { in checkPermission()
44 ALOGE("EVS access denied: pid = %d, uid = %d", ipc->getCallingPid(), ipc->getCallingUid()); in checkPermission()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDeviceService.java502 int callingUid = Binder.getCallingUid(); in checkCallingUid()
519 int callingUid = Binder.getCallingUid(); in registerApp()
565 int callingUid = Binder.getCallingUid(); in unregisterApp()
641 int callingUid = Binder.getCallingUid(); in disconnect()
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java148 new Handler(Looper.getMainLooper()), Binder::getCallingUid); in VmsClientManager()
154 VmsHalService halService, Handler handler, IntSupplier getCallingUid) { in VmsClientManager() argument
163 mGetCallingUid = getCallingUid; in VmsClientManager()
/packages/services/Car/evs/sampleDriver/
DEvsEnumerator.cpp51 if (AID_AUTOMOTIVE_EVS != ipc->getCallingUid()) { in checkPermission()
52 ALOGE("EVS access denied: pid = %d, uid = %d", ipc->getCallingPid(), ipc->getCallingUid()); in checkPermission()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java301 int callingUid = Binder.getCallingUid(); in clearCallingIdentityInternal()
326 int callingUid = Binder.getCallingUid(); in restoreCallingIdentityInternal()
/packages/apps/SecureElement/src/com/android/se/
DSecureElementService.java317 String packageName = getPackageNameFromCallingUid(Binder.getCallingUid()); in openBasicChannel()
359 String packageName = getPackageNameFromCallingUid(Binder.getCallingUid()); in openLogicalChannel()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java125 getContext(), getCallingPackage(), Binder.getCallingUid()); in query()
512 final int callerUid = Binder.getCallingUid(); in bulkInsert()
537 final int callerUid = Binder.getCallingUid(); in insert()
1036 final int callerUid = Binder.getCallingUid(); in update()
/packages/services/Car/procfs-inspector/server/
Dserver.cpp24 uid_t uid = IPCThreadState::self()->getCallingUid(); in isSystemUser()

123