Home
last modified time | relevance | path

Searched refs:StorageManager (Results 1 – 25 of 228) sorted by relevance

12345678910

/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DUserDataPreparer.java25 import android.os.storage.StorageManager;
71 final StorageManager storage = mContext.getSystemService(StorageManager.class); in prepareUserData()
83 final StorageManager storage = mContext.getSystemService(StorageManager.class); in prepareUserDataLI()
103 if ((flags & StorageManager.FLAG_STORAGE_CE) != 0 && in prepareUserDataLI()
117 flags | StorageManager.FLAG_STORAGE_DE, false); in prepareUserDataLI()
127 final StorageManager storage = mContext.getSystemService(StorageManager.class); in destroyUserData()
136 final StorageManager storage = mContext.getSystemService(StorageManager.class); in destroyUserDataLI()
143 if ((flags & StorageManager.FLAG_STORAGE_DE) != 0) { in destroyUserDataLI()
147 if ((flags & StorageManager.FLAG_STORAGE_CE) != 0) { in destroyUserDataLI()
222 StorageManager.FLAG_STORAGE_DE | StorageManager.FLAG_STORAGE_CE); in reconcileUsers()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserDataPreparerTest.java28 import android.os.storage.StorageManager;
69 private StorageManager mStorageManagerMock;
87 when(mContextMock.getSystemServiceName(StorageManager.class)) in setup()
104 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_DE)); in testPrepareUserData_De()
106 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_DE)); in testPrepareUserData_De()
122 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_CE)); in testPrepareUserData_Ce()
162 eq(StorageManager.FLAG_STORAGE_DE)); in testDestroyUserData_De()
164 eq(StorageManager.FLAG_STORAGE_DE)); in testDestroyUserData_De()
180 eq(StorageManager.FLAG_STORAGE_CE)); in testDestroyUserData_Ce()
182 eq(StorageManager.FLAG_STORAGE_CE)); in testDestroyUserData_Ce()
[all …]
/aosp12/frameworks/base/cmds/sm/src/com/android/commands/sm/
H A DSm.java26 import android.os.storage.StorageManager;
153 System.out.println(StorageManager.hasAdoptable()); in runHasAdoptable()
161 final int mask = StorageManager.DEBUG_ADOPTABLE_FORCE_ON in runSetForceAdoptable()
162 | StorageManager.DEBUG_ADOPTABLE_FORCE_OFF; in runSetForceAdoptable()
179 final int mask = StorageManager.DEBUG_SDCARDFS_FORCE_ON in runSetSdcardfs()
180 | StorageManager.DEBUG_SDCARDFS_FORCE_OFF; in runSetSdcardfs()
196 mSm.setDebugFlags(emulateFbe ? StorageManager.DEBUG_EMULATE_FBE : 0, in runSetEmulateFbe()
197 StorageManager.DEBUG_EMULATE_FBE); in runSetEmulateFbe()
201 if (StorageManager.isFileEncryptedNativeOnly()) { in runGetFbeMode()
203 } else if (StorageManager.isFileEncryptedEmulatedOnly()) { in runGetFbeMode()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java34 import android.os.storage.StorageManager;
91 abstract public StorageManager getStorageManager(Context context); in getStorageManager()
179 installFlags | StorageManager.FLAG_ALLOCATE_CACHE_ONLY); in checkFitOnVolume()
212 return StorageManager.UUID_PRIVATE_INTERNAL; in resolveInstallVolume()
224 StorageManager.UUID_PRIVATE_INTERNAL)) { in resolveInstallVolume()
234 return StorageManager.UUID_PRIVATE_INTERNAL; in resolveInstallVolume()
292 final StorageManager storage = context.getSystemService(StorageManager.class); in fitsOnInternal()
297 flags | StorageManager.FLAG_ALLOCATE_NON_CACHE_ONLY); in fitsOnInternal()
306 flags | StorageManager.FLAG_ALLOCATE_CACHE_ONLY); in fitsOnInternal()
312 final StorageManager storage = context.getSystemService(StorageManager.class); in fitsOnExternal()
[all …]
/aosp12/packages/modules/StatsD/statsd/src/storage/
H A DStorageManager.cpp52 std::mutex StorageManager::sTrainInfoMutex;
389 vector<InstallTrainInfo> StorageManager::readAllTrainInfo() { in readAllTrainInfo()
415 void StorageManager::deleteFile(const char* file) { in deleteFile()
423 void StorageManager::deleteAllFiles(const char* path) { in deleteAllFiles()
459 void StorageManager::sendBroadcast(const char* path, in sendBroadcast()
480 bool StorageManager::hasConfigMetricsReport(const ConfigKey& key) { in hasConfigMetricsReport()
641 bool StorageManager::hasIdenticalConfig(const ConfigKey& key, in hasIdenticalConfig()
644 if (StorageManager::readConfigFromDisk(key, &content)) { in hasIdenticalConfig()
653 void StorageManager::sortFiles(vector<FileInfo>* fileNames) { in sortFiles()
736 void StorageManager::printStats(int outFd) { in printStats()
[all …]
/aosp12/packages/modules/StatsD/statsd/tests/storage/
H A DStorageManager_test.cpp43 result = StorageManager::writeTrainInfo(trainInfo); in TEST()
48 result = StorageManager::readTrainInfo(trainInfo.trainName, trainInfoResult); in TEST()
69 result = StorageManager::writeTrainInfo(trainInfo); in TEST()
74 result = StorageManager::readTrainInfo(trainInfo.trainName, trainInfoResult); in TEST()
86 vector<StorageManager::FileInfo> list; in TEST()
93 StorageManager::sortFiles(&list); in TEST()
143 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, false /*erase?*/, in TEST()
158 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, true /*erase?*/, in TEST()
173 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, false /*erase?*/, in TEST()
188 StorageManager::appendConfigMetricsReport(ConfigKey(1066, 1), &out, true /*erase?*/, in TEST()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
H A DSettingsStorageService.java23 import android.os.storage.StorageManager;
118 final StorageManager storageManager = getSystemService(StorageManager.class); in formatAsPublic()
144 final StorageManager storageManager = getSystemService(StorageManager.class); in formatAsPrivate()
171 private VolumeInfo findPrivateVolume(@NonNull StorageManager storageManager, in findPrivateVolume()
187 final StorageManager storageManager = getSystemService(StorageManager.class); in unmount()
H A DNewStorageActivity.java26 import android.os.storage.StorageManager;
135 StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate()
158 getActivity().getSystemService(StorageManager.class) in onStart()
165 getActivity().getSystemService(StorageManager.class) in onStop()
230 final StorageManager storageManager = in checkForUnmount()
231 getContext().getSystemService(StorageManager.class); in checkForUnmount()
286 StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate()
340 getContext().getSystemService(StorageManager.class).getVolumes(); in checkForRemount()
H A DMigrateStorageActivity.java24 import android.os.storage.StorageManager;
90 final StorageManager storageManager = getSystemService(StorageManager.class); in onCreate()
142 final StorageManager storageManager = getSystemService(StorageManager.class); in onChoose()
156 StorageManager sm = (StorageManager) getSystemService(STORAGE_SERVICE); in startMigrationInternal()
264 final StorageManager storageManager = in onCreateActions()
265 getContext().getSystemService(StorageManager.class); in onCreateActions()
/aosp12/frameworks/base/services/core/java/com/android/server/storage/
H A DDeviceStorageMonitorService.java38 import android.os.storage.StorageManager;
174 final StorageManager storage = getContext().getSystemService(StorageManager.class); in check()
198 final UUID uuid = StorageManager.convert(vol.getFsUuid()); in check()
214 } else if (StorageManager.UUID_DEFAULT.equals(uuid) in check()
304 return getContext().getSystemService(StorageManager.class)
416 final StorageManager storage = getContext().getSystemService(StorageManager.class); in dumpImpl()
422 if (StorageManager.UUID_DEFAULT.equals(uuid)) { in dumpImpl()
433 final UUID innerUuid = StorageManager.convert(vol.getFsUuid()); in dumpImpl()
462 final UUID uuid = StorageManager.convert(vol.getFsUuid()); in updateNotifications()
465 Intent lowMemIntent = new Intent(StorageManager.ACTION_MANAGE_STORAGE); in updateNotifications()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageHelperTests.java22 import android.os.storage.StorageManager;
46 private static final String sInternalVolUuid = StorageManager.UUID_PRIVATE_INTERNAL;
54 private static StorageManager sStorageManager;
56 private static StorageManager createStorageManagerMock() throws Exception { in createStorageManagerMock()
80 StorageManager storageManager = Mockito.mock(StorageManager.class); in createStorageManagerMock()
117 public StorageManager getStorageManager(Context context) { in getStorageManager()
167 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
173 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
179 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
185 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java114 import android.os.storage.StorageManager;
516 final StorageManager storage = mContext.getSystemService(StorageManager.class); in findStorageForUuidAsUser()
1557 final StorageManager storage = mContext.getSystemService(StorageManager.class); in onVolumeCreatedLocked()
3057 if (!StorageManager.isBlockEncrypted()) { in setField()
3081 if (!StorageManager.isBlockEncrypted()) { in getField()
3372 flags = StorageManager.FLAG_STORAGE_DE | StorageManager.FLAG_STORAGE_CE; in prepareUserStorageIfNeeded()
3374 flags = StorageManager.FLAG_STORAGE_DE; in prepareUserStorageIfNeeded()
3397 final StorageManager storage = mContext.getSystemService(StorageManager.class); in prepareUserStorageInternal()
3964 final StorageManager storage = mContext.getSystemService(StorageManager.class); in getAllocatableBytes()
4021 final StorageManager storage = mContext.getSystemService(StorageManager.class); in allocateBytes()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
H A DStorageUtils.java26 import android.os.storage.StorageManager;
55 StorageManager storageManager) { in getAllStorageEntries()
90 public static boolean isVolumeRecordMissed(StorageManager storageManager, in isVolumeRecordMissed()
131 private final StorageManager mStorageManager;
137 mStorageManager = mContext.getSystemService(StorageManager.class); in UnmountTask()
168 private final StorageManager mStorageManager;
174 mStorageManager = mContext.getSystemService(StorageManager.class); in MountTask()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/
H A DApplicationPackageManagerTest.java26 import android.os.storage.StorageManager;
115 private StorageManager getMockedStorageManager() { in getMockedStorageManager()
116 StorageManager storageManager = Mockito.mock(StorageManager.class); in getMockedStorageManager()
152 StorageManager storageManager = getMockedStorageManager(); in testGetCandidateVolumes_systemApp()
181 StorageManager storageManager = getMockedStorageManager(); in testGetCandidateVolumes_3rdParty_internalOnly()
210 StorageManager storageManager = getMockedStorageManager(); in testGetCandidateVolumes_3rdParty_auto()
/aosp12/packages/modules/StatsD/statsd/src/
H A DStatsLogProcessor.cpp301 StorageManager::writeTrainInfo(*trainInfo); in getAndUpdateTrainInfoOnDisk()
614 StorageManager::appendConfigMetricsReport( in onDumpReport()
860 StorageManager::deleteFile(file_name.c_str()); in SaveActiveConfigsToDisk()
887 StorageManager::deleteFile(file_name.c_str()); in SaveMetadataToDisk()
927 StorageManager::deleteFile(file_name.c_str()); in LoadMetadataFromDisk()
934 StorageManager::deleteFile(file_name.c_str()); in LoadMetadataFromDisk()
943 StorageManager::deleteFile(file_name.c_str()); in LoadMetadataFromDisk()
947 StorageManager::deleteFile(file_name.c_str()); in LoadMetadataFromDisk()
996 StorageManager::deleteFile(file_name.c_str()); in LoadActiveConfigsFromDisk()
1003 StorageManager::deleteFile(file_name.c_str()); in LoadActiveConfigsFromDisk()
[all …]
/aosp12/packages/apps/StorageManager/
H A DCleanSpec.mk46 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/priv-app/StorageManager)
47 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/priv-app/StorageManager)
48 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/priv-app/StorageManager)
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPrivateVolumeForget.java24 import android.os.storage.StorageManager;
64 final StorageManager storage = getActivity().getSystemService(StorageManager.class); in onCreateView()
116 final StorageManager storage = context.getSystemService(StorageManager.class); in onCreateDialog()
H A DStorageWizardMigrateConfirm.java26 import android.os.storage.StorageManager;
100 if (StorageManager.isFileEncryptedNativeOrEmulated()) { in onNavigateNext()
102 if (!StorageManager.isUserKeyUnlocked(user.id)) { in onNavigateNext()
124 StorageManager sm = (StorageManager) getSystemService(STORAGE_SERVICE); in onNavigateNext()
H A DStorageUnmountReceiver.java22 import android.os.storage.StorageManager;
33 final StorageManager storage = context.getSystemService(StorageManager.class); in onReceive()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A DStorageUnmountReceiver.java22 import android.os.storage.StorageManager;
37 StorageManager storage = context.getSystemService(StorageManager.class); in onReceive()
H A DUnmountTask.java21 import android.os.storage.StorageManager;
36 private final StorageManager mStorageManager;
42 mStorageManager = mContext.getSystemService(StorageManager.class); in UnmountTask()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
H A DStorageManagerVolumeProvider.java20 import android.os.storage.StorageManager;
31 private StorageManager mStorageManager;
33 public StorageManagerVolumeProvider(StorageManager sm) { in StorageManagerVolumeProvider()
/aosp12/packages/services/Mtp/src/com/android/mtp/
H A DMtpService.java36 import android.os.storage.StorageManager;
71 mVolumes = StorageManager.getVolumeList(getUserId(), 0);
102 private StorageManager mStorageManager;
119 mVolumes = StorageManager.getVolumeList(getUserId(), 0); in onCreate()
122 mStorageManager = this.getSystemService(StorageManager.class); in onCreate()
158 final StorageVolume primary = StorageManager.getPrimaryVolume(mVolumes); in onStartCommand()
/aosp12/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
H A DDeletionHelperSettingsTest.java36 import android.os.storage.StorageManager;
59 Intent intent = new Intent(StorageManager.ACTION_MANAGE_STORAGE); in nullAppHasNoGaugeTitle()
60 intent.putExtra(StorageManager.EXTRA_REQUESTED_BYTES, 100L); in nullAppHasNoGaugeTitle()
71 Intent intent = new Intent(StorageManager.ACTION_MANAGE_STORAGE); in realAppHasGaugeTitle()
72 intent.putExtra(StorageManager.EXTRA_REQUESTED_BYTES, 100L); in realAppHasGaugeTitle()
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/
H A DVolumeCache.java25 import android.os.storage.StorageManager;
155 final StorageManager sm = mContext.getSystemService(StorageManager.class); in findVolumeForFile()
172 final StorageManager sm = userContext.getSystemService(StorageManager.class); in updateExternalVolumesForUserLocked()

12345678910