/frameworks/base/services/core/java/com/android/server/job/ |
D | GrantedUriPermissions.java | 66 int sourceUid, String targetPackage, int targetUserId, String tag) { in createFromIntent() argument 76 perms = grantUri(am, data, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent() 82 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent() 90 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag) { in createFromClip() argument 96 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, in createFromClip() 103 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, in grantClip() argument 107 curPerms = grantItem(am, clip.getItemAt(i), sourceUid, targetPackage, targetUserId, in grantClip() 114 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, in grantUri() argument 118 UserHandle.getUserId(sourceUid)); in grantUri() 121 curPerms = new GrantedUriPermissions(am, grantFlags, sourceUid, tag); in grantUri() [all …]
|
D | JobStore.java | 313 public void forEachJobForSourceUid(int sourceUid, Consumer<JobStatus> functor) { in forEachJobForSourceUid() argument 314 mJobSet.forEachJobForSourceUid(sourceUid, functor); in forEachJobForSourceUid() 1089 final int sourceUid = job.getSourceUid(); in add() local 1095 ArraySet<JobStatus> jobsForSourceUid = mJobsPerSourceUid.get(sourceUid); in add() 1098 mJobsPerSourceUid.put(sourceUid, jobsForSourceUid); in add() 1112 final int sourceUid = job.getSourceUid(); in remove() local 1113 final ArraySet<JobStatus> jobsForSourceUid = mJobsPerSourceUid.get(sourceUid); in remove() 1126 mJobsPerSourceUid.remove(sourceUid); in remove() 1260 public void forEachJobForSourceUid(int sourceUid, Consumer<JobStatus> functor) { in forEachJobForSourceUid() argument 1261 final ArraySet<JobStatus> jobs = mJobsPerSourceUid.get(sourceUid); in forEachJobForSourceUid()
|
/frameworks/base/core/java/android/app/ |
D | ActivityManagerNative.java | 86 static public void noteWakeupAlarm(PendingIntent ps, int sourceUid, String sourcePkg, in noteWakeupAlarm() argument 88 ActivityManager.noteWakeupAlarm(ps, null, sourceUid, sourcePkg, tag); in noteWakeupAlarm() 94 static public void noteAlarmStart(PendingIntent ps, int sourceUid, String tag) { in noteAlarmStart() argument 95 ActivityManager.noteAlarmStart(ps, null, sourceUid, tag); in noteAlarmStart() 101 static public void noteAlarmFinish(PendingIntent ps, int sourceUid, String tag) { in noteAlarmFinish() argument 102 ActivityManager.noteAlarmFinish(ps, null, sourceUid, tag); in noteAlarmFinish()
|
D | IActivityManager.aidl | 236 void noteWakeupAlarm(in IIntentSender sender, in WorkSource workSource, int sourceUid, in noteWakeupAlarm() argument 477 …void noteAlarmStart(in IIntentSender sender, in WorkSource workSource, int sourceUid, in String ta… in noteAlarmStart() argument 478 …void noteAlarmFinish(in IIntentSender sender, in WorkSource workSource, int sourceUid, in String t… in noteAlarmFinish() argument
|
D | ActivityManager.java | 4032 public static void noteWakeupAlarm(PendingIntent ps, WorkSource workSource, int sourceUid, 4036 sourceUid, sourcePkg, tag); 4044 public static void noteAlarmStart(PendingIntent ps, WorkSource workSource, int sourceUid, 4048 sourceUid, tag); 4057 public static void noteAlarmFinish(PendingIntent ps, WorkSource workSource, int sourceUid, 4061 sourceUid, tag);
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | BackgroundJobsController.java | 126 final int sourceUid = jobStatus.getSourceUid(); in dumpControllerStateLocked() 127 proto.write(TrackedJob.SOURCE_UID, sourceUid); in dumpControllerStateLocked() 132 mAppStateTracker.isUidActive(sourceUid)); in dumpControllerStateLocked() 134 mAppStateTracker.isUidPowerSaveWhitelisted(sourceUid) || in dumpControllerStateLocked() 135 mAppStateTracker.isUidTempPowerSaveWhitelisted(sourceUid)); in dumpControllerStateLocked() 140 sourceUid, sourcePkg)); in dumpControllerStateLocked()
|
D | JobStatus.java | 142 final int sourceUid; field in JobStatus 385 this.sourceUid = callingUid; in JobStatus() 390 this.sourceUid = tempSourceUid; in JobStatus() 434 job.getRequiredNetwork().networkCapabilities.setSingleUid(this.sourceUid); in JobStatus() 550 work.setGrants(GrantedUriPermissions.createFromIntent(am, work.getIntent(), sourceUid, in enqueueWorkLocked() 648 uriPerms = GrantedUriPermissions.createFromClip(am, clip, sourceUid, sourcePackageName, in prepareLocked() 706 return sourceUid; in getSourceUid() 1028 sourceUid, null, getBatteryName(), getProtoConstraint(constraint), in setConstraintSatisfied()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 617 private final void checkUriOwnerLocked(Uri uri, int sourceUid) { in checkUriOwnerLocked() argument 623 mUgmInternal.checkGrantUriPermission(sourceUid, null, in checkUriOwnerLocked() 626 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(sourceUid))); in checkUriOwnerLocked() 649 private final void grantUriLocked(Uri uri, int sourceUid, String targetPkg, in grantUriLocked() argument 655 mUgm.grantUriPermissionFromOwner(mPermissionOwner, sourceUid, targetPkg, in grantUriLocked() 658 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(sourceUid)), in grantUriLocked() 667 private final void grantItemLocked(ClipData.Item item, int sourceUid, String targetPkg, in grantItemLocked() argument 670 grantUriLocked(item.getUri(), sourceUid, targetPkg, targetUserId); in grantItemLocked() local 674 grantUriLocked(intent.getData(), sourceUid, targetPkg, targetUserId); in grantItemLocked() local 707 private final void revokeUriLocked(Uri uri, int sourceUid) { in revokeUriLocked() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputContentUriTokenHandler.java | 50 InputContentUriTokenHandler(@NonNull Uri contentUri, int sourceUid, in InputContentUriTokenHandler() argument 54 mSourceUid = sourceUid; in InputContentUriTokenHandler()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DragAndDropPermissionsHandler.java | 49 DragAndDropPermissionsHandler(ClipData clipData, int sourceUid, String targetPackage, int mode, in DragAndDropPermissionsHandler() argument 51 mSourceUid = sourceUid; in DragAndDropPermissionsHandler()
|
D | ActivityTaskManagerService.java | 2448 boolean checkAppSwitchAllowedLocked(int sourcePid, int sourceUid, in checkAppSwitchAllowedLocked() argument 2454 if (getRecentTasks().isCallerRecents(sourceUid)) { in checkAppSwitchAllowedLocked() 2458 int perm = checkComponentPermission(STOP_APP_SWITCHES, sourcePid, sourceUid, -1, true); in checkAppSwitchAllowedLocked() 2462 if (checkAllowAppSwitchUid(sourceUid)) { in checkAppSwitchAllowedLocked() 2468 if (callingUid != -1 && callingUid != sourceUid) { in checkAppSwitchAllowedLocked() 2478 Slog.w(TAG, name + " request from " + sourceUid + " stopped"); in checkAppSwitchAllowedLocked()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PreferencesHelper.java | 1330 public @Nullable String getNotificationDelegate(String sourcePkg, int sourceUid) { in getNotificationDelegate() argument 1332 PackagePreferences prefs = getPackagePreferencesLocked(sourcePkg, sourceUid); in getNotificationDelegate() 1347 public void setNotificationDelegate(String sourcePkg, int sourceUid, in setNotificationDelegate() argument 1350 PackagePreferences prefs = getOrCreatePackagePreferencesLocked(sourcePkg, sourceUid); in setNotificationDelegate() 1362 public void revokeNotificationDelegate(String sourcePkg, int sourceUid) { in revokeNotificationDelegate() argument 1365 PackagePreferences prefs = getPackagePreferencesLocked(sourcePkg, sourceUid); in revokeNotificationDelegate() 1379 public void toggleNotificationDelegate(String sourcePkg, int sourceUid, boolean userAllowed) { in toggleNotificationDelegate() argument 1382 PackagePreferences prefs = getPackagePreferencesLocked(sourcePkg, sourceUid); in toggleNotificationDelegate() 1397 public boolean isDelegateAllowed(String sourcePkg, int sourceUid, in isDelegateAllowed() argument 1400 PackagePreferences prefs = getPackagePreferencesLocked(sourcePkg, sourceUid); in isDelegateAllowed()
|
D | NotificationRecord.java | 1217 final int sourceUid = sbn.getUid(); in visitGrantableUri() local 1218 if (sourceUid == android.os.Process.SYSTEM_UID) return; in visitGrantableUri() 1223 mUgmInternal.checkGrantUriPermission(sourceUid, null, in visitGrantableUri() 1226 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(sourceUid))); in visitGrantableUri() 1237 Log.w(TAG, "Ignoring " + uri + " from " + sourceUid + ": " + e.getMessage()); in visitGrantableUri()
|
D | NotificationManagerService.java | 6871 private void grantUriPermission(IBinder owner, Uri uri, int sourceUid, String targetPkg, 6877 mUgm.grantUriPermissionFromOwner(owner, sourceUid, targetPkg, 6880 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(sourceUid)), 6889 private void revokeUriPermission(IBinder owner, Uri uri, int sourceUid) { 6898 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(sourceUid)));
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstallerActivity.java | 216 private String getPackageNameForUid(int sourceUid) { in getPackageNameForUid() argument 217 String[] packagesForUid = mPm.getPackagesForUid(sourceUid); in getPackageNameForUid() 229 Log.i(TAG, "Multiple packages found for source uid " + sourceUid); in getPackageNameForUid()
|
D | UninstallerActivity.java | 391 private String getPackageNameForUid(int sourceUid) { in getPackageNameForUid() argument 392 String[] packagesForUid = getPackageManager().getPackagesForUid(sourceUid); in getPackageNameForUid()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 1039 Association(int sourceUid, String sourceProcess, int targetUid, in Association() argument 1041 mSourceUid = sourceUid; in Association() 8567 public void noteWakeupAlarm(IIntentSender sender, WorkSource workSource, int sourceUid, in noteWakeupAlarm() argument 8573 if (sourceUid <= 0 && workSource == null) { in noteWakeupAlarm() 8582 sourceUid = rec.uid == callerUid ? SYSTEM_UID : rec.uid; in noteWakeupAlarm() 8592 mBatteryStatsService.noteWakupAlarm(sourcePkg, sourceUid, workSource, tag); in noteWakeupAlarm() 8598 workSourceUid = sourceUid; in noteWakeupAlarm() 8609 Slog.w(TAG, "noteWakeupAlarm[ sourcePkg=" + sourcePkg + ", sourceUid=" + sourceUid in noteWakeupAlarm() 8616 UserHandle.getUserId(sourceUid), SystemClock.elapsedRealtime()); in noteWakeupAlarm() 8618 StatsLog.write_non_chained(StatsLog.WAKEUP_ALARM_OCCURRED, sourceUid, null, tag, in noteWakeupAlarm() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 3434 final int sourceUid = alarm.creatorUid; in isBackgroundRestricted() local 3436 mAppStateTracker.areAlarmsRestricted(sourceUid, sourcePackage, in isBackgroundRestricted()
|