Home
last modified time | relevance | path

Searched refs:mStorageManager (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageManagerVolumeProvider.java31 private StorageManager mStorageManager; field in StorageManagerVolumeProvider
34 mStorageManager = sm; in StorageManagerVolumeProvider()
39 return mStorageManager.getPrimaryStorageSize(); in getPrimaryStorageSize()
44 return mStorageManager.getVolumes(); in getVolumes()
49 return mStorageManager.findEmulatedForPrivate(privateVolume); in findEmulatedForPrivate()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java294 private final IStorageManager mStorageManager; field in StorageManager
505mStorageManager = IStorageManager.Stub.asInterface(ServiceManager.getServiceOrThrow("mount")); in StorageManager()
522 mStorageManager.registerListener(delegate); in registerListener()
544 mStorageManager.unregisterListener(delegate); in unregisterListener()
626 mStorageManager.mountObb(rawPath, canonicalPath, key, mObbActionListener, nonce, in mountObb()
671 mStorageManager.unmountObb(rawPath, force, mObbActionListener, nonce); in unmountObb()
688 return mStorageManager.isObbMounted(rawPath); in isObbMounted()
707 return mStorageManager.getMountedObbPath(rawPath); in getMountedObbPath()
717 return Arrays.asList(mStorageManager.getDisks()); in getDisks()
822 for (VolumeInfo vol : mStorageManager.getVolumes(0)) { in getUuidForPath()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java112 final byte[] primaryStorageKey = mStorageManager.getUserUnlockToken(PRIMARY_USER_ID); in testPasswordMigration()
126 mStorageManager.getUserUnlockToken(PRIMARY_USER_ID)); in testPasswordMigration()
269 final byte[] primaryStorageKey = mStorageManager.getUserUnlockToken(PRIMARY_USER_ID); in testManagedProfileUnifiedChallengeMigration()
270 … final byte[] profileStorageKey = mStorageManager.getUserUnlockToken(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallengeMigration()
288 mStorageManager.getUserUnlockToken(PRIMARY_USER_ID)); in testManagedProfileUnifiedChallengeMigration()
290 mStorageManager.getUserUnlockToken(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallengeMigration()
307 final byte[] primaryStorageKey = mStorageManager.getUserUnlockToken(PRIMARY_USER_ID); in testManagedProfileSeparateChallengeMigration()
308 … final byte[] profileStorageKey = mStorageManager.getUserUnlockToken(MANAGED_PROFILE_USER_ID); in testManagedProfileSeparateChallengeMigration()
332 mStorageManager.getUserUnlockToken(PRIMARY_USER_ID)); in testManagedProfileSeparateChallengeMigration()
334 mStorageManager.getUserUnlockToken(MANAGED_PROFILE_USER_ID)); in testManagedProfileSeparateChallengeMigration()
[all …]
DMockLockSettingsContext.java34 private StorageManager mStorageManager; field in MockLockSettingsContext
46 mStorageManager = storageManager; in MockLockSettingsContext()
60 return mStorageManager; in getSystemService()
DLockSettingsServiceTestable.java45 private IStorageManager mStorageManager; field in LockSettingsServiceTestable.MockInjector
61 mStorageManager = storageManager; in MockInjector()
104 return mStorageManager; in getStorageManager()
DBaseLockSettingsServiceTests.java83 FakeStorageManager mStorageManager; field in BaseLockSettingsServiceTests
103 mStorageManager = new FakeStorageManager(); in setUp()
166 mStorageManager.unlockUser((int)args[0], (byte[])args[2], in setUp()
205 mStorageManager.addUserKeyAuth((int) args[0] /* userId */, in setUpStorageManagerMock()
218 mStorageManager.fixateNewestUserKeyAuth((int) args[0] /* userId */); in setUpStorageManagerMock()
DLockSettingsServiceTests.java155 mStorageManager.setIgnoreBadUnlock(true); in testManagedProfileUnifiedChallenge()
160 mStorageManager.setIgnoreBadUnlock(false); in testManagedProfileUnifiedChallenge()
183 mStorageManager.setIgnoreBadUnlock(true); in testManagedProfileSeparateChallenge()
187 mStorageManager.setIgnoreBadUnlock(false); in testManagedProfileSeparateChallenge()
211 mStorageManager.setIgnoreBadUnlock(true); in testManagedProfileSeparateChallenge()
214 mStorageManager.setIgnoreBadUnlock(false); in testManagedProfileSeparateChallenge()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java61 private StorageManager mStorageManager; field in StorageNotification
84 final VolumeInfo vol = mStorageManager.findVolumeByUuid(rec.getFsUuid());
113 mStorageManager.setVolumeSnoozed(fsUuid, true);
161 mStorageManager = mContext.getSystemService(StorageManager.class); in start()
162 mStorageManager.registerListener(mListener); in start()
170 final List<DiskInfo> disks = mStorageManager.getDisks(); in start()
175 final List<VolumeInfo> vols = mStorageManager.getVolumes(); in start()
191 final List<VolumeRecord> recs = mStorageManager.getVolumeRecords(); in updateMissingPrivateVolumes()
196 final VolumeInfo info = mStorageManager.findVolumeByUuid(fsUuid); in updateMissingPrivateVolumes()
352 final VolumeRecord rec = mStorageManager.findRecordByUuid(vol.getFsUuid()); in onVolumeMounted()
[all …]
/frameworks/base/native/android/
Dstorage_manager.cpp38 sp<AStorageManager> mStorageManager; member
42 mStorageManager(mgr) in ObbActionListener()
189 mStorageManager->fireCallback(String8(filename).string(), nonce, state); in onObbResult()
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/
DBackupRestoreConfirmation.java69 IStorageManager mStorageManager; field in BackupRestoreConfirmation
147 mStorageManager = IStorageManager.Stub.asInterface(ServiceManager.getService("mount")); in onCreate()
317 return mStorageManager.getEncryptionState() in deviceIsEncrypted()
319 && mStorageManager.getPasswordType() in deviceIsEncrypted()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java103 private StorageManager mStorageManager; field in ExternalStorageProvider
115 mStorageManager = getContext().getSystemService(StorageManager.class); in onCreate()
156 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in updateVolumesLocked()
186 final VolumeInfo privateVol = mStorageManager.findPrivateForEmulated(volume); in updateVolumesLocked()
187 title = mStorageManager.getBestVolumeDescription(privateVol); in updateVolumesLocked()
194 title = mStorageManager.getBestVolumeDescription(volume); in updateVolumesLocked()
562 mStorageManager.unmount(root.volumeId); in ejectRoot()
/frameworks/base/core/java/android/app/backup/
DFullBackup.java239 final StorageManager mStorageManager; field in FullBackup.BackupScheme
305 if (mStorageManager != null) { in getVolumeList()
307 mVolumes = mStorageManager.getVolumeList(); in getVolumeList()
358 mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in BackupScheme()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsProvider.java98 private StorageManager mStorageManager; field in MtpDocumentsProvider
118 mStorageManager = getContext().getSystemService(StorageManager.class); in onCreate()
162 mStorageManager = storageManager; in onCreateForTesting()
300 return mStorageManager.openProxyFileDescriptor( in openDocument()
312 return mStorageManager.openProxyFileDescriptor( in openDocument()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java191 private final IStorageManager mStorageManager; field in LockSettingsService
464 mStorageManager = injector.getStorageManager(); in LockSettingsService()
1660 return mStorageManager.isUserKeyUnlocked(userId); in isUserKeyUnlocked()
1670 mStorageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret); in unlockUserKey()
1678 mStorageManager.addUserKeyAuth(userId, userInfo.serialNumber, token, secret); in addUserKeyAuth()
1689 mStorageManager.fixateNewestUserKeyAuth(userId); in fixateNewestUserKeyAuth()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java264 private final IStorageManager mStorageManager; field in UserBackupManagerService
477 mStorageManager = IStorageManager.Stub.asInterface(ServiceManager.getService("mount")); in UserBackupManagerService()
1930 return mStorageManager.getEncryptionState() in deviceIsEncrypted()
1932 && mStorageManager.getPasswordType() in deviceIsEncrypted()