/packages/services/Telecomm/src/com/android/server/telecom/ |
D | VideoProviderProxy.java | 312 public void onSetCamera(String cameraId, String callingPackage, int callingUid, in onSetCamera() argument 316 "; callingUid=" + callingUid); in onSetCamera() 319 if (!canUseCamera(mCall.getContext(), callingPackage, callingUid, callingPid)) { in onSetCamera() 324 callingPackage, callingUid, callingPid, targetSdkVersion); in onSetCamera() 558 private boolean canUseCamera(Context context, String callingPackage, int callingUid, in canUseCamera() argument 561 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in canUseCamera() 569 context.enforcePermission(Manifest.permission.CAMERA, callingPid, callingUid, in canUseCamera() 581 callingUid, callingPackage) == AppOpsManager.MODE_ALLOWED; in canUseCamera()
|
D | TelecomServiceImpl.java | 387 final int callingUid = Binder.getCallingUid(); 391 enforceCrossUserPermission(callingUid); 1607 private void enforceCrossUserPermission(int callingUid) { in enforceCrossUserPermission() argument 1608 if (callingUid != Process.SYSTEM_UID && callingUid != 0) { in enforceCrossUserPermission()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | EnabledNfcFServices.java | 110 public boolean registerEnabledForegroundService(ComponentName service, int callingUid) { in registerEnabledForegroundService() argument 129 if (mForegroundUtils.registerUidToBackgroundCallback(this, callingUid)) { in registerEnabledForegroundService() 131 mForegroundUid = callingUid; in registerEnabledForegroundService() 159 public boolean unregisteredEnabledForegroundService(int callingUid) { in unregisteredEnabledForegroundService() argument 162 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredEnabledForegroundService() 163 return unregisterForegroundService(callingUid); in unregisteredEnabledForegroundService()
|
D | PreferredServices.java | 275 public boolean registerPreferredForegroundService(ComponentName service, int callingUid) { in registerPreferredForegroundService() argument 279 if (mForegroundUtils.registerUidToBackgroundCallback(this, callingUid)) { in registerPreferredForegroundService() 281 mForegroundUid = callingUid; in registerPreferredForegroundService() 312 public boolean unregisteredPreferredForegroundService(int callingUid) { in unregisteredPreferredForegroundService() argument 314 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredPreferredForegroundService() 315 return unregisterForegroundService(callingUid); in unregisteredPreferredForegroundService()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallStart.java | 200 final int callingUid; in getOriginatingUid() local 202 callingUid = sourceInfo.uid; in getOriginatingUid() 205 callingUid = getIActivityManager() in getOriginatingUid() 216 callingUid) == PackageManager.PERMISSION_GRANTED) { in getOriginatingUid() 222 if (isSystemDownloadsProvider(callingUid)) { in getOriginatingUid() 226 return callingUid; in getOriginatingUid()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 222 int callingUid = Binder.getCallingUid(); in checkCaller() local 234 ok = (systemUiUid == callingUid) || (Process.SYSTEM_UID == callingUid); in checkCaller() 254 int callingUid = Binder.getCallingUid(); in checkCallerAllowManagedProfiles() local 269 ok = (systemUiUid == callingUid) || (Process.SYSTEM_UID == callingUid); in checkCallerAllowManagedProfiles()
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | UserDictionaryProvider.java | 317 final int callingUid = Binder.getCallingUid(); in canCallerAccessUserDictionary() local 319 if (UserHandle.getAppId(callingUid) == Process.SYSTEM_UID in canCallerAccessUserDictionary() 320 || callingUid == Process.ROOT_UID in canCallerAccessUserDictionary() 321 || callingUid == Process.myUid()) { in canCallerAccessUserDictionary() 332 if (imeInfo.getServiceInfo().applicationInfo.uid == callingUid in canCallerAccessUserDictionary() 342 if (scInfo.getServiceInfo().applicationInfo.uid == callingUid in canCallerAccessUserDictionary()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | AbstractContactsProvider.java | 162 final int callingUid = Binder.getCallingUid(); in incrementStats() local 164 stats.put(callingUid, stats.get(callingUid) + 1); in incrementStats() 165 mAllCallingUids.put(callingUid, true); in incrementStats() 183 final int callingUid = Binder.getCallingUid(); in finishOperation() local 189 mOperationDurationMicroStats.put(callingUid, in finishOperation() 190 mOperationDurationMicroStats.get(callingUid) + duration / 1000L); in finishOperation()
|
D | ContactsDatabaseHelper.java | 4480 int callingUid = Binder.getCallingUid(); in exceptionMessage() local 4482 String userName = pm.getNameForUid(callingUid); in exceptionMessage() 4483 sb.append(userName == null ? callingUid : userName); in exceptionMessage() 4485 final String[] callerPackages = pm.getPackagesForUid(callingUid); in exceptionMessage()
|
D | ContactsProvider2.java | 4265 private void scanPackagesByUid(int callingUid) { in scanPackagesByUid() argument 4267 final String[] callerPackages = pm.getPackagesForUid(callingUid); in scanPackagesByUid()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | SQLiteContentProvider.java | 301 int callingUid = Binder.getCallingUid(); in clearCallingIdentityInternal() local 302 if (uid != callingUid) { in clearCallingIdentityInternal() 304 mOriginalCallingUid.set(callingUid); in clearCallingIdentityInternal() 326 int callingUid = Binder.getCallingUid(); in restoreCallingIdentityInternal() local 327 if (mOriginalCallingUid.get() != null && mOriginalCallingUid.get() == callingUid) { in restoreCallingIdentityInternal()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 126 final int callingUid = getCallingUid(); 127 if (!hasGrantInternal(mDatabaseHelper.getReadableDatabase(), callingUid, alias)) { 128 throw new IllegalStateException("uid " + callingUid
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 1073 jint flag, jint callingUid) { in connectSocketNative() argument 1095 &socket_fd, flag, callingUid); in connectSocketNative() 1110 jint channel, jint flag, jint callingUid) { in createSocketChannelNative() argument 1133 &socket_fd, flag, callingUid); in createSocketChannelNative()
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | InstrumentClusterService.java | 287 int callingUid = Binder.getCallingUid(); in enforcePermission() local 292 + "client {uid: " + callingUid + ", pid: " + callingPid + "}"); in enforcePermission()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | P2pLinkManager.java | 393 public void setNdefCallback(IAppCallback callbackNdef, int callingUid) { in setNdefCallback() argument 396 mNdefCallbackUid = callingUid; in setNdefCallback()
|
D | NfcService.java | 1085 int callingUid = Binder.getCallingUid(); in setReaderMode() local 1086 if (callingUid != Process.SYSTEM_UID && !mForegroundUtils.isInForeground(callingUid)) { in setReaderMode()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 2302 byte[] address, int type, byte[] uuid, int port, int flag, int callingUid); in connectSocketNative() argument 2304 int type, String serviceName, byte[] uuid, int port, int flag, int callingUid); in createSocketChannelNative() argument
|