Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/os/
DUserHandle.java109 return getAppId(uid1) == getAppId(uid2); in isSameApp()
115 final int appId = getAppId(uid); in isIsolated()
125 final int appId = getAppId(uid); in isApp()
181 public static @AppIdInt int getAppId(int uid) { in getAppId() method in UserHandle
207 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid()
226 final int appId = getAppId(uid); in formatUid()
262 final int appId = getAppId(uid); in formatUid()
DProcess.java885 uid = UserHandle.getAppId(uid); in isIsolated()
/frameworks/base/core/java/android/hardware/location/
DContextHubService.java90 if (app.getAppId() == APP_ID_ACTIVITY_RECOGNITION) {
178 return app.getAppId(); in parseAppId()
196 long appId = app.getAppId(); in loadNanoApp()
DNanoAppFilter.java129 (mAppId == APP_ANY || info.getAppId() == mAppId) && in testMatch()
DNanoAppInstanceInfo.java100 public long getAppId() { in getAppId() method in NanoAppInstanceInfo
DNanoApp.java212 public int getAppId() { in getAppId() method in NanoApp
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java491 UserHandle.getAppId(pi.applicationInfo.uid), in checkIdleStates()
680 final int appId = getAppId(packageName); in forceIdleState()
791 int getAppId(String packageName) { in getAppId() method in UsageStatsService
806 return isAppIdleFiltered(packageName, getAppId(packageName), userId, elapsedRealtime); in isAppIdleFilteredOrParoled()
903 boolean idle = isAppIdleFiltered(ai.packageName, UserHandle.getAppId(ai.uid), in getIdleUidsForUser()
1342 final int appId = getAppId(packageName); in setAppInactive()
/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/controllers/
DDeviceIdleJobsController.java153 UserHandle.getAppId(job.getSourceUid()))) { in isWhitelistedLocked()
DJobStatus.java428 return filterUid == -1 || UserHandle.getAppId(getUid()) == filterUid in shouldDump()
429 || UserHandle.getAppId(getSourceUid()) == filterUid; in shouldDump()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java287 final int appId = UserHandle.getAppId(Binder.getCallingUid()); in setPrintServiceEnabled()
290 if (appId != Process.SYSTEM_UID && appId != UserHandle.getAppId( in setPrintServiceEnabled()
894 final int callingAppId = UserHandle.getAppId(callingUid); in resolveCallingAppEnforcingPermissions()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java584 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneOrSameApp()
602 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneApp()
/frameworks/base/services/core/java/com/android/server/job/
DJobPackageTracker.java301 if (filterUid != -1 && filterUid != UserHandle.getAppId(uid)) { in dump()
440 if (filterUid != -1 && filterUid != UserHandle.getAppId(filterUid)) { in dumpHistory()
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java1316 int appid = UserHandle.getAppId(ai.uid); in onStart()
1328 int appid = UserHandle.getAppId(ai.uid); in onStart()
1448 if (mPowerSaveWhitelistUserApps.put(name, UserHandle.getAppId(ai.uid)) == null) { in addPowerSaveWhitelistAppInternal()
1613 int appId = UserHandle.getAppId(uid); in addPowerSaveTempWhitelistAppInternal()
1628 int callingAppId = UserHandle.getAppId(callingUid); in addPowerSaveTempWhitelistAppDirectInternal()
2417 UserHandle.getAppId(ai.uid)); in readConfigFileLocked()
DBluetoothManagerService.java696 int callingAppId = UserHandle.getAppId(Binder.getCallingUid()); in enableNoAutoConnect()
712 final boolean callerSystem = UserHandle.getAppId(callingUid) == Process.SYSTEM_UID; in enable()
748 final boolean callerSystem = UserHandle.getAppId(callingUid) == Process.SYSTEM_UID; in disable()
1747 int callingAppId = UserHandle.getAppId(callingUid); in checkIfCallerIsForegroundUser()
/frameworks/base/core/java/android/print/
DPrintJobInfo.java416 public int getAppId() { in getAppId() method in PrintJobInfo
/frameworks/base/services/core/java/com/android/server/am/
DProcessRecord.java636 int appId = UserHandle.getAppId(info.uid); in toShortString()
646 sb.append(UserHandle.getAppId(uid) - Process.FIRST_ISOLATED_UID); in toShortString()
DAppErrors.java212 if (UserHandle.getAppId(entUid) == appId) { in resetProcessCrashTimeLocked()
692 boolean isBackground = (UserHandle.getAppId(proc.uid) in handleShowAppErrorUi()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java293 || printJob.getAppId() == appId; in getPrintJobInfos()
326 || appId == printJob.getAppId())) { in getPrintJobInfo()
899 serializer.attribute(null, ATTR_APP_ID, String.valueOf(printJob.getAppId())); in doWriteStateLocked()
/frameworks/base/core/java/android/content/pm/
DApplicationInfo.java1083 uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); in initForUser()
/frameworks/base/core/tests/coretests/src/android/print/
DIPrintManagerParametersTest.java74 mAppId = UserHandle.getAppId(Process.myUid()); in IPrintManagerParametersTest()
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java96 sb.append(UserHandle.getAppId(mUid)); in Session()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java2266 if (UserHandle.getAppId(callingUid) != Process.SYSTEM_UID) { in getAuthTokenLabel()
3449 if (UserHandle.getAppId(Binder.getCallingUid()) != Process.SYSTEM_UID) { in hasAccountAccess()
3512 if (UserHandle.getAppId(Binder.getCallingUid()) != Process.SYSTEM_UID) { in createRequestAccountAccessIntentSenderAsUser()
4085 if (UserHandle.getAppId(uid) == Process.SYSTEM_UID) {
5372 if (UserHandle.getAppId(callerUid) == Process.SYSTEM_UID) {
5489 if (UserHandle.getAppId(callerUid) == Process.SYSTEM_UID) {
5607 if (UserHandle.getAppId(callingUid) != Process.SYSTEM_UID) {
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1250 uid = UserHandle.getUid(getCurrentUserId(), UserHandle.getAppId(uid)); in adjustStreamVolume()
1543 uid = UserHandle.getUid(getCurrentUserId(), UserHandle.getAppId(uid)); in setStreamVolume()
1906 uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); in setMasterMuteInternal()
2002 uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); in setMicrophoneMute()
5426 if (UserHandle.getAppId(pkg.applicationInfo.uid) < FIRST_APPLICATION_UID) { in killBackgroundUserProcessesWithRecordAudioPermission()
5441 ActivityManagerNative.getDefault().killUid(UserHandle.getAppId(uid), in killBackgroundUserProcessesWithRecordAudioPermission()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java528 && UserHandle.getAppId(uid) >= Process.FIRST_APPLICATION_UID) { in processAppUsage()

12