Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/os/
DUserHandle.java153 return getAppId(uid1) == getAppId(uid2); in isSameApp()
178 final int appId = getAppId(uid); in isApp()
191 final int appId = getAppId(uid); in isCore()
228 return getAppId(Binder.getCallingUid()); in getCallingAppId()
256 public static @AppIdInt int getAppId(int uid) { in getAppId() method in UserHandle
270 return getSharedAppGid(getUserId(uid), getAppId(uid)); in getSharedAppGid()
290 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid()
300 return getCacheAppGid(getUserId(uid), getAppId(uid)); in getCacheAppGid()
323 final int appId = getAppId(uid); in formatUid()
365 final int appId = getAppId(uid); in formatUid()
/frameworks/base/core/tests/coretests/src/android/os/
DUserHandleTest.java20 import static android.os.UserHandle.getAppId;
118 return getAppId(uid); in multiuser_get_app_id()
/frameworks/base/services/core/java/com/android/server/location/
DNanoAppStateManager.java92 if (info.getContexthubId() == contextHubId && info.getAppId() == nanoAppId) { in getNanoAppHandle()
165 !nanoAppIdSet.contains(info.getAppId())) { in updateCache()
DContextHubService.java396 long nanoAppId = info.getAppId();
490 info.getAppId(), msg.getMsgType(), msg.getData());
/frameworks/base/services/core/java/com/android/server/
DBinderCallsStatsService.java69 final int appId = UserHandle.getAppId(callingUid); in resolveWorkSourceUid()
99 trustlist.add(UserHandle.getAppId(Process.myUid())); in createAppidTrustlist()
111 final int appId = UserHandle.getAppId(uid); in createAppidTrustlist()
DAppStateTracker.java1104 final int appId = UserHandle.getAppId(uid); in isRestricted()
1203 return ArrayUtils.contains(mPowerWhitelistedAllAppIds, UserHandle.getAppId(uid)); in isUidPowerSaveWhitelisted()
1213 return ArrayUtils.contains(mPowerWhitelistedUserAppIds, UserHandle.getAppId(uid)); in isUidPowerSaveUserWhitelisted()
1224 return ArrayUtils.contains(mTempWhitelistedAppIds, UserHandle.getAppId(uid)); in isUidTempPowerSaveWhitelisted()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java575 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneOrSameApp()
583 if (UserHandle.getAppId(ai.uid) != UserHandle.getAppId(uid)) { in checkCallerIsSystemOrPhoneOrSameApp()
594 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneApp()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DInstallerTest.java100 final int appId = UserHandle.getAppId(app.uid); in testGetAppSize()
178 final int appId = UserHandle.getAppId(app.uid); in getAppIds()
/frameworks/base/core/java/android/hardware/location/
DNanoAppFilter.java131 (mAppId == APP_ANY || info.getAppId() == mAppId) && in testMatch()
DNanoAppInstanceInfo.java89 public long getAppId() { in getAppId() method in NanoAppInstanceInfo
DNanoApp.java243 public long getAppId() { in getAppId() method in NanoApp
/frameworks/base/core/java/com/android/internal/os/
DAppIdToPackageMap.java74 final int appId = UserHandle.getAppId(uid); in mapUid()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DDeviceIdleJobsController.java195 UserHandle.getAppId(job.getSourceUid())) >= 0; in isWhitelistedLocked()
203 UserHandle.getAppId(job.getSourceUid())); in isTempWhitelistedLocked()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java117 || UserHandle.getAppId(callingUid) == android.os.Process.SYSTEM_UID) { in checkAccessLevel()
/frameworks/base/services/core/java/com/android/server/job/
DJobPackageTracker.java328 if (filterUid != -1 && filterUid != UserHandle.getAppId(uid)) { in dump()
392 if (filterUid != -1 && filterUid != UserHandle.getAppId(uid)) { in dump()
578 if (filterUid != -1 && filterUid != UserHandle.getAppId(uid)) { in dumpHistory()
629 if (filterUid != -1 && filterUid != UserHandle.getAppId(uid)) { in dumpHistory()
DJobSchedulerService.java3243 final int filterUidFinal = UserHandle.getAppId(filterUid); in dumpInternal()
3249 return filterUidFinal == -1 || UserHandle.getAppId(js.getUid()) == filterUidFinal in dumpInternal()
3250 || UserHandle.getAppId(js.getSourceUid()) == filterUidFinal; in dumpInternal()
3342 if (filterUidFinal == -1 || filterUidFinal == UserHandle.getAppId(uid)) { in dumpInternal()
3353 if (filterUidFinal == -1 || filterUidFinal == UserHandle.getAppId(uid)) { in dumpInternal()
3439 final int filterUidFinal = UserHandle.getAppId(filterUid); in dumpInternalProto()
3444 return filterUidFinal == -1 || UserHandle.getAppId(js.getUid()) == filterUidFinal in dumpInternalProto()
3445 || UserHandle.getAppId(js.getSourceUid()) == filterUidFinal; in dumpInternalProto()
3517 if (filterUidFinal == -1 || filterUidFinal == UserHandle.getAppId(uid)) { in dumpInternalProto()
3527 if (filterUidFinal == -1 || filterUidFinal == UserHandle.getAppId(uid)) { in dumpInternalProto()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java171 mAllApps.add(UserHandle.getAppId(uid)); in startMonitoring()
388 mAllApps.add(UserHandle.getAppId(uid)); in onPackageAdded()
416 mAllApps.remove(UserHandle.getAppId(uid)); in onPackageRemoved()
/frameworks/base/services/core/java/com/android/server/am/
DProcessRecord.java581 appZygote = (UserHandle.getAppId(_uid) >= Process.FIRST_APP_ZYGOTE_ISOLATED_UID in ProcessRecord()
582 && UserHandle.getAppId(_uid) <= Process.LAST_APP_ZYGOTE_ISOLATED_UID); in ProcessRecord()
795 if (UserHandle.getAppId(info.uid) >= Process.FIRST_APPLICATION_UID) { in writeToProto()
797 proto.write(ProcessRecordProto.APP_ID, UserHandle.getAppId(info.uid)); in writeToProto()
800 proto.write(ProcessRecordProto.ISOLATED_APP_ID, UserHandle.getAppId(uid)); in writeToProto()
828 int appId = UserHandle.getAppId(info.uid); in toShortString()
838 sb.append(UserHandle.getAppId(uid) - Process.FIRST_ISOLATED_UID); in toShortString()
DProcessList.java1581 gids[0] = UserHandle.getSharedAppGid(UserHandle.getAppId(uid));
1582 gids[1] = UserHandle.getCacheAppGid(UserHandle.getAppId(uid));
1743 mService.forceStopPackageLocked(app.info.packageName, UserHandle.getAppId(app.uid),
1795 UserHandle.getAppId(app.uid),
1813 mService.forceStopPackageLocked(app.info.packageName, UserHandle.getAppId(app.uid),
2284 if (appId >= 0 && UserHandle.getAppId(app.uid) != appId) { in killPackageProcessesLocked()
2293 if (!isDep && UserHandle.getAppId(app.uid) != appId) { in killPackageProcessesLocked()
2328 if (appId >= 0 && UserHandle.getAppId(appZygoteUid) != appId) { in killPackageProcessesLocked()
2416 UserHandle.getAppId(proc.uid)) >= 0 in addProcessNameLocked()
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java229 UserHandle.getAppId(uid), proposedQuota); in pushProcessedQuotas()
232 UserHandle.getAppId(uid), proposedQuota); in pushProcessedQuotas()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSetting.java123 public int getAppId() { in getAppId() method in PackageSetting
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java106 && UserHandle.getAppId(caller) != Process.BLUETOOTH_UID) { in checkCallerUid()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtManagerService.java245 int appId = UserHandle.getAppId(info.applicationInfo.uid); in snapshotAppProfile()
398 final int appId = UserHandle.getAppId(pkg.applicationInfo.uid); in prepareAppProfiles()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java300 final int appId = UserHandle.getAppId(uid); in queryStatsForUid()
414 final int appId = UserHandle.getAppId(app.uid); in getAppIds()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java339 final int appId = UserHandle.getAppId(Binder.getCallingUid()); in setPrintServiceEnabled()
342 if (appId != Process.SYSTEM_UID && appId != UserHandle.getAppId( in setPrintServiceEnabled()
1044 final int callingAppId = UserHandle.getAppId(callingUid); in resolveCallingAppEnforcingPermissions()

1234