Home
last modified time | relevance | path

Searched refs:getAppId (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/android/os/
DUserHandle.java87 return getAppId(uid1) == getAppId(uid2); in isSameApp()
93 final int appId = getAppId(uid); in isIsolated()
103 final int appId = getAppId(uid); in isApp()
143 public static final int getAppId(int uid) { in getAppId() method in UserHandle
167 final int appId = getAppId(uid); in formatUid()
192 final int appId = getAppId(uid); in formatUid()
DProcess.java698 int uid = UserHandle.getAppId(myUid()); in isIsolated()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java583 if (UserHandle.getAppId(uid) == Process.SYSTEM_UID || uid == 0) { in checkCallerIsSystemOrSameApp()
600 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneApp()
/frameworks/base/core/java/android/print/
DPrintJobInfo.java335 public int getAppId() { in getAppId() method in PrintJobInfo
/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java248 if (UserHandle.getAppId(uid) == Process.SYSTEM_UID || uid == 0) { in checkCallerIsSystem()
/frameworks/base/services/java/com/android/server/am/
DProcessRecord.java513 int appId = UserHandle.getAppId(info.uid); in toShortString()
523 sb.append(UserHandle.getAppId(uid) - Process.FIRST_ISOLATED_UID); in toShortString()
DActivityManagerService.java1099 if (!showBackground && UserHandle.getAppId(proc.uid)
2731 gids[0] = UserHandle.getSharedAppGid(UserHandle.getAppId(uid)); in startProcessLocked()
4226 appId = UserHandle.getAppId(pm.getPackageUid(packageName, 0)); in killBackgroundProcesses()
4496 forceStopPackageLocked(packageName, UserHandle.getAppId(uid), false, in forceStopPackageLocked()
4561 if (appId >= 0 && UserHandle.getAppId(app.uid) != appId) { in killPackageProcessesLocked()
4568 if (UserHandle.getAppId(app.uid) != appId) { in killPackageProcessesLocked()
4608 appId = UserHandle.getAppId( in forceStopPackageLocked()
4630 if (UserHandle.getAppId(entUid) == appId) { in forceStopPackageLocked()
4716 if (UserHandle.getAppId(pir.uid) != appId) { in forceStopPackageLocked()
5731 return checkComponentPermission(permission, pid, UserHandle.getAppId(uid), -1, true);
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
DPrintSpoolerService.java266 || printJob.getAppId() == appId; in getPrintJobInfos()
299 || appId == printJob.getAppId())) { in getPrintJobInfo()
815 serializer.attribute(null, ATTR_APP_ID, String.valueOf(printJob.getAppId())); in doWriteStateLocked()
/frameworks/base/services/java/com/android/server/
DBluetoothManagerService.java376 int callingAppId = UserHandle.getAppId(Binder.getCallingUid()); in enableNoAutoConnect()
1107 int callingAppId = UserHandle.getAppId(callingUid); in checkIfCallerIsForegroundUser()
DAppWidgetServiceImpl.java124 if (UserHandle.getAppId(callingUid) == Process.myUid()) { in uidMatches()
1576 if (UserHandle.getAppId(callingUid) == Process.SYSTEM_UID || callingUid == 0) { in enforceSystemOrCallingUid()
DNotificationManagerService.java2184 final int appid = UserHandle.getAppId(uid); in isUidSystem()
/frameworks/base/services/java/com/android/server/wm/
DSession.java85 sb.append(UserHandle.getAppId(mUid)); in Session()
/frameworks/base/services/java/com/android/server/print/
DPrintManagerService.java573 final int callingAppId = UserHandle.getAppId(callingUid); in resolveCallingAppEnforcingPermissions()
DUserState.java491 printJob.getAppId(), 0, printJob.getId()).sendToTarget(); in onPrintJobStateChanged()
1552 printJob.getAppId()); in onPrintJobStateChanged()
/frameworks/base/services/java/com/android/server/pm/
DPackageManagerService.java2203 Object obj = mSettings.getUserIdLPr(UserHandle.getAppId(uid)); in checkUidPermission()
2262 if (bp.uid == UserHandle.getAppId(Binder.getCallingUid())) { in checkPermissionTreeLP()
2509 uid1 = UserHandle.getAppId(uid1); in checkUidSignatures()
2510 uid2 = UserHandle.getAppId(uid2); in checkUidSignatures()
2568 uid = UserHandle.getAppId(uid); in getPackagesForUid()
2593 Object obj = mSettings.getUserIdLPr(UserHandle.getAppId(uid)); in getNameForUid()
2621 Object obj = mSettings.getUserIdLPr(UserHandle.getAppId(uid)); in getFlagsForUid()
2709 UserHandle.getAppId(ri.activityInfo.applicationInfo.uid)); in chooseBestActivity()
6307 uid = UserHandle.getUid(id, UserHandle.getAppId(uid)); in sendPackageBroadcast()
6478 addedAppId = UserHandle.getAppId(p.applicationInfo.uid); in onEvent()
DSettings.java2815 int appId = UserHandle.getAppId(uid); in setPackageStoppedStateLPw()
/frameworks/base/services/java/com/android/server/connectivity/
DVpn.java633 int appId = UserHandle.getAppId(Binder.getCallingUid()); in enforceControlPermission()
/frameworks/base/core/java/android/app/
DContextImpl.java591 UserHandle.getAppId(Process.myUid())); in registerService()