Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageUtilsTest.java42 private StorageManager mStorageManager; field in StorageUtilsTest
54 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_mounted_shouldReturnVolumeInfo()
56 VolumeInfo expected = StorageUtils.maybeInitializeVolume(mStorageManager, null); in maybeInitializeVolume_mounted_shouldReturnVolumeInfo()
65 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_notMounted_shouldNotReturnVolumeInfo()
67 VolumeInfo expected = StorageUtils.maybeInitializeVolume(mStorageManager, null); in maybeInitializeVolume_notMounted_shouldNotReturnVolumeInfo()
76 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_differentType_shouldNotReturnVolumeInfo()
78 VolumeInfo expected = StorageUtils.maybeInitializeVolume(mStorageManager, null); in maybeInitializeVolume_differentType_shouldNotReturnVolumeInfo()
87 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_defaultId_notMounted_returnsNull()
89 VolumeInfo expected = StorageUtils.maybeInitializeVolume(mStorageManager, bundle); in maybeInitializeVolume_defaultId_notMounted_returnsNull()
99 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_getDefaultIdFromBundle_mounted_shouldReturnVolumeInfo()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java66 private final StorageManager mStorageManager; field in BufferManager
352 mStorageManager = storageManager; in BufferManager()
399 File file = new File(mStorageManager.getBufferDir(), getFileName(id, positionUs)); in createNewWriteFileIfNeeded()
405 mStorageManager.updateIndexFile(id, map.size(), positionUs, sampleChunk, 0); in createNewWriteFileIfNeeded()
411 mStorageManager.updateIndexFile( in createNewWriteFileIfNeeded()
426 ArrayList<PositionHolder> keyPositions = mStorageManager.readIndexFile(trackId); in loadTrackFromStorage()
443 mStorageManager.getBufferDir(), in loadTrackFromStorage()
486 SampleChunk.IoState.release(chunk, !mStorageManager.isPersistent()); in evictChunks()
502 while (mStorageManager.reachedStorageMax(mBufferSize, pendingDelete) in maybeEvictChunk()
503 || !mStorageManager.hasEnoughBuffer(pendingDelete)) { in maybeEvictChunk()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DFileEncryptionPreferenceControllerTest.java53 private IStorageManager mStorageManager; field in FileEncryptionPreferenceControllerTest
76 ReflectionHelpers.setField(mController, "mStorageManager", mStorageManager); in isAvailable_notConvertibleToFBE_shouldBeFalse()
77 when(mStorageManager.isConvertibleToFBE()).thenReturn(false); in isAvailable_notConvertibleToFBE_shouldBeFalse()
84 ReflectionHelpers.setField(mController, "mStorageManager", mStorageManager); in isAvailable_convertibleToFBE_shouldBeTrue()
85 when(mStorageManager.isConvertibleToFBE()).thenReturn(true); in isAvailable_convertibleToFBE_shouldBeTrue()
92 ReflectionHelpers.setField(mController, "mStorageManager", mStorageManager); in updateState_settingIsNotFile_shouldDoNothing()
93 when(mStorageManager.isConvertibleToFBE()).thenReturn(true); in updateState_settingIsNotFile_shouldDoNothing()
106 ReflectionHelpers.setField(mController, "mStorageManager", mStorageManager); in updateState_settingIsFile_shouldSetSummaryAndDisablePreference()
107 when(mStorageManager.isConvertibleToFBE()).thenReturn(true); in updateState_settingIsFile_shouldSetSummaryAndDisablePreference()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSettings.java77 private StorageManager mStorageManager; field in StorageSettings
103 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
106 sTotalInternalStorage = mStorageManager.getPrimaryStorageSize(); in onCreate()
153 final StorageManagerVolumeProvider smvp = new StorageManagerVolumeProvider(mStorageManager); in refresh()
158 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in refresh()
181 final List<VolumeRecord> recs = mStorageManager.getVolumeRecords(); in refresh()
184 && mStorageManager.findVolumeByUuid(rec.getFsUuid()) == null) { in refresh()
196 final List<DiskInfo> disks = mStorageManager.getDisks(); in refresh()
241 mStorageManager.registerListener(mStorageListener); in onResume()
248 mStorageManager.unregisterListener(mStorageListener); in onPause()
[all …]
DPublicVolumeSettings.java58 private StorageManager mStorageManager; field in PublicVolumeSettings
92 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
98 mVolume = mStorageManager.findVolumeByUuid(fsUuid); in onCreate()
102 mVolume = mStorageManager.findVolumeById(volId); in onCreate()
111 mDisk = mStorageManager.findDiskById(mVolume.getDiskId()); in onCreate()
157 getActivity().setTitle(mStorageManager.getBestVolumeDescription(mVolume)); in update()
208 mVolume = mStorageManager.findVolumeById(mVolumeId); in onResume()
214 mStorageManager.registerListener(mStorageListener); in onResume()
221 mStorageManager.unregisterListener(mStorageListener); in onPause()
256 mVolume = mStorageManager.findVolumeById(mVolumeId);
DStorageVolumePreference.java50 private final StorageManager mStorageManager; field in StorageVolumePreference
60 mStorageManager = context.getSystemService(StorageManager.class); in StorageVolumePreference()
67 setTitle(mStorageManager.getBestVolumeDescription(volume)); in StorageVolumePreference()
109 if (freeBytes < mStorageManager.getStorageLowBytes(path)) { in StorageVolumePreference()
DPrivateVolumeSettings.java109 private StorageManager mStorageManager; field in PrivateVolumeSettings
153 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
156 mVolume = mStorageManager.findVolumeById(mVolumeId); in onCreate()
170 mSharedVolume = mStorageManager.findEmulatedForPrivate(mVolume); in onCreate()
194 getActivity().setTitle(mStorageManager.getBestVolumeDescription(mVolume)); in setTitle()
349 mVolume = mStorageManager.findVolumeById(mVolumeId); in onResume()
355 mStorageManager.registerListener(mStorageListener); in onResume()
367 mStorageManager.unregisterListener(mStorageListener); in onPause()
512 OtherInfoFragment.show(this, mStorageManager.getBestVolumeDescription(mVolume), in onPreferenceTreeClick()
687 mVolume = mStorageManager.findVolumeById(mVolumeId);
DTopLevelStoragePreferenceController.java35 private final StorageManager mStorageManager; field in TopLevelStoragePreferenceController
40 mStorageManager = mContext.getSystemService(StorageManager.class); in TopLevelStoragePreferenceController()
41 mStorageManagerVolumeProvider = new StorageManagerVolumeProvider(mStorageManager); in TopLevelStoragePreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageSettings.java77 private StorageManager mStorageManager; field in StorageSettings
103 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
106 sTotalInternalStorage = mStorageManager.getPrimaryStorageSize(); in onCreate()
153 final StorageManagerVolumeProvider smvp = new StorageManagerVolumeProvider(mStorageManager); in refresh()
158 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in refresh()
181 final List<VolumeRecord> recs = mStorageManager.getVolumeRecords(); in refresh()
184 && mStorageManager.findVolumeByUuid(rec.getFsUuid()) == null) { in refresh()
196 final List<DiskInfo> disks = mStorageManager.getDisks(); in refresh()
241 mStorageManager.registerListener(mStorageListener); in onResume()
248 mStorageManager.unregisterListener(mStorageListener); in onPause()
[all …]
DPublicVolumeSettings.java58 private StorageManager mStorageManager; field in PublicVolumeSettings
92 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
98 mVolume = mStorageManager.findVolumeByUuid(fsUuid); in onCreate()
102 mVolume = mStorageManager.findVolumeById(volId); in onCreate()
111 mDisk = mStorageManager.findDiskById(mVolume.getDiskId()); in onCreate()
157 getActivity().setTitle(mStorageManager.getBestVolumeDescription(mVolume)); in update()
208 mVolume = mStorageManager.findVolumeById(mVolumeId); in onResume()
214 mStorageManager.registerListener(mStorageListener); in onResume()
221 mStorageManager.unregisterListener(mStorageListener); in onPause()
256 mVolume = mStorageManager.findVolumeById(mVolumeId);
DStorageVolumePreference.java50 private final StorageManager mStorageManager; field in StorageVolumePreference
60 mStorageManager = context.getSystemService(StorageManager.class); in StorageVolumePreference()
67 setTitle(mStorageManager.getBestVolumeDescription(volume)); in StorageVolumePreference()
109 if (freeBytes < mStorageManager.getStorageLowBytes(path)) { in StorageVolumePreference()
DPrivateVolumeSettings.java109 private StorageManager mStorageManager; field in PrivateVolumeSettings
153 mStorageManager = context.getSystemService(StorageManager.class); in onCreate()
156 mVolume = mStorageManager.findVolumeById(mVolumeId); in onCreate()
170 mSharedVolume = mStorageManager.findEmulatedForPrivate(mVolume); in onCreate()
194 getActivity().setTitle(mStorageManager.getBestVolumeDescription(mVolume)); in setTitle()
349 mVolume = mStorageManager.findVolumeById(mVolumeId); in onResume()
355 mStorageManager.registerListener(mStorageListener); in onResume()
367 mStorageManager.unregisterListener(mStorageListener); in onPause()
512 OtherInfoFragment.show(this, mStorageManager.getBestVolumeDescription(mVolume), in onPreferenceTreeClick()
687 mVolume = mStorageManager.findVolumeById(mVolumeId);
DTopLevelStoragePreferenceController.java32 private final StorageManager mStorageManager; field in TopLevelStoragePreferenceController
37 mStorageManager = mContext.getSystemService(StorageManager.class); in TopLevelStoragePreferenceController()
38 mStorageManagerVolumeProvider = new StorageManagerVolumeProvider(mStorageManager); in TopLevelStoragePreferenceController()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
DStorageSummaryFragment.java58 private StorageManager mStorageManager; field in StorageSummaryFragment
76 mStorageManager = getContext().getSystemService(StorageManager.class); in onCreate()
89 mStorageManager.registerListener(mStorageEventListener); in onStart()
109 mStorageManager.unregisterListener(mStorageEventListener); in onStop()
118 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in refresh()
136 final List<VolumeRecord> volumeRecords = mStorageManager.getVolumeRecords(); in refresh()
141 && mStorageManager.findVolumeByUuid(record.getFsUuid()) == null) { in refresh()
147 final List<DiskInfo> disks = mStorageManager.getDisks(); in refresh()
169 volPreference.refresh(themedContext, mStorageManager, volumeInfo); in refresh()
209 volPreference.refresh(themedContext, mStorageManager, volumeInfo); in refresh()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageFragment.java58 private StorageManager mStorageManager; field in StorageFragment
85 mStorageManager = getContext().getSystemService(StorageManager.class); in onCreate()
88 mVolumeInfo = mStorageManager.findVolumeById( in onCreate()
97 mStorageManager.registerListener(mStorageEventListener); in onStart()
104 mVolumeInfo = mStorageManager.findVolumeById( in onResume()
116 mStorageManager.unregisterListener(mStorageEventListener); in onStop()
125 screen.setTitle(mStorageManager.getBestVolumeDescription(mVolumeInfo)); in onCreatePreferences()
161 final String description = mStorageManager.getBestVolumeDescription(mVolumeInfo); in refresh()
192 final VolumeInfo sharedVolume = mStorageManager.findEmulatedForPrivate(mVolumeInfo); in startMeasurement()
DMissingStorageFragment.java38 private StorageManager mStorageManager; field in MissingStorageFragment
47 mStorageManager = getContext().getSystemService(StorageManager.class); in onCreate()
48 mStorageManager.registerListener(new StorageEventListener()); in onCreate()
55 if (mStorageManager.findRecordByUuid(mFsUuid) == null) { in onResume()
67 final VolumeRecord record = mStorageManager.findRecordByUuid(mFsUuid); in onCreatePreferences()
86 if (mStorageManager.findRecordByUuid(fsUuid) == null) { in onVolumeForgotten()
DFormatActivity.java72 private StorageManager mStorageManager; field in FormatActivity
93 mStorageManager = getSystemService(StorageManager.class); in onCreate()
142 final List<VolumeInfo> vols = mStorageManager.getVolumes(); in findVolume()
246 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in onRequestFormatAsPrivate()
251 mFormatDiskDesc = mStorageManager.getBestVolumeDescription(volume); in onRequestFormatAsPrivate()
255 final DiskInfo info = mStorageManager.findDiskById(diskId); in onRequestFormatAsPrivate()
290 final VolumeInfo info = mStorageManager.findVolumeById(volumeId); in onRequestFormatAsPublic()
292 mFormatDiskDesc = mStorageManager.getBestVolumeDescription(info); in onRequestFormatAsPublic()
296 final DiskInfo info = mStorageManager.findDiskById(diskId); in onRequestFormatAsPublic()
DDiskReceiver.java45 private StorageManager mStorageManager; field in DiskReceiver
65 mStorageManager = context.getSystemService(StorageManager.class); in onReceive()
85 final List<VolumeInfo> volumeInfos = mStorageManager.getVolumes(); in handleMount()
108 volumeRecord = mStorageManager.findRecordByUuid(fsUuid); in handleUnmount()
126 final List<DiskInfo> diskInfos = mStorageManager.getDisks(); in handleSetupComplete()
145 final List<VolumeInfo> volumeInfos = mStorageManager.getVolumes(); in handleSetupComplete()
152 final VolumeRecord record = mStorageManager.findRecordByUuid(uuid); in handleSetupComplete()
DBackupAppsStepFragment.java53 private StorageManager mStorageManager; field in BackupAppsStepFragment
75 mStorageManager = getActivity().getSystemService(StorageManager.class); in onCreate()
78 final VolumeInfo info = mStorageManager.findVolumeById(mVolumeId); in onCreate()
124 final VolumeInfo volumeInfo = mStorageManager.findVolumeById(mVolumeId); in onCreateGuidance()
125 final String volumeDesc = mStorageManager.getBestVolumeDescription(volumeInfo); in onCreateGuidance()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DDeviceListFragment.java61 private StorageManager mStorageManager; field in DeviceListFragment
94 mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in onCreate()
95 if (mStorageManager == null) { in onCreate()
135 if (mStorageManager != null) { in onResume()
136 mStorageManager.registerListener(mListener); in onResume()
143 if (mStorageManager != null) { in onPause()
144 mStorageManager.unregisterListener(mListener); in onPause()
150 if (mStorageManager == null) { in showMountedVolumes()
153 final List<VolumeInfo> vols = mStorageManager.getVolumes(); in showMountedVolumes()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java68 private CarStorageMonitoringManager mStorageManager; field in StorageLifetimeFragment
89 final List<IoStatsEntry> totals = mStorageManager.getAggregateIoStats();
186 mStorageManager = in reloadInfo()
190 mStorageWearInfo.setText("Wear estimate: " + mStorageManager.getWearEstimate() in reloadInfo()
192 + preEolToString(mStorageManager.getPreEolIndicatorStatus())); in reloadInfo()
196 mStorageManager.getWearEstimateHistory().toArray())); in reloadInfo()
206 mStorageManager.registerListener(mIoListener); in registerListener()
210 mStorageManager.unregisterListener(mIoListener); in unregisterListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DFileEncryptionPreferenceController.java38 private final IStorageManager mStorageManager; field in FileEncryptionPreferenceController
43 mStorageManager = getStorageManager(); in FileEncryptionPreferenceController()
48 if (mStorageManager == null) { in isAvailable()
53 return mStorageManager.isConvertibleToFBE(); in isAvailable()
/packages/apps/Settings/src/com/android/settings/development/
DFileEncryptionPreferenceController.java38 private final IStorageManager mStorageManager; field in FileEncryptionPreferenceController
43 mStorageManager = getStorageManager(); in FileEncryptionPreferenceController()
48 if (mStorageManager == null) { in isAvailable()
53 return mStorageManager.isConvertibleToFBE(); in isAvailable()
/packages/modules/ExtServices/tests/src/android/ext/services/storage/
DCacheQuotaServiceImplTest.java50 @Mock(answer = Answers.RETURNS_DEEP_STUBS) private StorageManager mStorageManager; field in CacheQuotaServiceImplTest
62 when(mContext.getSystemService(Context.STORAGE_SERVICE)).thenReturn(mStorageManager); in setUp()
66 when(mStorageManager.findVolumeByUuid(sTestVolUuid)).thenReturn(mVolume); in setUp()
67 when(mStorageManager.findVolumeByUuid(sSecondTestVolUuid)).thenReturn(mVolume); in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAppStoragePreference.java33 private final StorageManager mStorageManager; field in AppStoragePreference
38 mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); in AppStoragePreference()
55 final String volumeDesc = mStorageManager.getBestVolumeDescription(volumeInfo); in refresh()

12