Home
last modified time | relevance | path

Searched refs:bestDateTimePattern (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
DTimePickerSpinnerDelegate.java229 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in getHourFormatData() local
231 final int lengthPattern = bestDateTimePattern.length(); in getHourFormatData()
237 final char c = bestDateTimePattern.charAt(i); in getHourFormatData()
240 if (i + 1 < lengthPattern && c == bestDateTimePattern.charAt(i + 1)) { in getHourFormatData()
249 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in isAmPmAtStart() local
252 return bestDateTimePattern.startsWith("a"); in isAmPmAtStart()
265 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in setDividerText() local
268 int hourIndex = bestDateTimePattern.lastIndexOf('H'); in setDividerText()
270 hourIndex = bestDateTimePattern.lastIndexOf('h'); in setDividerText()
276 int minuteIndex = bestDateTimePattern.indexOf('m', hourIndex + 1); in setDividerText()
[all …]
DTimePickerClockDelegate.java309 final String bestDateTimePattern = DateFormat.getBestDateTimePattern( in updateHourFormat() local
311 final int lengthPattern = bestDateTimePattern.length(); in updateHourFormat()
316 final char c = bestDateTimePattern.charAt(i); in updateHourFormat()
319 if (i + 1 < lengthPattern && c == bestDateTimePattern.charAt(i + 1)) { in updateHourFormat()
811 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale,
813 final String separatorText = getHourMinSeparatorFromPattern(bestDateTimePattern);