/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MountServiceTests.java | 24 import android.os.storage.StorageManager; 136 private StorageManager getStorageManager() { in getStorageManager() 137 return (StorageManager) getContext().getSystemService(Context.STORAGE_SERVICE); in getStorageManager() 140 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() 161 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, in mountObbWithoutWait() 172 private void waitForObbActionCompletion(final StorageManager sm, final File file, in waitForObbActionCompletion() 186 private String checkMountedPath(final StorageManager sm, final File file) { in checkMountedPath() 194 private void unmountObb(final StorageManager sm, final File file, int expectedState) { in unmountObb() 213 StorageManager sm = getStorageManager(); in testMountAndUnmountObbNormal() 232 StorageManager sm = getStorageManager(); in testAttemptMountNonObb() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Environment.java | 21 import android.os.storage.StorageManager; 83 final StorageVolume[] volumes = StorageManager.getVolumeList(mUserId, in getExternalDirs() 84 StorageManager.FLAG_FOR_WRITE); in getExternalDirs() 659 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in getExternalStorageState() 691 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in isExternalStorageRemovable() 722 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in isExternalStorageEmulated() 794 return StorageManager.maybeTranslateEmulatedPathToInternal(path); in maybeTranslateEmulatedPathToInternal()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MasterClearReceiver.java | 25 import android.os.storage.StorageManager; 97 StorageManager sm = (StorageManager) mContext.getSystemService( in doInBackground()
|
D | MountService.java | 73 import android.os.storage.StorageManager; 358 final StorageManager storage = mContext.getSystemService(StorageManager.class); in findStorageForUuid() 359 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findStorageForUuid() 361 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findStorageForUuid() 904 systemLocale = getField(StorageManager.SYSTEM_LOCALE_KEY); in copyLocaleFromMountService() 951 if (SystemProperties.getBoolean(StorageManager.PROP_FORCE_ADOPTABLE, false) in onEventLocked() 1154 final StorageManager storage = mContext.getSystemService(StorageManager.class); in onVolumeCreatedLocked() 1157 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, mPrimaryStorageUuid) in onVolumeCreatedLocked() 1173 if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, mPrimaryStorageUuid) in onVolumeCreatedLocked() 1433 if (SystemProperties.getBoolean(StorageManager.PROP_PRIMARY_PHYSICAL, false)) { in getDefaultPrimaryStorageUuid() [all …]
|
/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/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 24 import android.os.storage.StorageManager; 126 System.out.println(SystemProperties.getBoolean(StorageManager.PROP_HAS_ADOPTABLE, false)); in runHasAdoptable() 135 mSm.setDebugFlags(forceAdoptable ? StorageManager.DEBUG_FORCE_ADOPTABLE : 0, in runSetForceAdoptable() 136 StorageManager.DEBUG_FORCE_ADOPTABLE); in runSetForceAdoptable()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 33 import android.os.storage.StorageManager; 357 final StorageManager storageManager = context.getSystemService(StorageManager.class); in resolveInstallVolume() 412 final StorageManager storage = context.getSystemService(StorageManager.class); in fitsOnInternal() 418 final StorageManager storage = context.getSystemService(StorageManager.class); in fitsOnExternal()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 37 import android.os.storage.StorageManager; 453 updateEncryptionPassword(StorageManager.CRYPT_TYPE_DEFAULT, null); in clearLock() 517 updateEncryptionPassword(StorageManager.CRYPT_TYPE_PATTERN, stringPattern); in saveLockPattern() 548 mountService.setField(StorageManager.OWNER_INFO_KEY, ownerInfo); in updateCryptoUserInfo() 718 int type = numeric || numericComplex ? StorageManager.CRYPT_TYPE_PIN in saveLockPassword() 719 : StorageManager.CRYPT_TYPE_PASSWORD; in saveLockPassword() 794 && mountService.getPasswordType() != StorageManager.CRYPT_TYPE_DEFAULT; in isDeviceEncrypted() 816 updateEncryptionPassword(StorageManager.CRYPT_TYPE_DEFAULT, null); in clearEncryptionPassword() 1015 mountService.setField(StorageManager.PATTERN_VISIBLE_KEY, enabled ? "1" : "0"); in setVisiblePatternEnabled() 1038 mountService.setField(StorageManager.PASSWORD_VISIBLE_KEY, enabled ? "1" : "0"); in setVisiblePasswordEnabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbStorageActivity.java | 40 import android.os.storage.StorageManager; 68 private StorageManager mStorageManager = null; 103 mStorageManager = (StorageManager) getSystemService(Context.STORAGE_SERVICE); in onCreate()
|
D | StorageNotification.java | 34 import android.os.storage.StorageManager; 61 private StorageManager mStorageManager; 154 mStorageManager = mContext.getSystemService(StorageManager.class); in start()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 71 public class StorageManager { class 283 public static StorageManager from(Context context) { in from() 284 return context.getSystemService(StorageManager.class); in from() 299 public StorageManager(Context context, Looper looper) { in StorageManager() method in StorageManager 582 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in findVolumeByQualifiedUuid() 584 } else if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, volumeUuid)) { in findVolumeByQualifiedUuid()
|
D | VolumeInfo.java | 330 final StorageManager storage = context.getSystemService(StorageManager.class); in buildStorageVolume()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 75 import android.os.storage.StorageManager; 1574 volumeUuid = StorageManager.UUID_PRIVATE_INTERNAL; in movePackage() 1576 volumeUuid = StorageManager.UUID_PRIMARY_PHYSICAL; in movePackage() 1589 final StorageManager storage = mContext.getSystemService(StorageManager.class); in getPackageCurrentVolume() 1601 final StorageManager storage = mContext.getSystemService(StorageManager.class); in getPackageCandidateVolumes() 1645 volumeUuid = StorageManager.UUID_PRIVATE_INTERNAL; in movePrimaryStorage() 1647 volumeUuid = StorageManager.UUID_PRIMARY_PHYSICAL; in movePrimaryStorage() 1660 final StorageManager storage = mContext.getSystemService(StorageManager.class); in getPrimaryStorageCurrentVolume() 1667 final StorageManager storage = mContext.getSystemService(StorageManager.class); in getPrimaryStorageCandidateVolumes() 1671 if (Objects.equals(StorageManager.UUID_PRIMARY_PHYSICAL, in getPrimaryStorageCandidateVolumes()
|
D | SystemServiceRegistry.java | 98 import android.os.storage.StorageManager; 402 registerService(Context.STORAGE_SERVICE, StorageManager.class, in registerService() 403 new CachedServiceFetcher<StorageManager>() { in registerService() 405 public StorageManager createService(ContextImpl ctx) { in registerService() 406 return new StorageManager(ctx, ctx.mMainThread.getHandler().getLooper()); in registerService()
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | AsecTests.java | 565 StorageManager sm = (StorageManager) mContext.getSystemService(Context.STORAGE_SERVICE); in unmountMedia() 625 StorageManager sm = (StorageManager) mContext.getSystemService(Context.STORAGE_SERVICE); in testUnmountMultiple()
|
D | StorageManagerBaseTest.java | 29 import android.os.storage.StorageManager; 44 protected StorageManager mSm = null; 217 mSm = (StorageManager)mContext.getSystemService(android.content.Context.STORAGE_SERVICE); in setUp()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DeviceStorageMonitorService.java | 43 import android.os.storage.StorageManager; 360 final StorageManager sm = StorageManager.from(getContext()); in onStart()
|
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/ |
D | BackupRestoreConfirmation.java | 31 import android.os.storage.StorageManager; 277 != StorageManager.CRYPT_TYPE_DEFAULT; in deviceIsEncrypted()
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 35 import android.os.storage.StorageManager; 91 private StorageManager mStorageManager; 104 mStorageManager = (StorageManager) getContext().getSystemService(Context.STORAGE_SERVICE); in onCreate()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 41 import android.os.storage.StorageManager; 217 final StorageManager storageManager = StorageManager.from(mContext); in systemReady()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerService.java | 72 import android.os.storage.StorageManager; 159 private StorageManager mStorage; 222 reconcileStagesLocked(StorageManager.UUID_PRIVATE_INTERNAL); in PackageInstallerService() 243 mStorage = mContext.getSystemService(StorageManager.class); in systemReady()
|
D | Settings.java | 48 import android.os.storage.StorageManager; 1229 return mVersion.get(StorageManager.UUID_PRIVATE_INTERNAL); in getInternalVersion() 1233 return mVersion.get(StorageManager.UUID_PRIMARY_PHYSICAL); in getExternalVersion() 2520 findOrCreateVersion(StorageManager.UUID_PRIVATE_INTERNAL); in readLPw() 2521 findOrCreateVersion(StorageManager.UUID_PRIMARY_PHYSICAL); in readLPw() 2607 StorageManager.UUID_PRIVATE_INTERNAL); in readLPw() 2609 StorageManager.UUID_PRIMARY_PHYSICAL); in readLPw() 2619 StorageManager.UUID_PRIVATE_INTERNAL); in readLPw() 2621 StorageManager.UUID_PRIMARY_PHYSICAL); in readLPw() 3932 if (Objects.equals(StorageManager.UUID_PRIVATE_INTERNAL, volumeUuid)) { in dumpVersionLPr() [all …]
|
D | UserManagerService.java | 45 import android.os.storage.StorageManager; 1282 final StorageManager storage = mContext.getSystemService(StorageManager.class); in createUserInternal()
|
/frameworks/base/docs/html/tools/help/ |
D | jobb.jd | 7 application using {@link android.os.storage.StorageManager} on devices with Android 2.3 (API
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 51 import android.os.storage.StorageManager; 1195 StorageManager sm = (StorageManager) mContext.getSystemService(Context.STORAGE_SERVICE); in mountMedia() 1234 StorageManager sm = (StorageManager) mContext.getSystemService(Context.STORAGE_SERVICE); in unmountMedia()
|