/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 205 final int appId = getAppId(uid); in isApp() local 206 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; in isApp() 218 final int appId = getAppId(uid); in isCore() local 219 return appId < Process.FIRST_APPLICATION_UID; in isCore() 293 public static int getUid(@UserIdInt int userId, @AppIdInt int appId) { in getUid() argument 295 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE); in getUid() 297 return appId; in getUid() 325 public static int getSharedAppGid(@UserIdInt int userId, @AppIdInt int appId) { in getSharedAppGid() argument 326 if (appId >= AID_APP_START && appId <= AID_APP_END) { in getSharedAppGid() 327 return (appId - AID_APP_START) + AID_SHARED_GID_START; in getSharedAppGid() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AppsFilter.java | 177 boolean isLoggingEnabled(int appId); in isLoggingEnabled() argument 184 void enableLogging(int appId, boolean enable); in enableLogging() argument 262 public void enableLogging(int appId, boolean enable) { in enableLogging() argument 267 mLoggingEnabled.put(appId, true); in enableLogging() 270 final int index = mLoggingEnabled.indexOfKey(appId); in enableLogging() 306 enableLogging(setting.appId, enableLogging); in updatePackageState() 532 mForceQueryable.add(setting.appId); in addPackageInternal() 548 mForceQueryable.contains(newPkgSetting.appId) in addPackageInternal() 558 mForceQueryable.add(newPkgSetting.appId); in addPackageInternal() 563 if (existingSetting.appId == newPkgSetting.appId || existingSetting.pkg == null) { in addPackageInternal() [all …]
|
D | PackageSetting.java | 45 int appId; field in PackageSetting 122 + " " + name + "/" + appId + "}"; in toString() 131 appId = orig.appId; in doCopy() 192 return appId; in getAppId() 273 proto.write(PackageProto.UID, appId); in dumpDebug() 311 appId = other.appId; in updateFrom()
|
D | Installer.java | 179 public long createAppData(String uuid, String packageName, int userId, int flags, int appId, in createAppData() argument 183 return mInstalld.createAppData(uuid, packageName, userId, flags, appId, seInfo, in createAppData() 214 public void restoreconAppData(String uuid, String packageName, int userId, int flags, int appId, in restoreconAppData() argument 218 mInstalld.restoreconAppData(uuid, packageName, userId, flags, appId, seInfo); in restoreconAppData() 264 int appId, String seInfo, int targetSdkVersion, in moveCompleteApp() argument 268 mInstalld.moveCompleteApp(fromUuid, toUuid, packageName, appId, seInfo, in moveCompleteApp() 275 public void getAppSize(String uuid, String[] packageNames, int userId, int flags, int appId, in getAppSize() argument 286 appId, ceDataInodes, codePaths); in getAppSize() 361 public void setAppQuota(String uuid, int userId, int appId, long cacheQuota) in setAppQuota() argument 365 mInstalld.setAppQuota(uuid, userId, appId, cacheQuota); in setAppQuota() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | UserHandleTest.java | 101 private static int multiuser_get_uid(int userId, int appId) { in multiuser_get_uid() argument 102 return getUid(userId, appId); in multiuser_get_uid() 105 private static int multiuser_get_cache_gid(int userId, int appId) { in multiuser_get_cache_gid() argument 106 return getCacheAppGid(userId, appId); in multiuser_get_cache_gid() 109 private static int multiuser_get_shared_gid(int userId, int appId) { in multiuser_get_shared_gid() argument 110 return getSharedAppGid(userId, appId); in multiuser_get_shared_gid()
|
/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/core/java/com/android/internal/os/ |
D | AppIdToPackageMap.java | 67 public String mapAppId(int appId) { in mapAppId() argument 68 String pkgName = mAppIdToPackageMap.get(appId); in mapAppId() 69 return pkgName == null ? String.valueOf(appId) : pkgName; in mapAppId() 74 final int appId = UserHandle.getAppId(uid); in mapUid() local 75 final String pkgName = mAppIdToPackageMap.get(appId); in mapUid()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | InstallerTest.java | 100 final int appId = UserHandle.getAppId(app.uid); in testGetAppSize() local 102 if (ArrayUtils.contains(appIds, appId)) { in testGetAppSize() 105 appIds = ArrayUtils.appendInt(appIds, appId); in testGetAppSize() 122 appId, ceDataInodes, codePaths, stats); in testGetAppSize() 127 appId, ceDataInodes, codePaths, quotaStats); in testGetAppSize() 178 final int appId = UserHandle.getAppId(app.uid); in getAppIds() local 179 if (!ArrayUtils.contains(appIds, appId)) { in getAppIds() 180 appIds = ArrayUtils.appendInt(appIds, appId); in getAppIds()
|
D | PackageSettingBuilder.java | 62 public PackageSettingBuilder setAppId(int appId) { in setAppId() argument 63 this.mAppId = appId; in setAppId() 173 packageSetting.appId = mAppId; in build()
|
/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 30 int userId, int flags, int appId, @utf8InCpp String seInfo); in restoreconAppData() argument 41 int userId, int flags, int appId, in long[] ceDataInodes, in getAppSize() argument 54 void setAppQuota(@nullable @utf8InCpp String uuid, int userId, int appId, long cacheQuota); in setAppQuota() argument 57 @utf8InCpp String packageName, int appId, in moveCompleteApp() argument 82 boolean createProfileSnapshot(int appId, @utf8InCpp String packageName, in createProfileSnapshot() argument 113 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath, in prepareAppProfile() argument 119 int appId, @utf8InCpp String seInfo, int user, int snapshotId, int storageflags); in restoreAppDataSnapshot() argument
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 140 PrintAttributes attributes, String packageName, int appId, int userId) { in print() argument 182 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in print() 196 public List<PrintJobInfo> getPrintJobInfos(int appId, int userId) { in getPrintJobInfos() argument 205 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfos() 217 public PrintJobInfo getPrintJobInfo(PrintJobId printJobId, int appId, int userId) { in getPrintJobInfo() argument 230 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in getPrintJobInfo() 263 public void cancelPrintJob(PrintJobId printJobId, int appId, int userId) { in cancelPrintJob() argument 276 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in cancelPrintJob() 288 public void restartPrintJob(PrintJobId printJobId, int appId, int userId) { in restartPrintJob() argument 302 resolvedAppId = resolveCallingAppEnforcingPermissions(appId); in restartPrintJob() [all …]
|
D | UserState.java | 222 @Nullable PrintAttributes attributes, @NonNull String packageName, int appId) { in print() argument 226 printJob.setAppId(appId); in print() 234 if (!mPrintJobForAppCache.onPrintJobCreated(adapter.asBinder(), appId, in print() 263 public List<PrintJobInfo> getPrintJobInfos(int appId) { in getPrintJobInfos() argument 264 List<PrintJobInfo> cachedPrintJobs = mPrintJobForAppCache.getPrintJobs(appId); in getPrintJobInfos() 287 PrintJobInfo.STATE_ANY, appId); in getPrintJobInfos() 303 public PrintJobInfo getPrintJobInfo(@NonNull PrintJobId printJobId, int appId) { in getPrintJobInfo() argument 304 PrintJobInfo printJob = mPrintJobForAppCache.getPrintJob(printJobId, appId); in getPrintJobInfo() 306 printJob = mSpooler.getPrintJobInfo(printJobId, appId); in getPrintJobInfo() 339 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() 734 ComponentName componentName, int state, int appId) in getPrintJobInfos() argument 737 target.getPrintJobInfos(mCallback, componentName, state, appId, sequence); in getPrintJobInfos() 756 int appId) throws RemoteException, TimeoutException { in getPrintJobInfo() argument 758 target.getPrintJobInfo(printJobId, mCallback, appId, sequence); in getPrintJobInfo()
|
/frameworks/base/core/java/android/hardware/location/ |
D | NanoApp.java | 91 @Deprecated public NanoApp(int appId, byte[] appBinary) { in NanoApp() argument 110 public NanoApp(long appId, byte[] appBinary) { in NanoApp() argument 114 mAppId = appId; in NanoApp() 150 public void setAppId(long appId) { in setAppId() argument 151 mAppId = appId; in setAppId()
|
D | NanoAppFilter.java | 111 public NanoAppFilter(long appId, int appVersion, int versionMask, long vendorMask) { in NanoAppFilter() argument 112 mAppId = appId; in NanoAppFilter()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | AppDataRollbackHelper.java | 95 int userId, int appId, String seInfo) { in restoreAppData() argument 114 pendingRestores.add(new RestoreInfo(userId, appId, seInfo)); in restoreAppData() 122 doRestoreOrWipe(packageRollbackInfo, userId, rollbackId, appId, seInfo, storageFlags); in restoreAppData() 158 int rollbackId, int appId, String seInfo, int flags) { in doRestoreOrWipe() argument 185 appId, seInfo, userId, rollbackId, flags); in doRestoreOrWipe() local 277 ri.appId, ri.seInfo, Installer.FLAG_STORAGE_CE)) { in commitPendingBackupAndRestoreForUser()
|
/frameworks/base/core/java/android/content/rollback/ |
D | PackageRollbackInfo.java | 49 public final int appId; field in PackageRollbackInfo.RestoreInfo 52 public RestoreInfo(int userId, int appId, String seInfo) { in RestoreInfo() argument 54 this.appId = appId; in RestoreInfo()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 54 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 57 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 72 const std::string& packageName, const int32_t appId, const std::string& seInfo, 82 int32_t appId, const std::vector<int64_t>& ceDataInodes, 102 int32_t userId, int32_t appId, int64_t cacheQuota); 106 int32_t appId, const std::string& seInfo, 134 binder::Status createProfileSnapshot(int32_t appId, const std::string& packageName, 169 int32_t userId, int32_t appId, const std::string& profileName,
|
D | InstalldNativeService.cpp | 380 static bool prepare_app_profile_dir(const std::string& packageName, int32_t appId, int32_t userId) { in prepare_app_profile_dir() argument 385 int32_t uid = multiuser_get_uid(userId, appId); in prepare_app_profile_dir() 386 int shared_app_gid = multiuser_get_shared_gid(userId, appId); in prepare_app_profile_dir() 450 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, in createAppData() argument 463 int32_t uid = multiuser_get_uid(userId, appId); in createAppData() 464 int32_t cacheGid = multiuser_get_cache_gid(userId, appId); in createAppData() 523 if (!prepare_app_profile_dir(packageName, appId, userId)) { in createAppData() 1031 const int32_t appId, const std::string& seInfo, const int32_t user, in restoreAppDataSnapshot() argument 1098 return restoreconAppData(volumeUuid, packageName, user, storageFlags, appId, seInfo); in restoreAppDataSnapshot() 1174 int32_t appId, const std::string& seInfo, in moveCompleteApp() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | BinderCallsStatsService.java | 69 final int appId = UserHandle.getAppId(callingUid); in resolveWorkSourceUid() local 70 if (mAppIdWhitelist.contains(appId)) { in resolveWorkSourceUid() 85 for (Integer appId : whitelist) { in dump() 86 pw.println("\t- " + packageMap.mapAppId(appId)); in dump() 111 final int appId = UserHandle.getAppId(uid); in createAppidWhitelist() local 112 whitelist.add(appId); in createAppidWhitelist()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockSyntheticPasswordManager.java | 62 byte[] appId = new byte[len]; in decryptSPBlob() 63 buffer.get(appId); in decryptSPBlob() 65 if (!Arrays.equals(appId, applicationId)) { in decryptSPBlob()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ArtManagerService.java | 251 int appId = UserHandle.getAppId(info.applicationInfo.uid); in snapshotAppProfile() local 252 if (appId < 0) { in snapshotAppProfile() 259 appId, callback); in snapshotAppProfile() 265 int appId, ISnapshotRuntimeProfileCallback callback) { in createProfileSnapshot() argument 269 if (!mInstaller.createProfileSnapshot(appId, packageName, profileName, classpath)) { in createProfileSnapshot() 402 final int appId = UserHandle.getAppId(pkg.getUid()); in prepareAppProfiles() local 407 if (appId < 0) { in prepareAppProfiles() 408 Slog.wtf(TAG, "Invalid app id: " + appId); in prepareAppProfiles() 425 boolean result = mInstaller.prepareAppProfile(pkg.getPackageName(), user, appId, in prepareAppProfiles()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyLogger.java | 189 void tempPowerSaveWlChanged(int appId, boolean added) { in tempPowerSaveWlChanged() argument 191 if (LOGV || appId == UserHandle.getAppId(mDebugUid)) { in tempPowerSaveWlChanged() 193 getTempPowerSaveWlChangedLog(appId, added)); in tempPowerSaveWlChanged() 195 mEventsBuffer.tempPowerSaveWlChanged(appId, added); in tempPowerSaveWlChanged() 321 private static String getTempPowerSaveWlChangedLog(int appId, boolean added) { in getTempPowerSaveWlChangedLog() argument 322 return "temp-power-save whitelist for " + appId + " changed to: " + added; in getTempPowerSaveWlChangedLog() 488 public void tempPowerSaveWlChanged(int appId, boolean added) { in tempPowerSaveWlChanged() argument 494 data.ifield1 = appId; in tempPowerSaveWlChanged()
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 606 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 612 appId = appId != null ? appId : new KeymasterBlob(new byte[0]); in getKeyCharacteristics() 614 int error = mBinder.getKeyCharacteristics(promise, alias, clientId, appId, uid); in getKeyCharacteristics() 636 public int getKeyCharacteristics(String alias, KeymasterBlob clientId, KeymasterBlob appId, in getKeyCharacteristics() argument 638 return getKeyCharacteristics(alias, clientId, appId, UID_SELF, outCharacteristics); in getKeyCharacteristics() 813 KeymasterBlob appId, int uid) { in exportKey() argument 818 appId = appId != null ? appId : new KeymasterBlob(new byte[0]); in exportKey() 819 int error = mBinder.exportKey(promise, alias, format, clientId, appId, uid); in exportKey() 836 KeymasterBlob appId) { in exportKey() argument 837 return exportKey(alias, format, clientId, appId, UID_SELF); in exportKey()
|