Lines Matching defs:locale
495 // The current locale
509 protected void setCurrentLocale(Locale locale) {
510 if (!locale.equals(mCurrentLocale)) {
511 mCurrentLocale = locale;
512 onLocaleChanged(locale);
527 protected void onLocaleChanged(Locale locale) {
598 // initialization based on locale
870 setCurrentLocale(newConfig.locale);
901 * Sets the current locale.
903 * @param locale The current locale.
906 protected void setCurrentLocale(Locale locale) {
907 super.setCurrentLocale(locale);
909 mTempDate = getCalendarForLocale(mTempDate, locale);
910 mMinDate = getCalendarForLocale(mMinDate, locale);
911 mMaxDate = getCalendarForLocale(mMaxDate, locale);
912 mCurrentDate = getCalendarForLocale(mCurrentDate, locale);
918 // We're in a locale where a date should either be all-numeric, or all-text.
928 * Tests whether the current locale is one where there are no real month names,
936 * Gets a calendar for locale bootstrapped with the value of a given calendar.
939 * @param locale The locale.
941 private Calendar getCalendarForLocale(Calendar oldCalendar, Locale locale) {
943 return Calendar.getInstance(locale);
946 Calendar newCalendar = Calendar.getInstance(locale);
955 * to the current locale's default format.
960 // order the user's locale uses for that combination. http://b/7207103.