Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/os/
DUserHandle.java153 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/
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.java66 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()
DAppStateTracker.java1102 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()
DBluetoothManagerService.java750 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/
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.java130 (mAppId == APP_ANY || info.getAppId() == mAppId) && in testMatch()
DNanoAppInstanceInfo.java89 public long getAppId() { in getAppId() method in NanoAppInstanceInfo
DNanoApp.java242 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.java169 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/
DProcessRecord.java578 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()
DProcessList.java426 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/
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/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java576 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneOrSameApp()
594 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneApp()
/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/core/java/com/android/server/pm/dex/
DArtManagerService.java245 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/
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