Lines Matching refs:locale
489 // The current locale
500 // initialization based on locale
504 protected void setCurrentLocale(Locale locale) {
505 if (locale.equals(mCurrentLocale)) {
508 mCurrentLocale = locale;
589 // initialization based on locale
861 setCurrentLocale(newConfig.locale);
902 * Sets the current locale.
904 * @param locale The current locale.
907 protected void setCurrentLocale(Locale locale) {
908 super.setCurrentLocale(locale);
910 mTempDate = getCalendarForLocale(mTempDate, locale);
911 mMinDate = getCalendarForLocale(mMinDate, locale);
912 mMaxDate = getCalendarForLocale(mMaxDate, locale);
913 mCurrentDate = getCalendarForLocale(mCurrentDate, locale);
919 // We're in a locale where a date should either be all-numeric, or all-text.
929 * Tests whether the current locale is one where there are no real month names,
937 * Gets a calendar for locale bootstrapped with the value of a given calendar.
940 * @param locale The locale.
942 private Calendar getCalendarForLocale(Calendar oldCalendar, Locale locale) {
944 return Calendar.getInstance(locale);
947 Calendar newCalendar = Calendar.getInstance(locale);
956 * to the current locale's default format.
961 // order the user's locale uses for that combination. http://b/7207103.