Home
last modified time | relevance | path

Searched refs:isSameApp (Results 1 – 25 of 28) 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.java84 if (UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate()
90 if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate()
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java489 if (caller != Process.SYSTEM_UID && !UserHandle.isSameApp(caller, Process.BLUETOOTH_UID)
490 && !UserHandle.isSameApp(caller, Process.PHONE_UID)) {
/frameworks/base/services/core/java/com/android/server/wm/
DAppTaskImpl.java100 if (!mService.isSameApp(callingUid, callingPackage)) { in moveToFront()
DRecentTasks.java383 return UserHandle.isSameApp(callingUid, mRecentsUid); in isCallerRecents()
391 return cn.equals(mRecentsComponent) && UserHandle.isSameApp(uid, mRecentsUid); in isRecentsComponent()
DActivityTaskManagerService.java2359 if (!isSameApp(callingUid, callingPackage)) { in moveTaskToFrontLocked()
2416 boolean isSameApp(int callingUid, @Nullable String packageName) { in isSameApp() method in ActivityTaskManagerService
2425 return UserHandle.isSameApp(callingUid, uid); in isSameApp()
/frameworks/base/core/java/android/os/
DUserHandle.java152 public static boolean isSameApp(int uid1, int uid2) { in isSameApp() method in UserHandle
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java366 if (!UserHandle.isSameApp(ai.uid, uid)) { in enforceCallerIsSameApp()
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentController.java220 if (!UserHandle.isSameApp(uid, Binder.getCallingUid())) { in cancelIntentSender()
DActivityManagerService.java5408 if (!UserHandle.isSameApp(callingUid, uid)) { in getIntentSender()
14018 result = UserHandle.isSameApp(aInfo.uid, PHONE_UID) in isSingleton()
14035 return UserHandle.isSameApp(callingUid, componentUid) in isValidSingletonCall()
/frameworks/base/core/java/android/app/slice/
DSliceManager.java485 if (UserHandle.isSameApp(uid, Process.myUid())) { in enforceSlicePermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java238 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java583 if (!UserHandle.isSameApp(ai.uid, uid)) { in checkCallerIsSystemOrPhoneOrSameApp()
DSMSDispatcher.java2007 if (!UserHandle.isSameApp(ai.uid, Binder.getCallingUid())) { in checkCallerIsPhoneOrCarrierApp()
/frameworks/base/core/java/android/content/
DContentProvider.java660 if (UserHandle.isSameApp(uid, mMyUid)) { in enforceReadPermissionInner()
742 if (UserHandle.isSameApp(uid, mMyUid)) { in enforceWritePermissionInner()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java687 if (!UserHandle.isSameApp(pi.applicationInfo.uid, uid)) { in addActiveOwnerLocked()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java494 boolean isSystemUid = UserHandle.isSameApp(callingUid, Process.SYSTEM_UID); in getAccountsAndVisibilityForPackage()
677 if (UserHandle.isSameApp(uid, Process.SYSTEM_UID)) { in resolveAccountVisibility()
4056 if (!UserHandle.isSameApp(Process.SYSTEM_UID, Binder.getCallingUid())) {
4301 ((UserHandle.isSameApp(callingUid, Process.SYSTEM_UID)
4436 if (!UserHandle.isSameApp(callingUid, Process.SYSTEM_UID)) {
4459 if (!UserHandle.isSameApp(callingUid, Process.SYSTEM_UID)
4463 if (!UserHandle.isSameApp(callingUid, Process.SYSTEM_UID) && type == null) {
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1958 return UserHandle.isSameApp(callingUid, Process.SYSTEM_UID) in hasManageUsersPermission()
1969 return UserHandle.isSameApp(callingUid, Process.SYSTEM_UID) in hasManageUsersOrPermission()
1993 if (!UserHandle.isSameApp(uid, Process.SYSTEM_UID) && uid != Process.ROOT_UID) { in checkSystemOrRoot()
3156 || !UserHandle.isSameApp(Binder.getCallingUid(), getUidForPackage(packageName))) { in getApplicationRestrictionsForUser()
DComponentResolver.java266 || !UserHandle.isSameApp(p.info.applicationInfo.uid, uid))) { in queryProviders()
DPackageManagerService.java5862 && UserHandle.isSameApp(installerPackageSetting.appId, Binder.getCallingUid());
5991 && UserHandle.isSameApp(installerPackageSetting.appId, Binder.getCallingUid());
6592 if (!UserHandle.isSameApp(Binder.getCallingUid(), Process.SYSTEM_UID)) {
13299 if (hidden && !UserHandle.isSameApp(callingUid, pkgSetting.appId)
13697 && UserHandle.isSameApp(packageUid, callingUid);
20892 if (!UserHandle.isSameApp(pi.applicationInfo.uid, callingUid)) {
21336 if (!UserHandle.isSameApp(callingUid, pkgSetting.appId)) {
DShortcutService.java1512 return UserHandle.isSameApp(callingUid, Process.SYSTEM_UID); in isCallerSystem()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java1313 if (!UserHandle.isSameApp(uid, Process.BLUETOOTH_UID)) { in setCallback()
/frameworks/base/core/java/android/app/
DActivityManager.java3745 if (owningUid >= 0 && UserHandle.isSameApp(uid, owningUid)) {
DActivityThread.java2235 ? !UserHandle.isSameApp(ai.uid, mBoundApplication.appInfo.uid) in getPackageInfo()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java2106 || UserHandle.isSameApp(callingUid, mSystemUiUid)

12