Searched refs:MEGABYTE_IN_BYTES (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Settings/tests/unit/src/com/android/settings/utils/ |
D | FileSizeFormatterTest.java | 20 import static com.android.settings.utils.FileSizeFormatter.MEGABYTE_IN_BYTES; 59 MEGABYTE_IN_BYTES * 11 /* size */, in formatFileSize_smallSize() 70 MEGABYTE_IN_BYTES * 155 /* size */, in formatFileSize_lessThanOneSize() 81 MEGABYTE_IN_BYTES * 1551 /* size */, in formatFileSize_greaterThanOneSize() 93 GIGABYTE_IN_BYTES * 15 + MEGABYTE_IN_BYTES * 50 /* size */, in formatFileSize_greaterThanTen() 104 MEGABYTE_IN_BYTES * -155 /* size */, in formatFileSize_handlesNegativeFileSizes()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | StorageItemPreferenceTest.java | 18 import static com.android.settings.utils.FileSizeFormatter.MEGABYTE_IN_BYTES; 57 mPreference.setStorageSize(MEGABYTE_IN_BYTES * 10, MEGABYTE_IN_BYTES * 100); in testAfterLoad() 69 mPreference.setStorageSize(MEGABYTE_IN_BYTES, MEGABYTE_IN_BYTES * 10); in testProgressBarPercentageSet()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceControllerTest.java | 20 import static com.android.settings.utils.FileSizeFormatter.MEGABYTE_IN_BYTES; 272 mController.setUsedSize(MEGABYTE_IN_BYTES * 970); // There should 870MB attributed. in testMeasurementCompletedUpdatesPreferences() 274 result.gamesSize = MEGABYTE_IN_BYTES * 80; in testMeasurementCompletedUpdatesPreferences() 275 result.videoAppsSize = MEGABYTE_IN_BYTES * 160; in testMeasurementCompletedUpdatesPreferences() 276 result.musicAppsSize = MEGABYTE_IN_BYTES * 40; in testMeasurementCompletedUpdatesPreferences() 277 result.otherAppsSize = MEGABYTE_IN_BYTES * 90; in testMeasurementCompletedUpdatesPreferences() 280 MEGABYTE_IN_BYTES * 500, // total in testMeasurementCompletedUpdatesPreferences() 281 MEGABYTE_IN_BYTES * 100, // audio in testMeasurementCompletedUpdatesPreferences() 282 MEGABYTE_IN_BYTES * 150, // video in testMeasurementCompletedUpdatesPreferences() 283 MEGABYTE_IN_BYTES * 200, 0); // image in testMeasurementCompletedUpdatesPreferences()
|
D | SecondaryUserControllerTest.java | 20 import static com.android.settings.utils.FileSizeFormatter.MEGABYTE_IN_BYTES; 100 mController.setSize(MEGABYTE_IN_BYTES * 10); in controllerUpdatesSummaryOfNewPreference() 168 MEGABYTE_IN_BYTES * 30, in controllerUpdatesPreferenceOnAcceptingResult() 169 MEGABYTE_IN_BYTES * 10, in controllerUpdatesPreferenceOnAcceptingResult() 170 MEGABYTE_IN_BYTES * 10, in controllerUpdatesPreferenceOnAcceptingResult() 171 MEGABYTE_IN_BYTES * 10, 0); in controllerUpdatesPreferenceOnAcceptingResult()
|
D | UserProfileControllerTest.java | 20 import static com.android.settings.utils.FileSizeFormatter.MEGABYTE_IN_BYTES; 114 99 * MEGABYTE_IN_BYTES, in acceptingResultUpdatesPreferenceSize() 115 33 * MEGABYTE_IN_BYTES, in acceptingResultUpdatesPreferenceSize() 116 33 * MEGABYTE_IN_BYTES, in acceptingResultUpdatesPreferenceSize() 117 33 * MEGABYTE_IN_BYTES, 0); in acceptingResultUpdatesPreferenceSize()
|
/packages/apps/Settings/src/com/android/settings/utils/ |
D | FileSizeFormatter.java | 31 public static final long MEGABYTE_IN_BYTES = KILOBYTE_IN_BYTES * 1000; field in FileSizeFormatter 32 public static final long GIGABYTE_IN_BYTES = MEGABYTE_IN_BYTES * 1000;
|