Home
last modified time | relevance | path

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

123

/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
H A DFileSizeFormatterTest.java40 FileSizeFormatter.formatFileSize( in formatFileSize_zero()
51 FileSizeFormatter.formatFileSize( in formatFileSize_smallSize()
62 FileSizeFormatter.formatFileSize( in formatFileSize_lessThanOneSize()
73 FileSizeFormatter.formatFileSize( in formatFileSize_greaterThanOneSize()
85 FileSizeFormatter.formatFileSize( in formatFileSize_greaterThanTen()
96 FileSizeFormatter.formatFileSize( in formatFileSize_handlesNegativeFileSizes()
/aosp12/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/utils/
H A DFileSizeFormatterTest.java46 FileSizeFormatter.formatFileSize( in formatFileSize_zero()
57 FileSizeFormatter.formatFileSize( in formatFileSize_smallSize()
68 FileSizeFormatter.formatFileSize( in formatFileSize_lessThanOneSize()
79 FileSizeFormatter.formatFileSize( in formatFileSize_greaterThanOneSize()
91 FileSizeFormatter.formatFileSize( in formatFileSize_greaterThanTen()
102 FileSizeFormatter.formatFileSize( in formatFileSize_handlesNegativeFileSizes()
/aosp12/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()
/aosp12/frameworks/base/core/java/android/text/format/
H A DFormatter.java95 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() method in Formatter
96 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS); in formatFileSize()
100 public static String formatFileSize(@Nullable Context context, long sizeBytes, int flags) { in formatFileSize() method in Formatter
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppTransferAdapter.java111 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
114 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
H A DBluetoothOppTransferActivity.java270 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent()
289 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent()
311 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent()
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DDownloadsDeletionPreferenceGroup.java147 Formatter.formatFileSize(context, bytes))); in updatePreferenceText()
150 Formatter.formatFileSize(context, bytes))); in updatePreferenceText()
H A DNestedDeletionPreference.java64 return Formatter.formatFileSize(getContext(), mAppSize); in getItemSize()
H A DPhotosDeletionPreference.java58 Formatter.formatFileSize(context, bytes), in updatePreferenceText()
H A DConfirmDeletionDialog.java68 Formatter.formatFileSize(context, mFreeableBytes))) in onCreateDialog()
/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
H A DUninstallAlertDialogFragment.java19 import static android.text.format.Formatter.formatFileSize;
178 formatFileSize(getContext(), appDataSize))); in onCreateDialog()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DTopLevelStoragePreferenceController.java71 Formatter.formatFileSize(mContext, info.freeBytes))); in refreshSummaryThread()
H A DMigrateEstimateTask.java107 final String size = Formatter.formatFileSize(mContext, mSizeBytes); in onPostExecute()
/aosp12/packages/apps/Settings/src/com/android/settings/utils/
H A DFileSizeFormatter.java53 public static String formatFileSize( in formatFileSize() method in FileSizeFormatter
/aosp12/packages/apps/Settings/src/com/android/settings/deletionhelper/
H A DAutomaticStorageManagerDescriptionPreferenceController.java68 Formatter.formatFileSize(context, freedBytes), in displayPreference()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A DFileSizeFormatter.java56 public static String formatFileSize( in formatFileSize() method in FileSizeFormatter
H A DStorageSizeBasePreferenceController.java107 return Formatter.formatFileSize(mContext, size); in getSizeStr()
H A DStorageUsageBasePreferenceController.java87 FileSizeFormatter.formatFileSize( in setStorageSize()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
H A DDetailsView.java60 put(R.string.sort_dimension_size, Formatter.formatFileSize(getContext(), doc.size)); in accept()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DListDocumentHolder.java238 metadataList.add(Formatter.formatFileSize(mContext, mDoc.size)); in bind()
257 mSize.setText(Formatter.formatFileSize(mContext, mDoc.size)); in bind()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
H A DClearCachePreference.java46 : Formatter.formatFileSize(context, mEntry.cacheSize + mEntry.externalCacheSize)); in refresh()
H A DClearDataPreference.java46 Formatter.formatFileSize(context, mEntry.dataSize + mEntry.externalDataSize)); in refresh()
/aosp12/frameworks/base/apex/blobstore/framework/java/android/app/blob/
H A DBlobInfo.java104 return Formatter.formatFileSize(AppGlobals.getInitialApplication(), in formatBlobSize()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
H A DTopLevelStoragePreferenceControllerTest.java89 final String freeSpace = Formatter.formatFileSize(mContext, 0); in updateSummary_shouldDisplayUsedPercentAndFreeSpace()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appinfo/
H A DAppStoragePreferenceController.java85 Formatter.formatFileSize(mContext, stats.getTotalBytes()), in getStorageSummary()

123