Home
last modified time | relevance | path

Searched refs:volumeUuid (Results 1 – 25 of 53) 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 …]
DInstaller.java294 String compilerFilter, @Nullable String volumeUuid, @Nullable String sharedLibraries, in dexopt() argument
302 dexFlags, compilerFilter, volumeUuid, sharedLibraries, seInfo, downgrade, in dexopt()
510 String[] isas, @Nullable String volumeUuid, int flags) throws InstallerException { in reconcileSecondaryDexFile() argument
517 volumeUuid, flags); in reconcileSecondaryDexFile()
524 @Nullable String volumeUuid, int flags) throws InstallerException { in hashSecondaryDexFile() argument
527 return mInstalld.hashSecondaryDexFile(dexPath, packageName, uid, volumeUuid, flags); in hashSecondaryDexFile()
562 public boolean isQuotaSupported(String volumeUuid) throws InstallerException { in isQuotaSupported() argument
565 return mInstalld.isQuotaSupported(volumeUuid); in isQuotaSupported()
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()
DPackageInstallerService.java230 private void reconcileStagesLocked(String volumeUuid, boolean isEphemeral) { in reconcileStagesLocked() argument
231 final File stagingDir = buildStagingDir(volumeUuid, isEphemeral); in reconcileStagesLocked()
250 public void onPrivateVolumeMounted(String volumeUuid) { in onPrivateVolumeMounted() argument
252 reconcileStagesLocked(volumeUuid, false /*isInstant*/); in onPrivateVolumeMounted()
264 public File allocateStageDirLegacy(String volumeUuid, boolean isEphemeral) throws IOException { in allocateStageDirLegacy() argument
269 final File stageDir = buildStageDir(volumeUuid, sessionId, isEphemeral); in allocateStageDirLegacy()
501 params.volumeUuid = PackageHelper.resolveInstallVolume(mContext, params); in createSessionInternal()
532 stageDir = buildStageDir(params.volumeUuid, sessionId, isInstant); in createSessionInternal()
634 private File buildStagingDir(String volumeUuid, boolean isEphemeral) { in buildStagingDir() argument
635 return Environment.getDataAppDirectory(volumeUuid); in buildStagingDir()
[all …]
DPackageManagerShellCommand.java1074 String volumeUuid = getNextArg(); in runMovePackage() local
1075 if ("internal".equals(volumeUuid)) { in runMovePackage()
1076 volumeUuid = null; in runMovePackage()
1079 final int moveId = mInterface.movePackage(packageName, volumeUuid); in runMovePackage()
1097 String volumeUuid = getNextArg(); in runMovePrimaryStorage() local
1098 if ("internal".equals(volumeUuid)) { in runMovePrimaryStorage()
1099 volumeUuid = null; in runMovePrimaryStorage()
1102 final int moveId = mInterface.movePrimaryStorage(volumeUuid); in runMovePrimaryStorage()
1988 String volumeUuid = getNextArg(); in runTrimCaches() local
1989 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.java157 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
171 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in isReservedSupported()
179 public long getTotalBytes(String volumeUuid, String callingPackage) { in getTotalBytes() argument
182 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in getTotalBytes()
185 final VolumeInfo vol = mStorage.findVolumeByUuid(volumeUuid); in getTotalBytes()
188 new IOException("Failed to find storage device for UUID " + volumeUuid)); in getTotalBytes()
195 public long getFreeBytes(String volumeUuid, String callingPackage) { in getFreeBytes() argument
202 path = mStorage.findPathForUuid(volumeUuid); in getFreeBytes()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DStorageStatsSource.java38 public StorageStatsSource.ExternalStorageStats getExternalStorageStats(String volumeUuid, in getExternalStorageStats() argument
41 mStorageStatsManager.queryExternalStatsForUser(volumeUuid, user)); in getExternalStorageStats()
44 public StorageStatsSource.AppStorageStats getStatsForUid(String volumeUuid, int uid) in getStatsForUid() argument
47 mStorageStatsManager.queryStatsForUid(volumeUuid, uid)); in getStatsForUid()
51 String volumeUuid, String packageName, UserHandle user) in getStatsForPackage() argument
54 mStorageStatsManager.queryStatsForPackage(volumeUuid, packageName, user)); in getStatsForPackage()
57 public long getCacheQuotaBytes(String volumeUuid, int uid) { in getCacheQuotaBytes() argument
58 return mStorageStatsManager.getCacheQuotaBytes(volumeUuid, uid); in getCacheQuotaBytes()
/frameworks/base/core/java/android/os/
DEnvironment.java239 public static File getDataDirectory(String volumeUuid) { in getDataDirectory() argument
240 if (TextUtils.isEmpty(volumeUuid)) { in getDataDirectory()
243 return new File("/mnt/expand/" + volumeUuid); in getDataDirectory()
328 public static File getDataAppDirectory(String volumeUuid) { in getDataAppDirectory() argument
329 return new File(getDataDirectory(volumeUuid), "app"); in getDataAppDirectory()
333 public static File getDataUserCeDirectory(String volumeUuid) { in getDataUserCeDirectory() argument
334 return new File(getDataDirectory(volumeUuid), "user"); in getDataUserCeDirectory()
338 public static File getDataUserCeDirectory(String volumeUuid, int userId) { in getDataUserCeDirectory() argument
339 return new File(getDataUserCeDirectory(volumeUuid), String.valueOf(userId)); in getDataUserCeDirectory()
343 public static File getDataUserCePackageDirectory(String volumeUuid, int userId, in getDataUserCePackageDirectory() argument
[all …]
/frameworks/base/core/java/android/os/storage/
DIStorageManager.aidl168 void setPrimaryStorageUuid(in String volumeUuid, IPackageMoveObserver callback) = 58; in setPrimaryStorageUuid() argument
176 void prepareUserStorage(in String volumeUuid, int userId, int serialNumber, int flags) = 66; in prepareUserStorage() argument
177 void destroyUserStorage(in String volumeUuid, int userId, int flags) = 67; in destroyUserStorage() argument
184 long getCacheQuotaBytes(String volumeUuid, int uid) = 75; in getCacheQuotaBytes() argument
185 long getCacheSizeBytes(String volumeUuid, int uid) = 76; in getCacheSizeBytes() argument
186 long getAllocatableBytes(String volumeUuid, int flags, String callingPackage) = 77; in getAllocatableBytes() argument
187 void allocateBytes(String volumeUuid, long bytes, int flags, String callingPackage) = 78; in allocateBytes() argument
DStorageManager.java732 public @Nullable VolumeInfo findVolumeByQualifiedUuid(String volumeUuid) { in findVolumeByQualifiedUuid() argument
733 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findVolumeByQualifiedUuid()
735 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findVolumeByQualifiedUuid()
738 return findVolumeByUuid(volumeUuid); in findVolumeByQualifiedUuid()
779 public @NonNull File findPathForUuid(String volumeUuid) throws FileNotFoundException { in findPathForUuid() argument
780 final VolumeInfo vol = findVolumeByQualifiedUuid(volumeUuid); in findPathForUuid()
784 throw new FileNotFoundException("Failed to find a storage device for " + volumeUuid); in findPathForUuid()
1035 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument
1037 mStorageManager.setPrimaryStorageUuid(volumeUuid, callback); in setPrimaryStorageUuid()
1314 public void prepareUserStorage(String volumeUuid, int userId, int serialNumber, int flags) { in prepareUserStorage() argument
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java211 + existingInfo.volumeUuid + " for system app " + params.appPackageName in resolveInstallVolume()
219 if (existingInfo != null && !Objects.equals(existingInfo.volumeUuid, in resolveInstallVolume()
222 + " from " + existingInfo.volumeUuid + " to internal storage"); in resolveInstallVolume()
238 if (Objects.equals(existingInfo.volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL) in resolveInstallVolume()
241 } else if (allCandidates.contains(existingInfo.volumeUuid)) { in resolveInstallVolume()
242 return existingInfo.volumeUuid; in resolveInstallVolume()
245 + 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.java224 appInfo.volumeUuid = sInternalVolUuid; in testGetCandidateVolumes_3rdParty_auto()
231 appInfo.volumeUuid = sInternalVolUuid; in testGetCandidateVolumes_3rdParty_auto()
238 appInfo.volumeUuid = sAdoptedVolUuid; in testGetCandidateVolumes_3rdParty_auto()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java355 private @Nullable VolumeInfo findStorageForUuid(String volumeUuid) { in findStorageForUuid() argument
357 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findStorageForUuid()
359 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findStorageForUuid()
362 return storage.findEmulatedForPrivate(storage.findVolumeByUuid(volumeUuid)); in findStorageForUuid()
2047 public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback) { in setPrimaryStorageUuid() argument
2054 if (Objects.equals(mPrimaryStorageUuid, volumeUuid)) { in setPrimaryStorageUuid()
2055 throw new IllegalArgumentException("Primary storage already at " + volumeUuid); in setPrimaryStorageUuid()
2062 mMoveTargetUuid = volumeUuid; in setPrimaryStorageUuid()
2078 || Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in setPrimaryStorageUuid()
2087 to = findStorageForUuid(volumeUuid); in setPrimaryStorageUuid()
[all …]
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java194 .setVolumeUuid(appInfo.volumeUuid) in getUnfulfilledRequests()
244 private void insertIntoQuotaMap(String volumeUuid, int userId, int appId, long quota) { in insertIntoQuotaMap() argument
245 SparseLongArray volumeMap = mQuotaMap.get(volumeUuid); in insertIntoQuotaMap()
248 mQuotaMap.put(volumeUuid, volumeMap); in insertIntoQuotaMap()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java1922 final String volumeUuid; in movePackage() local
1924 volumeUuid = StorageManager.UUID_PRIVATE_INTERNAL; in movePackage()
1926 volumeUuid = StorageManager.UUID_PRIMARY_PHYSICAL; in movePackage()
1928 volumeUuid = Preconditions.checkNotNull(vol.fsUuid); in movePackage()
1931 return mPM.movePackage(packageName, volumeUuid); in movePackage()
1951 return storage.findVolumeByUuid(app.volumeUuid); in getPackageCurrentVolume()
2033 final String volumeUuid; in movePrimaryStorage() local
2035 volumeUuid = StorageManager.UUID_PRIVATE_INTERNAL; in movePrimaryStorage()
2037 volumeUuid = StorageManager.UUID_PRIMARY_PHYSICAL; in movePrimaryStorage()
2039 volumeUuid = Preconditions.checkNotNull(vol.fsUuid); in movePrimaryStorage()
[all …]
/frameworks/base/core/java/android/content/pm/
DApplicationInfo.java694 public String volumeUuid; field in ApplicationInfo
1419 volumeUuid = orig.volumeUuid; in ApplicationInfo()
1564 volumeUuid = StorageManager.convert(storageUuid); in ApplicationInfo()
1664 .getDataUserDePackageDirectory(volumeUuid, userId, packageName) in initForUser()
1667 .getDataUserCePackageDirectory(volumeUuid, userId, packageName) in initForUser()
1791 return TextUtils.isEmpty(volumeUuid) && isExternal(); in isExternalAsec()
DIPackageManager.aidl362 void freeStorageAndNotify(in String volumeUuid, in long freeStorageSize, in freeStorageAndNotify() argument
386 void freeStorage(in String volumeUuid, in long freeStorageSize, in freeStorage() argument
563 int movePackage(in String packageName, in String volumeUuid); in movePackage() argument
564 int movePrimaryStorage(in String volumeUuid); in movePrimaryStorage() argument
DPackageInstaller.java1119 public String volumeUuid; field in PackageInstaller.SessionParams
1150 volumeUuid = source.readString(); in SessionParams()
1172 || abiOverride != null || volumeUuid != null; in areHiddenOptionsSet()
1373 pw.printPair("volumeUuid", volumeUuid); in dump()
1398 dest.writeString(volumeUuid); in writeToParcel()
/frameworks/native/cmds/installd/
DInstalldNativeService.h131 const std::unique_ptr<std::string>& volumeUuid, int32_t storage_flag, bool* _aidl_return);
133 const std::string& packageName, int32_t uid, const std::unique_ptr<std::string>& volumeUuid,
137 binder::Status isQuotaSupported(const std::unique_ptr<std::string>& volumeUuid,
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DInstallerTest.java120 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, 0, in testGetAppSize()
125 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, Installer.FLAG_USE_QUOTA, in testGetAppSize()
DUserDataPreparerTest.java243 protected File getDataUserCeDirectory(String volumeUuid, int userId) { in getDataUserCeDirectory() argument
253 protected File getDataUserDeDirectory(String volumeUuid, int userId) { in getDataUserDeDirectory() argument

123