Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/src/com/android/providers/media/
DMtpService.java57 String state = mStorageManager.getVolumeState(path); in addStorageDevicesLocked()
114 private StorageManager mStorageManager; field in MtpService
126 mStorageManager = StorageManager.from(this); in onCreate()
129 mStorageManager.registerListener(mStorageEventListener); in onCreate()
130 StorageVolume[] volumes = mStorageManager.getVolumeList(); in onCreate()
134 String state = mStorageManager.getVolumeState(path); in onCreate()
209 mStorageManager.unregisterListener(mStorageEventListener); in onDestroy()
DMediaProvider.java147 private StorageManager mStorageManager; field in MediaProvider
570 mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in onCreate()
5319 final StorageVolume actualVolume = mStorageManager.getPrimaryVolume(); in attachVolume()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMemory.java82 private StorageManager mStorageManager; field in Memory
95 mStorageManager = StorageManager.from(context); in onCreate()
96 mStorageManager.registerListener(mStorageListener); in onCreate()
102 final StorageVolume[] storageVolumes = mStorageManager.getVolumeList(); in onCreate()
120 final StorageVolume[] volumes = mStorageManager.getVolumeList(); in isMassStorageEnabled()
168 if (mStorageManager != null && mStorageListener != null) { in onDestroy()
169 mStorageManager.unregisterListener(mStorageListener); in onDestroy()
242 String state = mStorageManager.getVolumeState(volume.getPath()); in onPreferenceTreeClick()
DStorageVolumePreferenceCategory.java61 private final StorageManager mStorageManager; field in StorageVolumePreferenceCategory
128 mStorageManager = StorageManager.from(context); in StorageVolumePreferenceCategory()
243 final String state = mStorageManager.getVolumeState(mVolume.getPath()); in updatePreferencesFromState()