/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserDataPreparer.java | 25 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() 87 if ((flags & StorageManager.FLAG_STORAGE_DE) != 0 && !mOnlyCore) { in prepareUserDataLI() 89 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { in prepareUserDataLI() 93 if ((flags & StorageManager.FLAG_STORAGE_CE) != 0 && !mOnlyCore) { in prepareUserDataLI() 95 if (Objects.equals(volumeUuid, StorageManager.UUID_PRIVATE_INTERNAL)) { 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() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserDataPreparerTest.java | 28 import android.os.storage.StorageManager; 69 private StorageManager mStorageManagerMock; 87 when(mContextMock.getSystemServiceName(StorageManager.class)) in setup() 102 .prepareUserData(TEST_USER_ID, TEST_USER_SERIAL, StorageManager.FLAG_STORAGE_DE); in testPrepareUserData_De() 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() 120 .prepareUserData(TEST_USER_ID, TEST_USER_SERIAL, StorageManager.FLAG_STORAGE_CE); in testPrepareUserData_Ce() 122 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_CE)); in testPrepareUserData_Ce() 124 eq(TEST_USER_SERIAL), eq(StorageManager.FLAG_STORAGE_CE)); in testPrepareUserData_Ce() 159 mUserDataPreparer.destroyUserData(TEST_USER_ID, StorageManager.FLAG_STORAGE_DE); in testDestroyUserData_De() [all …]
|
/frameworks/base/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 26 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() 166 mSm.setDebugFlags(StorageManager.DEBUG_ADOPTABLE_FORCE_ON, mask); in runSetForceAdoptable() 169 mSm.setDebugFlags(StorageManager.DEBUG_ADOPTABLE_FORCE_OFF, mask); in runSetForceAdoptable() 179 final int mask = StorageManager.DEBUG_SDCARDFS_FORCE_ON in runSetSdcardfs() 180 | StorageManager.DEBUG_SDCARDFS_FORCE_OFF; in runSetSdcardfs() 183 mSm.setDebugFlags(StorageManager.DEBUG_SDCARDFS_FORCE_ON, mask); in runSetSdcardfs() 186 mSm.setDebugFlags(StorageManager.DEBUG_SDCARDFS_FORCE_OFF, mask); in runSetSdcardfs() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 34 import android.os.storage.StorageManager; 91 abstract public StorageManager getStorageManager(Context context); in getStorageManager() 102 public StorageManager getStorageManager(Context context) { in getDefaultTestableInterface() 103 return context.getSystemService(StorageManager.class); in getDefaultTestableInterface() 166 private static boolean checkFitOnVolume(StorageManager storageManager, String volumePath, in checkFitOnVolume() 174 installFlags | StorageManager.FLAG_ALLOCATE_NON_CACHE_ONLY); in checkFitOnVolume() 179 installFlags | StorageManager.FLAG_ALLOCATE_CACHE_ONLY); in checkFitOnVolume() 186 final StorageManager storageManager = testInterface.getStorageManager(context); in resolveInstallVolume() 212 return StorageManager.UUID_PRIVATE_INTERNAL; in resolveInstallVolume() 224 StorageManager.UUID_PRIVATE_INTERNAL)) { in resolveInstallVolume() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageManagerVolumeProvider.java | 20 import android.os.storage.StorageManager; 31 private StorageManager mStorageManager; 33 public StorageManagerVolumeProvider(StorageManager sm) { in StorageManagerVolumeProvider()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DeviceStorageMonitorService.java | 38 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 …]
|
D | FileCollector.java | 25 import android.os.storage.StorageManager; 156 return collectFiles(StorageManager.maybeTranslateEmulatedPathToInternal(path), in getMeasurementResult() 173 StorageManager.UUID_PRIVATE_INTERNAL, in getMeasurementResult() 200 StorageManager sm = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in getSystemSize()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageHelperTests.java | 22 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()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | ApplicationPackageManagerTest.java | 26 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()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 114 import android.os.storage.StorageManager; 513 final StorageManager storage = mContext.getSystemService(StorageManager.class); in findStorageForUuidAsUser() 514 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findStorageForUuidAsUser() 516 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findStorageForUuidAsUser() 1003 StorageManager.APP_IO_BLOCKED_REASON_TRANSCODING); in onAnrDelayStarted() 1073 && !StorageManager.isFileEncryptedNativeOnly()) { in initIfBootedAndConnected() 1077 final boolean initLocked = StorageManager.isFileEncryptedEmulatedOnly(); in initIfBootedAndConnected() 1354 systemLocale = getField(StorageManager.SYSTEM_LOCALE_KEY); in copyLocaleFromMountService() 1382 final String value = SystemProperties.get(StorageManager.PROP_ADOPTABLE); 1554 final StorageManager storage = mContext.getSystemService(StorageManager.class); in onVolumeCreatedLocked() [all …]
|
D | DynamicSystemService.java | 32 import android.os.storage.StorageManager; 92 final StorageManager sm = mContext.getSystemService(StorageManager.class); in startInstallation()
|
D | MasterClearReceiver.java | 33 import android.os.storage.StorageManager; 199 StorageManager sm = (StorageManager) mContext.getSystemService( in doInBackground()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 34 import android.os.storage.StorageManager; 41 private StorageManager mStorageManager; 50 StorageManager storageManager, TrustManager trustManager, in MockLockSettingsContext()
|
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
D | SharedStorageAgent.java | 9 import android.os.storage.StorageManager; 25 StorageManager mgr = (StorageManager) getSystemService(Context.STORAGE_SERVICE); in onCreate()
|
/frameworks/base/apct-tests/perftests/core/src/android/mtp_perf/ |
D | AppFusePerfTest.java | 24 import android.os.storage.StorageManager; 44 final StorageManager storageManager = context.getSystemService(StorageManager.class); in testReadWriteFile()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockscreenCredential.java | 29 import android.os.storage.StorageManager; 185 return StorageManager.CRYPT_TYPE_DEFAULT; in getStorageCryptType() 188 return StorageManager.CRYPT_TYPE_PATTERN; in getStorageCryptType() 191 return StorageManager.CRYPT_TYPE_PIN; in getStorageCryptType() 194 return StorageManager.CRYPT_TYPE_PASSWORD; in getStorageCryptType()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | FactoryResetter.java | 27 import android.os.storage.StorageManager; 137 StorageManager sm = mContext.getSystemService(StorageManager.class); in factoryResetInternalUnchecked()
|
/frameworks/base/core/java/android/service/storage/ |
D | ExternalStorageService.java | 33 import android.os.storage.StorageManager; 182 @StorageManager.AppIoBlockedReason int reason) { in onAnrDelayStarted() 226 onFreeCache(StorageManager.convert(volumeUuid), bytes); in freeCache()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | AppDataRollbackHelper.java | 22 import android.os.storage.StorageManager; 273 return StorageManager.isFileEncryptedNativeOrEmulated() in isUserCredentialLocked() 274 && !StorageManager.isUserKeyUnlocked(userId); in isUserCredentialLocked()
|
/frameworks/base/core/java/android/os/ |
D | RevocableFileDescriptor.java | 20 import android.os.storage.StorageManager; 79 mOuter = context.getSystemService(StorageManager.class) in init()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 59 import android.os.storage.StorageManager; 118 private final StorageManager mStorage; 132 mStorage = Preconditions.checkNotNull(context.getSystemService(StorageManager.class)); in StorageStatsService() 209 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in isReservedSupported() 210 return SystemProperties.getBoolean(StorageManager.PROP_HAS_RESERVED, false) in isReservedSupported() 221 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in getTotalBytes() 338 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in queryStatsForPackage() 404 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in queryStatsForUid() 435 if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { in queryStatsForUser()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RadioInterfaceCapabilityController.java | 25 import android.os.storage.StorageManager; 86 mRegisterForOn = StorageManager.inCryptKeeperBounce(); in RadioInterfaceCapabilityController()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/devicepolicy/ |
D | FactoryResetterTest.java | 36 import android.os.storage.StorageManager; 63 private @Mock StorageManager mSm; 80 if (serviceClass.equals(StorageManager.class)) return mSm; in startSession()
|
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
D | BackgroundDexOptServiceIntegrationTests.java | 25 import android.os.storage.StorageManager; 236 StorageManager storageManager = (StorageManager) getContext().getSystemService( in getStorageLowBytes()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DynamicCodeLogger.java | 28 import android.os.storage.StorageManager; 127 storageFlags = StorageManager.FLAG_STORAGE_CE; in logDynamicCodeLoading() 129 storageFlags = StorageManager.FLAG_STORAGE_DE; in logDynamicCodeLoading()
|