/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 115 final int appId = getAppId(uid); in isIsolated() local 116 return appId >= Process.FIRST_ISOLATED_UID && appId <= Process.LAST_ISOLATED_UID; in isIsolated() 125 final int appId = getAppId(uid); in isApp() local 126 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; in isApp() 168 public static int getUid(@UserIdInt int userId, @AppIdInt int appId) { in getUid() argument 170 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE); in getUid() 172 return appId; in getUid() 207 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid() local 209 if (appId < 0 || appId >= Process.FIRST_SHARED_APPLICATION_GID) { in getAppIdFromSharedAppGid() 212 return appId; in getAppIdFromSharedAppGid() [all …]
|
/frameworks/base/core/java/android/print/ |
D | IPrintManager.aidl | 40 List<PrintJobInfo> getPrintJobInfos(int appId, int userId); in getPrintJobInfos() argument 41 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId); in getPrintJobInfo() argument 43 in PrintAttributes attributes, String packageName, int appId, int userId); in print() argument 44 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); in cancelPrintJob() argument 45 void restartPrintJob(in PrintJobId printJobId, int appId, int userId); in restartPrintJob() argument 48 int appId, int userId); in addPrintJobStateChangeListener() argument
|
D | IPrintSpooler.aidl | 40 int state, int appId, int sequence); in getPrintJobInfos() argument 42 int appId, int sequence); in getPrintJobInfo() argument
|
D | PrintJobInfo.java | 427 public void setAppId(int appId) { in setAppId() argument 428 mAppId = appId; in setAppId()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 118 PrintAttributes attributes, String packageName, int appId, int userId) { in print() argument 132 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in print() 146 public List<PrintJobInfo> getPrintJobInfos(int appId, int userId) { in getPrintJobInfos() argument 155 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfos() 167 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) { in getPrintJobInfo() argument 180 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfo() 213 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) { in cancelPrintJob() argument 226 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in cancelPrintJob() 238 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) { in restartPrintJob() argument 251 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in restartPrintJob() [all …]
|
D | UserState.java | 205 @Nullable PrintAttributes attributes, @NonNull String packageName, int appId) { in print() argument 209 printJob.setAppId(appId); in print() 217 if (!mPrintJobForAppCache.onPrintJobCreated(adapter.asBinder(), appId, in print() 255 public List<PrintJobInfo> getPrintJobInfos(int appId) { in getPrintJobInfos() argument 256 List<PrintJobInfo> cachedPrintJobs = mPrintJobForAppCache.getPrintJobs(appId); in getPrintJobInfos() 279 PrintJobInfo.STATE_ANY, appId); in getPrintJobInfos() 295 public PrintJobInfo getPrintJobInfo(@NonNull PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 296 PrintJobInfo printJob = mPrintJobForAppCache.getPrintJob(printJobId, appId); in getPrintJobInfo() 298 printJob = mSpooler.getPrintJobInfo(printJobId, appId); in getPrintJobInfo() 331 public void cancelPrintJob(@NonNull PrintJobId printJobId, int appId) { in cancelPrintJob() argument [all …]
|
D | RemotePrintSpooler.java | 155 int appId) { in getPrintJobInfos() argument 163 componentName, state, appId); in getPrintJobInfos() 229 public final PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 237 printJobId, appId); in getPrintJobInfo() 732 ComponentName componentName, int state, int appId) in getPrintJobInfos() argument 735 target.getPrintJobInfos(mCallback, componentName, state, appId, sequence); in getPrintJobInfos() 754 int appId) throws RemoteException, TimeoutException { in getPrintJobInfo() argument 756 target.getPrintJobInfo(printJobId, mCallback, appId, sequence); in getPrintJobInfo()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSetting.java | 30 int appId; field in PackageSetting 51 appId = orig.appId; in PackageSetting() 60 + " " + name + "/" + appId + "}"; in toString()
|
D | Settings.java | 577 p.appId, p.versionCode, p.pkgFlags, p.pkgPrivateFlags, in enableSystemPackageLPw() 598 if (p.appId == uid) { in addPackageLPw() 609 p.appId = uid; in addPackageLPw() 768 p.appId = origPackage.appId; in getPackageLPw() 817 p.appId = sharedUser.userId; in getPackageLPw() 829 p.appId = dis.appId; in getPackageLPw() 844 addUserIdLPw(p.appId, p, name); in getPackageLPw() 847 p.appId = newUserIdLPw(p); in getPackageLPw() 851 if (p.appId < 0) { in getPackageLPw() 960 } else if (p.appId != sharedUser.userId) { in addPackageSettingLPw() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | ContextHubService.java | 196 long appId = app.getAppId(); in loadNanoApp() local 199 if ((appId >> 32) != 0) { in loadNanoApp() 204 appId = parseAppId(app); in loadNanoApp() 207 msgHeader[HEADER_FIELD_LOAD_APP_ID_LO] = (int)(appId & 0xFFFFFFFF); in loadNanoApp() 208 msgHeader[HEADER_FIELD_LOAD_APP_ID_HI] = (int)((appId >> 32) & 0xFFFFFFFF); in loadNanoApp() 352 private int addAppInstance(int hubHandle, int appInstanceHandle, long appId, int appVersion) { in addAppInstance() argument 356 appInfo.setAppId(appId); in addAppInstance() 375 + appId + " version " + appVersion); in addAppInstance()
|
D | NanoApp.java | 81 public NanoApp(int appId, byte[] appBinary) { in NanoApp() argument 85 mAppId = appId; in NanoApp() 121 public void setAppId(int appId) { in setAppId() argument 122 mAppId = appId; in setAppId()
|
D | NanoAppFilter.java | 109 public NanoAppFilter(long appId, int appVersion, int versionMask, long vendorMask) { in NanoAppFilter() argument 110 mAppId = appId; in NanoAppFilter()
|
D | NanoAppInstanceInfo.java | 111 public void setAppId(long appId) { in setAppId() argument 112 mAppId = appId; in setAppId()
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 434 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 437 return mBinder.getKeyCharacteristics(alias, clientId, appId, uid, outCharacteristics); in getKeyCharacteristics() 444 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 446 return getKeyCharacteristics(alias, clientId, appId, UID_SELF, outCharacteristics); in getKeyCharacteristics() 466 KeymasterBlob appId, int uid) { in exportKey() argument 468 return mBinder.exportKey(alias, format, clientId, appId, uid); in exportKey() 475 KeymasterBlob appId) { in exportKey() argument 476 return exportKey(alias, format, clientId, appId, UID_SELF); in exportKey()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsUsageMonitor.java | 584 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneOrSameApp() local 585 if (appId == Process.SYSTEM_UID || appId == Process.PHONE_UID || uid == 0) { in checkCallerIsSystemOrPhoneOrSameApp() 602 int appId = UserHandle.getAppId(uid); in checkCallerIsSystemOrPhoneApp() local 603 if (appId == Process.SYSTEM_UID || appId == Process.PHONE_UID || uid == 0) { in checkCallerIsSystemOrPhoneApp()
|
/frameworks/base/core/java/android/security/ |
D | IKeystoreService.aidl | 62 int getKeyCharacteristics(String alias, in KeymasterBlob clientId, in KeymasterBlob appId, in getKeyCharacteristics() argument 67 in KeymasterBlob appId, int uid); in exportKey() argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | PrintSpoolerService.java | 282 int state, int appId) { in getPrintJobInfos() argument 292 final boolean sameAppId = appId == PrintManager.APP_ID_ANY in getPrintJobInfos() 293 || printJob.getAppId() == appId; in getPrintJobInfos() 319 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 325 && (appId == PrintManager.APP_ID_ANY in getPrintJobInfo() 326 || appId == printJob.getAppId())) { in getPrintJobInfo() 1133 final int appId = Integer.parseInt(parser.getAttributeValue(null, ATTR_APP_ID)); in parsePrintJob() local 1134 printJob.setAppId(appId); in parsePrintJob() 1375 ComponentName componentName, int state, int appId, int sequence) in getPrintJobInfos() argument 1380 componentName, state, appId); in getPrintJobInfos() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | IBluetoothGatt.aidl | 48 void registerClient(in ParcelUuid appId, in IBluetoothGattCallback callback); in registerClient() argument 67 void registerServer(in ParcelUuid appId, in IBluetoothGattServerCallback callback); in registerServer() argument
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 680 final int appId = getAppId(packageName); in forceIdleState() local 681 if (appId < 0) return; in forceIdleState() 685 final boolean previouslyIdle = isAppIdleFiltered(packageName, appId, in forceIdleState() 688 final boolean stillIdle = isAppIdleFiltered(packageName, appId, in forceIdleState() 815 private boolean isAppIdleFiltered(String packageName, int appId, int userId, in isAppIdleFiltered() argument 822 if (appId < Process.FIRST_APPLICATION_UID) { in isAppIdleFiltered() 1342 final int appId = getAppId(packageName); in setAppInactive() local 1343 if (appId < 0) return; in setAppInactive()
|
/frameworks/base/core/jni/ |
D | android_hardware_location_ContextHubService.cpp | 448 static int startLoadAppTxn(uint64_t appId, int hubHandle) { in startLoadAppTxn() argument 458 txnInfo->truncName = appId; in startLoadAppTxn() 462 txnInfo->appInfo.app_name.id = appId; in startLoadAppTxn() 1115 uint64_t appId; in nativeSendMessage() local 1125 appId = appIdHi << 32 | appIdLo; in nativeSendMessage() 1146 if (startLoadAppTxn(appId, hubHandle) != 0) { in nativeSendMessage()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1567 final int appId = readIntAttribute(in, ATTR_APP_ID); in readPolicyAL() local 1572 final int uid = UserHandle.getUid(UserHandle.USER_SYSTEM, appId); in readPolicyAL() 2645 int appId = mPowerSaveTempWhitelistAppIds.keyAt(i); in updateRulesForWhitelistedPowerSaveUL() local 2646 int uid = UserHandle.getUid(user.id, appId); in updateRulesForWhitelistedPowerSaveUL() 2651 int appId = mPowerSaveWhitelistAppIds.keyAt(i); in updateRulesForWhitelistedPowerSaveUL() local 2652 int uid = UserHandle.getUid(user.id, appId); in updateRulesForWhitelistedPowerSaveUL() 2668 final int appId = UserHandle.getAppId(uid); in isWhitelistedBatterySaverUL() local 2669 return mPowerSaveTempWhitelistAppIds.get(appId) || mPowerSaveWhitelistAppIds.get(appId); in isWhitelistedBatterySaverUL() 2717 int appId = UserHandle.getAppId(uid); in updateRuleForAppIdleUL() local 2718 if (!mPowerSaveTempWhitelistAppIds.get(appId) && isUidIdle(uid) in updateRuleForAppIdleUL() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | DeviceIdleController.java | 1253 public void addPowerSaveTempWhitelistAppDirect(int appId, long duration, boolean sync, in addPowerSaveTempWhitelistAppDirect() argument 1255 addPowerSaveTempWhitelistAppDirectInternal(0, appId, duration, sync, reason); in addPowerSaveTempWhitelistAppDirect() 1613 int appId = UserHandle.getAppId(uid); in addPowerSaveTempWhitelistAppInternal() local 1614 addPowerSaveTempWhitelistAppDirectInternal(callingUid, appId, duration, sync, reason); in addPowerSaveTempWhitelistAppInternal() 1623 void addPowerSaveTempWhitelistAppDirectInternal(int callingUid, int appId, in addPowerSaveTempWhitelistAppDirectInternal() argument 1636 Pair<MutableLong, String> entry = mTempWhitelistAppIdEndTimes.get(appId); in addPowerSaveTempWhitelistAppDirectInternal() 1641 mTempWhitelistAppIdEndTimes.put(appId, entry); in addPowerSaveTempWhitelistAppDirectInternal() 1645 Slog.d(TAG, "Adding AppId " + appId + " to temp whitelist. New entry: " + newEntry); in addPowerSaveTempWhitelistAppDirectInternal() 1651 reason, appId); in addPowerSaveTempWhitelistAppDirectInternal() 1654 postTempActiveTimeoutMessage(appId, duration); in addPowerSaveTempWhitelistAppDirectInternal()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessRecord.java | 636 int appId = UserHandle.getAppId(info.uid); in toShortString() local 637 if (appId >= Process.FIRST_APPLICATION_UID) { in toShortString() 639 sb.append(appId - Process.FIRST_APPLICATION_UID); in toShortString() 642 sb.append(appId); in toShortString()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipCommandInterface.java | 362 int serviceClass, String appId, Message response) { in queryFacilityLockForApp() argument 372 String password, int serviceClass, String appId, Message response) { in setFacilityLockForApp() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCommandInterface.java | 361 int serviceClass, String appId, Message response) { in queryFacilityLockForApp() argument 371 String password, int serviceClass, String appId, Message response) { in setFacilityLockForApp() argument
|