/aosp14/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | FormatterTest.java | 242 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 D | BlobStoreConfig.java | 20 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 D | BlobStoreSession.java | 31 import static android.text.format.Formatter.formatFileSize; 560 fout.println("size: " + formatFileSize(mContext, getSize(), FLAG_IEC_UNITS)); in dump()
|
H A D | BlobMetadata.java | 34 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 D | Formatter.java | 102 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 D | AppStorageSize.kt | 42 value = if (sizeBytes != null) Formatter.formatFileSize(context, sizeBytes) else ""
|
/aosp14/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
H A D | BlobInfo.java | 105 return Formatter.formatFileSize(AppGlobals.getInitialApplication(), in formatBlobSize()
|
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/ |
H A D | UninstallAlertDialogFragment.java | 21 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 D | ShortcutUser.java | 616 pw.print(Formatter.formatFileSize(mService.mContext, size)); in dumpDirectorySize()
|
H A D | ShortcutPackage.java | 1735 pw.print(Formatter.formatFileSize(mShortcutUser.mService.mContext, totalBitmapSize[0])); in dump()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
H A D | ApplicationsState.java | 792 return Formatter.formatFileSize(mContext, size); in getSizeStr()
|
/aosp14/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkPolicyManagerService.java | 1647 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 D | boot-image-profile.txt | 15314 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 D | boot-image-profile.txt | 15378 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 D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |
/aosp14/frameworks/base/core/api/ |
H A D | current.txt | 47871 method public static String formatFileSize(@Nullable android.content.Context, long);
|