Home
last modified time | relevance | path

Searched refs:storageManager (Results 1 – 21 of 21) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DSettingsStorageService.java118 final StorageManager storageManager = getSystemService(StorageManager.class); in formatAsPublic() local
119 final List<VolumeInfo> volumes = storageManager.getVolumes(); in formatAsPublic()
123 storageManager.forgetVolume(volume.getFsUuid()); in formatAsPublic()
127 storageManager.partitionPublic(diskId); in formatAsPublic()
144 final StorageManager storageManager = getSystemService(StorageManager.class); in formatAsPrivate() local
145 storageManager.partitionPrivate(diskId); in formatAsPrivate()
146 final long internalBench = storageManager.benchmark("private"); in formatAsPrivate()
148 final VolumeInfo privateVol = findPrivateVolume(storageManager, diskId); in formatAsPrivate()
151 privateBench = storageManager.benchmark(privateVol.getId()); in formatAsPrivate()
171 private VolumeInfo findPrivateVolume(@NonNull StorageManager storageManager, in findPrivateVolume() argument
[all …]
DMigrateStorageActivity.java90 final StorageManager storageManager = getSystemService(StorageManager.class); in onCreate() local
93 mTargetVolumeInfo = storageManager.findVolumeById(volumeId); in onCreate()
98 mTargetVolumeDesc = storageManager.getBestVolumeDescription(mTargetVolumeInfo); in onCreate()
104 mVolumeInfo = storageManager.findVolumeById(volumeId); in onCreate()
109 mVolumeDesc = storageManager.getBestVolumeDescription(mVolumeInfo); in onCreate()
142 final StorageManager storageManager = getSystemService(StorageManager.class); in onChoose() local
143 mTargetVolumeDesc = storageManager.getBestVolumeDescription(mTargetVolumeInfo); in onChoose()
264 final StorageManager storageManager = in onCreateActions() local
276 .title(storageManager.getBestVolumeDescription(candidate)) in onCreateActions()
DNewStorageActivity.java135 StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate() local
143 final VolumeInfo info = storageManager.findVolumeById(mVolumeId); in onCreate()
144 mDescription = storageManager.getBestVolumeDescription(info); in onCreate()
147 final DiskInfo info = storageManager.findDiskById(mDiskId); in onCreate()
230 final StorageManager storageManager = in checkForUnmount() local
235 final List<DiskInfo> diskInfos = storageManager.getDisks(); in checkForUnmount()
247 final List<VolumeInfo> volumeInfos = storageManager.getVolumes(); in checkForUnmount()
286 StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate() local
292 final VolumeRecord volumeRecord = storageManager.findRecordByUuid(mFsUuid); in onCreate()
DFormatAsPublicStepFragment.java58 final StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate() local
59 final List<VolumeInfo> volumes = storageManager.getVolumes(); in onCreate()
DUnmountActivity.java75 final StorageManager storageManager = getSystemService(StorageManager.class); in onCreate() local
76 final VolumeInfo volumeInfo = storageManager.findVolumeById(mUnmountVolumeId); in onCreate()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageUtils.java59 StorageManager storageManager) { in getAllStorageEntries() argument
61 storageEntries.addAll(storageManager.getVolumes().stream() in getAllStorageEntries()
65 storageEntries.addAll(storageManager.getDisks().stream() in getAllStorageEntries()
69 storageEntries.addAll(storageManager.getVolumeRecords().stream() in getAllStorageEntries()
70 .filter(volumeRecord -> isVolumeRecordMissed(storageManager, volumeRecord)) in getAllStorageEntries()
94 public static boolean isVolumeRecordMissed(StorageManager storageManager, in isVolumeRecordMissed() argument
97 && storageManager.findVolumeByUuid(volumeRecord.getFsUuid()) == null; in isVolumeRecordMissed()
DStorageRenameFragment.java60 final StorageManager storageManager = context.getSystemService(StorageManager.class); in onCreateDialog() local
63 final VolumeRecord rec = storageManager.findRecordByUuid(fsUuid); in onCreateDialog()
77 storageManager.setVolumeNickname(fsUuid, nickname.getText().toString())) in onCreateDialog()
DDiskInitFragment.java60 final StorageManager storageManager = context.getSystemService(StorageManager.class); in onCreateDialog() local
63 final DiskInfo disk = storageManager.findDiskById(diskId); in onCreateDialog()
/packages/services/Mtp/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java44 final StorageManager storageManager = context.getSystemService(StorageManager.class); in testReadWriteFile() local
52 final ParcelFileDescriptor fd = storageManager.openProxyFileDescriptor( in testReadWriteFile()
63 final ParcelFileDescriptor fd = storageManager.openProxyFileDescriptor( in testReadWriteFile()
/packages/modules/ExtServices/java/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java155 final StorageManager storageManager = getSystemService(StorageManager.class); in getReservedCacheSize() local
158 return storageManager.computeStorageCacheBytes(Environment.getDataDirectory()); in getReservedCacheSize()
164 final List<StorageVolume> storageVolumes = storageManager.getStorageVolumes(); in getReservedCacheSize()
171 return storageManager.computeStorageCacheBytes(directory); in getReservedCacheSize()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/rollback/
DAdServicesExtStorageMeasurementRollbackWorker.java42 AdServicesExtDataStorageServiceManager storageManager) { in AdServicesExtStorageMeasurementRollbackWorker() argument
43 mStorageManager = Objects.requireNonNull(storageManager); in AdServicesExtStorageMeasurementRollbackWorker()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java349 public BufferManager(StorageManager storageManager) { in BufferManager() argument
350 this(storageManager, new SampleChunk.SampleChunkCreator()); in BufferManager()
354 StorageManager storageManager, SampleChunk.SampleChunkCreator sampleChunkCreator) { in BufferManager() argument
355 mStorageManager = storageManager; in BufferManager()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DBufferManager.java352 public BufferManager(StorageManager storageManager) { in BufferManager() argument
353 this(storageManager, new SampleChunk.SampleChunkCreator()); in BufferManager()
357 StorageManager storageManager, SampleChunk.SampleChunkCreator sampleChunkCreator) { in BufferManager() argument
358 mStorageManager = storageManager; in BufferManager()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/
DSampleSourceExtractorTest.java141 StorageManager storageManager = new StubStorageManager(RuntimeEnvironment.application); in testDiskTooSlowTrickplayDisabled() local
144 storageManager, new VerySlowSampleChunk.VerySlowSampleChunkCreator()); in testDiskTooSlowTrickplayDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java169 StorageManager storageManager = mock(StorageManager.class, RETURNS_DEEP_STUBS); in initializeVolumeDoesntBreakOnNullVolume() local
170 when(storageManager.findVolumeById(anyString())).thenReturn(info); in initializeVolumeDoesntBreakOnNullVolume()
172 Utils.maybeInitializeVolume(storageManager, new Bundle()); in initializeVolumeDoesntBreakOnNullVolume()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
DStorageSummaryFragment.java259 private void refresh(Context context, StorageManager storageManager, in refresh() argument
261 final String description = storageManager in refresh()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserFragment.java261 StorageManager storageManager = getContext().getSystemService(StorageManager.class); in lockUserData() local
264 storageManager.lockCeStorage(userToLock); in lockUserData()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java419 DvrStorageManager storageManager = in getDurationForRecording() local
421 List<BufferManager.TrackFormat> trackFormatList = storageManager.readTrackInfoFiles(false); in getDurationForRecording()
423 trackFormatList = storageManager.readTrackInfoFiles(true); in getDurationForRecording()
1408 BufferManager.StorageManager storageManager = in createPlayer() local
1410 mBufferManager = new BufferManager(storageManager); in createPlayer()
1411 updateCaptionTracks(((DvrStorageManager) storageManager).readCaptionInfoFiles()); in createPlayer()
DTunerSessionWorker.java419 DvrStorageManager storageManager = in getDurationForRecording() local
421 List<BufferManager.TrackFormat> trackFormatList = storageManager.readTrackInfoFiles(false); in getDurationForRecording()
423 trackFormatList = storageManager.readTrackInfoFiles(true); in getDurationForRecording()
1475 StorageManager storageManager = in createPlayer() local
1477 bufferManager = new BufferManager(storageManager); in createPlayer()
1478 updateCaptionTracks(((DvrStorageManager) storageManager).readCaptionInfoFiles()); in createPlayer()
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsProvider.java156 StorageManager storageManager, in onCreateForTesting() argument
166 mStorageManager = storageManager; in onCreateForTesting()
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java930 final StorageManager storageManager = getContext().getSystemService(StorageManager.class); in setupProvider() local
937 storageManager, in setupProvider() local