/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 | 77 final String volumeUuid = vol.getFsUuid(); in prepareUserData() local 78 if (volumeUuid != null) { in prepareUserData() 79 prepareUserDataLI(volumeUuid, userInfo, flags, true); in prepareUserData() 85 private void prepareUserDataLI(String volumeUuid, UserInfo userInfo, int flags, in prepareUserDataLI() argument 92 volumeUuid, userId, flags, isNewUser); in prepareUserDataLI() 95 storage.prepareUserStorage(volumeUuid, userId, flags); in prepareUserDataLI() 100 enforceSerialNumber(getDataUserDeDirectory(volumeUuid, userId), userSerial); in prepareUserDataLI() 101 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { in prepareUserDataLI() 106 enforceSerialNumber(getDataUserCeDirectory(volumeUuid, userId), userSerial); in prepareUserDataLI() 107 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { in prepareUserDataLI() [all …]
|
D | AppDataHelper.java | 229 final String volumeUuid = ps.getVolumeUuid(); in prepareAppData() local 238 final CreateAppDataArgs args = Installer.buildCreateAppDataArgs(volumeUuid, packageName, in prepareAppData() 249 destroyAppDataLeafLIF(packageName, volumeUuid, userId, flags); in prepareAppData() 289 final String volumeUuid = pkg.getVolumeUuid(); 304 mInstaller.linkNativeLibraryDirectory(volumeUuid, packageName, 347 final String volumeUuid = vol.getFsUuid(); 349 reconcileAppsDataLI(volumeUuid, userId, flags, migrateAppsData); 355 void reconcileAppsDataLI(String volumeUuid, int userId, @StorageManager.StorageFlags int flags, 357 reconcileAppsDataLI(volumeUuid, userId, flags, migrateAppData, false /* onlyCoreApps */); 372 private List<String> reconcileAppsDataLI(String volumeUuid, int userId, [all …]
|
D | StorageEventHelper.java | 84 final String volumeUuid = vol.getFsUuid(); in onVolumeStateChanged() local 88 mPm.mUserManager.reconcileUsers(volumeUuid); in onVolumeStateChanged() 89 reconcileApps(mPm.snapshotComputer(), volumeUuid); in onVolumeStateChanged() local 93 mPm.mInstallerService.onPrivateVolumeMounted(volumeUuid); in onVolumeStateChanged() 137 final String volumeUuid = vol.fsUuid; in loadPrivatePackagesInner() local 138 if (TextUtils.isEmpty(volumeUuid)) { in loadPrivatePackagesInner() 151 ver = mPm.mSettings.findOrCreateVersion(volumeUuid); in loadPrivatePackagesInner() 152 packages = mPm.mSettings.getVolumePackagesLPr(volumeUuid); in loadPrivatePackagesInner() 196 sm.prepareUserStorage(volumeUuid, user.id, flags); in loadPrivatePackagesInner() 198 appDataHelper.reconcileAppsDataLI(volumeUuid, user.id, flags, in loadPrivatePackagesInner() [all …]
|
D | FreeStorageHelper.java | 84 void freeStorage(String volumeUuid, long bytes, in freeStorage() argument 87 final File file = storage.findPathForUuid(volumeUuid); in freeStorage() 92 volumeUuid); in freeStorage() 111 mPm.mInstaller.freeCache(volumeUuid, bytes, Installer.FLAG_FREE_CACHE_V2); in freeStorage() 143 mPm.mInstaller.freeCache(volumeUuid, bytes, in freeStorage() 169 smInternal.freeCache(volumeUuid, freeBytesRequired); in freeStorage() 173 mPm.mInstallerService.freeStageDirs(volumeUuid); in freeStorage() 176 mPm.mInstaller.freeCache(volumeUuid, bytes, 0); in freeStorage()
|
D | MovePackageHelper.java | 80 public void movePackageInternal(final String packageName, final String volumeUuid, in movePackageInternal() argument 113 final boolean isInternalStorage = VolumeInfo.ID_PRIVATE_INTERNAL.equals(volumeUuid); in movePackageInternal() 128 if (Objects.equals(currentVolumeUuid, volumeUuid)) { in movePackageInternal() 130 "Package already moved to " + volumeUuid); in movePackageInternal() 177 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in movePackageInternal() 179 measurePath = Environment.getDataAppDirectory(volumeUuid); in movePackageInternal() 180 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in movePackageInternal() 184 final VolumeInfo volume = storage.findVolumeByUuid(volumeUuid); in movePackageInternal() 193 measurePath = Environment.getDataAppDirectory(volumeUuid); in movePackageInternal() 239 prepareUserStorageForMove(currentVolumeUuid, volumeUuid, installedUserIds); in movePackageInternal() [all …]
|
D | Installer.java | 597 @Nullable String volumeUuid, @Nullable String classLoaderContext, in dexopt() argument 714 @Nullable String volumeUuid, int flags) throws InstallerException { in hashSecondaryDexFile() argument 718 return mInstalld.hashSecondaryDexFile(dexPath, packageName, uid, volumeUuid, flags); in hashSecondaryDexFile() 733 public boolean isQuotaSupported(String volumeUuid) throws InstallerException { in isQuotaSupported() argument 736 return mInstalld.isQuotaSupported(volumeUuid); in isQuotaSupported() 745 public void tryMountDataMirror(String volumeUuid) throws InstallerException { in tryMountDataMirror() argument 748 mInstalld.tryMountDataMirror(volumeUuid); in tryMountDataMirror() 757 public void onPrivateVolumeRemoved(String volumeUuid) throws InstallerException { in onPrivateVolumeRemoved() argument 760 mInstalld.onPrivateVolumeRemoved(volumeUuid); in onPrivateVolumeRemoved()
|
D | InstallArgs.java | 72 String volumeUuid, UserHandle user, String[] instructionSets, String abiOverride, in InstallArgs() argument 85 mVolumeUuid = volumeUuid; in InstallArgs()
|
D | PackageInstallerService.java | 408 private void reconcileStagesLocked(String volumeUuid) { in reconcileStagesLocked() argument 409 final ArraySet<File> unclaimedStages = getStagingDirsOnVolume(volumeUuid); in reconcileStagesLocked() 418 private ArraySet<File> getStagingDirsOnVolume(String volumeUuid) { in getStagingDirsOnVolume() argument 419 final File stagingDir = getTmpSessionDir(volumeUuid); in getStagingDirsOnVolume() 423 final File stagedSessionStagingDir = Environment.getDataStagingDirectory(volumeUuid); in getStagingDirsOnVolume() 436 public void onPrivateVolumeMounted(String volumeUuid) { in onPrivateVolumeMounted() argument 438 reconcileStagesLocked(volumeUuid); in onPrivateVolumeMounted() 445 public void freeStageDirs(String volumeUuid) { in freeStageDirs() argument 446 final ArraySet<File> unclaimedStagingDirsOnVolume = getStagingDirsOnVolume(volumeUuid); in freeStageDirs() 477 public File allocateStageDirLegacy(String volumeUuid, boolean isEphemeral) throws IOException { in allocateStageDirLegacy() argument [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | StorageStatsSource.java | 41 public StorageStatsSource.ExternalStorageStats getExternalStorageStats(String volumeUuid, in getExternalStorageStats() argument 44 mStorageStatsManager.queryExternalStatsForUser(volumeUuid, user)); in getExternalStorageStats() 47 public StorageStatsSource.AppStorageStats getStatsForUid(String volumeUuid, int uid) in getStatsForUid() argument 50 mStorageStatsManager.queryStatsForUid(volumeUuid, uid)); in getStatsForUid() 54 String volumeUuid, String packageName, UserHandle user) in getStatsForPackage() argument 57 mStorageStatsManager.queryStatsForPackage(volumeUuid, packageName, user)); in getStatsForPackage() 60 public long getCacheQuotaBytes(String volumeUuid, int uid) { in getCacheQuotaBytes() argument 61 return mStorageStatsManager.getCacheQuotaBytes(volumeUuid, uid); in getCacheQuotaBytes()
|
/frameworks/base/core/java/android/os/ |
D | Environment.java | 384 public static File getDataDirectory(String volumeUuid) { in getDataDirectory() argument 385 if (TextUtils.isEmpty(volumeUuid)) { in getDataDirectory() 388 return new File("/mnt/expand/" + volumeUuid); in getDataDirectory() 393 public static String getDataDirectoryPath(String volumeUuid) { in getDataDirectoryPath() argument 394 if (TextUtils.isEmpty(volumeUuid)) { in getDataDirectoryPath() 397 return getExpandDirectory().getAbsolutePath() + File.separator + volumeUuid; in getDataDirectoryPath() 486 private static File getDataMiscCeDirectory(String volumeUuid, int userId) { in getDataMiscCeDirectory() argument 487 return buildPath(getDataDirectory(volumeUuid), "misc_ce", String.valueOf(userId)); in getDataMiscCeDirectory() 491 public static File getDataMiscCeSharedSdkSandboxDirectory(String volumeUuid, int userId, in getDataMiscCeSharedSdkSandboxDirectory() argument 493 return buildPath(getDataMiscCeDirectory(volumeUuid, userId), "sdksandbox", in getDataMiscCeSharedSdkSandboxDirectory() [all …]
|
/frameworks/base/core/java/android/os/storage/ |
D | IStorageManager.aidl | 131 void setPrimaryStorageUuid(in String volumeUuid, IPackageMoveObserver callback) = 58; in setPrimaryStorageUuid() argument 146 void prepareUserStorage(in String volumeUuid, int userId, int flags) = 66; in prepareUserStorage() argument 148 void destroyUserStorage(in String volumeUuid, int userId, int flags) = 67; in destroyUserStorage() argument 155 long getCacheQuotaBytes(String volumeUuid, int uid) = 75; in getCacheQuotaBytes() argument 156 long getCacheSizeBytes(String volumeUuid, int uid) = 76; in getCacheSizeBytes() argument 157 long getAllocatableBytes(String volumeUuid, int flags, String callingPackage) = 77; in getAllocatableBytes() argument 158 void allocateBytes(String volumeUuid, long bytes, int flags, String callingPackage) = 78; in allocateBytes() argument 170 void notifyAppIoBlocked(in String volumeUuid, int uid, int tid, int reason) = 92; in notifyAppIoBlocked() argument 171 void notifyAppIoResumed(in String volumeUuid, int uid, int tid, int reason) = 93; in notifyAppIoResumed() argument 174 boolean isAppIoBlocked(in String volumeUuid, int uid, int tid, int reason) = 95; in isAppIoBlocked() argument
|
D | StorageManager.java | 883 public @Nullable VolumeInfo findVolumeByQualifiedUuid(String volumeUuid) { in findVolumeByQualifiedUuid() argument 884 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findVolumeByQualifiedUuid() 886 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findVolumeByQualifiedUuid() 889 return findVolumeByUuid(volumeUuid); in findVolumeByQualifiedUuid() 930 public @NonNull File findPathForUuid(String volumeUuid) throws FileNotFoundException { in findPathForUuid() argument 931 final VolumeInfo vol = findVolumeByQualifiedUuid(volumeUuid); in findPathForUuid() 935 throw new FileNotFoundException("Failed to find a storage device for " + volumeUuid); in findPathForUuid() 1192 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument 1194 mStorageManager.setPrimaryStorageUuid(volumeUuid, callback); in setPrimaryStorageUuid() 1659 public void prepareUserStorage(String volumeUuid, int userId, int flags) { in prepareUserStorage() argument [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 245 public boolean isQuotaSupported(String volumeUuid, String callingPackage) { in isQuotaSupported() argument 247 return mInstaller.isQuotaSupported(volumeUuid); in isQuotaSupported() 254 public boolean isReservedSupported(String volumeUuid, String callingPackage) { in isReservedSupported() argument 255 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in isReservedSupported() 264 public long getTotalBytes(String volumeUuid, String callingPackage) { in getTotalBytes() argument 267 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in getTotalBytes() 287 final VolumeInfo vol = mStorage.findVolumeByUuid(volumeUuid); in getTotalBytes() 290 new IOException("Failed to find storage device for UUID " + volumeUuid)); in getTotalBytes() 297 public long getFreeBytes(String volumeUuid, String callingPackage) { in getFreeBytes() argument 304 path = mStorage.findPathForUuid(volumeUuid); in getFreeBytes() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | InstallLocationUtils.java | 221 + existingInfo.volumeUuid + " for system app " + params.appPackageName in resolveInstallVolume() 229 if (existingInfo != null && !Objects.equals(existingInfo.volumeUuid, in resolveInstallVolume() 232 + " from " + existingInfo.volumeUuid + " to internal storage"); in resolveInstallVolume() 249 if (Objects.equals(existingInfo.volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { in resolveInstallVolume() 251 } else if (volumePaths.containsKey(existingInfo.volumeUuid)) { in resolveInstallVolume() 252 existingVolumePath = volumePaths.get(existingInfo.volumeUuid); in resolveInstallVolume() 256 return existingInfo.volumeUuid; in resolveInstallVolume() 259 + existingInfo.volumeUuid + " for " + params.appPackageName + " upgrade"); in resolveInstallVolume()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 95 binder::Status snapshotAppData(const std::optional<std::string>& volumeUuid, 98 binder::Status restoreAppDataSnapshot(const std::optional<std::string>& volumeUuid, 101 binder::Status destroyAppDataSnapshot(const std::optional<std::string> &volumeUuid, 104 binder::Status destroyCeSnapshotsNotSpecified(const std::optional<std::string> &volumeUuid, 184 const std::optional<std::string>& volumeUuid, int32_t storage_flag, bool* _aidl_return); 186 const std::string& packageName, int32_t uid, const std::optional<std::string>& volumeUuid, 191 binder::Status isQuotaSupported(const std::optional<std::string>& volumeUuid, 193 binder::Status tryMountDataMirror(const std::optional<std::string>& volumeUuid); 194 binder::Status onPrivateVolumeRemoved(const std::optional<std::string>& volumeUuid);
|
/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 | 177 public void freeCache(String volumeUuid, long bytes) in freeCache() argument 185 connection.freeCache(volumeUuid, bytes); in freeCache() 400 public void notifyAppIoBlocked(String volumeUuid, int uid, int tid, in notifyAppIoBlocked() argument 409 connection.notifyAppIoBlocked(volumeUuid, uid, tid, reason); in notifyAppIoBlocked() 419 public void notifyAppIoResumed(String volumeUuid, int uid, int tid, in notifyAppIoResumed() argument 428 connection.notifyAppIoResumed(volumeUuid, uid, tid, reason); in notifyAppIoResumed()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | InstallLocationUtilsTests.java | 240 appInfo.volumeUuid = sInternalVolUuid; in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big() 262 appInfo.volumeUuid = sAdoptedVolUuid; in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() 291 appInfo.volumeUuid = sAdoptedVolUuid; in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 299 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 309 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 319 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 329 fail("Expected exception was not thrown " + appInfo.volumeUuid); in testResolveInstallVolumeAdopted_3rdParty_existing_too_big()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/ |
D | AccessPolicy.kt | 126 volumeUuid: String?, in <lambda>() 138 if (packageState.volumeUuid == volumeUuid) { in <lambda>() 144 "Package $packageName on storage volume $volumeUuid didn't receive" + in <lambda>() 160 with(it) { onStorageVolumeMounted(volumeUuid, packageNames, isSystemUpdated) } in <lambda>() 166 if (packageState.volumeUuid == volumeUuid) { in <lambda>() 463 volumeUuid: String?, in onStorageVolumeMounted()
|
/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()
|
/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 | 533 private @Nullable VolumeInfo findStorageForUuidAsUser(String volumeUuid, in findStorageForUuidAsUser() argument 536 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findStorageForUuidAsUser() 538 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findStorageForUuidAsUser() 541 VolumeInfo info = storage.findVolumeByUuid(volumeUuid); in findStorageForUuidAsUser() 543 Slog.w(TAG, "findStorageForUuidAsUser cannot find volumeUuid:" + volumeUuid); in findStorageForUuidAsUser() 2995 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument 3004 if (Objects.equals(mPrimaryStorageUuid, volumeUuid)) { in setPrimaryStorageUuid() 3005 throw new IllegalArgumentException("Primary storage already at " + volumeUuid); in setPrimaryStorageUuid() 3012 mMoveTargetUuid = volumeUuid; in setPrimaryStorageUuid() 3027 || Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in setPrimaryStorageUuid() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageSettingBuilder.java | 122 public PackageSettingBuilder setVolumeUuid(String volumeUuid) { in setVolumeUuid() argument 123 this.mVolumeUuid = volumeUuid; in setVolumeUuid()
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 107 int uid, @nullable @utf8InCpp String volumeUuid, int storageFlag); in hashSecondaryDexFile() argument 125 void tryMountDataMirror(@nullable @utf8InCpp String volumeUuid); in tryMountDataMirror() argument 126 void onPrivateVolumeRemoved(@nullable @utf8InCpp String volumeUuid); in onPrivateVolumeRemoved() argument
|