Home
last modified time | relevance | path

Searched refs:volumeUuid (Results 1 – 25 of 54) 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()
669 this.volumeUuid = other.volumeUuid; in updateFrom()
DInstaller.java305 String compilerFilter, @Nullable String volumeUuid, @Nullable String sharedLibraries, in dexopt() argument
316 dexFlags, compilerFilter, volumeUuid, sharedLibraries, seInfo, downgrade, in dexopt()
539 String[] isas, @Nullable String volumeUuid, int flags) throws InstallerException { in reconcileSecondaryDexFile() argument
547 volumeUuid, flags); in reconcileSecondaryDexFile()
554 @Nullable String volumeUuid, int flags) throws InstallerException { in hashSecondaryDexFile() argument
558 return mInstalld.hashSecondaryDexFile(dexPath, packageName, uid, volumeUuid, flags); in hashSecondaryDexFile()
593 public boolean isQuotaSupported(String volumeUuid) throws InstallerException { in isQuotaSupported() argument
596 return mInstalld.isQuotaSupported(volumeUuid); in isQuotaSupported()
DPackageInstallerService.java277 private void reconcileStagesLocked(String volumeUuid) { in reconcileStagesLocked() argument
278 final File stagingDir = getTmpSessionDir(volumeUuid); in reconcileStagesLocked()
297 public void onPrivateVolumeMounted(String volumeUuid) { in onPrivateVolumeMounted() argument
299 reconcileStagesLocked(volumeUuid); in onPrivateVolumeMounted()
311 public File allocateStageDirLegacy(String volumeUuid, boolean isEphemeral) throws IOException { in allocateStageDirLegacy() argument
316 final File sessionStageDir = buildTmpSessionDir(sessionId, volumeUuid); in allocateStageDirLegacy()
577 params.volumeUuid = PackageHelper.resolveInstallVolume(mContext, params); in createSessionInternal()
722 private File getTmpSessionDir(String volumeUuid) { in getTmpSessionDir() argument
723 return Environment.getDataAppDirectory(volumeUuid); in getTmpSessionDir()
726 private File buildTmpSessionDir(int sessionId, String volumeUuid) { in buildTmpSessionDir() argument
[all …]
DPackageManagerShellCommand.java1269 String volumeUuid = getNextArg(); in runMovePackage() local
1270 if ("internal".equals(volumeUuid)) { in runMovePackage()
1271 volumeUuid = null; in runMovePackage()
1274 final int moveId = mInterface.movePackage(packageName, volumeUuid); in runMovePackage()
1292 String volumeUuid = getNextArg(); in runMovePrimaryStorage() local
1293 if ("internal".equals(volumeUuid)) { in runMovePrimaryStorage()
1294 volumeUuid = null; in runMovePrimaryStorage()
1297 final int moveId = mInterface.movePrimaryStorage(volumeUuid); in runMovePrimaryStorage()
2228 String volumeUuid = getNextArg(); in runTrimCaches() local
2229 if ("internal".equals(volumeUuid)) { in runTrimCaches()
[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.java275 public static File getDataDirectory(String volumeUuid) { in getDataDirectory() argument
276 if (TextUtils.isEmpty(volumeUuid)) { in getDataDirectory()
279 return new File("/mnt/expand/" + volumeUuid); in getDataDirectory()
395 public static File getDataAppDirectory(String volumeUuid) { in getDataAppDirectory() argument
396 return new File(getDataDirectory(volumeUuid), "app"); in getDataAppDirectory()
400 public static File getDataStagingDirectory(String volumeUuid) { in getDataStagingDirectory() argument
401 return new File(getDataDirectory(volumeUuid), "app-staging"); in getDataStagingDirectory()
405 public static File getDataUserCeDirectory(String volumeUuid) { in getDataUserCeDirectory() argument
406 return new File(getDataDirectory(volumeUuid), "user"); in getDataUserCeDirectory()
410 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/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/native/cmds/installd/
DInstalldNativeService.h63 binder::Status snapshotAppData(const std::unique_ptr<std::string>& volumeUuid,
66 binder::Status restoreAppDataSnapshot(const std::unique_ptr<std::string>& volumeUuid,
69 binder::Status destroyAppDataSnapshot(const std::unique_ptr<std::string> &volumeUuid,
144 const std::unique_ptr<std::string>& volumeUuid, int32_t storage_flag, bool* _aidl_return);
146 const std::string& packageName, int32_t uid, const std::unique_ptr<std::string>& volumeUuid,
150 binder::Status isQuotaSupported(const std::unique_ptr<std::string>& volumeUuid,
DInstalldNativeService.cpp839 const std::unique_ptr<std::string>& volumeUuid, in snapshotAppData() argument
843 CHECK_ARGUMENT_UUID_IS_TEST_OR_NULL(volumeUuid); in snapshotAppData()
847 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in snapshotAppData()
887 binder::Status clear_cache_result = clearAppData(volumeUuid, packageName, user, in snapshotAppData()
896 binder::Status clear_code_cache_result = clearAppData(volumeUuid, packageName, user, in snapshotAppData()
966 const std::unique_ptr<std::string>& volumeUuid, const std::string& packageName, in restoreAppDataSnapshot() argument
970 CHECK_ARGUMENT_UUID_IS_TEST_OR_NULL(volumeUuid); in restoreAppDataSnapshot()
974 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in restoreAppDataSnapshot()
1000 binder::Status res = clearAppData(volumeUuid, packageName, user, storageFlags, in restoreAppDataSnapshot()
1032 return restoreconAppData(volumeUuid, packageName, user, storageFlags, appId, seInfo); in restoreAppDataSnapshot()
[all …]
/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()
2244 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument
2251 if (Objects.equals(mPrimaryStorageUuid, volumeUuid)) { in setPrimaryStorageUuid()
2252 throw new IllegalArgumentException("Primary storage already at " + volumeUuid); in setPrimaryStorageUuid()
2259 mMoveTargetUuid = volumeUuid; in setPrimaryStorageUuid()
2275 || Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in setPrimaryStorageUuid()
2284 to = findStorageForUuid(volumeUuid); in setPrimaryStorageUuid()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
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/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.java1315 public String volumeUuid; field in PackageInstaller.SessionParams
1354 volumeUuid = source.readString(); in SessionParams()
1377 ret.volumeUuid = volumeUuid; in copy()
1405 || abiOverride != null || volumeUuid != null; in areHiddenOptionsSet()
1725 pw.printPair("volumeUuid", volumeUuid); in dump()
1754 dest.writeString(volumeUuid); in writeToParcel()
DIPackageManager.aidl418 void freeStorageAndNotify(in String volumeUuid, in long freeStorageSize, in freeStorageAndNotify() argument
442 void freeStorage(in String volumeUuid, in long freeStorageSize, in freeStorage() argument
626 int movePackage(in String packageName, in String volumeUuid); in movePackage() argument
627 int movePrimaryStorage(in String volumeUuid); in movePrimaryStorage() argument
DApplicationInfo.java788 public String volumeUuid; field in ApplicationInfo
1552 volumeUuid = orig.volumeUuid; in ApplicationInfo()
1707 volumeUuid = StorageManager.convert(storageUuid); in ApplicationInfo()
1813 .getDataUserDePackageDirectory(volumeUuid, userId, packageName) in initForUser()
1816 .getDataUserCePackageDirectory(volumeUuid, userId, packageName) in initForUser()

123