HomeSort by relevance Sort by last modified time
    Searched refs:formatFileSize (Results 1 - 19 of 19) sorted by null

  /cts/tests/tests/text/src/android/text/format/cts/
FormatterTest.java 33 method = "formatFileSize",
38 assertEquals("", Formatter.formatFileSize(null, 0));
44 assertEquals("0.00B", Formatter.formatFileSize(mContext, 0));
46 assertEquals("899B", Formatter.formatFileSize(mContext, 899));
48 assertEquals("1.00KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue()));
50 assertEquals("1.00MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue()));
52 assertEquals("1.00GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue()));
54 assertEquals("1.00TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue()));
56 assertEquals("1.00PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue()));
58 assertEquals("1024PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue()))
    [all...]
  /frameworks/base/core/java/android/text/format/
Formatter.java 35 public static String formatFileSize(Context context, long number) {
36 return formatFileSize(context, number, false);
40 * Like {@link #formatFileSize}, but trying to generate shorter numbers
44 return formatFileSize(context, number, true);
47 private static String formatFileSize(Context context, long number, boolean shorter) {
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppTransferAdapter.java 111 completeText = r.getString(R.string.download_success, Formatter.formatFileSize(
114 completeText = r.getString(R.string.upload_success, Formatter.formatFileSize(
BluetoothOppTransferActivity.java 274 tmp = getString(R.string.download_line3, Formatter.formatFileSize(this,
293 tmp = getString(R.string.upload_line3, mTransInfo.mFileType, Formatter.formatFileSize(
312 tmp = getString(R.string.bt_sm_2_2, Formatter.formatFileSize(this,
BluetoothOppIncomingFileConfirmActivity.java 133 mTransInfo.mFileName, Formatter.formatFileSize(this, mTransInfo.mTotalBytes));
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
MiscFilesHandler.java 182 Formatter.formatFileSize(mContext, selectedDataSize),
183 Formatter.formatFileSize(mContext, mAdapter.getDataSize())));
254 view.setFileSize(Formatter.formatFileSize(mContext, item.mSize));
StorageVolumePreferenceCategory.java 377 return Formatter.formatFileSize(getContext(), size);
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
SizeLimitActivity.java 93 String sizeString = Formatter.formatFileSize(this, size);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
DialogDetailsView.java 136 value = Formatter.formatFileSize(
  /packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DownloadAdapter.java 139 sizeText = Formatter.formatFileSize(mContext, totalBytes);
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
ManageCachePage.java 386 Formatter.formatFileSize(activity, freeBytes));
  /packages/apps/Settings/src/com/android/settings/
DataUsageSummary.java     [all...]
  /packages/apps/Gallery/src/com/android/camera/
MenuHelper.java 392 : Formatter.formatFileSize(activity, length);
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
ApplicationsState.java 699 return Formatter.formatFileSize(mContext, size);
    [all...]
InstalledAppDetails.java 205 return Formatter.formatFileSize(getActivity(), size);
    [all...]
  /frameworks/base/services/java/com/android/server/net/
NetworkPolicyManagerService.java 588 Formatter.formatFileSize(mContext, overBytes));
    [all...]
  /prebuilt/sdk/12/
android.jar 
  /prebuilt/sdk/14/
android.jar 
  /prebuilt/sdk/6/
android.jar 

Completed in 415 milliseconds