Home
last modified time | relevance | path

Searched refs:volumeUuid (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/pm/
DUserDataPreparer.java73 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 …]
DPackageSettingBase.java128 String volumeUuid; field in PackageSettingBase
191 public void setVolumeUuid(String volumeUuid) { in setVolumeUuid() argument
192 this.volumeUuid = volumeUuid; in setVolumeUuid()
196 return volumeUuid; in getVolumeUuid()
262 volumeUuid = orig.volumeUuid; in doCopy()
682 this.volumeUuid = other.volumeUuid; in updateFrom()
DInstaller.java308 String compilerFilter, @Nullable String volumeUuid, @Nullable String sharedLibraries, in dexopt() argument
319 dexFlags, compilerFilter, volumeUuid, sharedLibraries, seInfo, downgrade, in dexopt()
532 String[] isas, @Nullable String volumeUuid, int flags) throws InstallerException { in reconcileSecondaryDexFile() argument
540 volumeUuid, flags); in reconcileSecondaryDexFile()
547 @Nullable String volumeUuid, int flags) throws InstallerException { in hashSecondaryDexFile() argument
551 return mInstalld.hashSecondaryDexFile(dexPath, packageName, uid, volumeUuid, flags); in hashSecondaryDexFile()
586 public boolean isQuotaSupported(String volumeUuid) throws InstallerException { in isQuotaSupported() argument
589 return mInstalld.isQuotaSupported(volumeUuid); in isQuotaSupported()
DPackageInstallerService.java283 private void reconcileStagesLocked(String volumeUuid) { in reconcileStagesLocked() argument
284 final File stagingDir = getTmpSessionDir(volumeUuid); in reconcileStagesLocked()
303 public void onPrivateVolumeMounted(String volumeUuid) { in onPrivateVolumeMounted() argument
305 reconcileStagesLocked(volumeUuid); in onPrivateVolumeMounted()
317 public File allocateStageDirLegacy(String volumeUuid, boolean isEphemeral) throws IOException { in allocateStageDirLegacy() argument
322 final File sessionStageDir = buildTmpSessionDir(sessionId, volumeUuid); in allocateStageDirLegacy()
583 params.volumeUuid = PackageHelper.resolveInstallVolume(mContext, params); in createSessionInternal()
728 private File getTmpSessionDir(String volumeUuid) { in getTmpSessionDir() argument
729 return Environment.getDataAppDirectory(volumeUuid); in getTmpSessionDir()
732 private File buildTmpSessionDir(int sessionId, String volumeUuid) { in buildTmpSessionDir() argument
[all …]
/frameworks/base/core/java/android/app/usage/
DIStorageStatsManager.aidl24 boolean isQuotaSupported(String volumeUuid, String callingPackage); in isQuotaSupported() argument
25 boolean isReservedSupported(String volumeUuid, String callingPackage); in isReservedSupported() argument
26 long getTotalBytes(String volumeUuid, String callingPackage); in getTotalBytes() argument
27 long getFreeBytes(String volumeUuid, String callingPackage); in getFreeBytes() argument
28 long getCacheBytes(String volumeUuid, String callingPackage); in getCacheBytes() argument
29 long getCacheQuotaBytes(String volumeUuid, int uid, String callingPackage); in getCacheQuotaBytes() argument
30 …StorageStats queryStatsForPackage(String volumeUuid, String packageName, int userId, String callin… in queryStatsForPackage() argument
31 StorageStats queryStatsForUid(String volumeUuid, int uid, String callingPackage); in queryStatsForUid() argument
32 StorageStats queryStatsForUser(String volumeUuid, int userId, String callingPackage); in queryStatsForUser() argument
33 …ExternalStorageStats queryExternalStatsForUser(String volumeUuid, int userId, String callingPackag… in queryExternalStatsForUser() argument
DStorageStatsManager.java343 public long getCacheQuotaBytes(String volumeUuid, int uid) { in getCacheQuotaBytes() argument
345 return mService.getCacheQuotaBytes(volumeUuid, uid, mContext.getOpPackageName()); in getCacheQuotaBytes()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java159 public boolean isQuotaSupported(String volumeUuid, String callingPackage) { in isQuotaSupported() argument
161 return mInstaller.isQuotaSupported(volumeUuid); in isQuotaSupported()
168 public boolean isReservedSupported(String volumeUuid, String callingPackage) { in isReservedSupported() argument
169 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in isReservedSupported()
178 public long getTotalBytes(String volumeUuid, String callingPackage) { in getTotalBytes() argument
181 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in getTotalBytes()
184 final VolumeInfo vol = mStorage.findVolumeByUuid(volumeUuid); in getTotalBytes()
187 new IOException("Failed to find storage device for UUID " + volumeUuid)); in getTotalBytes()
194 public long getFreeBytes(String volumeUuid, String callingPackage) { in getFreeBytes() argument
201 path = mStorage.findPathForUuid(volumeUuid); in getFreeBytes()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DStorageStatsSource.java39 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/core/java/android/os/
DEnvironment.java304 public static File getDataDirectory(String volumeUuid) { in getDataDirectory() argument
305 if (TextUtils.isEmpty(volumeUuid)) { in getDataDirectory()
308 return new File("/mnt/expand/" + volumeUuid); in getDataDirectory()
424 public static File getDataAppDirectory(String volumeUuid) { in getDataAppDirectory() argument
425 return new File(getDataDirectory(volumeUuid), "app"); in getDataAppDirectory()
429 public static File getDataStagingDirectory(String volumeUuid) { in getDataStagingDirectory() argument
430 return new File(getDataDirectory(volumeUuid), "app-staging"); in getDataStagingDirectory()
434 public static File getDataUserCeDirectory(String volumeUuid) { in getDataUserCeDirectory() argument
435 return new File(getDataDirectory(volumeUuid), "user"); in getDataUserCeDirectory()
439 public static File getDataUserCeDirectory(String volumeUuid, int userId) { in getDataUserCeDirectory() argument
[all …]
/frameworks/base/core/java/android/os/storage/
DIStorageManager.aidl169 void setPrimaryStorageUuid(in String volumeUuid, IPackageMoveObserver callback) = 58; in setPrimaryStorageUuid() argument
177 void prepareUserStorage(in String volumeUuid, int userId, int serialNumber, int flags) = 66; in prepareUserStorage() argument
178 void destroyUserStorage(in String volumeUuid, int userId, int flags) = 67; in destroyUserStorage() argument
185 long getCacheQuotaBytes(String volumeUuid, int uid) = 75; in getCacheQuotaBytes() argument
186 long getCacheSizeBytes(String volumeUuid, int uid) = 76; in getCacheSizeBytes() argument
187 long getAllocatableBytes(String volumeUuid, int flags, String callingPackage) = 77; in getAllocatableBytes() argument
188 void allocateBytes(String volumeUuid, long bytes, int flags, String callingPackage) = 78; in allocateBytes() argument
DStorageManager.java794 public @Nullable VolumeInfo findVolumeByQualifiedUuid(String volumeUuid) { in findVolumeByQualifiedUuid() argument
795 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findVolumeByQualifiedUuid()
797 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findVolumeByQualifiedUuid()
800 return findVolumeByUuid(volumeUuid); in findVolumeByQualifiedUuid()
841 public @NonNull File findPathForUuid(String volumeUuid) throws FileNotFoundException { in findPathForUuid() argument
842 final VolumeInfo vol = findVolumeByQualifiedUuid(volumeUuid); in findPathForUuid()
846 throw new FileNotFoundException("Failed to find a storage device for " + volumeUuid); in findPathForUuid()
1103 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument
1105 mStorageManager.setPrimaryStorageUuid(volumeUuid, callback); in setPrimaryStorageUuid()
1416 public void prepareUserStorage(String volumeUuid, int userId, int serialNumber, int flags) { in prepareUserStorage() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageBuilder.java89 PackageBuilder setApplicationInfoVolumeUuid(String volumeUuid) { in setApplicationInfoVolumeUuid() argument
90 mPkg.applicationInfo.volumeUuid = volumeUuid; in setApplicationInfoVolumeUuid()
DPackageSettingBuilder.java127 public PackageSettingBuilder setVolumeUuid(String volumeUuid) { in setVolumeUuid() argument
128 this.mVolumeUuid = volumeUuid; in setVolumeUuid()
147 packageSetting.volumeUuid = this.mVolumeUuid; in build()
DInstallerTest.java121 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, 0, in testGetAppSize()
126 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, Installer.FLAG_USE_QUOTA, in testGetAppSize()
/frameworks/native/cmds/installd/
DInstalldNativeService.h68 binder::Status snapshotAppData(const std::optional<std::string>& volumeUuid,
71 binder::Status restoreAppDataSnapshot(const std::optional<std::string>& volumeUuid,
74 binder::Status destroyAppDataSnapshot(const std::optional<std::string> &volumeUuid,
77 binder::Status destroyCeSnapshotsNotSpecified(const std::optional<std::string> &volumeUuid,
150 const std::optional<std::string>& volumeUuid, int32_t storage_flag, bool* _aidl_return);
152 const std::string& packageName, int32_t uid, const std::optional<std::string>& volumeUuid,
156 binder::Status isQuotaSupported(const std::optional<std::string>& volumeUuid,
DInstalldNativeService.cpp893 const std::optional<std::string>& volumeUuid, in snapshotAppData() argument
897 CHECK_ARGUMENT_UUID_IS_TEST_OR_NULL(volumeUuid); in snapshotAppData()
901 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in snapshotAppData()
941 binder::Status clear_cache_result = clearAppData(volumeUuid, packageName, user, in snapshotAppData()
950 binder::Status clear_code_cache_result = clearAppData(volumeUuid, packageName, user, in snapshotAppData()
1020 const std::optional<std::string>& volumeUuid, const std::string& packageName, in restoreAppDataSnapshot() argument
1024 CHECK_ARGUMENT_UUID_IS_TEST_OR_NULL(volumeUuid); in restoreAppDataSnapshot()
1028 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in restoreAppDataSnapshot()
1054 binder::Status res = clearAppData(volumeUuid, packageName, user, storageFlags, in restoreAppDataSnapshot()
1088 return restoreconAppData(volumeUuid, packageName, user, storageFlags, appId, seInfo); in restoreAppDataSnapshot()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java213 + existingInfo.volumeUuid + " for system app " + params.appPackageName in resolveInstallVolume()
221 if (existingInfo != null && !Objects.equals(existingInfo.volumeUuid, in resolveInstallVolume()
224 + " from " + existingInfo.volumeUuid + " to internal storage"); in resolveInstallVolume()
240 if (Objects.equals(existingInfo.volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL) in resolveInstallVolume()
243 } else if (allCandidates.contains(existingInfo.volumeUuid)) { in resolveInstallVolume()
244 return existingInfo.volumeUuid; in resolveInstallVolume()
247 + existingInfo.volumeUuid + " for " + params.appPackageName + " upgrade"); in resolveInstallVolume()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java236 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/tests/servicestests/src/com/android/server/storage/
DCacheQuotaStrategyTest.java124 private CacheQuotaHint buildCacheQuotaHint(String volumeUuid, int uid, long quota) { in buildCacheQuotaHint() argument
126 .setVolumeUuid(volumeUuid).setUid(uid).setQuota(quota).build(); in buildCacheQuotaHint()
/frameworks/base/core/tests/coretests/src/android/app/
DApplicationPackageManagerTest.java225 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/core/java/com/android/server/storage/
DCacheQuotaStrategy.java193 .setVolumeUuid(appInfo.volumeUuid) in getUnfulfilledRequests()
243 private void insertIntoQuotaMap(String volumeUuid, int userId, int appId, long quota) { in insertIntoQuotaMap() argument
244 SparseLongArray volumeMap = mQuotaMap.get(volumeUuid); in insertIntoQuotaMap()
247 mQuotaMap.put(volumeUuid, volumeMap); in insertIntoQuotaMap()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java406 private @Nullable VolumeInfo findStorageForUuid(String volumeUuid) { in findStorageForUuid() argument
408 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findStorageForUuid()
410 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findStorageForUuid()
413 return storage.findEmulatedForPrivate(storage.findVolumeByUuid(volumeUuid)); in findStorageForUuid()
2255 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument
2262 if (Objects.equals(mPrimaryStorageUuid, volumeUuid)) { in setPrimaryStorageUuid()
2263 throw new IllegalArgumentException("Primary storage already at " + volumeUuid); in setPrimaryStorageUuid()
2270 mMoveTargetUuid = volumeUuid; in setPrimaryStorageUuid()
2286 || Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in setPrimaryStorageUuid()
2295 to = findStorageForUuid(volumeUuid); in setPrimaryStorageUuid()
[all …]
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2100 final String volumeUuid; in movePackage() local
2102 volumeUuid = StorageManager.UUID_PRIVATE_INTERNAL; in movePackage()
2104 volumeUuid = StorageManager.UUID_PRIMARY_PHYSICAL; in movePackage()
2106 volumeUuid = Preconditions.checkNotNull(vol.fsUuid); in movePackage()
2109 return mPM.movePackage(packageName, volumeUuid); in movePackage()
2128 return storage.findVolumeByUuid(app.volumeUuid); in getPackageCurrentVolume()
2210 final String volumeUuid; in movePrimaryStorage() local
2212 volumeUuid = StorageManager.UUID_PRIVATE_INTERNAL; in movePrimaryStorage()
2214 volumeUuid = StorageManager.UUID_PRIMARY_PHYSICAL; in movePrimaryStorage()
2216 volumeUuid = Preconditions.checkNotNull(vol.fsUuid); in movePrimaryStorage()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageInstaller.java1298 public String volumeUuid; field in PackageInstaller.SessionParams
1337 volumeUuid = source.readString(); in SessionParams()
1360 ret.volumeUuid = volumeUuid; in copy()
1388 || abiOverride != null || volumeUuid != null; in areHiddenOptionsSet()
1708 pw.printPair("volumeUuid", volumeUuid); in dump()
1737 dest.writeString(volumeUuid); in writeToParcel()
DIPackageManager.aidl419 void freeStorageAndNotify(in String volumeUuid, in long freeStorageSize, in freeStorageAndNotify() argument
443 void freeStorage(in String volumeUuid, in long freeStorageSize, in freeStorage() argument
620 int movePackage(in String packageName, in String volumeUuid); in movePackage() argument
621 int movePrimaryStorage(in String volumeUuid); in movePrimaryStorage() argument

123