/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 19 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/ |
D | FormatterPerfTest.java | 29 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/ |
D | ProgramCache.cpp | 40 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 …]
|
D | ProgramCache.h | 39 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/ |
D | DateUtils.java | 38 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()
|
D | TimeFormatter.java | 34 import java.util.Formatter; 72 private Formatter numberFormatter; 161 numberFormatter = new Formatter(stringBuilder, Locale.US); in format()
|
/frameworks/native/libs/nativewindow/rust/src/ |
D | surface.rs | 29 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()
|
D | lib.rs | 31 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/ |
D | BlobInfo.java | 19 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/ |
D | AndroidHandler.java | 25 import java.util.logging.Formatter; 88 private static final Formatter THE_FORMATTER = new Formatter() {
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutDirectionsTest.java | 32 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/ |
D | AppStorageSize.kt | 21 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/ |
D | Slogf.java | 27 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/ |
D | LoggingPrintStream.java | 28 import java.util.Formatter; 186 private final Formatter formatter = new Formatter(builder, null);
|
/frameworks/native/libs/debugstore/rust/src/ |
D | event_type.rs | 31 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
|
D | event.rs | 57 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
|
/frameworks/native/libs/binder/rust/sys/ |
D | lib.rs | 42 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 38 import java.util.Formatter; 82 private Formatter mFormatter; 308 mFormatter = new Formatter(mFormatBuilder, loc); in updateText()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 32 import java.util.Formatter; 54 private static Formatter mFormatter = new Formatter(mSB, Locale.getDefault());
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UnarchiveErrorFragment.java | 33 import android.text.format.Formatter; 102 Formatter.formatShortFileSize(getActivity(), requiredBytes)); in getBodyText()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeUi.java | 27 import android.text.format.Formatter; 205 String delay = Formatter.formatShortElapsedTime(mContext, millisSinceLastTick); in verifyLastTimeTick()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 48 private static final java.util.Formatter PERIOD_FORMATTER = new java.util.Formatter(
|
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/ |
D | DynamicCodeLoggerIntegrationTests.java | 51 import java.util.Formatter; 416 Formatter formatter = new Formatter(); in toHexString()
|
/frameworks/native/libs/binder/rust/src/ |
D | error.rs | 22 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/ |
D | UninstallConfirmationFragment.java | 19 import static android.text.format.Formatter.formatFileSize;
|