/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 117 final int appId = getAppId(uid); in isIsolated() local 118 return appId >= Process.FIRST_ISOLATED_UID && appId <= Process.LAST_ISOLATED_UID; in isIsolated() 127 final int appId = getAppId(uid); in isApp() local 128 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; in isApp() 175 public static int getUid(@UserIdInt int userId, @AppIdInt int appId) { in getUid() argument 177 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE); in getUid() 179 return appId; in getUid() 214 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid() local 216 if (appId < 0 || appId >= Process.FIRST_SHARED_APPLICATION_GID) { in getAppIdFromSharedAppGid() 219 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
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | InstallerTest.java | 88 final int appId = UserHandle.getAppId(app.uid); in testGetAppSize() local 90 if (ArrayUtils.contains(appIds, appId)) { in testGetAppSize() 93 appIds = ArrayUtils.appendInt(appIds, appId); in testGetAppSize() 110 appId, ceDataInodes, codePaths, stats); in testGetAppSize() 115 appId, ceDataInodes, codePaths, quotaStats); in testGetAppSize() 162 final int appId = UserHandle.getAppId(app.uid); in getAppIds() local 163 if (!ArrayUtils.contains(appIds, appId)) { in getAppIds() 164 appIds = ArrayUtils.appendInt(appIds, appId); in getAppIds()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 117 PrintAttributes attributes, String packageName, int appId, int userId) { in print() argument 131 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in print() 145 public List<PrintJobInfo> getPrintJobInfos(int appId, int userId) { in getPrintJobInfos() argument 154 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfos() 166 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) { in getPrintJobInfo() argument 179 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfo() 212 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) { in cancelPrintJob() argument 225 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in cancelPrintJob() 237 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) { in restartPrintJob() argument 250 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in restartPrintJob() [all …]
|
D | UserState.java | 212 @Nullable PrintAttributes attributes, @NonNull String packageName, int appId) { in print() argument 216 printJob.setAppId(appId); in print() 224 if (!mPrintJobForAppCache.onPrintJobCreated(adapter.asBinder(), appId, in print() 262 public List<PrintJobInfo> getPrintJobInfos(int appId) { in getPrintJobInfos() argument 263 List<PrintJobInfo> cachedPrintJobs = mPrintJobForAppCache.getPrintJobs(appId); in getPrintJobInfos() 286 PrintJobInfo.STATE_ANY, appId); in getPrintJobInfos() 302 public PrintJobInfo getPrintJobInfo(@NonNull PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 303 PrintJobInfo printJob = mPrintJobForAppCache.getPrintJob(printJobId, appId); in getPrintJobInfo() 305 printJob = mSpooler.getPrintJobInfo(printJobId, appId); in getPrintJobInfo() 338 public void cancelPrintJob(@NonNull PrintJobId printJobId, int appId) { in cancelPrintJob() argument [all …]
|
D | RemotePrintSpooler.java | 163 int appId) { in getPrintJobInfos() argument 171 componentName, state, appId); in getPrintJobInfos() 231 public final PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 239 printJobId, appId); in getPrintJobInfo() 729 ComponentName componentName, int state, int appId) in getPrintJobInfos() argument 732 target.getPrintJobInfos(mCallback, componentName, state, appId, sequence); in getPrintJobInfos() 751 int appId) throws RemoteException, TimeoutException { in getPrintJobInfo() argument 753 target.getPrintJobInfo(printJobId, mCallback, appId, sequence); in getPrintJobInfo()
|
/frameworks/base/core/java/android/hardware/location/ |
D | NanoApp.java | 83 @Deprecated public NanoApp(int appId, byte[] appBinary) { in NanoApp() argument 102 public NanoApp(long appId, byte[] appBinary) { in NanoApp() argument 106 mAppId = appId; in NanoApp() 142 public void setAppId(long appId) { in setAppId() argument 143 mAppId = appId; in setAppId()
|
D | NanoAppFilter.java | 108 public NanoAppFilter(long appId, int appVersion, int versionMask, long vendorMask) { in NanoAppFilter() argument 109 mAppId = appId; in NanoAppFilter()
|
D | NanoAppInstanceInfo.java | 111 public void setAppId(long appId) { in setAppId() argument 112 mAppId = appId; in setAppId()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_location_ContextHubService.cpp | 74 uint64_t appId; // App Id, contains vendor id member 340 virtual Return<void> handleAppAbort(uint64_t appId, uint32_t abortCode) { in handleAppAbort() 342 appId, in handleAppAbort() 406 if (current->second.appInfo.appId == app_id) { in getAppInstanceForAppId() 418 return db.appInstances[id].appInfo.appId; in getAppIdForAppInstance() 465 entry.truncName = appInfo->appId; in addAppInstance() 510 int startLoadAppTxn(uint64_t appId, int hubHandle) { in startLoadAppTxn() argument 520 txnInfo->truncName = appId; in startLoadAppTxn() 524 txnInfo->appInfo.appId = appId; in startLoadAppTxn() 684 if (apps[i].appId == cacheEntry.appInfo.appId) { in handleQueryAppsResponse() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSetting.java | 33 int appId; field in PackageSetting 91 + " " + name + "/" + appId + "}"; in toString() 100 appId = orig.appId; in doCopy() 138 proto.write(PackageProto.UID, appId); in writeToProto()
|
D | Installer.java | 153 public long createAppData(String uuid, String packageName, int userId, int flags, int appId, in createAppData() argument 157 return mInstalld.createAppData(uuid, packageName, userId, flags, appId, seInfo, in createAppData() 164 public void restoreconAppData(String uuid, String packageName, int userId, int flags, int appId, in restoreconAppData() argument 168 mInstalld.restoreconAppData(uuid, packageName, userId, flags, appId, seInfo); in restoreconAppData() 214 String dataAppName, int appId, String seInfo, int targetSdkVersion) in moveCompleteApp() argument 218 mInstalld.moveCompleteApp(fromUuid, toUuid, packageName, dataAppName, appId, seInfo, in moveCompleteApp() 225 public void getAppSize(String uuid, String[] packageNames, int userId, int flags, int appId, in getAppSize() argument 231 appId, ceDataInodes, codePaths); in getAppSize() 269 public void setAppQuota(String uuid, int userId, int appId, long cacheQuota) in setAppQuota() argument 273 mInstalld.setAppQuota(uuid, userId, appId, cacheQuota); in setAppQuota()
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 25 int userId, int flags, int appId, in @utf8InCpp String seInfo, int targetSdkVersion); in createAppData() argument 27 int userId, int flags, int appId, @utf8InCpp String seInfo); in restoreconAppData() argument 38 int userId, int flags, int appId, in long[] ceDataInodes, in getAppSize() argument 43 void setAppQuota(@nullable @utf8InCpp String uuid, int userId, int appId, long cacheQuota); in setAppQuota() argument 46 @utf8InCpp String packageName, @utf8InCpp String dataAppName, int appId, in moveCompleteApp() argument
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | ContextHubService.java | 148 long appId = app.getAppId(); in loadNanoApp() local 150 msgHeader[HEADER_FIELD_LOAD_APP_ID_LO] = (int)(appId & 0xFFFFFFFF); in loadNanoApp() 151 msgHeader[HEADER_FIELD_LOAD_APP_ID_HI] = (int)((appId >> 32) & 0xFFFFFFFF); in loadNanoApp() 304 private int addAppInstance(int hubHandle, int appInstanceHandle, long appId, int appVersion) { in addAppInstance() argument 308 appInfo.setAppId(appId); in addAppInstance() 327 + appId + " version " + appVersion); in addAppInstance()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockSyntheticPasswordManager.java | 60 byte[] appId = new byte[len]; in decryptSPBlob() 61 buffer.get(appId); in decryptSPBlob() 63 if (!Arrays.equals(appId, applicationId)) { in decryptSPBlob()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 49 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 52 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 65 int32_t appId, const std::vector<int64_t>& ceDataInodes, 75 int32_t userId, int32_t appId, int64_t cacheQuota); 79 const std::string& dataAppName, int32_t appId, const std::string& seInfo,
|
D | InstalldNativeService.cpp | 346 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, in createAppData() argument 359 int32_t uid = multiuser_get_uid(userId, appId); in createAppData() 360 int32_t cacheGid = multiuser_get_cache_gid(userId, appId); in createAppData() 437 int shared_app_gid = multiuser_get_shared_gid(0, appId); in createAppData() 725 const std::string& dataAppName, int32_t appId, const std::string& seInfo, in moveCompleteApp() argument 781 if (!createAppData(toUuid, packageName, user, FLAG_STORAGE_CE | FLAG_STORAGE_DE, appId, in moveCompleteApp() 826 appId, seInfo).isOk()) { in moveCompleteApp() 1144 int32_t appId, struct stats* stats, struct stats* extStats) { in collectQuotaStats() argument 1150 uid_t uid = multiuser_get_uid(userId, appId); in collectQuotaStats() 1163 int cacheGid = multiuser_get_cache_gid(userId, appId); in collectQuotaStats() [all …]
|
D | CacheTracker.cpp | 36 CacheTracker::CacheTracker(userid_t userId, appid_t appId, const std::string& quotaDevice) : in CacheTracker() argument 37 cacheUsed(0), cacheQuota(0), mUserId(userId), mAppId(appId), mQuotaDevice(quotaDevice), in CacheTracker()
|
D | CacheTracker.h | 42 CacheTracker(userid_t userId, appid_t appId, const std::string& quotaDevice);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 263 final int appId = UserHandle.getUserId(appInfo.uid); in queryStatsForPackage() local 278 appId, ceDataInodes, codePaths, stats); in queryStatsForPackage() 289 final int appId = UserHandle.getAppId(uid); in queryStatsForUid() local 324 appId, ceDataInodes, codePaths, stats); in queryStatsForUid() 329 appId, ceDataInodes, codePaths, manualStats); in queryStatsForUid() 403 final int appId = UserHandle.getAppId(app.uid); in getAppIds() local 404 if (!ArrayUtils.contains(appIds, appId)) { in getAppIds() 405 appIds = ArrayUtils.appendInt(appIds, appId); in getAppIds()
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 446 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 449 return mBinder.getKeyCharacteristics(alias, clientId, appId, uid, outCharacteristics); in getKeyCharacteristics() 456 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 458 return getKeyCharacteristics(alias, clientId, appId, UID_SELF, outCharacteristics); in getKeyCharacteristics() 478 KeymasterBlob appId, int uid) { in exportKey() argument 480 return mBinder.exportKey(alias, format, clientId, appId, uid); in exportKey() 487 KeymasterBlob appId) { in exportKey() argument 488 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 | 284 int state, int appId) { in getPrintJobInfos() argument 294 final boolean sameAppId = appId == PrintManager.APP_ID_ANY in getPrintJobInfos() 295 || printJob.getAppId() == appId; in getPrintJobInfos() 321 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 327 && (appId == PrintManager.APP_ID_ANY in getPrintJobInfo() 328 || appId == printJob.getAppId())) { in getPrintJobInfo() 1135 final int appId = Integer.parseInt(parser.getAttributeValue(null, ATTR_APP_ID)); in parsePrintJob() local 1136 printJob.setAppId(appId); in parsePrintJob() 1377 ComponentName componentName, int state, int appId, int sequence) in getPrintJobInfos() argument 1382 componentName, state, appId); in getPrintJobInfos() [all …]
|