/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageUtilsTest.java | 42 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/exoplayer2/buffer/ |
D | BufferManager.java | 70 private final StorageManager mStorageManager; field in BufferManager 358 mStorageManager = storageManager; in BufferManager() 405 File file = new File(mStorageManager.getBufferDir(), getFileName(id, positionUs)); in createNewWriteFileIfNeeded() 411 mStorageManager.updateIndexFile(id, map.size(), positionUs, sampleChunk, 0); in createNewWriteFileIfNeeded() 417 mStorageManager.updateIndexFile( in createNewWriteFileIfNeeded() 433 ArrayList<PositionHolder> keyPositions = mStorageManager.readIndexFile(trackId); in loadTrackFromStorage() 450 mStorageManager.getBufferDir(), in loadTrackFromStorage() 493 SampleChunk.IoState.release(chunk, !mStorageManager.isPersistent()); in evictChunks() 509 while (mStorageManager.reachedStorageMax(mBufferSize, pendingDelete) in maybeEvictChunk() 510 || !mStorageManager.hasEnoughBuffer(pendingDelete)) { in maybeEvictChunk() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | BufferManager.java | 69 private final StorageManager mStorageManager; field in BufferManager 355 mStorageManager = storageManager; in BufferManager() 402 File file = new File(mStorageManager.getBufferDir(), getFileName(id, positionUs)); in createNewWriteFileIfNeeded() 408 mStorageManager.updateIndexFile(id, map.size(), positionUs, sampleChunk, 0); in createNewWriteFileIfNeeded() 414 mStorageManager.updateIndexFile( in createNewWriteFileIfNeeded() 429 ArrayList<PositionHolder> keyPositions = mStorageManager.readIndexFile(trackId); in loadTrackFromStorage() 446 mStorageManager.getBufferDir(), in loadTrackFromStorage() 489 SampleChunk.IoState.release(chunk, !mStorageManager.isPersistent()); in evictChunks() 505 while (mStorageManager.reachedStorageMax(mBufferSize, pendingDelete) in maybeEvictChunk() 506 || !mStorageManager.hasEnoughBuffer(pendingDelete)) { in maybeEvictChunk() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | FileEncryptionPreferenceControllerTest.java | 53 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/ |
D | StorageSettings.java | 77 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 …]
|
D | PublicVolumeSettings.java | 58 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);
|
D | StorageVolumePreference.java | 50 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()
|
D | TopLevelStoragePreferenceController.java | 35 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/ |
D | StorageSettings.java | 77 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 …]
|
D | PublicVolumeSettings.java | 58 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);
|
D | StorageVolumePreference.java | 50 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()
|
D | PrivateVolumeSettings.java | 109 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);
|
D | TopLevelStoragePreferenceController.java | 32 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/ |
D | StorageSummaryFragment.java | 58 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/ |
D | StorageFragment.java | 58 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()
|
D | MissingStorageFragment.java | 38 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()
|
D | FormatActivity.java | 72 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()
|
D | DiskReceiver.java | 45 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()
|
D | BackupAppsStepFragment.java | 53 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/ |
D | DeviceListFragment.java | 61 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/ |
D | StorageLifetimeFragment.java | 68 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/ |
D | FileEncryptionPreferenceController.java | 38 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/ |
D | FileEncryptionPreferenceController.java | 38 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/Car/Settings/src/com/android/car/settings/storage/ |
D | UnmountTask.java | 36 private final StorageManager mStorageManager; field in UnmountTask 42 mStorageManager = mContext.getSystemService(StorageManager.class); in UnmountTask() 44 mDescription = mStorageManager.getBestVolumeDescription(volume); in UnmountTask() 50 mStorageManager.unmount(mVolumeId); in doInBackground()
|
/packages/modules/ExtServices/tests/src/android/ext/services/storage/ |
D | CacheQuotaServiceImplTest.java | 50 @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()
|