Home
last modified time | relevance | path

Searched refs:isSameApp (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/firewall/
DSenderPackageFilter.java60 return UserHandle.isSameApp(packageUid, callerUid); in matches()
/frameworks/base/core/java/android/accounts/
DChooseAccountActivity.java77 if (UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate()
83 if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate()
DGrantCredentialsPermissionActivity.java86 if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && mCallingUid != mUid) { in onCreate()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java255 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission()
503 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in checkPermission()
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java366 if (!UserHandle.isSameApp(ai.uid, uid)) { in enforceCallerIsSameApp()
/frameworks/base/core/java/android/os/
DUserHandle.java179 public static boolean isSameApp(int uid1, int uid2) { in isSameApp() method in UserHandle
/frameworks/base/core/java/android/app/slice/
DSliceManager.java488 if (UserHandle.isSameApp(uid, Process.myUid())) { in enforceSlicePermission()
/frameworks/base/services/people/java/com/android/server/people/
DPeopleService.java129 return UserHandle.isSameApp(uid, Process.SYSTEM_UID) || uid == Process.ROOT_UID; in isSystemOrRoot()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java822 if (!UserHandle.isSameApp(pi.applicationInfo.uid, uid)) { in addActiveOwnerLocked()
980 if (UserHandle.isSameApp(uid, clipboard.primaryClipUid)) { in showAccessNotificationLocked()
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentController.java246 if (!UserHandle.isSameApp(uid, Binder.getCallingUid())) { in cancelIntentSender()
DActivityManagerService.java4920 if (!UserHandle.isSameApp(owningUid, uid)) { in getIntentSenderWithFeatureAsApp()
11934 result = UserHandle.isSameApp(aInfo.uid, PHONE_UID) in isSingleton()
11951 return UserHandle.isSameApp(callingUid, componentUid) in isValidSingletonCall()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java457 UserHandle.isSameApp(context.getApplicationInfo().uid, Process.myUid()); in loadDrawableAsUser()
/frameworks/base/core/java/android/content/
DContentProvider.java763 if (UserHandle.isSameApp(uid, mMyUid)) { in enforceReadPermissionInner()
846 if (UserHandle.isSameApp(uid, mMyUid)) { in enforceWritePermissionInner()
/frameworks/base/services/core/java/com/android/server/wm/
DRecentTasks.java400 return UserHandle.isSameApp(callingUid, mRecentsUid); in isCallerRecents()
408 return cn.equals(mRecentsComponent) && UserHandle.isSameApp(uid, mRecentsUid); in isRecentsComponent()
DActivityTaskManagerService.java2089 private boolean isSameApp(int callingUid, @Nullable String packageName) { in isSameApp() method in ActivityTaskManagerService
2098 return UserHandle.isSameApp(callingUid, uid); in isSameApp()
2112 if (isSameApp(callingUid, packageName)) { in assertPackageMatchesCallingUid()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java499 boolean isSystemUid = UserHandle.isSameApp(callingUid, Process.SYSTEM_UID); in getAccountsAndVisibilityForPackage()
683 if (UserHandle.isSameApp(uid, Process.SYSTEM_UID)) { in resolveAccountVisibility()
4172 if (!UserHandle.isSameApp(Process.SYSTEM_UID, Binder.getCallingUid())) {
4417 ((UserHandle.isSameApp(callingUid, Process.SYSTEM_UID)
4543 if (!UserHandle.isSameApp(callingUid, Process.SYSTEM_UID)) {
4566 if (!UserHandle.isSameApp(callingUid, Process.SYSTEM_UID)
4570 if (!UserHandle.isSameApp(callingUid, Process.SYSTEM_UID) && type == null) {
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2536 return UserHandle.isSameApp(callingUid, Process.SYSTEM_UID) in hasManageUsersPermission()
2547 return UserHandle.isSameApp(callingUid, Process.SYSTEM_UID) in hasManageUsersOrPermission()
2571 if (!UserHandle.isSameApp(uid, Process.SYSTEM_UID) && uid != Process.ROOT_UID) { in checkSystemOrRoot()
4457 || !UserHandle.isSameApp(Binder.getCallingUid(), getUidForPackage(packageName))) { in getApplicationRestrictionsForUser()
DComponentResolver.java376 || !UserHandle.isSameApp(pkg.getUid(), uid))) { in queryProviders()
DPackageManagerService.java10192 if (!UserHandle.isSameApp(Binder.getCallingUid(), Process.SYSTEM_UID)) { in findPersistentPreferredActivity()
15915 if (hidden && !UserHandle.isSameApp(callingUid, pkgSetting.appId) in setApplicationHiddenSettingAsUser()
16381 && UserHandle.isSameApp(packageUid, callingUid); in enforceCanSetPackagesSuspendedAsUser()
23791 if (!UserHandle.isSameApp(callingUid, componentUid)) {
23804 if (allowedCallerUid == -1 || !UserHandle.isSameApp(callingUid, allowedCallerUid)) {
23905 if (!UserHandle.isSameApp(callingUid, pkgSetting.appId)) {
28023 && UserHandle.isSameApp(installerPackageSetting.appId, callingUid);
28512 || !UserHandle.isSameApp(contactsProvider.applicationInfo.uid, callingUid)) {
DShortcutService.java1615 return UserHandle.isSameApp(callingUid, Process.SYSTEM_UID); in isCallerSystem()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java1382 if ((UserHandle.isSameApp(callingUid, Process.SYSTEM_UID) && callingPid != Process.myPid()) in setAppStandbyBuckets()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java2429 return (UserHandle.isSameApp(mSystemUiUid, uid) in isExemptFromExactAlarmPermission()
2493 || UserHandle.isSameApp(callingUid, mSystemUiUid)
/frameworks/base/core/java/android/app/
DActivityManager.java3954 if (owningUid >= 0 && UserHandle.isSameApp(uid, owningUid)) { in checkComponentPermission()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java3728 final boolean callerIsMediaStore = UserHandle.isSameApp(Binder.getCallingUid(), in getVolumeList()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java9524 return UserHandle.isSameApp(caller.getUid(), Process.SYSTEM_UID);
9528 return UserHandle.isSameApp(caller.getUid(), Process.ROOT_UID);
9532 return UserHandle.isSameApp(caller.getUid(), Process.SHELL_UID);

12