/cts/tests/tests/text/src/android/text/format/cts/ |
FormatterTest.java | 29 assertEquals("", Formatter.formatFileSize(null, 0)); 35 assertEquals("0.00B", Formatter.formatFileSize(mContext, 0)); 37 assertEquals("899B", Formatter.formatFileSize(mContext, 899)); 39 assertEquals("1.00KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue())); 41 assertEquals("1.00MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue())); 43 assertEquals("1.00GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue())); 45 assertEquals("1.00TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue())); 47 assertEquals("1.00PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue())); 49 assertEquals("1024PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue())); 52 assertEquals("-1.00B", Formatter.formatFileSize(mContext, -1)) [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) {
|
/frameworks/base/services/java/com/android/server/ |
DeviceStorageMonitorService.java | 468 pw.print(" mFreeMem="); pw.print(Formatter.formatFileSize(mContext, mFreeMem)); 470 pw.println(Formatter.formatFileSize(mContext, mTotalMemory)); 472 pw.println(Formatter.formatFileSize(mContext, mFreeMemAfterLastCacheClear)); 474 pw.print(Formatter.formatFileSize(mContext, mLastReportedFreeMem)); 483 pw.print(Formatter.formatFileSize(mContext, mMemLowThreshold)); 485 pw.println(Formatter.formatFileSize(mContext, mMemFullThreshold)); 487 pw.print(Formatter.formatFileSize(mContext, mMemCacheStartTrimThreshold)); 489 pw.println(Formatter.formatFileSize(mContext, mMemCacheTrimToThreshold));
|
/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 | 273 tmp = getString(R.string.download_line3, Formatter.formatFileSize(this, 292 tmp = getString(R.string.upload_line3, mTransInfo.mFileType, Formatter.formatFileSize( 311 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 | 399 return Formatter.formatFileSize(getContext(), size);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
SizeLimitActivity.java | 93 String sizeString = Formatter.formatFileSize(this, size);
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
DownloadAdapter.java | 146 sizeText = Formatter.formatFileSize(mContext, totalBytes);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
DialogDetailsView.java | 143 value = Formatter.formatFileSize(
|
/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/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageDetail.java | 320 value = Formatter.formatFileSize(getActivity(), bytes);
|
/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 | [all...] |
InstalledAppDetails.java | 241 return Formatter.formatFileSize(getActivity(), size); [all...] |
/frameworks/base/services/java/com/android/server/net/ |
NetworkPolicyManagerService.java | [all...] |
/prebuilts/sdk/12/ |
android.jar | |
/prebuilts/sdk/14/ |
android.jar | |
/prebuilts/sdk/15/ |
android.jar | |
/prebuilts/sdk/17/ |
android.jar | |
/prebuilts/sdk/6/ |
android.jar | |