Home
last modified time | relevance | path

Searched refs:volumeRecord (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageEntryTest.java152 final VolumeRecord volumeRecord = mock(VolumeRecord.class); in isVolumeRecordMissed_shouldReturnTrueForVolumeRecord() local
153 final StorageEntry storage = new StorageEntry(volumeRecord); in isVolumeRecordMissed_shouldReturnTrueForVolumeRecord()
177 final VolumeRecord volumeRecord = mock(VolumeRecord.class); in isMounted_nonVolumeInfo_shouldReturnFalse() local
178 final StorageEntry recordStorage2 = new StorageEntry(volumeRecord); in isMounted_nonVolumeInfo_shouldReturnFalse()
197 final VolumeRecord volumeRecord = mock(VolumeRecord.class); in isUnmountable_nonVolumeInfo_shouldReturnFalse() local
198 final StorageEntry recordStorage2 = new StorageEntry(volumeRecord); in isUnmountable_nonVolumeInfo_shouldReturnFalse()
226 final VolumeRecord volumeRecord = mock(VolumeRecord.class); in isPrivate_nonVolumeInfo_shouldReturnFalse() local
227 final StorageEntry recordStorage2 = new StorageEntry(volumeRecord); in isPrivate_nonVolumeInfo_shouldReturnFalse()
242 final VolumeRecord volumeRecord = mock(VolumeRecord.class); in getDescription_shouldReturnDescription() local
243 final StorageEntry recordStorage = new StorageEntry(volumeRecord); in getDescription_shouldReturnDescription()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
DStorageSummaryFragment.java192 for (final VolumeRecord volumeRecord : privateMissingVolumes) { in refresh()
193 final String key = StorageSummaryFragment.MissingPreference.makeKey(volumeRecord); in refresh()
199 themedContext, volumeRecord); in refresh()
290 MissingPreference(Context context, VolumeRecord volumeRecord) { in MissingPreference() argument
292 setKey(makeKey(volumeRecord)); in MissingPreference()
293 setTitle(volumeRecord.getNickname()); in MissingPreference()
296 MissingStorageFragment.prepareArgs(getExtras(), volumeRecord.getFsUuid()); in MissingPreference()
299 public static String makeKey(VolumeRecord volumeRecord) { in makeKey() argument
300 return "MissingPref:" + volumeRecord.getFsUuid(); in makeKey()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageUtils.java70 .filter(volumeRecord -> isVolumeRecordMissed(storageManager, volumeRecord)) in getAllStorageEntries()
71 .map(volumeRecord -> new StorageEntry(volumeRecord)) in getAllStorageEntries()
95 VolumeRecord volumeRecord) { in isVolumeRecordMissed() argument
96 return volumeRecord.getType() == VolumeInfo.TYPE_PRIVATE in isVolumeRecordMissed()
97 && storageManager.findVolumeByUuid(volumeRecord.getFsUuid()) == null; in isVolumeRecordMissed()
DStorageEntry.java68 public StorageEntry(@NonNull VolumeRecord volumeRecord) { in StorageEntry() argument
71 mMissingVolumeRecord = volumeRecord; in StorageEntry()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DDiskReceiver.java106 VolumeRecord volumeRecord = null; in handleUnmount() local
108 volumeRecord = mStorageManager.findRecordByUuid(fsUuid); in handleUnmount()
112 if (volumeRecord == null) { in handleUnmount()
115 Log.d(TAG, "Found ejected volume: " + volumeRecord + " for FSUUID: " + fsUuid); in handleUnmount()
116 if (volumeRecord.getType() == VolumeInfo.TYPE_PRIVATE) { in handleUnmount()
DNewStorageActivity.java292 final VolumeRecord volumeRecord = storageManager.findRecordByUuid(mFsUuid); in onCreate() local
293 mDescription = volumeRecord.getNickname(); in onCreate()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectStorageFragment.java122 public void onVolumeRecordChanged(VolumeRecord volumeRecord) {
123 if (StorageUtils.isVolumeRecordMissed(mStorageManager, volumeRecord)) {
127 final StorageEntry storageEntry = new StorageEntry(volumeRecord);
136 mStorageManager.findVolumeByUuid(volumeRecord.getFsUuid());
143 && TextUtils.equals(storageEntry.getFsUuid(), volumeRecord.getFsUuid())
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DVolumeRecordCompat.java25 VolumeRecordCompat(VolumeRecord volumeRecord) { in VolumeRecordCompat() argument
26 mVolumeRecord = volumeRecord; in VolumeRecordCompat()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageDashboardFragment.java160 public void onVolumeRecordChanged(VolumeRecord volumeRecord) {
161 if (StorageUtils.isVolumeRecordMissed(mStorageManager, volumeRecord)) {
165 final StorageEntry storageEntry = new StorageEntry(volumeRecord);
174 mStorageManager.findVolumeByUuid(volumeRecord.getFsUuid());
181 && TextUtils.equals(storageEntry.getFsUuid(), volumeRecord.getFsUuid())