Home
last modified time | relevance | path

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

/packages/apps/Car/Calendar/src/com/android/car/calendar/common/
DCalendarFormatter.java62 RelativeDateTimeFormatter formatter = in getDateText() local
76 formatter.format( in getDateText()
81 formatter.format( in getDateText()
86 formatter.format( in getDateText()
105 Formatter formatter = new Formatter(new StringBuilder(50), mLocale); in getTimeRangeText() local
108 formatter, in getTimeRangeText()
/packages/apps/Settings/tests/unit/src/com/android/settings/datetime/timezone/
DRegionZonePickerTest.java43 Formatter formatter = new Formatter(Locale.US, now); in compareTimeZoneInfo_matchGmtOrder() local
44 TimeZoneInfo timeZone1 = formatter.format("Pacific/Honolulu"); in compareTimeZoneInfo_matchGmtOrder()
45 TimeZoneInfo timeZone2 = formatter.format("America/Los_Angeles"); in compareTimeZoneInfo_matchGmtOrder()
46 TimeZoneInfo timeZone3 = formatter.format("America/Indiana/Marengo"); in compareTimeZoneInfo_matchGmtOrder()
47 TimeZoneInfo timeZone4 = formatter.format("America/New_York"); in compareTimeZoneInfo_matchGmtOrder()
DTimeZoneInfoTest.java37 Formatter formatter = new Formatter(Locale.US, now); in testFormat() local
39 TimeZoneInfo timeZoneInfo = formatter.format("America/Los_Angeles"); in testFormat()
51 Formatter formatter = new Formatter(Locale.US, date); in getGmtOffset_zoneLordHowe_correctGmtOffset() local
53 TimeZoneInfo timeZoneInfo = formatter.format("Australia/Lord_Howe"); in getGmtOffset_zoneLordHowe_correctGmtOffset()
DTimeZoneInfoPreferenceControllerTest.java48 final Formatter formatter = new Formatter(Locale.US, now); in setUp() local
49 mTimeZoneInfo = formatter.format("America/Los_Angeles"); in setUp()
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DMoreKeysResources.java202 final ArrayInitializerFormatter formatter = in dumpTextsInternal() local
213 formatter.outCommentLines(addPrefix(" // ", res. mComment)); in dumpTextsInternal()
217 formatter.outElement(EMPTY_STRING_VAR + ","); in dumpTextsInternal()
219 formatter.outElement(String.format("\"%s\",", escaped)); in dumpTextsInternal()
222 outputArraySize = formatter.getCurrentIndex(); in dumpTextsInternal()
224 formatter.outElement("null,"); in dumpTextsInternal()
229 formatter.flush(); in dumpTextsInternal()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DFormatUtils.java45 MeasureFormat formatter = MeasureFormat.getInstance(Locale.getDefault(), FormatWidth.WIDE); in formatDuration() local
49 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
53 return formatter.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatDuration()
57 return formatter.format(new Measure(seconds, MeasureUnit.SECOND)); in formatDuration()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DFixedOffsetPicker.java61 final TimeZoneInfo.Formatter formatter = new TimeZoneInfo.Formatter(getLocale(), in loadFixedOffsets() local
64 timeZoneInfos.add(formatter.format(TimeZone.getFrozenTimeZone("Etc/UTC"))); in loadFixedOffsets()
71 timeZoneInfos.add(formatter.format(TimeZone.getFrozenTimeZone(id))); in loadFixedOffsets()
DRegionZonePicker.java117 final TimeZoneInfo.Formatter formatter = new TimeZoneInfo.Formatter(getLocale(), in getRegionTimeZoneInfo() local
129 timeZoneInfos.add(formatter.format(timeZone)); in getRegionTimeZoneInfo()
/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java168 SimpleDateFormat formatter; in getExplicitFormattedTime() local
170 formatter = new SimpleDateFormat(format24); in getExplicitFormattedTime()
172 formatter = new SimpleDateFormat(format12); in getExplicitFormattedTime()
174 return formatter.format(new Date(time)); in getExplicitFormattedTime()
DLogSaver.java214 final Formatter formatter = new Formatter() { in initDiskLog() local
220 handler.setFormatter(formatter); in initDiskLog()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkWatchlistTest.java115 Formatter formatter = new Formatter(); in byteArrayToHexString() local
117 formatter.format("%02X", b); in byteArrayToHexString()
119 return formatter.toString(); in byteArrayToHexString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DVirtualKeyboardPreferenceControllerTest.java114 final BidiFormatter formatter = BidiFormatter.getInstance(); in updateState_multiImeWithMixedLocale_setImeLabelToSummary() local
131 …verify(mPreference).setSummary(formatter.unicodeWrap(label1) + " and " + formatter.unicodeWrap(lab… in updateState_multiImeWithMixedLocale_setImeLabelToSummary()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java312 final NumberFormat formatter = NumberFormat.getNumberInstance(); in formatText() local
313 formatter.setMaximumFractionDigits(2); in formatText()
314 return formatter.format((double) (v / unitInBytes)); in formatText()
332 final NumberFormat formatter = NumberFormat.getNumberInstance(); in onClick() local
335 number = formatter.parse(bytesString); in onClick()
/packages/apps/Dialer/java/com/android/dialer/util/
DDialerUtils.java171 final BidiFormatter formatter = BidiFormatter.getInstance(); in join() local
184 formatter.unicodeWrap(itr.next().toString(), TextDirectionHeuristics.FIRSTSTRONG_LTR)); in join()
188 return formatter.unicodeWrap(sb.toString()); in join()
/packages/apps/Car/Calendar/src/com/android/car/calendar/
DTitleCalendarItem.java35 TitleCalendarItem(LocalDate date, CalendarFormatter formatter) { in TitleCalendarItem() argument
37 mFormatter = formatter; in TitleCalendarItem()
DCarCalendarView.java74 CalendarFormatter formatter) { in CarCalendarView() argument
79 mFormatter = formatter; in CarCalendarView()
DEventCalendarItem.java62 CalendarFormatter formatter, in EventCalendarItem() argument
67 mFormatter = formatter; in EventCalendarItem()
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/
DMainActivity.java95 final DateTimeFormatter formatter =
99 final String wallClockTimeAtChange = formatter.format(wearEstimateChange.dateAtChange);
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeCustomPreferenceController.java39 public static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("hh:mm a"); field in DarkModeCustomPreferenceController
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java1028 Formatter formatter = new Formatter(); in log() local
1029 formatter.format(message, args); in log()
1030 Log.i(TAG, formatter.toString()); in log()
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt2765 Landroid/icu/text/DecimalFormat;->formatter:Landroid/icu/number/LocalizedNumberFormatter;
3439 Landroid/icu/text/MessageFormat$PluralSelectorContext;->formatter:Ljava/text/Format;
3628 Landroid/icu/text/NFRule;->formatter:Landroid/icu/text/RuleBasedNumberFormat;
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...