/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 153 return getAppId(uid1) == getAppId(uid2); in isSameApp() 177 final int appId = getAppId(uid); in isApp() 190 final int appId = getAppId(uid); in isCore() 227 return getAppId(Binder.getCallingUid()); in getCallingAppId() 255 public static @AppIdInt int getAppId(int uid) { in getAppId() method in UserHandle 269 return getSharedAppGid(getUserId(uid), getAppId(uid)); in getSharedAppGid() 289 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid() 299 return getCacheAppGid(getUserId(uid), getAppId(uid)); in getCacheAppGid() 322 final int appId = getAppId(uid); in formatUid() 363 final int appId = getAppId(uid); in formatUid()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | UserHandleTest.java | 20 import static android.os.UserHandle.getAppId; 118 return getAppId(uid); in multiuser_get_app_id()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | NanoAppStateManager.java | 92 if (info.getContexthubId() == contextHubId && info.getAppId() == nanoAppId) { in getNanoAppHandle() 165 !nanoAppIdSet.contains(info.getAppId())) { in updateCache()
|
D | ContextHubService.java | 396 long nanoAppId = info.getAppId(); 490 info.getAppId(), msg.getMsgType(), msg.getData());
|
/frameworks/base/services/core/java/com/android/server/ |
D | BinderCallsStatsService.java | 66 final int appId = UserHandle.getAppId(callingUid); in resolveWorkSourceUid() 96 whitelist.add(UserHandle.getAppId(Process.myUid())); in createAppidWhitelist() 108 final int appId = UserHandle.getAppId(uid); in createAppidWhitelist()
|
D | AppStateTracker.java | 1102 final int appId = UserHandle.getAppId(uid); in isRestricted() 1201 return ArrayUtils.contains(mPowerWhitelistedAllAppIds, UserHandle.getAppId(uid)); in isUidPowerSaveWhitelisted() 1211 return ArrayUtils.contains(mPowerWhitelistedUserAppIds, UserHandle.getAppId(uid)); in isUidPowerSaveUserWhitelisted() 1222 return ArrayUtils.contains(mTempWhitelistedAppIds, UserHandle.getAppId(uid)); in isUidTempPowerSaveWhitelisted()
|
D | BluetoothManagerService.java | 750 final boolean isCallerSystem = UserHandle.getAppId(callingUid) == Process.SYSTEM_UID; in updateBleAppCount() 871 final boolean isCallerSystem = UserHandle.getAppId(callingUid) == Process.SYSTEM_UID; in enableNoAutoConnect() 883 int callingAppId = UserHandle.getAppId(callingUid); in enableNoAutoConnect() 900 final boolean callerSystem = UserHandle.getAppId(callingUid) == Process.SYSTEM_UID; in enable() 947 final boolean callerSystem = UserHandle.getAppId(callingUid) == Process.SYSTEM_UID; in disable() 2098 int callingAppId = UserHandle.getAppId(callingUid); in checkIfCallerIsForegroundUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | InstallerTest.java | 100 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/ |
D | NanoAppFilter.java | 130 (mAppId == APP_ANY || info.getAppId() == mAppId) && in testMatch()
|
D | NanoAppInstanceInfo.java | 89 public long getAppId() { in getAppId() method in NanoAppInstanceInfo
|
D | NanoApp.java | 242 public long getAppId() { in getAppId() method in NanoApp
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AppIdToPackageMap.java | 74 final int appId = UserHandle.getAppId(uid); in mapUid()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | DeviceIdleJobsController.java | 195 UserHandle.getAppId(job.getSourceUid())) >= 0; in isWhitelistedLocked() 203 UserHandle.getAppId(job.getSourceUid())); in isTempWhitelistedLocked()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 117 || UserHandle.getAppId(callingUid) == android.os.Process.SYSTEM_UID) { in checkAccessLevel()
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobPackageTracker.java | 328 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()
|
D | JobSchedulerService.java | 3243 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/ |
D | PermissionMonitor.java | 169 mAllApps.add(UserHandle.getAppId(uid)); in startMonitoring() 391 mAllApps.add(UserHandle.getAppId(uid)); in onPackageAdded() 415 mAllApps.remove(UserHandle.getAppId(uid)); in onPackageRemoved()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessRecord.java | 578 appZygote = (UserHandle.getAppId(_uid) >= Process.FIRST_APP_ZYGOTE_ISOLATED_UID in ProcessRecord() 579 && UserHandle.getAppId(_uid) <= Process.LAST_APP_ZYGOTE_ISOLATED_UID); in ProcessRecord() 792 if (UserHandle.getAppId(info.uid) >= Process.FIRST_APPLICATION_UID) { in writeToProto() 794 proto.write(ProcessRecordProto.APP_ID, UserHandle.getAppId(info.uid)); in writeToProto() 797 proto.write(ProcessRecordProto.ISOLATED_APP_ID, UserHandle.getAppId(uid)); in writeToProto() 825 int appId = UserHandle.getAppId(info.uid); in toShortString() 835 sb.append(UserHandle.getAppId(uid) - Process.FIRST_ISOLATED_UID); in toShortString()
|
D | ProcessList.java | 426 final int appId = UserHandle.getAppId(uid); in freeIsolatedUidLocked() 1493 gids[0] = UserHandle.getSharedAppGid(UserHandle.getAppId(uid)); 1494 gids[1] = UserHandle.getCacheAppGid(UserHandle.getAppId(uid)); 1633 mService.forceStopPackageLocked(app.info.packageName, UserHandle.getAppId(app.uid), 1681 UserHandle.getAppId(app.uid), 1699 mService.forceStopPackageLocked(app.info.packageName, UserHandle.getAppId(app.uid), 2157 if (appId >= 0 && UserHandle.getAppId(app.uid) != appId) { in killPackageProcessesLocked() 2166 if (!isDep && UserHandle.getAppId(app.uid) != appId) { in killPackageProcessesLocked() 2201 if (appId >= 0 && UserHandle.getAppId(appZygoteUid) != appId) { in killPackageProcessesLocked() 2288 UserHandle.getAppId(proc.uid)) >= 0 in addProcessNameLocked()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | CacheQuotaStrategy.java | 229 UserHandle.getAppId(uid), proposedQuota); in pushProcessedQuotas() 232 UserHandle.getAppId(uid), proposedQuota); in pushProcessedQuotas()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSetting.java | 123 public int getAppId() { in getAppId() method in PackageSetting
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsUsageMonitor.java | 576 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneOrSameApp() 594 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneApp()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 300 final int appId = UserHandle.getAppId(uid); in queryStatsForUid() 414 final int appId = UserHandle.getAppId(app.uid); in getAppIds()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ArtManagerService.java | 245 int appId = UserHandle.getAppId(info.applicationInfo.uid); in snapshotAppProfile() 394 final int appId = UserHandle.getAppId(pkg.applicationInfo.uid); in prepareAppProfiles()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 339 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()
|