Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/text/format/
DDateUtils.java406 final MeasureFormat formatter = MeasureFormat.getInstance(Locale.getDefault(), width); in formatDuration() local
409 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
412 return formatter.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatDuration()
415 return formatter.format(new Measure(seconds, MeasureUnit.SECOND)); in formatDuration()
572 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange() argument
574 return formatDateRange(context, formatter, startMillis, endMillis, flags, null); in formatDateRange()
740 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, in formatDateRange() argument
751 formatter.out().append(range); in formatDateRange()
755 return formatter; in formatDateRange()
DTime.java1109 TimeFormatter formatter = new TimeFormatter(); in format() local
1110 return formatter.format(format, wallTime, zoneInfo); in format()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DTestUtils.java32 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"); in timestamp() local
33 return toEpochMilli(LocalDateTime.parse(str, formatter)); in timestamp()
/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/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/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java50 public static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("hh:mm a"); field in UiModeNightTile
119 use24HourFormat ? time.toString() : formatter.format(time)); in handleUpdateState()
/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/opt/telephony/src/java/com/android/internal/telephony/
DMissedIncomingCallSmsFilter.java138 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmm"); in getEpochTime() local
139 time = LocalDateTime.parse(year + month + day + hour + minute, formatter); in getEpochTime()
/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/backup/src/com/android/backuptest/
DBackupTestActivity.java82 DateFormat formatter = DateFormat.getDateTimeInstance();
83 output.println(formatter.format(new Date()));
/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.java189 final SimpleDateFormat formatter = new SimpleDateFormat(format, mLocale); in updateMonthYearLabel() local
190 formatter.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE); in updateMonthYearLabel()
191 mMonthYearLabel = formatter.format(mCalendar.getTime()); in updateMonthYearLabel()
DNumberPicker.java1249 public void setFormatter(Formatter formatter) { in setFormatter() argument
1250 if (formatter == mFormatter) { in setFormatter()
1253 mFormatter = formatter; in setFormatter()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/gradle/wrapper/
Dgradle-wrapper.jar ... java.io.BufferedReader is java.util.Formatter stdout String line ProcessBuilder pb Process p java.io ...
/frameworks/base/tests/UiBench/gradle/wrapper/
Dgradle-wrapper.jar ... java.io.BufferedReader is java.util.Formatter stdout String line ProcessBuilder pb Process p java.io ...
/frameworks/base/tests/TouchLatency/gradle/wrapper/
Dgradle-wrapper.jar ... java.io.BufferedReader is java.util.Formatter stdout String line ProcessBuilder pb Process p java.io ...
/frameworks/multidex/gradle/wrapper/
Dgradle-wrapper.jar ... java.io.BufferedReader is java.util.Formatter stdout String line ProcessBuilder pb Process p java.io ...
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java385 SimpleDateFormat formatter = new SimpleDateFormat();
386 String dateString = formatter.format(new Date(System.currentTimeMillis()));
/frameworks/base/startop/apps/ColorChanging/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...

12