Home
last modified time | relevance | path

Searched refs:Formatter (Results 1 – 25 of 86) sorted by relevance

1234

/packages/apps/Settings/tests/unit/src/com/android/settings/datetime/timezone/
DTimeZoneInfoTest.java23 import com.android.settings.datetime.timezone.TimeZoneInfo.Formatter;
37 Formatter formatter = new Formatter(Locale.US, now); in testFormat()
51 Formatter formatter = new Formatter(Locale.US, date); in getGmtOffset_zoneLordHowe_correctGmtOffset()
DRegionZonePickerTest.java26 import com.android.settings.datetime.timezone.TimeZoneInfo.Formatter;
43 Formatter formatter = new Formatter(Locale.US, now); in compareTimeZoneInfo_matchGmtOrder()
DTimeZoneInfoPreferenceControllerTest.java29 import com.android.settings.datetime.timezone.TimeZoneInfo.Formatter;
48 final Formatter formatter = new Formatter(Locale.US, now); in setUp()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsSummary.java21 import android.text.format.Formatter;
22 import android.text.format.Formatter.BytesResult;
74 BytesResult usedResult = Formatter.formatBytes(context.getResources(), (long) usedRam, in refreshUi()
75 Formatter.FLAG_SHORTER); in refreshUi()
76 String totalString = Formatter.formatShortFileSize(context, (long) totalRam); in refreshUi()
77 String freeString = Formatter.formatShortFileSize(context, (long) freeRam); in refreshUi()
DProcStatsData.java26 import android.text.format.Formatter;
394 Log.i(TAG, "Scaled Used RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
396 Log.i(TAG, "Scaled Free RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
400 Log.i(TAG, "Adj Scaled Used RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
402 Log.i(TAG, "Adj Scaled Free RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
444 Log.i(TAG, "Used RAM: " + Formatter.formatShortFileSize(context, in calculateWeightInfo()
446 Log.i(TAG, "Free RAM: " + Formatter.formatShortFileSize(context, in calculateWeightInfo()
448 Log.i(TAG, "Total RAM: " + Formatter.formatShortFileSize(context, in calculateWeightInfo()
DProcessStatsDetail.java38 import android.text.format.Formatter;
210 Formatter.BytesResult usedResult = Formatter.formatBytes(context.getResources(), in createDetails()
211 (long) avgRam, Formatter.FLAG_SHORTER); in createDetails()
221 Formatter.formatShortFileSize(getContext(), (long) max)); in createDetails()
274 String memoryString = Formatter.formatShortFileSize(getActivity(), memoryUse); in fillProcessesSection()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DTwoDigitFormatter.java17 public class TwoDigitFormatter implements NumberPicker.Formatter {
21 java.util.Formatter mFmt;
52 private java.util.Formatter createFormatter(Locale locale) { in createFormatter()
53 return new java.util.Formatter(mBuilder, locale); in createFormatter()
/packages/apps/Settings/src/com/android/settings/utils/
DFileSizeFormatter.java23 import android.text.format.Formatter;
58 final Formatter.BytesResult res = in formatFileSize()
79 private static Formatter.BytesResult formatBytes( in formatBytes()
114 return new Formatter.BytesResult(roundedString, units, roundedBytes); in formatBytes()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DFileSizeFormatter.java22 import android.text.format.Formatter;
58 Formatter.BytesResult res = in formatFileSize()
79 private static Formatter.BytesResult formatBytes( in formatBytes()
114 return new Formatter.BytesResult(roundedString, units, roundedBytes); in formatBytes()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageUsageProgressBarPreferenceController.java21 import android.text.format.Formatter;
124 final Formatter.BytesResult result = Formatter.formatBytes(mContext.getResources(), in getStorageSummary()
125 bytes, Formatter.FLAG_SHORTER); in getStorageSummary()
DStorageUtils.java30 import android.text.format.Formatter;
122 final Formatter.BytesResult result = Formatter.formatBytes(context.getResources(), in getStorageSizeLabel()
123 bytes, Formatter.FLAG_SHORTER); in getStorageSizeLabel()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageUtils.java27 import android.text.format.Formatter;
80 Formatter.BytesResult res = Formatter.formatBytes(context.getResources(), byteValue, in bytesToIecUnits()
81 Formatter.FLAG_IEC_UNITS); in bytesToIecUnits()
DDataUsageSummaryPreferenceController.java33 import android.text.format.Formatter;
153 Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in getUsageText()
154 mDataplanUse, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in getUsageText()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java28 import android.text.format.Formatter;
227 final Formatter.BytesResult usedResult = Formatter.formatBytes(context.getResources(), in formatUsage()
228 usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in formatUsage()
DDataUsageUtils.java33 import android.text.format.Formatter;
34 import android.text.format.Formatter.BytesResult;
59 final BytesResult res = Formatter.formatBytes(context.getResources(), byteValue, in formatDataUsage()
60 Formatter.FLAG_IEC_UNITS); in formatDataUsage()
DChartDataUsagePreference.java24 import android.text.format.Formatter;
287 Formatter.BytesResult result = Formatter.formatBytes(mResources, bytes, in getLabel()
288 Formatter.FLAG_SHORTER | Formatter.FLAG_IEC_UNITS); in getLabel()
DDataUsageSummaryPreference.java30 import android.text.format.Formatter;
242 final Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in updateDataUsageLabels()
243 mDataplanUse, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in updateDataUsageLabels()
/packages/apps/Messaging/src/com/android/messaging/util/
DGifTranscoder.java20 import android.text.format.Formatter;
59 Formatter.formatShortFileSize(context, inputSize), in transcode()
60 Formatter.formatShortFileSize(context, outputSize), in transcode()
/packages/apps/Settings/src/com/android/settings/development/
DMemoryUsagePreferenceController.java20 import android.text.format.Formatter;
64 final String usedResult = Formatter.formatShortFileSize(mContext, in updateState()
66 final String totalResult = Formatter.formatShortFileSize(mContext, in updateState()
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
DBufferDebug.java20 import java.util.Formatter;
88 final Formatter f = new Formatter(str); in writeRow()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPublicVolumeSettings.java32 import android.text.format.Formatter;
165 final Formatter.BytesResult result = Formatter.formatBytes(getResources(), usedBytes, in update()
170 Formatter.formatFileSize(context, totalBytes))); in update()
/packages/apps/Car/Calendar/src/com/android/car/calendar/common/
DCalendarFormatter.java36 import java.util.Formatter;
105 Formatter formatter = new Formatter(new StringBuilder(50), mLocale); in getTimeRangeText()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkWatchlistTest.java49 import java.util.Formatter;
115 Formatter formatter = new Formatter(); in byteArrayToHexString()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferAdapter.java42 import android.text.format.Formatter;
111 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
114 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceController.java23 import android.text.format.Formatter;
130 Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS), in getDataSummary()

1234