Home
last modified time | relevance | path

Searched refs:mVolumeInfo (Results 1 – 11 of 11) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageFragment.java61 private VolumeInfo mVolumeInfo; field in StorageFragment
88 mVolumeInfo = mStorageManager.findVolumeById( in onCreate()
104 mVolumeInfo = mStorageManager.findVolumeById( in onResume()
106 if (mVolumeInfo == null || !mVolumeInfo.isMountedReadable()) { in onResume()
125 screen.setTitle(mStorageManager.getBestVolumeDescription(mVolumeInfo)); in onCreatePreferences()
146 && !TextUtils.equals(currentExternal.getId(), mVolumeInfo.getId())) { in refresh()
150 if (TextUtils.equals(candidate.getId(), mVolumeInfo.getId())) { in refresh()
159 MigrateStorageActivity.getLaunchIntent(getContext(), mVolumeInfo.getId(), true)); in refresh()
161 final String description = mStorageManager.getBestVolumeDescription(mVolumeInfo); in refresh()
163 final boolean privateInternal = VolumeInfo.ID_PRIVATE_INTERNAL.equals(mVolumeInfo.getId()); in refresh()
[all …]
DMigrateStorageActivity.java55 private VolumeInfo mVolumeInfo; field in MigrateStorageActivity
104 mVolumeInfo = storageManager.findVolumeById(volumeId); in onCreate()
105 if (mVolumeInfo == null) { in onCreate()
109 mVolumeDesc = storageManager.getBestVolumeDescription(mVolumeInfo); in onCreate()
112 ChooseStorageStepFragment.newInstance(mVolumeInfo)) in onCreate()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java66 @Mock private VolumeInfo mVolumeInfo; field in AutomaticStorageManagementJobServiceTest
90 when(mVolumeInfo.getPath()).thenReturn(mFile); in setUp()
91 when(mVolumeInfo.getType()).thenReturn(VolumeInfo.TYPE_PRIVATE); in setUp()
92 when(mVolumeInfo.getFsUuid()).thenReturn(StorageManager.UUID_PRIMARY_PHYSICAL); in setUp()
93 when(mVolumeInfo.isMountedReadable()).thenReturn(true); in setUp()
96 mVolumes.add(mVolumeInfo); in setUp()
101 nullable(StorageStatsManager.class), eq(mVolumeInfo))) in setUp()
104 nullable(StorageStatsManager.class), eq(mVolumeInfo))) in setUp()
186 nullable(StorageStatsManager.class), eq(mVolumeInfo))) in testJobDoesntRunIfStorageNotFull()
196 nullable(StorageStatsManager.class), eq(mVolumeInfo))) in testJobOnlyRunsIfFreeStorageIsUnder15Percent()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DPrivateVolumeOptionMenuControllerTest.java56 private VolumeInfo mVolumeInfo; field in PrivateVolumeOptionMenuControllerTest
66 when(mVolumeInfo.getType()).thenReturn(VolumeInfo.TYPE_PRIVATE); in setUp()
67 when(mVolumeInfo.isMountedWritable()).thenReturn(true); in setUp()
96 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataIsVisibleWhenExternalVolumeIsPrimary()
106 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataIsNotVisibleWhenExternalVolumeIsNotMounted()
107 when(mVolumeInfo.isMountedWritable()).thenReturn(false); in testMigrateDataIsNotVisibleWhenExternalVolumeIsNotMounted()
117 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataGoesToMigrateWizard()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DPrivateVolumeOptionMenuController.java43 private VolumeInfo mVolumeInfo; field in PrivateVolumeOptionMenuController
49 mVolumeInfo = volumeInfo; in PrivateVolumeOptionMenuController()
60 if (mVolumeInfo == null) { in onPrepareOptionsMenu()
70 && !Objects.equals(mVolumeInfo, privateVol) in onPrepareOptionsMenu()
79 intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, mVolumeInfo.getId()); in onOptionsItemSelected()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPrivateVolumeOptionMenuController.java43 private VolumeInfo mVolumeInfo; field in PrivateVolumeOptionMenuController
49 mVolumeInfo = volumeInfo; in PrivateVolumeOptionMenuController()
60 if (mVolumeInfo == null) { in onPrepareOptionsMenu()
70 && !Objects.equals(mVolumeInfo, privateVol) in onPrepareOptionsMenu()
79 intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, mVolumeInfo.getId()); in onOptionsItemSelected()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageSettingsManagerTest.java52 private VolumeInfo mVolumeInfo; field in StorageSettingsManagerTest
73 mStorageSettingsManager = new StorageSettingsManager(mContext, mVolumeInfo); in setUp()
95 null, mVolumeInfo).loadInBackground(); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled()
117 null, mVolumeInfo).loadInBackground(); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled()
137 null, mVolumeInfo).loadInBackground(); in onReceivedSizes_storageResultNotLoaded_noListenersCalled()
158 null, mVolumeInfo).loadInBackground(); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageUsageBasePreferenceController.java41 private VolumeInfo mVolumeInfo; field in StorageUsageBasePreferenceController
81 return mVolumeInfo; in getVolumeInfo()
85 mVolumeInfo = volumeInfo; in setVolumeInfo()
DStorageSettingsManager.java61 private final VolumeInfo mVolumeInfo; field in StorageSettingsManager
69 mVolumeInfo = volume; in StorageSettingsManager()
117 return new VolumeSizesLoader(mContext, smvp, stats, mVolumeInfo); in onCreateLoader()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationListItemManager.java51 private final VolumeInfo mVolumeInfo; field in ApplicationListItemManager
80 mVolumeInfo = volumeInfo; in ApplicationListItemManager()
259 ApplicationsState.AppFilter compositeFilter = getCompositeFilter(mVolumeInfo.getFsUuid()); in rebuild()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationListItemManagerTest.java58 private VolumeInfo mVolumeInfo; field in ApplicationListItemManagerTest
74 mApplicationListItemManager = new ApplicationListItemManager(mVolumeInfo, mLifecycle, in setUp()