Home
last modified time | relevance | path

Searched refs:formatter (Results 1 – 21 of 21) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs55 … var formatter = new JsonFormatter(new JsonFormatter.Settings(formatDefaultValues: false)); in DefaultValues_WhenOmitted()
57 AssertJson("{ }", formatter.Format(new ForeignMessage())); in DefaultValues_WhenOmitted()
58 AssertJson("{ }", formatter.Format(new TestAllTypes())); in DefaultValues_WhenOmitted()
59 AssertJson("{ }", formatter.Format(new TestMap())); in DefaultValues_WhenOmitted()
65 … var formatter = new JsonFormatter(new JsonFormatter.Settings(formatDefaultValues: true)); in DefaultValues_WhenIncluded()
66 AssertJson("{ 'c': 0 }", formatter.Format(new ForeignMessage())); in DefaultValues_WhenIncluded()
251 var formatter = new JsonFormatter(new JsonFormatter.Settings(false)); in Oneof()
252 AssertJson(expectedJson, formatter.Format(message)); in Oneof()
253 formatter = new JsonFormatter(new JsonFormatter.Settings(true)); in Oneof()
254 AssertJson(expectedJson, formatter.Format(message)); in Oneof()
[all …]
DJsonParserTest.cs806 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in Any_RegularMessage()
809 var json = formatter.Format(original); // This is tested in JsonFormatterTest in Any_RegularMessage()
845 var formatter = new JsonFormatter(new JsonFormatter.Settings(false, registry)); in Any_WellKnownType()
848 var json = formatter.Format(original); // This is tested in JsonFormatterTest in Any_WellKnownType()
859 var formatter = new JsonFormatter(new JsonFormatter.Settings(false, registry)); in Any_Nested()
864 var json = formatter.Format(message); in Any_Nested()
/frameworks/base/core/java/android/text/format/
DDateUtils.java399 final MeasureFormat formatter = MeasureFormat.getInstance(Locale.getDefault(), width); in formatDuration() local
402 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
405 return formatter.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatDuration()
408 return formatter.format(new Measure(seconds, MeasureUnit.SECOND)); in formatDuration()
561 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange() argument
563 return formatDateRange(context, formatter, startMillis, endMillis, flags, null); in formatDateRange()
729 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange() argument
740 formatter.out().append(range); in formatDateRange()
744 return formatter; in formatDateRange()
DTime.java1098 TimeFormatter formatter = new TimeFormatter(); in format() local
1099 return formatter.format(format, wallTime, zoneInfo); in format()
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DEventsCommand.java59 SimpleDateFormat formatter = new SimpleDateFormat("MM-dd HH:mm:ss.SSS"); in run()
61 formatter.format(new Date()), event.toString())); in run()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerDataHelper.java59 public TrackerDataHelper(Context context, IFormatter formatter) { in TrackerDataHelper() argument
61 mFormatter = formatter; in TrackerDataHelper()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Conformance/
DProgram.cs113 … var formatter = new JsonFormatter(new JsonFormatter.Settings(false, typeRegistry)); in PerformRequest()
114 return new ConformanceResponse { JsonPayload = formatter.Format(message) }; in PerformRequest()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java840 NumberFormat formatter = NumberFormat.getInstance(Locale.US); in setArgumentsFromDouble() local
841 formatter.setMinimumFractionDigits(maximumFractionDigits); in setArgumentsFromDouble()
842 formatter.setMaximumFractionDigits(maximumFractionDigits); in setArgumentsFromDouble()
843 formatter.setGroupingUsed(false); in setArgumentsFromDouble()
844 String str = formatter.format(number); in setArgumentsFromDouble()
/frameworks/base/core/java/android/app/admin/
DFreezePeriod.java178 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMM dd"); in toString() local
179 return LocalDate.ofYearDay(DUMMY_YEAR, mStartDay).format(formatter) + " - " in toString()
180 + LocalDate.ofYearDay(DUMMY_YEAR, mEndDay).format(formatter); in toString()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java146 final RelativeDateTimeFormatter formatter = RelativeDateTimeFormatter.getInstance( in formatRelativeTime() local
152 return formatter.format(value, RelativeDateTimeFormatter.Direction.LAST, unit); in formatRelativeTime()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMainActivity.java224 DecimalFormat formatter = new DecimalFormat("#,###"); in onPostExecute() local
232 buffer.append(tag + ":" + formatter.format(t1) + ":" + in onPostExecute()
233 formatter.format(t2) + ":" + in onPostExecute()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java82 DateFormat formatter = DateFormat.getDateTimeInstance();
83 output.println(formatter.format(new Date()));
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java185 private final Formatter formatter = new Formatter(builder, null); field in LoggingPrintStream
194 formatter.format(l, format, args); in format()
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java406 Formatter formatter = new Formatter(); in toHexString() local
408 formatter.format("%02X", b); in toHexString()
411 return formatter.toString(); in toHexString()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java223 DateFormat formatter = new SimpleDateFormat("MMM dd h:mmaa"); in loadXmlFromNetwork() local
232 formatter.format(rightNow.getTime()) + "</em>"); in loadXmlFromNetwork()
/frameworks/rs/tests/lldb/tests/
Drun_test.py275 for name, formatter in (
289 parser.add_argument(name, type=formatter)
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java229 BidiFormatter formatter = BidiFormatter.getInstance(false /* rtlContext */); in testBidiMultilineLink() local
231 ssb.append("hello ").append(formatter.unicodeWrap(iwLoremIpsum)).append(" world"); in testBidiMultilineLink()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java188 final SimpleDateFormat formatter = new SimpleDateFormat(format, mLocale); in updateMonthYearLabel() local
189 formatter.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE); in updateMonthYearLabel()
190 mMonthYearLabel = formatter.format(mCalendar.getTime()); in updateMonthYearLabel()
DNumberPicker.java1247 public void setFormatter(Formatter formatter) { in setFormatter() argument
1248 if (formatter == mFormatter) { in setFormatter()
1251 mFormatter = formatter; in setFormatter()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java365 SimpleDateFormat formatter = new SimpleDateFormat(); in logCriticalInfo() local
366 String dateString = formatter.format(new Date(System.currentTimeMillis())); in logCriticalInfo()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt30105 Landroid/icu/text/DecimalFormat;->formatter:Landroid/icu/number/LocalizedNumberFormatter;
30818 Landroid/icu/text/MessageFormat$PluralSelectorContext;->formatter:Ljava/text/Format;
31022 Landroid/icu/text/NFRule;->formatter:Landroid/icu/text/RuleBasedNumberFormat;
109945 Ljava/io/Console;->formatter:Ljava/util/Formatter;
110459 Ljava/io/PrintStream;->formatter:Ljava/util/Formatter;
110471 Ljava/io/PrintWriter;->formatter:Ljava/util/Formatter;
113882 Ljava/time/format/DateTimeFormatter$ClassicFormat;->formatter:Ljava/time/format/DateTimeFormatter;
113954 Ljava/time/format/DateTimeFormatterBuilder$LocalizedPrinterParser;->formatter(Ljava/util/Locale;Lja…
114118 Ljava/time/format/DateTimeParseContext;->formatter:Ljava/time/format/DateTimeFormatter;
114143 Ljava/time/format/DateTimePrintContext;->formatter:Ljava/time/format/DateTimeFormatter;
[all …]