Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/RenderEngine/
DProgramCache.cpp35 class Formatter;
36 static Formatter& indent(Formatter& f);
37 static Formatter& dedent(Formatter& f);
39 class Formatter { class
42 typedef Formatter& (*FormaterManipFunc)(Formatter&);
43 friend Formatter& indent(Formatter& f);
44 friend Formatter& dedent(Formatter& f);
46 Formatter() : mIndent(0) {} in Formatter() function in android::Formatter
52 friend Formatter& operator << (Formatter& out, const char* in) { in operator <<()
60 friend inline Formatter& operator << (Formatter& out, const String8& in) { in operator <<()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java23 import android.text.format.Formatter.BytesResult;
90 BytesResult r = Formatter.formatBytes(getContext().getResources(), 1, 0); in testFormatBytes()
101 BytesResult r = Formatter.formatBytes(getContext().getResources(), bytes, in checkFormatBytes()
102 Formatter.FLAG_CALCULATE_ROUNDED | (useShort ? Formatter.FLAG_SHORTER : 0)); in checkFormatBytes()
/frameworks/base/core/java/android/text/format/
DDateUtils.java28 import java.util.Formatter;
418 Formatter f = new Formatter(sb, Locale.getDefault()); in formatElapsedTime()
502 Formatter f = new Formatter(new StringBuilder(50), Locale.getDefault()); in formatDateRange()
524 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange()
692 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange()
DTimeFormatter.java26 import java.util.Formatter;
64 private Formatter numberFormatter;
97 numberFormatter = new Formatter(stringBuilder, Locale.US); in format()
DFormatter.java35 public final class Formatter { class
/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java45 import android.text.format.Formatter;
416 pw.print(" mFreeMem="); pw.print(Formatter.formatFileSize(context, mFreeMem)); in dumpImpl()
418 pw.println(Formatter.formatFileSize(context, mTotalMemory)); in dumpImpl()
421 pw.println(Formatter.formatFileSize(context, mFreeMemAfterLastCacheClear)); in dumpImpl()
424 pw.print(Formatter.formatFileSize(context, mLastReportedFreeMem)); in dumpImpl()
437 pw.print(Formatter.formatFileSize(context, mMemLowThreshold)); in dumpImpl()
439 pw.println(Formatter.formatFileSize(context, mMemFullThreshold)); in dumpImpl()
442 pw.print(Formatter.formatFileSize(context, mMemCacheStartTrimThreshold)); in dumpImpl()
444 pw.println(Formatter.formatFileSize(context, mMemCacheTrimToThreshold)); in dumpImpl()
/frameworks/base/core/java/com/android/internal/logging/
DAndroidHandler.java26 import java.util.logging.Formatter;
89 private static final Formatter THE_FORMATTER = new Formatter() {
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutDirectionsTest.java23 import java.util.Formatter;
112 Formatter f = new Formatter(buf); in testDirections()
227 Directions[] expectedDirs, Formatter f) { in checkDirections()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DBatteryInfo.java27 import android.text.format.Formatter;
89 Formatter.formatShortElapsedTime(context, timePeriod)); in bindHistory()
93 Formatter.formatShortElapsedTime(context, remainingTimeUs / 1000)); in bindHistory()
142 String timeString = Formatter.formatShortElapsedTime(context, in getBatteryInfo()
165 String timeString = Formatter.formatShortElapsedTime(context, in getBatteryInfo()
/frameworks/base/core/java/android/widget/
DChronometer.java30 import java.util.Formatter;
74 private Formatter mFormatter;
274 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
DNumberPicker.java162 private static class TwoDigitFormatter implements NumberPicker.Formatter {
166 java.util.Formatter mFmt;
195 private java.util.Formatter createFormatter(Locale locale) { in createFormatter()
196 return new java.util.Formatter(mBuilder, locale); in createFormatter()
205 public static final Formatter getTwoDigitFormatter() { in getTwoDigitFormatter()
297 private Formatter mFormatter;
545 public interface Formatter { interface in NumberPicker
1199 public void setFormatter(Formatter formatter) { in setFormatter()
DMediaController.java38 import java.util.Formatter;
89 Formatter mFormatter;
304 mFormatter = new Formatter(mFormatBuilder, Locale.getDefault()); in initControllerView()
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java28 import java.util.Formatter;
182 private final Formatter formatter = new Formatter(builder, null);
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneInfo.java32 import java.util.Formatter;
54 private static Formatter mFormatter = new Formatter(mSB, Locale.getDefault());
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DGridDocumentHolder.java29 import android.text.format.Formatter;
158 mSize.setText(Formatter.formatFileSize(mContext, docSize)); in bind()
DListDocumentHolder.java28 import android.text.format.Formatter;
165 mSize.setText(Formatter.formatFileSize(mContext, docSize)); in bind()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java34 import android.text.format.Formatter;
219 String chargingTimeFormatted = Formatter.formatShortElapsedTimeRoundingUpToMinutes( in computePowerIndication()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java52 private static final java.util.Formatter PERIOD_FORMATTER = new java.util.Formatter(
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DMonthView.java46 import java.util.Formatter;
138 private final Formatter mFormatter;
211 mFormatter = new Formatter(mStringBuilder, Locale.getDefault()); in MonthView()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutUser.java21 import android.text.format.Formatter;
388 pw.print(Formatter.formatFileSize(s.mContext, size)); in dumpDirectorySize()
DShortcutPackage.java25 import android.text.format.Formatter;
548 pw.print(Formatter.formatFileSize(s.mContext, totalBitmapSize)); in dump()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsFragment.java36 import android.text.format.Formatter;
265 Formatter.formatFileSize(context, root.availableBytes)); in bindView()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java45 import android.text.format.Formatter;
502 return Formatter.formatFileSize(mContext, size); in getSizeStr()
/frameworks/base/docs/html-intl/intl/in/preview/features/
Dmultilingual-support.jd202 <h3>Formatter</h3>
/frameworks/base/
Dpreloaded-classes201 [Ljava.util.Formatter$Flags;
202 [Ljava.util.Formatter$FormatString;
1903 android.text.format.Formatter
3478 java.util.Formatter
3479 java.util.Formatter$Conversion
3480 java.util.Formatter$FixedString
3481 java.util.Formatter$Flags
3482 java.util.Formatter$FormatSpecifier
3483 java.util.Formatter$FormatSpecifierParser
3484 java.util.Formatter$FormatString
[all …]

12