Home
last modified time | relevance | path

Searched refs:callingUid (Results 1 – 17 of 17) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java312 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()
DTelecomServiceImpl.java344 final int callingUid = Binder.getCallingUid();
348 enforceCrossUserPermission(callingUid);
1530 private void enforceCrossUserPermission(int callingUid) { in enforceCrossUserPermission() argument
1531 if (callingUid != Process.SYSTEM_UID && callingUid != 0) { in enforceCrossUserPermission()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java110 public boolean registerEnabledForegroundService(ComponentName service, int callingUid) { in registerEnabledForegroundService() argument
128 if (mForegroundUtils.registerUidToBackgroundCallback(this, callingUid)) { in registerEnabledForegroundService()
130 mForegroundUid = callingUid; in registerEnabledForegroundService()
158 public boolean unregisteredEnabledForegroundService(int callingUid) { in unregisteredEnabledForegroundService() argument
161 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredEnabledForegroundService()
162 return unregisterForegroundService(callingUid); in unregisteredEnabledForegroundService()
DPreferredServices.java275 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/
DInstallStart.java192 final int callingUid; in getOriginatingUid() local
194 callingUid = sourceInfo.uid; in getOriginatingUid()
197 callingUid = getIActivityManager() in getOriginatingUid()
208 callingUid) == PackageManager.PERMISSION_GRANTED) { in getOriginatingUid()
214 if (isSystemDownloadsProvider(callingUid)) { in getOriginatingUid()
218 return callingUid; in getOriginatingUid()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java222 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/
DUserDictionaryProvider.java313 final int callingUid = Binder.getCallingUid(); in canCallerAccessUserDictionary() local
315 if (UserHandle.getAppId(callingUid) == Process.SYSTEM_UID in canCallerAccessUserDictionary()
316 || callingUid == Process.ROOT_UID in canCallerAccessUserDictionary()
317 || callingUid == Process.myUid()) { in canCallerAccessUserDictionary()
328 if (imeInfo.getServiceInfo().applicationInfo.uid == callingUid in canCallerAccessUserDictionary()
338 if (scInfo.getServiceInfo().applicationInfo.uid == callingUid in canCallerAccessUserDictionary()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java162 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()
DContactsDatabaseHelper.java4472 int callingUid = Binder.getCallingUid(); in exceptionMessage() local
4474 String userName = pm.getNameForUid(callingUid); in exceptionMessage()
4475 sb.append(userName == null ? callingUid : userName); in exceptionMessage()
4477 final String[] callerPackages = pm.getPackagesForUid(callingUid); in exceptionMessage()
DContactsProvider2.java4266 private void scanPackagesByUid(int callingUid) { in scanPackagesByUid() argument
4268 final String[] callerPackages = pm.getPackagesForUid(callingUid); in scanPackagesByUid()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java301 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/
DKeyChainService.java137 final int callingUid = getCallingUid();
138 if (!hasGrantInternal(mDatabaseHelper.getReadableDatabase(), callingUid, alias)) {
139 throw new IllegalStateException("uid " + callingUid
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp1074 jint flag, jint callingUid) { in connectSocketNative() argument
1096 &socket_fd, flag, callingUid); in connectSocketNative()
1111 jint channel, jint flag, jint callingUid) { in createSocketChannelNative() argument
1134 &socket_fd, flag, callingUid); in createSocketChannelNative()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java318 public void setNdefCallback(IAppCallback callbackNdef, int callingUid) { in setNdefCallback() argument
321 mNdefCallbackUid = callingUid; in setNdefCallback()
DNfcService.java1027 int callingUid = Binder.getCallingUid(); in setReaderMode() local
1028 if (callingUid != Process.SYSTEM_UID && !mForegroundUtils.isInForeground(callingUid)) { in setReaderMode()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java1107 int callingUid = Binder.getCallingUid(); in shouldRestrictVisibility() local
1109 callingUid != mSystemUid && in shouldRestrictVisibility()
1110 callingUid != mDefContainerUid; in shouldRestrictVisibility()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java2262 byte[] address, int type, byte[] uuid, int port, int flag, int callingUid); in connectSocketNative() argument
2264 int type, String serviceName, byte[] uuid, int port, int flag, int callingUid); in createSocketChannelNative() argument