/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | BordeauxSessionManager.java | 103 public SessionKey getSessionKey(String callingUid, Class learnerClass, String name) { in getSessionKey() argument 105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName(); in getSessionKey() 189 public void removeAllSessionsFromCaller(String callingUid) { in removeAllSessionsFromCaller() argument 193 if (session.getKey().startsWith(callingUid + "#")) { in removeAllSessionsFromCaller() 202 int nDeleted = mSessionStorage.removeSessions(callingUid + "#%"); in removeAllSessionsFromCaller()
|
/frameworks/base/services/java/com/android/server/print/ |
D | PrintManagerService.java | 568 final int callingUid = Binder.getCallingUid(); in resolveCallingAppEnforcingPermissions() local 569 if (callingUid == 0 || callingUid == Process.SYSTEM_UID in resolveCallingAppEnforcingPermissions() 570 || callingUid == Process.SHELL_UID) { in resolveCallingAppEnforcingPermissions() 573 final int callingAppId = UserHandle.getAppId(callingUid); in resolveCallingAppEnforcingPermissions() 588 final int callingUid = Binder.getCallingUid(); in resolveCallingUserEnforcingPermissions() local 589 if (callingUid == 0 || callingUid == Process.SYSTEM_UID in resolveCallingUserEnforcingPermissions() 590 || callingUid == Process.SHELL_UID) { in resolveCallingUserEnforcingPermissions() 593 final int callingUserId = UserHandle.getUserId(callingUid); in resolveCallingUserEnforcingPermissions()
|
/frameworks/base/services/java/com/android/server/ |
D | AppWidgetServiceImpl.java | 123 boolean uidMatches(int callingUid) { in uidMatches() argument 124 if (UserHandle.getAppId(callingUid) == Process.myUid()) { in uidMatches() 126 return UserHandle.isSameApp(this.uid, callingUid); in uidMatches() 128 return this.uid == callingUid; in uidMatches() 446 int callingUid = enforceSystemOrCallingUid(packageName); in allocateAppWidgetId() local 454 Host host = lookupOrAddHostLocked(callingUid, packageName, hostId); in allocateAppWidgetId() 490 int callingUid = Binder.getCallingUid(); in deleteHost() local 491 Host host = lookupHostLocked(callingUid, hostId); in deleteHost() 505 int callingUid = Binder.getCallingUid(); in deleteAllHosts() local 510 if (host.uidMatches(callingUid)) { in deleteAllHosts() [all …]
|
D | ClipboardService.java | 159 final int callingUid = Binder.getCallingUid(); in setPrimaryClip() local 160 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_CLIPBOARD, callingUid, in setPrimaryClip() 164 checkDataOwnerLocked(clip, callingUid); in setPrimaryClip()
|
D | MountService.java | 248 public ObbState(String rawPath, String canonicalPath, int callingUid, in ObbState() argument 253 final int userId = UserHandle.getUserId(callingUid); in ObbState() 257 this.ownerGid = UserHandle.getSharedAppGid(callingUid); in ObbState() 1982 final int callingUid = Binder.getCallingUid(); in mountObb() local 1983 final ObbState obbState = new ObbState(rawPath, canonicalPath, callingUid, token, nonce); in mountObb() 1984 final ObbAction action = new MountObbAction(obbState, key, callingUid); in mountObb() 2002 final int callingUid = Binder.getCallingUid(); in unmountObb() local 2004 rawPath, existingState.canonicalPath, callingUid, token, nonce); in unmountObb() 2545 MountObbAction(ObbState obbState, String key, int callingUid) { in MountObbAction() argument 2548 mCallingUid = callingUid; in MountObbAction()
|
D | DeviceStorageMonitorService.java | 417 int callingUid = getCallingUid(); in updateMemory() local 418 if(callingUid != Process.SYSTEM_UID) { in updateMemory()
|
D | DevicePolicyManagerService.java | 687 final int callingUid = Binder.getCallingUid(); in getActiveAdminForCallerLocked() local 688 final int userHandle = UserHandle.getUserId(callingUid); in getActiveAdminForCallerLocked() 695 if (admin.getUid() != callingUid) { in getActiveAdminForCallerLocked() 709 if (admin.getUid() == callingUid && admin.info.usesPolicy(reqPolicy)) { in getActiveAdminForCallerLocked() 1954 int callingUid = Binder.getCallingUid(); in resetPassword() local 1956 if (policy.mPasswordOwner >= 0 && policy.mPasswordOwner != callingUid) { in resetPassword() 1969 != 0 ? callingUid : -1; in resetPassword() 2783 final int callingUid = Binder.getCallingUid(); in enforceCrossUserPermission() local 2784 if (userHandle == UserHandle.getUserId(callingUid)) return; in enforceCrossUserPermission() 2785 if (callingUid != Process.SYSTEM_UID && callingUid != 0) { in enforceCrossUserPermission()
|
D | LockSettingsService.java | 165 final int callingUid = Binder.getCallingUid(); in checkReadPermission() local 170 throw new SecurityException("uid=" + callingUid in checkReadPermission()
|
D | WallpaperManagerService.java | 708 int callingUid = Binder.getCallingUid(); in getWallpaper() local 710 if (callingUid == android.os.Process.SYSTEM_UID) { in getWallpaper() 713 wallpaperUserId = UserHandle.getUserId(callingUid); in getWallpaper()
|
D | NotificationManagerService.java | 1645 public void enqueueNotificationInternal(final String pkg, String basePkg, final int callingUid, in enqueueNotificationInternal() argument 1653 final boolean isSystemNotification = isUidSystem(callingUid) || ("android".equals(pkg)); in enqueueNotificationInternal() 1656 callingUid, incomingUserId, true, false, "enqueueNotification", pkg); in enqueueNotificationInternal() 1744 if (ENABLE_BLOCKED_NOTIFICATIONS && !noteNotificationOp(pkg, callingUid)) { in enqueueNotificationInternal() 1766 pkg, id, tag, callingUid, callingPid, score, notification, user); in enqueueNotificationInternal()
|
D | BluetoothManagerService.java | 1105 int callingUid = Binder.getCallingUid(); in checkIfCallerIsForegroundUser() local 1107 int callingAppId = UserHandle.getAppId(callingUid); in checkIfCallerIsForegroundUser()
|
/frameworks/base/core/java/android/app/ |
D | UiAutomationConnection.java | 241 final int callingUid = Binder.getCallingUid(); in throwIfCalledByNotTrustedUidLocked() local 242 if (callingUid != mOwningUid && mOwningUid != Process.SYSTEM_UID in throwIfCalledByNotTrustedUidLocked() 243 && callingUid != 0 /*root*/) { in throwIfCalledByNotTrustedUidLocked()
|
D | ActivityManager.java | 2183 public static int handleIncomingUser(int callingPid, int callingUid, int userId, in handleIncomingUser() argument 2185 if (UserHandle.getUserId(callingUid) == userId) { in handleIncomingUser() 2190 callingUid, userId, allowAll, requireFull, name, callerPackage); in handleIncomingUser()
|
D | IActivityManager.java | 198 public int handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, in handleIncomingUser() argument 330 public int checkGrantUriPermission(int callingUid, String targetPkg, in checkGrantUriPermission() argument
|
/frameworks/base/services/java/com/android/server/am/ |
D | BroadcastQueue.java | 434 r.callingPid, r.callingUid, -1, true); in deliverToRegisteredReceiverLocked() 439 + r.callingPid + ", uid=" + r.callingUid + ")" in deliverToRegisteredReceiverLocked() 456 + " (uid " + r.callingUid + ")"); in deliverToRegisteredReceiverLocked() 471 skip = !mService.mIntentFirewall.checkBroadcast(r.intent, r.callingUid, in deliverToRegisteredReceiverLocked() 738 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, in processNextBroadcast() 745 + ", uid=" + r.callingUid + ")" in processNextBroadcast() 752 + ", uid=" + r.callingUid + ")" in processNextBroadcast() 773 + " (uid " + r.callingUid + ")"); in processNextBroadcast() 789 skip = !mService.mIntentFirewall.checkBroadcast(r.intent, r.callingUid, in processNextBroadcast() 853 if (r.callingUid != Process.SYSTEM_UID && isSingleton) { in processNextBroadcast() [all …]
|
D | ActivityStackSupervisor.java | 636 final int startActivityMayWait(IApplicationThread caller, int callingUid, in startActivityMayWait() argument 656 if (callingUid >= 0) { in startActivityMayWait() 660 callingUid = Binder.getCallingUid(); in startActivityMayWait() 662 callingPid = callingUid = -1; in startActivityMayWait() 681 int realCallingUid = callingUid; in startActivityMayWait() 723 callingUid = Binder.getCallingUid(); in startActivityMayWait() 742 aInfo, resultTo, resultWho, requestCode, callingPid, callingUid, in startActivityMayWait() 794 final int startActivities(IApplicationThread caller, int callingUid, String callingPackage, in startActivities() argument 809 if (callingUid >= 0) { in startActivities() 813 callingUid = Binder.getCallingUid(); in startActivities() [all …]
|
D | BroadcastRecord.java | 45 final int callingUid; // the uid of who sent this field in BroadcastRecord 100 pw.print(" uid="); pw.println(callingUid); in dump() 188 callingUid = _callingUid; in BroadcastRecord()
|
D | ActivityManagerService.java | 5365 int callingUid = Binder.getCallingUid(); in getIntentSender() local 5367 userId = handleIncomingUser(Binder.getCallingPid(), callingUid, userId, in getIntentSender() 5377 if (callingUid != 0 && callingUid != Process.SYSTEM_UID) { in getIntentSender() 5379 .getPackageUid(packageName, UserHandle.getUserId(callingUid)); in getIntentSender() 5380 if (!UserHandle.isSameApp(callingUid, uid)) { in getIntentSender() 5391 return getIntentSenderLocked(type, packageName, callingUid, userId, in getIntentSender() 5401 int callingUid, int userId, IBinder token, String resultWho, in getIntentSenderLocked() argument 5405 Slog.v(TAG_MU, "getIntentSenderLocked(): uid=" + callingUid); in getIntentSenderLocked() 5453 rec = new PendingIntentRecord(this, key, callingUid); in getIntentSenderLocked() 5934 int checkGrantUriPermissionLocked(int callingUid, String targetPkg, in checkGrantUriPermissionLocked() argument [all …]
|
D | ActiveServices.java | 278 int callingPid, int callingUid, int userId) { in startServiceLocked() argument 299 callingPid, callingUid, userId, true, callerFg); in startServiceLocked() 309 callingUid, r.packageName, service, service.getFlags(), null); in startServiceLocked() 310 if (unscheduleServiceRestartLocked(r, callingUid, false)) { in startServiceLocked() 373 + callingUid + " pid=" + callingPid + "): " + r); in startServiceLocked() 945 String resolvedType, int callingPid, int callingUid, int userId, in retrieveServiceLocked() argument 949 + " type=" + resolvedType + " callingUid=" + callingUid); in retrieveServiceLocked() 951 userId = mAm.handleIncomingUser(callingPid, callingUid, userId, in retrieveServiceLocked() 1019 callingPid, callingUid, r.appInfo.uid, r.exported) in retrieveServiceLocked() 1024 + ", uid=" + callingUid in retrieveServiceLocked() [all …]
|
/frameworks/base/services/java/com/android/server/accounts/ |
D | AccountManagerService.java | 1245 final int callingUid = getCallingUid(); in getAuthTokenLabel() local 1247 if (callingUid != Process.SYSTEM_UID) { in getAuthTokenLabel() 1250 UserAccounts accounts = getUserAccounts(UserHandle.getUserId(callingUid)); in getAuthTokenLabel() 1687 IAccountManagerResponse response, String type, String[] features, int callingUid) { in GetAccountsByTypeAndFeatureSession() argument 1690 mCallingUid = callingUid; in GetAccountsByTypeAndFeatureSession() 1785 int callingUid = Binder.getCallingUid(); in getAccounts() local 1789 return getAccountsFromCacheLocked(accounts, null, callingUid, null); in getAccounts() 1847 int callingUid = Binder.getCallingUid(); in getAccountsAsUser() local 1850 && callingUid != Process.myUid() in getAccountsAsUser() 1865 if (packageUid != -1 && UserHandle.isSameApp(callingUid, Process.myUid())) { in getAccountsAsUser() [all …]
|
/frameworks/base/services/java/com/android/server/display/ |
D | DisplayManagerService.java | 392 final int callingUid = Binder.getCallingUid(); in getDisplayInfo() local 399 if (info.hasAccess(callingUid)) { in getDisplayInfo() 415 final int callingUid = Binder.getCallingUid(); in getDisplayIds() local 425 if (info.hasAccess(callingUid)) { in getDisplayIds() 674 final int callingUid = Binder.getCallingUid(); in createVirtualDisplay() local 675 if (!validatePackageName(callingUid, packageName)) { in createVirtualDisplay() 721 appToken, callingUid, packageName, name, width, height, densityDpi, in createVirtualDisplay()
|
/frameworks/base/core/java/android/net/ |
D | EthernetDataTracker.java | 310 public int startUsingNetworkFeature(String feature, int callingPid, int callingUid) { in startUsingNetworkFeature() argument 327 public int stopUsingNetworkFeature(String feature, int callingPid, int callingUid) { in stopUsingNetworkFeature() argument
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothTetheringDataTracker.java | 192 public int startUsingNetworkFeature(String feature, int callingPid, int callingUid) { in startUsingNetworkFeature() argument 209 public int stopUsingNetworkFeature(String feature, int callingPid, int callingUid) { in stopUsingNetworkFeature() argument
|
/frameworks/base/services/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 2827 final int callingUid = Binder.getCallingUid(); in resolveCallingUserIdEnforcingPermissionsLocked() local 2828 if (callingUid == 0 in resolveCallingUserIdEnforcingPermissionsLocked() 2829 || callingUid == Process.SYSTEM_UID in resolveCallingUserIdEnforcingPermissionsLocked() 2830 || callingUid == Process.SHELL_UID) { in resolveCallingUserIdEnforcingPermissionsLocked() 2833 final int callingUserId = UserHandle.getUserId(callingUid); in resolveCallingUserIdEnforcingPermissionsLocked() 2852 final int callingUid = Binder.getCallingUid(); in isCallerInteractingAcrossUsers() local 2854 || callingUid == Process.SHELL_UID in isCallerInteractingAcrossUsers()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiStateMachine.java | 850 public void startScan(int callingUid, WorkSource workSource) { in startScan() argument 851 sendMessage(CMD_START_SCAN, callingUid, 0, workSource); in startScan() 859 public void setBatchedScanSettings(BatchedScanSettings settings, int callingUid, int csph, in setBatchedScanSettings() argument 864 sendMessage(CMD_SET_BATCHED_SCAN, callingUid, csph, bundle); in setBatchedScanSettings() 1171 private void noteScanStart(int callingUid, WorkSource workSource) { in noteScanStart() argument 1172 if (mScanWorkSource == null && (callingUid != UNKNOWN_SCAN_SOURCE || workSource != null)) { in noteScanStart() 1173 mScanWorkSource = workSource != null ? workSource : new WorkSource(callingUid); in noteScanStart()
|