/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageUtilsTest.java | 50 VolumeInfo volumeInfo = new VolumeInfo("id", VolumeInfo.TYPE_PRIVATE, null, "id"); in maybeInitializeVolume_mounted_shouldReturnVolumeInfo() local 51 volumeInfo.state = STATE_MOUNTED; in maybeInitializeVolume_mounted_shouldReturnVolumeInfo() 53 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_mounted_shouldReturnVolumeInfo() 57 assertThat(expected).isEqualTo(volumeInfo); in maybeInitializeVolume_mounted_shouldReturnVolumeInfo() 62 VolumeInfo volumeInfo = new VolumeInfo("id", VolumeInfo.TYPE_PRIVATE, null, "id"); in maybeInitializeVolume_notMounted_shouldNotReturnVolumeInfo() local 64 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_notMounted_shouldNotReturnVolumeInfo() 73 VolumeInfo volumeInfo = new VolumeInfo("id", VolumeInfo.TYPE_EMULATED, null, "id"); in maybeInitializeVolume_differentType_shouldNotReturnVolumeInfo() local 75 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_differentType_shouldNotReturnVolumeInfo() 84 VolumeInfo volumeInfo = new VolumeInfo("id", VolumeInfo.TYPE_EMULATED, null, "id"); in maybeInitializeVolume_defaultId_notMounted_returnsNull() local 86 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in maybeInitializeVolume_defaultId_notMounted_returnsNull() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageEntryTest.java | 123 final VolumeInfo volumeInfo = mock(VolumeInfo.class); in getDefaultInternalStorageEntry_shouldReturnVolumeInfoStorageOfIdPrivateInternal() local 124 when(mStorageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)).thenReturn(volumeInfo); in getDefaultInternalStorageEntry_shouldReturnVolumeInfoStorageOfIdPrivateInternal() 127 .isEqualTo(new StorageEntry(mContext, volumeInfo)); in getDefaultInternalStorageEntry_shouldReturnVolumeInfoStorageOfIdPrivateInternal() 132 final VolumeInfo volumeInfo = mock(VolumeInfo.class); in isVolumeInfo_shouldReturnTrueForVolumeInfo() local 133 final StorageEntry storage = new StorageEntry(mContext, volumeInfo); in isVolumeInfo_shouldReturnTrueForVolumeInfo() 236 final VolumeInfo volumeInfo = mock(VolumeInfo.class); in getDescription_shouldReturnDescription() local 237 when(mStorageManager.getBestVolumeDescription(volumeInfo)).thenReturn(description); in getDescription_shouldReturnDescription() 238 final StorageEntry volumeStorage = new StorageEntry(mContext, volumeInfo); in getDescription_shouldReturnDescription() 253 final VolumeInfo volumeInfo = mock(VolumeInfo.class); in getDescription_defaultInternalStorage_returnThisDevice() local 254 when(volumeInfo.getType()).thenReturn(VolumeInfo.TYPE_PRIVATE); in getDescription_defaultInternalStorage_returnThisDevice() [all …]
|
D | StorageSelectionPreferenceControllerTest.java | 72 .map(volumeInfo -> new StorageEntry(mContext, volumeInfo)) in setStorageEntries_fromStorageManager_correctAdapterItems() 90 .map(volumeInfo -> new StorageEntry(mContext, volumeInfo)) in setSelectedStorageEntry_primaryStorage_correctSelectedAdapterItem()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/ |
D | SettingsStorageServiceTest.java | 70 final VolumeInfo volumeInfo = mock(VolumeInfo.class); in testFormatAsPublic_success_fromPrivate() local 71 doReturn("asdf").when(volumeInfo).getDiskId(); in testFormatAsPublic_success_fromPrivate() 72 doReturn(VolumeInfo.TYPE_PRIVATE).when(volumeInfo).getType(); in testFormatAsPublic_success_fromPrivate() 73 doReturn("jkl;").when(volumeInfo).getFsUuid(); in testFormatAsPublic_success_fromPrivate() 76 volumeInfos.add(volumeInfo); in testFormatAsPublic_success_fromPrivate() 100 final VolumeInfo volumeInfo = mock(VolumeInfo.class); in testFormatAsPublic_success_fromNonPrivate() local 101 doReturn("asdf").when(volumeInfo).getDiskId(); in testFormatAsPublic_success_fromNonPrivate() 102 doReturn(VolumeInfo.TYPE_PUBLIC).when(volumeInfo).getType(); in testFormatAsPublic_success_fromNonPrivate() 103 doReturn("jkl;").when(volumeInfo).getFsUuid(); in testFormatAsPublic_success_fromNonPrivate() 106 volumeInfos.add(volumeInfo); in testFormatAsPublic_success_fromNonPrivate() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | CarAudioZoneVolumeFragment.java | 189 CarAudioZoneVolumeInfo volumeInfo = new CarAudioZoneVolumeInfo(); in createCarAudioZoneVolumeInfo() local 191 volumeInfo.groupId = info.getId(); in createCarAudioZoneVolumeInfo() 192 volumeInfo.id = String.valueOf(info.getId()); in createCarAudioZoneVolumeInfo() 193 volumeInfo.currentGain = String.valueOf(info.getVolumeGainIndex()); in createCarAudioZoneVolumeInfo() 194 volumeInfo.maxGain = info.getMaxVolumeGainIndex(); in createCarAudioZoneVolumeInfo() 195 volumeInfo.minGain = info.getMinVolumeGainIndex(); in createCarAudioZoneVolumeInfo() 196 volumeInfo.isMuted = info.isMuted(); in createCarAudioZoneVolumeInfo() 197 volumeInfo.isAttenuated = info.isAttenuated(); in createCarAudioZoneVolumeInfo() 198 volumeInfo.isBlocked = info.isBlocked(); in createCarAudioZoneVolumeInfo() 200 volumeInfo.isSystemMuted = info.isMutedBySystem(); in createCarAudioZoneVolumeInfo() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/ |
D | StorageSummaryFragment.java | 180 for (final VolumeInfo volumeInfo : privateVolumes) { in refresh() 181 final String key = StorageSummaryFragment.VolPreference.makeKey(volumeInfo); in refresh() 186 volPreference = new StorageSummaryFragment.VolPreference(themedContext, volumeInfo); in refresh() 188 volPreference.refresh(themedContext, mStorageManager, volumeInfo); in refresh() 220 for (final VolumeInfo volumeInfo : publicVolumes) { in refresh() 221 final String key = StorageSummaryFragment.VolPreference.makeKey(volumeInfo); in refresh() 226 volPreference = new StorageSummaryFragment.VolPreference(themedContext, volumeInfo); in refresh() 228 volPreference.refresh(themedContext, mStorageManager, volumeInfo); in refresh() 254 VolPreference(Context context, VolumeInfo volumeInfo) { in VolPreference() argument 256 setKey(makeKey(volumeInfo)); in VolPreference() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageUtils.java | 62 .filter(volumeInfo -> isStorageSettingsInterestedVolume(volumeInfo)) in getAllStorageEntries() 63 .map(volumeInfo -> new StorageEntry(context, volumeInfo)) in getAllStorageEntries() 79 public static boolean isStorageSettingsInterestedVolume(VolumeInfo volumeInfo) { in isStorageSettingsInterestedVolume() argument 80 switch (volumeInfo.getType()) { in isStorageSettingsInterestedVolume()
|
D | StorageEntry.java | 46 public StorageEntry(@NonNull Context context, @NonNull VolumeInfo volumeInfo) { in StorageEntry() argument 47 mVolumeInfo = volumeInfo; in StorageEntry()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | UnmountActivity.java | 76 final VolumeInfo volumeInfo = storageManager.findVolumeById(mUnmountVolumeId); in onCreate() local 78 if (volumeInfo == null) { in onCreate() 84 if (volumeInfo.getType() == VolumeInfo.TYPE_PRIVATE) { in onCreate() 120 final VolumeInfo volumeInfo = in onResume() local 123 if (volumeInfo == null) { in onResume()
|
D | MigrateStorageActivity.java | 140 private void onChoose(VolumeInfo volumeInfo) { in onChoose() argument 141 mTargetVolumeInfo = volumeInfo; in onChoose() 287 final VolumeInfo volumeInfo = mCandidateVolumes.get((int) action.getId()); in onGuidedActionClicked() local 288 ((MigrateStorageActivity)getActivity()).onChoose(volumeInfo); in onGuidedActionClicked()
|
D | SettingsStorageService.java | 188 final VolumeInfo volumeInfo = storageManager.findVolumeById(volumeId); in unmount() local 189 if (volumeInfo != null && volumeInfo.isMountedReadable()) { in unmount()
|
D | BackupAppsStepFragment.java | 124 final VolumeInfo volumeInfo = mStorageManager.findVolumeById(mVolumeId); in onCreateGuidance() local 125 final String volumeDesc = mStorageManager.getBestVolumeDescription(volumeInfo); in onCreateGuidance() 128 if (TextUtils.equals(primaryStorageVolumeId, volumeInfo.getId())) { in onCreateGuidance()
|
D | FormatActivity.java | 152 final VolumeInfo volumeInfo = findVolume(mFormatAsPrivateDiskId); in onResume() local 153 if (volumeInfo != null && volumeInfo.getType() == VolumeInfo.TYPE_PRIVATE) { in onResume()
|
D | StorageFragment.java | 84 public static void prepareArgs(Bundle bundle, VolumeInfo volumeInfo) { in prepareArgs() argument 85 bundle.putString(VolumeInfo.EXTRA_VOLUME_ID, volumeInfo.getId()); in prepareArgs()
|
D | NewStorageActivity.java | 249 for (VolumeInfo volumeInfo : volumeInfos) { in checkForUnmount() 250 if (TextUtils.equals(volumeInfo.getId(), mVolumeId)) { in checkForUnmount()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | AppStoragePreference.java | 44 final VolumeInfo volumeInfo = mPackageManager.getPackageCurrentVolume(applicationInfo); in refresh() local 48 (candidates.size() == 1 && !candidates.contains(volumeInfo))) { in refresh() 55 final String volumeDesc = mStorageManager.getBestVolumeDescription(volumeInfo); in refresh()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | VolumeInfoCompat.java | 56 VolumeInfoCompat(VolumeInfo volumeInfo) { in VolumeInfoCompat() argument 57 mVolumeInfo = volumeInfo; in VolumeInfoCompat() 58 fsUuid = volumeInfo.fsUuid; in VolumeInfoCompat()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/ |
D | TopLevelStoragePreferenceControllerTest.java | 77 final VolumeInfo volumeInfo = mVolumes.get(0); in updateSummary_shouldDisplayUsedPercentAndFreeSpace() local 78 when(volumeInfo.isMountedReadable()).thenReturn(true); in updateSummary_shouldDisplayUsedPercentAndFreeSpace() 79 when(volumeInfo.getType()).thenReturn(VolumeInfo.TYPE_PRIVATE); in updateSummary_shouldDisplayUsedPercentAndFreeSpace()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowStorageManagerVolumeProvider.java | 42 public static void setVolumeInfo(VolumeInfo volumeInfo) { in setVolumeInfo() argument 43 sVolumeInfo = volumeInfo; in setVolumeInfo()
|
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectStorageFragment.java | 81 public void onVolumeStateChanged(VolumeInfo volumeInfo, int oldState, int newState) { 82 if (!StorageUtils.isStorageSettingsInterestedVolume(volumeInfo)) { 86 final StorageEntry changedStorageEntry = new StorageEntry(getContext(), volumeInfo); 87 final int volumeState = volumeInfo.getState();
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageUsageBasePreferenceController.java | 78 public void setVolumeInfo(VolumeInfo volumeInfo) { in setVolumeInfo() argument 79 mVolumeInfo = volumeInfo; in setVolumeInfo()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | AppStoragePreferenceController.java | 52 final VolumeInfo volumeInfo = mPackageManager.getPackageCurrentVolume(applicationInfo); in update() local 59 final String volumeDesc = mStorageManager.getBestVolumeDescription(volumeInfo); in update()
|
/packages/services/Car/car-lib/src/android/car/media/ |
D | CarAudioManager.java | 1967 VolumeGroupChangeInfo volumeInfo = (VolumeGroupChangeInfo) msg.obj; in handleMessage() local 1968 handleOnGroupVolumeChanged(volumeInfo.mZoneId, volumeInfo.mGroupId, in handleMessage() 1969 volumeInfo.mFlags); in handleMessage() 1988 VolumeGroupChangeInfo volumeInfo = new VolumeGroupChangeInfo(zoneId, groupId, flags); in dispatchOnGroupVolumeChanged() local 1989 sendMessage(obtainMessage(MSG_GROUP_VOLUME_CHANGE, volumeInfo)); in dispatchOnGroupVolumeChanged() 1997 VolumeGroupChangeInfo volumeInfo = new VolumeGroupChangeInfo(zoneId, groupId, flags); in dispatchOnGroupMuteChanged() local 1998 sendMessage(obtainMessage(MSG_GROUP_MUTE_CHANGE, volumeInfo)); in dispatchOnGroupMuteChanged()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationListItemManager.java | 77 public ApplicationListItemManager(VolumeInfo volumeInfo, Lifecycle lifecycle, in ApplicationListItemManager() argument 80 mVolumeInfo = volumeInfo; in ApplicationListItemManager()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageDashboardFragment.java | 113 public void onVolumeStateChanged(VolumeInfo volumeInfo, int oldState, int newState) { 114 if (!StorageUtils.isStorageSettingsInterestedVolume(volumeInfo)) { 118 final StorageEntry changedStorageEntry = new StorageEntry(getContext(), volumeInfo); 119 final int volumeState = volumeInfo.getState();
|