/frameworks/base/core/java/android/app/usage/ |
D | IStorageStatsManager.aidl | 26 boolean isQuotaSupported(String volumeUuid, String callingPackage); in isQuotaSupported() argument 27 boolean isReservedSupported(String volumeUuid, String callingPackage); in isReservedSupported() argument 28 long getTotalBytes(String volumeUuid, String callingPackage); in getTotalBytes() argument 29 long getFreeBytes(String volumeUuid, String callingPackage); in getFreeBytes() argument 30 long getCacheBytes(String volumeUuid, String callingPackage); in getCacheBytes() argument 31 long getCacheQuotaBytes(String volumeUuid, int uid, String callingPackage); in getCacheQuotaBytes() argument 32 …StorageStats queryStatsForPackage(String volumeUuid, String packageName, int userId, String callin… in queryStatsForPackage() argument 33 StorageStats queryStatsForUid(String volumeUuid, int uid, String callingPackage); in queryStatsForUid() argument 34 StorageStats queryStatsForUser(String volumeUuid, int userId, String callingPackage); in queryStatsForUser() argument 35 …ExternalStorageStats queryExternalStatsForUser(String volumeUuid, int userId, String callingPackag… in queryExternalStatsForUser() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserDataPreparer.java | 73 final String volumeUuid = vol.getFsUuid(); in prepareUserData() local 74 prepareUserDataLI(volumeUuid, userId, userSerial, flags, true); in prepareUserData() 79 private void prepareUserDataLI(String volumeUuid, int userId, int userSerial, int flags, in prepareUserDataLI() argument 85 storage.prepareUserStorage(volumeUuid, userId, userSerial, flags); in prepareUserDataLI() 88 enforceSerialNumber(getDataUserDeDirectory(volumeUuid, userId), userSerial); in prepareUserDataLI() 89 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { in prepareUserDataLI() 94 enforceSerialNumber(getDataUserCeDirectory(volumeUuid, userId), userSerial); in prepareUserDataLI() 95 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { in prepareUserDataLI() 100 mInstaller.createUserData(volumeUuid, userId, userSerial, flags); in prepareUserDataLI() 110 logCriticalInfo(Log.WARN, "Destroying user " + userId + " on volume " + volumeUuid in prepareUserDataLI() [all …]
|
D | Installer.java | 492 String compilerFilter, @Nullable String volumeUuid, @Nullable String sharedLibraries, in dexopt() argument 503 dexFlags, compilerFilter, volumeUuid, sharedLibraries, seInfo, downgrade, in dexopt() 707 String[] isas, @Nullable String volumeUuid, int flags) throws InstallerException { in reconcileSecondaryDexFile() argument 715 volumeUuid, flags); in reconcileSecondaryDexFile() 722 @Nullable String volumeUuid, int flags) throws InstallerException { in hashSecondaryDexFile() argument 726 return mInstalld.hashSecondaryDexFile(dexPath, packageName, uid, volumeUuid, flags); in hashSecondaryDexFile() 761 public boolean isQuotaSupported(String volumeUuid) throws InstallerException { in isQuotaSupported() argument 764 return mInstalld.isQuotaSupported(volumeUuid); in isQuotaSupported() 773 public void tryMountDataMirror(String volumeUuid) throws InstallerException { in tryMountDataMirror() argument 776 mInstalld.tryMountDataMirror(volumeUuid); in tryMountDataMirror() [all …]
|
D | PackageSettingBase.java | 126 String volumeUuid; field in PackageSettingBase 205 public void setVolumeUuid(String volumeUuid) { in setVolumeUuid() argument 206 this.volumeUuid = volumeUuid; in setVolumeUuid() 211 return volumeUuid; in getVolumeUuid() 271 volumeUuid = orig.volumeUuid; in doCopy() 864 this.volumeUuid = other.volumeUuid; in updateFrom()
|
D | PackageInstallerService.java | 336 private void reconcileStagesLocked(String volumeUuid) { in reconcileStagesLocked() argument 337 final File stagingDir = getTmpSessionDir(volumeUuid); in reconcileStagesLocked() 342 final File stagedSessionStagingDir = Environment.getDataStagingDirectory(volumeUuid); in reconcileStagesLocked() 360 public void onPrivateVolumeMounted(String volumeUuid) { in onPrivateVolumeMounted() argument 362 reconcileStagesLocked(volumeUuid); in onPrivateVolumeMounted() 374 public File allocateStageDirLegacy(String volumeUuid, boolean isEphemeral) throws IOException { in allocateStageDirLegacy() argument 379 final File sessionStageDir = buildTmpSessionDir(sessionId, volumeUuid); in allocateStageDirLegacy() 734 params.volumeUuid = PackageHelper.resolveInstallVolume(mContext, params); in createSessionInternal() 895 private File getTmpSessionDir(String volumeUuid) { in getTmpSessionDir() argument 896 return Environment.getDataAppDirectory(volumeUuid); in getTmpSessionDir() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | StorageStatsSource.java | 39 public StorageStatsSource.ExternalStorageStats getExternalStorageStats(String volumeUuid, in getExternalStorageStats() argument 42 mStorageStatsManager.queryExternalStatsForUser(volumeUuid, user)); in getExternalStorageStats() 45 public StorageStatsSource.AppStorageStats getStatsForUid(String volumeUuid, int uid) in getStatsForUid() argument 48 mStorageStatsManager.queryStatsForUid(volumeUuid, uid)); in getStatsForUid() 52 String volumeUuid, String packageName, UserHandle user) in getStatsForPackage() argument 55 mStorageStatsManager.queryStatsForPackage(volumeUuid, packageName, user)); in getStatsForPackage() 58 public long getCacheQuotaBytes(String volumeUuid, int uid) { in getCacheQuotaBytes() argument 59 return mStorageStatsManager.getCacheQuotaBytes(volumeUuid, uid); in getCacheQuotaBytes()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 199 public boolean isQuotaSupported(String volumeUuid, String callingPackage) { in isQuotaSupported() argument 201 return mInstaller.isQuotaSupported(volumeUuid); in isQuotaSupported() 208 public boolean isReservedSupported(String volumeUuid, String callingPackage) { in isReservedSupported() argument 209 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in isReservedSupported() 218 public long getTotalBytes(String volumeUuid, String callingPackage) { in getTotalBytes() argument 221 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in getTotalBytes() 224 final VolumeInfo vol = mStorage.findVolumeByUuid(volumeUuid); in getTotalBytes() 227 new IOException("Failed to find storage device for UUID " + volumeUuid)); in getTotalBytes() 234 public long getFreeBytes(String volumeUuid, String callingPackage) { in getFreeBytes() argument 241 path = mStorage.findPathForUuid(volumeUuid); in getFreeBytes() [all …]
|
/frameworks/base/core/java/android/os/storage/ |
D | IStorageManager.aidl | 171 void setPrimaryStorageUuid(in String volumeUuid, IPackageMoveObserver callback) = 58; in setPrimaryStorageUuid() argument 179 void prepareUserStorage(in String volumeUuid, int userId, int serialNumber, int flags) = 66; in prepareUserStorage() argument 180 void destroyUserStorage(in String volumeUuid, int userId, int flags) = 67; in destroyUserStorage() argument 187 long getCacheQuotaBytes(String volumeUuid, int uid) = 75; in getCacheQuotaBytes() argument 188 long getCacheSizeBytes(String volumeUuid, int uid) = 76; in getCacheSizeBytes() argument 189 long getAllocatableBytes(String volumeUuid, int flags, String callingPackage) = 77; in getAllocatableBytes() argument 190 void allocateBytes(String volumeUuid, long bytes, int flags, String callingPackage) = 78; in allocateBytes() argument 201 void notifyAppIoBlocked(in String volumeUuid, int uid, int tid, int reason) = 91; in notifyAppIoBlocked() argument 202 void notifyAppIoResumed(in String volumeUuid, int uid, int tid, int reason) = 92; in notifyAppIoResumed() argument 204 boolean isAppIoBlocked(in String volumeUuid, int uid, int tid, int reason) = 94; in isAppIoBlocked() argument
|
D | StorageManager.java | 896 public @Nullable VolumeInfo findVolumeByQualifiedUuid(String volumeUuid) { in findVolumeByQualifiedUuid() argument 897 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findVolumeByQualifiedUuid() 899 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findVolumeByQualifiedUuid() 902 return findVolumeByUuid(volumeUuid); in findVolumeByQualifiedUuid() 943 public @NonNull File findPathForUuid(String volumeUuid) throws FileNotFoundException { in findPathForUuid() argument 944 final VolumeInfo vol = findVolumeByQualifiedUuid(volumeUuid); in findPathForUuid() 948 throw new FileNotFoundException("Failed to find a storage device for " + volumeUuid); in findPathForUuid() 1205 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument 1207 mStorageManager.setPrimaryStorageUuid(volumeUuid, callback); in setPrimaryStorageUuid() 1549 public void prepareUserStorage(String volumeUuid, int userId, int serialNumber, int flags) { in prepareUserStorage() argument [all …]
|
/frameworks/base/core/java/android/os/ |
D | Environment.java | 383 public static File getDataDirectory(String volumeUuid) { in getDataDirectory() argument 384 if (TextUtils.isEmpty(volumeUuid)) { in getDataDirectory() 387 return new File("/mnt/expand/" + volumeUuid); in getDataDirectory() 392 public static String getDataDirectoryPath(String volumeUuid) { in getDataDirectoryPath() argument 393 if (TextUtils.isEmpty(volumeUuid)) { in getDataDirectoryPath() 396 return getExpandDirectory().getAbsolutePath() + File.separator + volumeUuid; in getDataDirectoryPath() 512 public static File getDataAppDirectory(String volumeUuid) { in getDataAppDirectory() argument 513 return new File(getDataDirectory(volumeUuid), "app"); in getDataAppDirectory() 517 public static File getDataStagingDirectory(String volumeUuid) { in getDataStagingDirectory() argument 518 return new File(getDataDirectory(volumeUuid), "app-staging"); in getDataStagingDirectory() [all …]
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 71 binder::Status snapshotAppData(const std::optional<std::string>& volumeUuid, 74 binder::Status restoreAppDataSnapshot(const std::optional<std::string>& volumeUuid, 77 binder::Status destroyAppDataSnapshot(const std::optional<std::string> &volumeUuid, 80 binder::Status destroyCeSnapshotsNotSpecified(const std::optional<std::string> &volumeUuid, 160 const std::optional<std::string>& volumeUuid, int32_t storage_flag, bool* _aidl_return); 162 const std::string& packageName, int32_t uid, const std::optional<std::string>& volumeUuid, 166 binder::Status isQuotaSupported(const std::optional<std::string>& volumeUuid, 168 binder::Status tryMountDataMirror(const std::optional<std::string>& volumeUuid); 169 binder::Status onPrivateVolumeRemoved(const std::optional<std::string>& volumeUuid);
|
D | InstalldNativeService.cpp | 913 const std::optional<std::string>& volumeUuid, in snapshotAppData() argument 917 CHECK_ARGUMENT_UUID_IS_TEST_OR_NULL(volumeUuid); in snapshotAppData() 921 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in snapshotAppData() 988 binder::Status clear_cache_result = clearAppData(volumeUuid, packageName, user, in snapshotAppData() 997 binder::Status clear_code_cache_result = clearAppData(volumeUuid, packageName, user, in snapshotAppData() 1043 const std::optional<std::string>& volumeUuid, const std::string& packageName, in restoreAppDataSnapshot() argument 1047 CHECK_ARGUMENT_UUID_IS_TEST_OR_NULL(volumeUuid); in restoreAppDataSnapshot() 1051 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in restoreAppDataSnapshot() 1077 binder::Status res = clearAppData(volumeUuid, packageName, user, storageFlags, in restoreAppDataSnapshot() 1111 return restoreconAppData(volumeUuid, packageName, user, storageFlags, appId, seInfo); in restoreAppDataSnapshot() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 215 + existingInfo.volumeUuid + " for system app " + params.appPackageName in resolveInstallVolume() 223 if (existingInfo != null && !Objects.equals(existingInfo.volumeUuid, in resolveInstallVolume() 226 + " from " + existingInfo.volumeUuid + " to internal storage"); in resolveInstallVolume() 243 if (Objects.equals(existingInfo.volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { in resolveInstallVolume() 245 } else if (volumePaths.containsKey(existingInfo.volumeUuid)) { in resolveInstallVolume() 246 existingVolumePath = volumePaths.get(existingInfo.volumeUuid); in resolveInstallVolume() 250 return existingInfo.volumeUuid; in resolveInstallVolume() 253 + existingInfo.volumeUuid + " for " + params.appPackageName + " upgrade"); in resolveInstallVolume()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageHelperTests.java | 236 appInfo.volumeUuid = sInternalVolUuid; in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big() 258 appInfo.volumeUuid = sAdoptedVolUuid; in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() 287 appInfo.volumeUuid = sAdoptedVolUuid; in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 295 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 305 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 315 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 325 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | StorageUserConnection.java | 143 public void freeCache(String volumeUuid, long bytes) in freeCache() argument 147 mActiveConnection.freeCache(sessionId, volumeUuid, bytes); in freeCache() 249 public void notifyAppIoBlocked(String volumeUuid, int uid, int tid, in notifyAppIoBlocked() argument 263 public void notifyAppIoResumed(String volumeUuid, int uid, int tid, in notifyAppIoResumed() argument 425 public void freeCache(String sessionId, String volumeUuid, long bytes) in freeCache() argument 429 service.freeCache(sessionId, volumeUuid, bytes, callback)); in freeCache() 432 + " bytes for volumeUuid : " + volumeUuid, e); in freeCache()
|
D | StorageSessionController.java | 175 public void freeCache(String volumeUuid, long bytes) in freeCache() argument 183 connection.freeCache(volumeUuid, bytes); in freeCache() 406 public void notifyAppIoBlocked(String volumeUuid, int uid, int tid, in notifyAppIoBlocked() argument 415 connection.notifyAppIoBlocked(volumeUuid, uid, tid, reason); in notifyAppIoBlocked() 425 public void notifyAppIoResumed(String volumeUuid, int uid, int tid, in notifyAppIoResumed() argument 434 connection.notifyAppIoResumed(volumeUuid, uid, tid, reason); in notifyAppIoResumed()
|
D | CacheQuotaStrategy.java | 192 .setVolumeUuid(appInfo.volumeUuid) in getUnfulfilledRequests() 242 private void insertIntoQuotaMap(String volumeUuid, int userId, int appId, long quota) { in insertIntoQuotaMap() argument 243 SparseLongArray volumeMap = mQuotaMap.get(volumeUuid); in insertIntoQuotaMap() 246 mQuotaMap.put(volumeUuid, volumeMap); in insertIntoQuotaMap()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageSettingBuilder.java | 135 public PackageSettingBuilder setVolumeUuid(String volumeUuid) { in setVolumeUuid() argument 136 this.mVolumeUuid = volumeUuid; in setVolumeUuid() 183 packageSetting.volumeUuid = this.mVolumeUuid; in build()
|
/frameworks/base/core/java/android/service/storage/ |
D | ExternalStorageService.java | 168 public void onFreeCache(@NonNull UUID volumeUuid, @BytesLong long bytes) throws IOException { in onFreeCache() argument 222 public void freeCache(String sessionId, String volumeUuid, long bytes, in freeCache() argument 226 onFreeCache(StorageManager.convert(volumeUuid), bytes); in freeCache()
|
D | IExternalStorageService.aidl | 33 void freeCache(@utf8InCpp String sessionId, in String volumeUuid, long bytes, in freeCache() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | CacheQuotaStrategyTest.java | 126 private CacheQuotaHint buildCacheQuotaHint(String volumeUuid, int uid, long quota) { in buildCacheQuotaHint() argument 128 .setVolumeUuid(volumeUuid).setUid(uid).setQuota(quota).build(); in buildCacheQuotaHint()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 511 private @Nullable VolumeInfo findStorageForUuidAsUser(String volumeUuid, in findStorageForUuidAsUser() argument 514 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findStorageForUuidAsUser() 516 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findStorageForUuidAsUser() 519 VolumeInfo info = storage.findVolumeByUuid(volumeUuid); in findStorageForUuidAsUser() 521 Slog.w(TAG, "findStorageForUuidAsUser cannot find volumeUuid:" + volumeUuid); in findStorageForUuidAsUser() 2718 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument 2725 if (Objects.equals(mPrimaryStorageUuid, volumeUuid)) { in setPrimaryStorageUuid() 2726 throw new IllegalArgumentException("Primary storage already at " + volumeUuid); in setPrimaryStorageUuid() 2733 mMoveTargetUuid = volumeUuid; in setPrimaryStorageUuid() 2749 || Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in setPrimaryStorageUuid() [all …]
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 105 int uid, @nullable @utf8InCpp String volumeUuid, int storageFlag); in hashSecondaryDexFile() argument 123 void tryMountDataMirror(@nullable @utf8InCpp String volumeUuid); in tryMountDataMirror() argument 124 void onPrivateVolumeRemoved(@nullable @utf8InCpp String volumeUuid); in onPrivateVolumeRemoved() argument
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | ApplicationPackageManagerTest.java | 225 appInfo.volumeUuid = sInternalVolUuid; in testGetCandidateVolumes_3rdParty_auto() 232 appInfo.volumeUuid = sInternalVolUuid; in testGetCandidateVolumes_3rdParty_auto() 239 appInfo.volumeUuid = sAdoptedVolUuid; in testGetCandidateVolumes_3rdParty_auto()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | PackageInfoUserFieldsTest.kt | 121 val userDe = Environment.getDataUserDePackageDirectory(appInfo.volumeUuid, userId, in <lambda>() 123 val userCe = Environment.getDataUserCePackageDirectory(appInfo.volumeUuid, userId, in <lambda>()
|