Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java19 import static android.text.format.Formatter.FLAG_IEC_UNITS;
20 import static android.text.format.Formatter.FLAG_SI_UNITS;
28 import android.text.format.Formatter.BytesResult;
100 BytesResult r = Formatter.formatBytes(mContext.getResources(), 1, 0); in testFormatBytes()
138 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTime()
139 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTime()
140 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); in testFormatShortElapsedTime()
142 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime()
144 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); in testFormatShortElapsedTime()
145 assertEquals("1 day", Formatter.formatShortElapsedTime(mContext, 1 * DAY)); in testFormatShortElapsedTime()
[all …]
/frameworks/native/libs/renderengine/gl/
DProgramCache.cpp40 class Formatter;
41 static Formatter& indent(Formatter& f);
42 static Formatter& dedent(Formatter& f);
44 class Formatter { class
47 typedef Formatter& (*FormaterManipFunc)(Formatter&);
48 friend Formatter& indent(Formatter& f);
49 friend Formatter& dedent(Formatter& f);
52 Formatter() : mIndent(0) {} in Formatter() function in android::renderengine::gl::Formatter
56 friend Formatter& operator<<(Formatter& out, const char* in) { in operator <<()
64 friend inline Formatter& operator<<(Formatter& out, const String8& in) { in operator <<()
[all …]
DProgramCache.h39 class Formatter; variable
201 static void generateEOTF(Formatter& fs, const Key& needs);
203 static void generateToneMappingProcess(Formatter& fs, const Key& needs);
205 static void generateOOTF(Formatter& fs, const Key& needs);
207 static void generateOETF(Formatter& fs, const Key& needs);
/frameworks/base/core/java/android/text/format/
DDateUtils.java40 import java.util.Formatter;
462 Formatter f = new Formatter(sb, Locale.getDefault()); in formatElapsedTime()
550 Formatter f = new Formatter(new StringBuilder(50), Locale.getDefault()); in formatDateRange()
572 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange()
740 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange()
DTimeFormatter.java32 import java.util.Formatter;
68 private Formatter numberFormatter;
154 numberFormatter = new Formatter(stringBuilder, Locale.US); in format()
DFormatter.java38 public final class Formatter { class
/frameworks/base/apex/blobstore/framework/java/android/app/blob/
DBlobInfo.java19 import static android.text.format.Formatter.FLAG_IEC_UNITS;
25 import android.text.format.Formatter;
104 return Formatter.formatFileSize(AppGlobals.getInitialApplication(), in formatBlobSize()
/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.java32 import java.util.Formatter;
122 Formatter f = new Formatter(buf); in testDirections()
205 Directions[] expectedDirs, Formatter f) { in checkDirections()
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java28 import java.util.Formatter;
185 private final Formatter formatter = new Formatter(builder, null);
/frameworks/base/core/java/android/widget/
DChronometer.java38 import java.util.Formatter;
82 private Formatter mFormatter;
308 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
DMediaController.java40 import java.util.Formatter;
104 Formatter mFormatter;
324 mFormatter = new Formatter(mFormatBuilder, Locale.getDefault()); in initControllerView()
DNumberPicker.java182 private static class TwoDigitFormatter implements NumberPicker.Formatter {
186 java.util.Formatter mFmt;
215 private java.util.Formatter createFormatter(Locale locale) { in createFormatter()
216 return new java.util.Formatter(mBuilder, locale); in createFormatter()
226 public static final Formatter getTwoDigitFormatter() { in getTwoDigitFormatter()
324 private Formatter mFormatter;
582 public interface Formatter { interface in NumberPicker
1249 public void setFormatter(Formatter formatter) { in setFormatter()
/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/config/
Dpreloaded-classes-extra9 android.text.format.Formatter
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java26 import android.text.format.Formatter;
198 String delay = Formatter.formatShortElapsedTime(mContext, millisSinceLastTick); in verifyLastTimeTick()
DDozeTriggers.java31 import android.text.format.Formatter;
490 pw.println(Formatter.formatShortElapsedTime(mContext, mNotificationPulseTime)); in dump()
/frameworks/rs/tests/lldb/tests/harness/
Dutil_log.py92 logging.Formatter(
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/
DUtils.java31 import java.util.logging.Formatter;
201 public static class LocalToolsFormatter extends Formatter {
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java48 import java.util.Formatter;
406 Formatter formatter = new Formatter(); in toHexString()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java58 private static final java.util.Formatter PERIOD_FORMATTER = new java.util.Formatter(
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreConfig.java19 import static android.text.format.Formatter.FLAG_IEC_UNITS;
20 import static android.text.format.Formatter.formatFileSize;
DBlobStoreSession.java30 import static android.text.format.Formatter.FLAG_IEC_UNITS;
31 import static android.text.format.Formatter.formatFileSize;
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java19 import static android.text.format.Formatter.formatFileSize;
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutUser.java26 import android.text.format.Formatter;
700 pw.print(Formatter.formatFileSize(mService.mContext, size)); in dumpDirectorySize()

12