Home
last modified time | relevance | path

Searched refs:mFormatter (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/
DCalendarFormatterTest.java40 private CalendarFormatter mFormatter; field in CalendarFormatterTest
46 mFormatter = new CalendarFormatter(context, LOCALE, clock); in setUp()
51 String dateText = mFormatter.getDateText(CURRENT_DATE_TIME.toLocalDate()); in getDateText_today()
59 String dateText = mFormatter.getDateText(CURRENT_DATE_TIME.plusDays(1).toLocalDate()); in getDateText_tomorrow()
67 String dateText = mFormatter.getDateText(CURRENT_DATE_TIME.plusDays(7).toLocalDate()); in getDateText_nextWeek_onlyShowsDate()
75 mFormatter.getTimeRangeText( in getTimeRangeText_sameAmPm()
84 mFormatter.getTimeRangeText( in getTimeRangeText_differentAmPm()
93 mFormatter.getTimeRangeText( in getTimeRangeText_differentDays()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.java73 private final Formatter mFormatter; field in CalendarViewAdapter
98 mFormatter = new Formatter(mStringBuilder, Locale.getDefault()); in CalendarViewAdapter()
308 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildDayOfWeek()
312 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildDayOfWeek()
316 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildDayOfWeek()
319 dayOfWeek = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildDayOfWeek()
333 String date = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildFullDate()
342 mFormatter, in buildMonthYearDate()
352 String date = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildMonthDayDate()
361 mFormatter, in buildMonthDate()
[all …]
DDayView.java194 protected static Formatter mFormatter = new Formatter(mStringBuilder, Locale.getDefault()); field in DayView
1463 b.append(mFormatter.format(mEventCountTemplate, i++, numEvents)); in sendAccessibilityEventAsNeeded()
1472 b.append(mFormatter.format(mEventCountTemplate, mSelectedEvents in sendAccessibilityEventAsNeeded()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DTimeFormatter.java29 private final java.text.DateFormat mFormatter; field in TimeFormatter
32 mFormatter = android.text.format.DateFormat.getTimeFormat(context); in TimeFormatter()
33 mFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); in TimeFormatter()
38 c.setTimeZone(mFormatter.getTimeZone()); in of()
43 return mFormatter.format(c.getTime()); in of()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DLevenshteinFormatterTest.java32 private LevenshteinSuggestionFormatter mFormatter; field in LevenshteinFormatterTest
38 mFormatter = new LevenshteinSuggestionFormatter(new MockTextAppearanceFactory()); in setUp()
44 Token[] tokens = mFormatter.tokenize(input); in verifyTokenizeResult()
94 Token[] sourceTokens = mFormatter.tokenize(source); in verifyFindMatches()
95 Token[] targetTokens = mFormatter.tokenize(target); in verifyFindMatches()
97 int[] matches = mFormatter.findMatches(sourceTokens, targetTokens); in verifyFindMatches()
152 Spanned s = mFormatter.formatSuggestion(query, suggestion); in verifyFormatSuggestion()
/packages/apps/Car/Calendar/src/com/android/car/calendar/
DCarCalendarView.java60 private final CalendarFormatter mFormatter; field in CarCalendarView
79 mFormatter = formatter; in CarCalendarView()
149 mRecyclerViewItems.add(new TitleCalendarItem(date, mFormatter)); in updateRecyclerViewItems()
159 event, mFormatter, mNavigator, mDialer, mCarCalendarActivity)); in updateRecyclerViewItems()
163 event, mFormatter, mNavigator, mDialer, mCarCalendarActivity)); in updateRecyclerViewItems()
DTitleCalendarItem.java33 private final CalendarFormatter mFormatter; field in TitleCalendarItem
37 mFormatter = formatter; in TitleCalendarItem()
48 titleViewHolder.update(mFormatter.getDateText(mDate)); in bind()
DEventCalendarItem.java55 private final CalendarFormatter mFormatter; field in EventCalendarItem
67 mFormatter = formatter; in EventCalendarItem()
129 mFormatter.getTimeRangeText(mEvent.getStartInstant(), mEvent.getEndInstant()); in bind()
/packages/apps/MusicFX/src/com/android/musicfx/
DActivityMusic.java131 private Formatter mFormatter = new Formatter(mFormatBuilder, Locale.getDefault()); field in ActivityMusic
732 mFormatter.format(format, args); in format()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java123 protected static Formatter mFormatter = new Formatter(mStringBuilder, Locale.getDefault()); field in MonthWeekEventsView
938 text = DateUtils.formatDateRange(getContext(), mFormatter, event.startMillis, in drawEvent()
/packages/apps/LegacyCamera/src/com/android/camera/
DCamera.java196 private final Formatter mFormatter = new Formatter(mBuilder); field in Camera
643 mFormatter.format("%+1.1f", mFormatterArgs); in updateExposureOnScreenIndicator()
644 String exposure = mFormatter.toString(); in updateExposureOnScreenIndicator()