Searched refs:mVolumeInfo (Results 1 – 5 of 5) sorted by relevance
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | StorageFragment.java | 55 private VolumeInfo mVolumeInfo; field in StorageFragment 82 mVolumeInfo = mStorageManager.findVolumeById( in onCreate() 98 mVolumeInfo = mStorageManager.findVolumeById( in onResume() 100 if (mVolumeInfo == null || !mVolumeInfo.isMountedReadable()) { in onResume() 119 screen.setTitle(mStorageManager.getBestVolumeDescription(mVolumeInfo)); in onCreatePreferences() 140 && !TextUtils.equals(currentExternal.getId(), mVolumeInfo.getId())) { in refresh() 144 if (TextUtils.equals(candidate.getId(), mVolumeInfo.getId())) { in refresh() 153 MigrateStorageActivity.getLaunchIntent(getContext(), mVolumeInfo.getId(), true)); in refresh() 155 final String description = mStorageManager.getBestVolumeDescription(mVolumeInfo); in refresh() 157 final boolean privateInternal = VolumeInfo.ID_PRIVATE_INTERNAL.equals(mVolumeInfo.getId()); in refresh() [all …]
|
D | MigrateStorageActivity.java | 54 private VolumeInfo mVolumeInfo; field in MigrateStorageActivity 103 mVolumeInfo = storageManager.findVolumeById(volumeId); in onCreate() 104 if (mVolumeInfo == null) { in onCreate() 108 mVolumeDesc = storageManager.getBestVolumeDescription(mVolumeInfo); in onCreate() 111 ChooseStorageStepFragment.newInstance(mVolumeInfo)) in onCreate()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobServiceTest.java | 62 @Mock private VolumeInfo mVolumeInfo; field in AutomaticStorageManagementJobServiceTest 84 when(mVolumeInfo.getPath()).thenReturn(mFile); in setUp() 85 when(mVolumeInfo.getType()).thenReturn(VolumeInfo.TYPE_PRIVATE); in setUp() 86 when(mVolumeInfo.getFsUuid()).thenReturn(StorageManager.UUID_PRIMARY_PHYSICAL); in setUp() 87 when(mVolumeInfo.isMountedReadable()).thenReturn(true); in setUp() 88 mVolumes.add(mVolumeInfo); in setUp() 91 when(mStorageVolumeProvider.getFreeBytes(any(StorageStatsManager.class), eq(mVolumeInfo))) in setUp() 93 when(mStorageVolumeProvider.getTotalBytes(any(StorageStatsManager.class), eq(mVolumeInfo))) in setUp() 156 when(mStorageVolumeProvider.getFreeBytes(any(StorageStatsManager.class), eq(mVolumeInfo))) in testJobDoesntRunIfStorageNotFull() 165 when(mStorageVolumeProvider.getFreeBytes(any(StorageStatsManager.class), eq(mVolumeInfo))) in testJobOnlyRunsIfFreeStorageIsUnder15Percent() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeOptionMenuController.java | 44 private VolumeInfo mVolumeInfo; field in PrivateVolumeOptionMenuController 50 mVolumeInfo = volumeInfo; in PrivateVolumeOptionMenuController() 61 if (mVolumeInfo == null) { in onPrepareOptionsMenu() 71 && !Objects.equals(mVolumeInfo, privateVol)); in onPrepareOptionsMenu() 79 intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, mVolumeInfo.getId()); in onOptionsItemSelected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeOptionMenuControllerTest.java | 58 private VolumeInfo mVolumeInfo; field in PrivateVolumeOptionMenuControllerTest 68 when(mVolumeInfo.getType()).thenReturn(VolumeInfo.TYPE_PRIVATE); in setUp() 96 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataIsVisibleWhenExternalVolumeIsPrimary() 106 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataGoesToMigrateWizard()
|