Home
last modified time | relevance | path

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

123456

/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/datausage/lib/
DDataUsageFormatter.kt25 import android.text.format.Formatter
43 val result = Formatter.formatBytes(context.resources, sizeBytes, Formatter.FLAG_IEC_UNITS) in format()
62 Formatter.formatBytes(this, bytes, Formatter.FLAG_IEC_UNITS).units
/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/modules/Virtualization/libs/bssl/error/src/
Dcode.rs34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
61 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
103 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
158 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
186 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsSummary.java25 import android.text.format.Formatter;
26 import android.text.format.Formatter.BytesResult;
119 BytesResult usedResult = Formatter.formatBytes(context.getResources(), (long) usedRam, in refreshUi()
120 Formatter.FLAG_SHORTER); in refreshUi()
121 String totalString = Formatter.formatShortFileSize(context, (long) totalRam); in refreshUi()
122 String freeString = Formatter.formatShortFileSize(context, (long) freeRam); in refreshUi()
DProcStatsData.java26 import android.text.format.Formatter;
386 Log.i(TAG, "Scaled Used RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
388 Log.i(TAG, "Scaled Free RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
392 Log.i(TAG, "Adj Scaled Used RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
394 Log.i(TAG, "Adj Scaled Free RAM: " + Formatter.formatShortFileSize(context, in MemInfo()
436 Log.i(TAG, "Used RAM: " + Formatter.formatShortFileSize(context, in calculateWeightInfo()
438 Log.i(TAG, "Free RAM: " + Formatter.formatShortFileSize(context, in calculateWeightInfo()
440 Log.i(TAG, "Total RAM: " + Formatter.formatShortFileSize(context, in calculateWeightInfo()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageUtils.java32 import android.text.format.Formatter;
126 final Formatter.BytesResult result = Formatter.formatBytes(context.getResources(), in getStorageSizeLabel()
127 bytes, Formatter.FLAG_SHORTER); in getStorageSizeLabel()
259 final Formatter.BytesResult result = Formatter.formatBytes(context.getResources(), in getStorageSummary()
260 bytes, Formatter.FLAG_SHORTER); in getStorageSummary()
/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/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageUtils.java28 import android.text.format.Formatter;
105 Formatter.BytesResult res = Formatter.formatBytes(context.getResources(), byteValue, in bytesToIecUnits()
106 Formatter.FLAG_IEC_UNITS); in bytesToIecUnits()
DDataUsageSummaryPreferenceController.java31 import android.text.format.Formatter;
151 Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in getUsageText()
152 mDataplanUse, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in getUsageText()
/packages/modules/Virtualization/vmbase/src/hvc/
Dtrng.rs34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
67 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
73 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
/packages/apps/Settings/src/com/android/settings/development/
DMemoryUsagePreferenceController.java22 import android.text.format.Formatter;
66 final String usedResult = Formatter.formatShortFileSize(mContext, in updateState()
68 final String totalResult = Formatter.formatShortFileSize(mContext, in updateState()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java35 import android.text.format.Formatter;
36 import android.text.format.Formatter.BytesResult;
64 final BytesResult res = Formatter.formatBytes(context.getResources(), byteValue, in formatDataUsage()
65 Formatter.FLAG_IEC_UNITS); in formatDataUsage()
DDataUsageSummary.java29 import android.text.format.Formatter;
223 final Formatter.BytesResult usedResult = Formatter.formatBytes(context.getResources(), in formatUsage()
224 usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in formatUsage()
DChartDataUsagePreference.java23 import android.text.format.Formatter;
282 Formatter.BytesResult result = Formatter.formatBytes(mResources, bytes, in getLabel()
283 Formatter.FLAG_SHORTER | Formatter.FLAG_IEC_UNITS); in getLabel()
DDataUsageSummaryPreference.java27 import android.text.format.Formatter;
170 final Formatter.BytesResult usedResult = Formatter.formatBytes(getContext().getResources(), in updateDataUsageLabels()
171 mDataplanUse, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in updateDataUsageLabels()
/packages/modules/Virtualization/vmbase/src/
Dexceptions.rs47 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
93 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
111 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
/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/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkWatchlistTest.java49 import java.util.Formatter;
115 Formatter formatter = new Formatter(); in byteArrayToHexString()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DSpannableUtil.java32 import java.util.Formatter;
49 public void formatTo(Formatter formatter, int flags, int width, int precision) { in formatTo()
103 new Formatter(builder, locale).format(res.getString(resId), args); in getResourcesText()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppTransferAdapter.java42 import android.text.format.Formatter;
112 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
117 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceController.java24 import android.text.format.Formatter;
146 Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS), in getDataSummary()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStoragePreference.java20 import android.text.format.Formatter;
60 : Formatter.formatShortFileSize(context, size); in formatSize()

123456