Home
last modified time | relevance | path

Searched refs:formatFileSize (Results 1 – 16 of 16) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/text/format/
H A DFormatterTest.java242 assertEquals("", Formatter.formatFileSize(null, 0)); in assertFormatFileSize_englishOutput()
244 assertEquals("0 B", Formatter.formatFileSize(mContext, 0)); in assertFormatFileSize_englishOutput()
245 assertEquals("1 B", Formatter.formatFileSize(mContext, 1)); in assertFormatFileSize_englishOutput()
246 assertEquals("9 B", Formatter.formatFileSize(mContext, 9)); in assertFormatFileSize_englishOutput()
247 assertEquals("10 B", Formatter.formatFileSize(mContext, 10)); in assertFormatFileSize_englishOutput()
248 assertEquals("99 B", Formatter.formatFileSize(mContext, 99)); in assertFormatFileSize_englishOutput()
249 assertEquals("100 B", Formatter.formatFileSize(mContext, 100)); in assertFormatFileSize_englishOutput()
250 assertEquals("900 B", Formatter.formatFileSize(mContext, 900)); in assertFormatFileSize_englishOutput()
251 assertEquals("0.90 kB", Formatter.formatFileSize(mContext, 901)); in assertFormatFileSize_englishOutput()
255 assertEquals("12.50 kB", Formatter.formatFileSize(mContext, in assertFormatFileSize_englishOutput()
[all …]
/aosp14/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
H A DBlobStoreConfig.java20 import static android.text.format.Formatter.formatFileSize;
251 formatFileSize(context, TOTAL_BYTES_PER_APP_LIMIT_FLOOR, FLAG_IEC_UNITS), in dump()
252 formatFileSize(context, DEFAULT_TOTAL_BYTES_PER_APP_LIMIT_FLOOR, in dump()
471 fout.println("Total bytes per app limit: " + formatFileSize(context, in dump()
H A DBlobStoreSession.java31 import static android.text.format.Formatter.formatFileSize;
560 fout.println("size: " + formatFileSize(mContext, getSize(), FLAG_IEC_UNITS)); in dump()
H A DBlobMetadata.java34 import static android.text.format.Formatter.formatFileSize;
657 fout.println("size: " + formatFileSize(mContext, getSize(), FLAG_IEC_UNITS)); in dump()
/aosp14/frameworks/base/core/java/android/text/format/
H A DFormatter.java102 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() method in Formatter
103 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS); in formatFileSize()
107 public static String formatFileSize(@Nullable Context context, long sizeBytes, int flags) { in formatFileSize() method in Formatter
120 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS | FLAG_SHORTER); in formatShortFileSize()
/aosp14/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
H A DAppStorageSize.kt42 value = if (sizeBytes != null) Formatter.formatFileSize(context, sizeBytes) else ""
/aosp14/frameworks/base/apex/blobstore/framework/java/android/app/blob/
H A DBlobInfo.java105 return Formatter.formatFileSize(AppGlobals.getInitialApplication(), in formatBlobSize()
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
H A DUninstallAlertDialogFragment.java21 import static android.text.format.Formatter.formatFileSize;
215 formatFileSize(getContext(), appDataSize))); in onCreateDialog()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutUser.java616 pw.print(Formatter.formatFileSize(mService.mContext, size)); in dumpDirectorySize()
H A DShortcutPackage.java1735 pw.print(Formatter.formatFileSize(mShortcutUser.mService.mContext, totalBitmapSize[0])); in dump()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java792 return Formatter.formatFileSize(mContext, size); in getSizeStr()
/aosp14/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java1647 Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS)); in enqueueNotification()
1695 Formatter.formatFileSize(mContext, overBytes, Formatter.FLAG_IEC_UNITS)); in enqueueNotification()
/aosp14/frameworks/base/boot/
H A Dboot-image-profile.txt15314 HSPLandroid/text/format/Formatter;->formatFileSize(Landroid/content/Context;J)Ljava/lang/String;
15315 HSPLandroid/text/format/Formatter;->formatFileSize(Landroid/content/Context;JI)Ljava/lang/String;
/aosp14/frameworks/base/config/
H A Dboot-image-profile.txt15378 HSPLandroid/text/format/Formatter;->formatFileSize(Landroid/content/Context;J)Ljava/lang/String;
15379 HSPLandroid/text/format/Formatter;->formatFileSize(Landroid/content/Context;JI)Ljava/lang/String;
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt47871 method public static String formatFileSize(@Nullable android.content.Context, long);