Searched refs:totalSpace (Results 1 - 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
H A DStorageSummaryDonutPreferenceControllerTest.java93 final long totalSpace = 32 * GIGABYTE;
103 .isEqualTo("Used of " + Formatter.formatShortFileSize(mContext, totalSpace));
108 final long totalSpace = KILOBYTE * 10;
110 mController.updateBytes(KILOBYTE, totalSpace);
118 .isEqualTo("Used of " + Formatter.formatShortFileSize(mContext, totalSpace));
123 final long totalSpace = KILOBYTE * 10;
125 final long usedSpace = totalSpace - freeSpace;
130 when(file.getTotalSpace()).thenReturn(totalSpace);
132 when(svp.getPrimaryStorageSize()).thenReturn(totalSpace);
142 .isEqualTo("Used of " + Formatter.formatShortFileSize(mContext, totalSpace));
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DAttachmentUtils.java177 final long totalSpace = cacheDir.getTotalSpace();
180 if (isLowSpace(totalSpace, usableSpace)) {
182 usableSpace, totalSpace, attachment);
236 if (isLowSpace(totalSpace, usableSpace)) {
239 usableSpace, totalSpace, attachment);
267 private static boolean isLowSpace(long totalSpace, long usableSpace) { argument
272 Math.min(totalSpace * MIN_CACHE_THRESHOLD, MIN_CACHE_AVAILABLE_SPACE_BYTES);

Completed in 319 milliseconds