Home
last modified time | relevance | path

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

123

/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;
102 BytesResult r = Formatter.formatBytes(mContext.getResources(), 1, 0); in testFormatBytes()
140 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTime()
141 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTime()
142 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); in testFormatShortElapsedTime()
144 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime()
146 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); in testFormatShortElapsedTime()
147 assertEquals("1 day", Formatter.formatShortElapsedTime(mContext, 1 * DAY)); in testFormatShortElapsedTime()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DFormatterPerfTest.java29 import java.util.Formatter;
44 Formatter f = new Formatter(); in timeFormatter_NoFormatting()
63 Formatter f = new Formatter(); in timeFormatter_OneInt()
74 Formatter f = new Formatter(); in timeFormatter_OneIntArabic()
95 Formatter f = new Formatter(); in timeFormatter_OneHexInt()
116 Formatter f = new Formatter(); in timeFormatter_OneFloat()
126 Formatter f = new Formatter(); in timeFormatter_OneFloat_dot2f()
136 Formatter f = new Formatter(); in timeFormatter_TwoFloats()
156 Formatter f = new Formatter(); in timeFormatter_OneString()
/frameworks/av/media/libstagefright/renderfright/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.java38 import java.util.Formatter;
473 Formatter f = new Formatter(sb, Locale.getDefault()); in formatElapsedTime()
561 Formatter f = new Formatter(new StringBuilder(50), Locale.getDefault()); in formatDateRange()
583 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange()
751 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange()
DTimeFormatter.java34 import java.util.Formatter;
72 private Formatter numberFormatter;
161 numberFormatter = new Formatter(stringBuilder, Locale.US); in format()
/frameworks/native/libs/nativewindow/rust/src/
Dsurface.rs29 use std::fmt::{self, Debug, Display, Formatter};
75 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
140 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
Dlib.rs31 use std::fmt::{self, Debug, Formatter};
216 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
/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;
105 return Formatter.formatFileSize(AppGlobals.getInitialApplication(), in formatBlobSize()
/frameworks/base/core/java/com/android/internal/logging/
DAndroidHandler.java25 import java.util.logging.Formatter;
88 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/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
DAppStorageSize.kt21 import android.text.format.Formatter
43 this.emit(if (sizeBytes != null) Formatter.formatFileSize(context, sizeBytes) else "") in getStorageSize()
/frameworks/base/services/core/java/com/android/server/utils/
DSlogf.java27 import java.util.Formatter;
47 private static final Formatter sFormatter;
53 sFormatter = new Formatter(sMessageBuilder, Locale.ENGLISH);
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java28 import java.util.Formatter;
186 private final Formatter formatter = new Formatter(builder, null);
/frameworks/native/libs/debugstore/rust/src/
Devent_type.rs31 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
Devent.rs57 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
/frameworks/native/libs/binder/rust/sys/
Dlib.rs42 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
/frameworks/base/core/java/android/widget/
DChronometer.java38 import java.util.Formatter;
82 private Formatter mFormatter;
308 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
/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/PackageInstaller/src/com/android/packageinstaller/
DUnarchiveErrorFragment.java33 import android.text.format.Formatter;
102 Formatter.formatShortFileSize(getActivity(), requiredBytes)); in getBodyText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java27 import android.text.format.Formatter;
205 String delay = Formatter.formatShortElapsedTime(mContext, millisSinceLastTick); in verifyLastTimeTick()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java48 private static final java.util.Formatter PERIOD_FORMATTER = new java.util.Formatter(
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java51 import java.util.Formatter;
416 Formatter formatter = new Formatter(); in toHexString()
/frameworks/native/libs/binder/rust/src/
Derror.rs22 use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
267 fn fmt(&self, f: &mut Formatter) -> FmtResult { in fmt()
273 fn fmt(&self, f: &mut Formatter) -> FmtResult { in fmt()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/ui/fragments/
DUninstallConfirmationFragment.java19 import static android.text.format.Formatter.formatFileSize;

123