/frameworks/base/core/java/android/util/ |
D | LocaleUtil.java | 47 public static int getLayoutDirectionFromLocale(Locale locale) { in getLayoutDirectionFromLocale() argument 48 if (locale != null && !locale.equals(Locale.ROOT)) { in getLayoutDirectionFromLocale() 49 final String scriptSubtag = ICU.getScript(ICU.addLikelySubtags(locale.toString())); in getLayoutDirectionFromLocale() 50 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale); in getLayoutDirectionFromLocale() 74 private static int getLayoutDirectionFromFirstChar(Locale locale) { in getLayoutDirectionFromFirstChar() argument 75 switch(Character.getDirectionality(locale.getDisplayName(locale).charAt(0))) { in getLayoutDirectionFromFirstChar()
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 77 public static CharacterTextSegmentIterator getInstance(Locale locale) { in getInstance() argument 79 sInstance = new CharacterTextSegmentIterator(locale); in getInstance() 84 private CharacterTextSegmentIterator(Locale locale) { in CharacterTextSegmentIterator() argument 85 mLocale = locale; in CharacterTextSegmentIterator() 86 onLocaleChanged(locale); in CharacterTextSegmentIterator() 150 Locale locale = newConfig.locale; in onConfigurationChanged() local 151 if (!mLocale.equals(locale)) { in onConfigurationChanged() 152 mLocale = locale; in onConfigurationChanged() 153 onLocaleChanged(locale); in onConfigurationChanged() 162 protected void onLocaleChanged(Locale locale) { in onLocaleChanged() argument [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocalePicker.java | 45 public void onLocaleSelected(Locale locale); in onLocaleSelected() argument 54 Locale locale; field in LocalePicker.LocaleInfo 56 public LocaleInfo(String label, Locale locale) { in LocaleInfo() argument 58 this.locale = locale; in LocaleInfo() 66 return locale; in getLocale() 85 return constructAdapter(context, R.layout.locale_picker_item, R.id.locale); in constructAdapter() 117 if (preprocess[finalSize-1].locale.getLanguage().equals( in constructAdapter() 122 getDisplayName(preprocess[finalSize-1].locale, in constructAdapter() 126 getDisplayName(preprocess[finalSize-1].locale, in constructAdapter() 207 final Locale locale = ((LocaleInfo)getListAdapter().getItem(position)).locale; in onListItemClick() local [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/ |
D | ICU_Delegate.java | 92 /*package*/ static String getCurrencyCode(String locale) { in getCurrencyCode() argument 97 /*package*/ static String getCurrencyDisplayName(String locale, String currencyCode) { in getCurrencyDisplayName() argument 107 /*package*/ static String getCurrencySymbol(String locale, String currencyCode) { in getCurrencySymbol() argument 112 /*package*/ static String getDisplayCountryNative(String countryCode, String locale) { in getDisplayCountryNative() argument 117 /*package*/ static String getDisplayLanguageNative(String languageCode, String locale) { in getDisplayLanguageNative() argument 122 /*package*/ static String getDisplayVariantNative(String variantCode, String locale) { in getDisplayVariantNative() argument 127 /*package*/ static String getISO3CountryNative(String locale) { in getISO3CountryNative() argument 132 /*package*/ static String getISO3LanguageNative(String locale) { in getISO3LanguageNative() argument 137 /*package*/ static String addLikelySubtags(String locale) { in addLikelySubtags() argument 142 /*package*/ static String getScript(String locale) { in getScript() argument [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 63 public Locale locale; field in Configuration 440 if (o.locale != null) { in setTo() 441 locale = (Locale) o.locale.clone(); in setTo() 472 if (locale != null) { in toString() 474 sb.append(locale); in toString() 590 locale = null; in setToDefaults() 635 if (delta.locale != null in updateFrom() 636 && (locale == null || !locale.equals(delta.locale))) { in updateFrom() 638 locale = delta.locale != null in updateFrom() 639 ? (Locale) delta.locale.clone() : null; in updateFrom() [all …]
|
/frameworks/base/core/java/android/provider/ |
D | UserDictionary.java | 136 final Locale locale; in addWord() local 139 locale = Locale.getDefault(); in addWord() 141 locale = null; in addWord() 144 addWord(context, word, frequency, null, locale); in addWord() 159 int frequency, String shortcut, Locale locale) { in addWord() argument 174 values.put(LOCALE, null == locale ? null : locale.toString()); in addWord()
|
/frameworks/base/core/java/com/android/internal/textservice/ |
D | ITextServicesManager.aidl | 32 SpellCheckerInfo getCurrentSpellChecker(String locale); in getCurrentSpellChecker() argument 34 String locale, boolean allowImplicitlySelectedSubtype); in getCurrentSpellCheckerSubtype() argument 35 oneway void getSpellCheckerService(String sciId, in String locale, in getSpellCheckerService() argument 39 oneway void setCurrentSpellChecker(String locale, String sciId); in setCurrentSpellChecker() argument 40 oneway void setCurrentSpellCheckerSubtype(String locale, int hashCode); in setCurrentSpellCheckerSubtype() argument
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSubtype.java | 84 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, in InputMethodSubtype() argument 86 this(nameId, iconId, locale, mode, extraValue, isAuxiliary, false); in InputMethodSubtype() 113 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, in InputMethodSubtype() argument 117 mSubtypeLocale = locale != null ? locale : ""; in InputMethodSubtype() 214 final Locale locale = constructLocaleFromString(mSubtypeLocale); in getDisplayName() local 215 final String localeStr = locale != null ? locale.getDisplayName() : mSubtypeLocale; in getDisplayName() 347 private static int hashCodeInternal(String locale, String mode, String extraValue, in hashCodeInternal() argument 349 return Arrays.hashCode(new Object[] {locale, mode, extraValue, isAuxiliary, in hashCodeInternal()
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerSubtype.java | 54 public SpellCheckerSubtype(int nameId, String locale, String extraValue) { in SpellCheckerSubtype() argument 56 mSubtypeLocale = locale != null ? locale : ""; in SpellCheckerSubtype() 180 final Locale locale = constructLocaleFromString(mSubtypeLocale); in getDisplayName() local 181 final String localeStr = locale != null ? locale.getDisplayName() : mSubtypeLocale; in getDisplayName() 219 private static int hashCodeInternal(String locale, String extraValue) { in hashCodeInternal() argument 220 return Arrays.hashCode(new Object[] {locale, extraValue}); in hashCodeInternal()
|
D | TextServicesManager.java | 106 public SpellCheckerSession newSpellCheckerSession(Bundle bundle, Locale locale, in newSpellCheckerSession() argument 111 if (!referToSpellCheckerLanguageSettings && locale == null) { in newSpellCheckerSession() 135 if (locale != null) { in newSpellCheckerSession() 137 final String inputLocale = locale.toString(); in newSpellCheckerSession() 144 final String localeStr = locale.toString(); in newSpellCheckerSession()
|
/frameworks/base/core/jni/ |
D | android_text_format_Time.cpp | 195 static struct strftime_locale locale; in android_text_format_Time_format() local 209 env->ReleaseStringUTFChars(js_mon[i], locale.mon[i]); in android_text_format_Time_format() 210 env->ReleaseStringUTFChars(js_month[i], locale.month[i]); in android_text_format_Time_format() 211 env->ReleaseStringUTFChars(js_standalone_month[i], locale.standalone_month[i]); in android_text_format_Time_format() 218 env->ReleaseStringUTFChars(js_wday[i], locale.wday[i]); in android_text_format_Time_format() 219 env->ReleaseStringUTFChars(js_weekday[i], locale.weekday[i]); in android_text_format_Time_format() 224 env->ReleaseStringUTFChars(js_X_fmt, locale.X_fmt); in android_text_format_Time_format() 225 env->ReleaseStringUTFChars(js_x_fmt, locale.x_fmt); in android_text_format_Time_format() 226 env->ReleaseStringUTFChars(js_c_fmt, locale.c_fmt); in android_text_format_Time_format() 227 env->ReleaseStringUTFChars(js_am, locale.am); in android_text_format_Time_format() [all …]
|
/frameworks/av/media/libmedia/ |
D | MediaScannerClient.cpp | 40 void MediaScannerClient::setLocale(const char* locale) in setLocale() argument 42 if (!locale) return; in setLocale() 44 if (!strncmp(locale, "ja", 2)) in setLocale() 46 else if (!strncmp(locale, "ko", 2)) in setLocale() 48 else if (!strncmp(locale, "zh", 2)) { in setLocale() 49 if (!strcmp(locale, "zh_CN")) { in setLocale()
|
D | MediaScanner.cpp | 40 void MediaScanner::setLocale(const char *locale) { in setLocale() argument 45 if (locale) { in setLocale() 46 mLocale = strdup(locale); in setLocale() 50 const char *MediaScanner::locale() const { in locale() function in android::MediaScanner 100 client.setLocale(locale()); in processDirectory()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDatabaseConfiguration.java | 77 public Locale locale; field in SQLiteDatabaseConfiguration 110 locale = Locale.getDefault(); in SQLiteDatabaseConfiguration() 145 locale = other.locale; in updateParametersFrom()
|
/frameworks/base/core/java/android/text/style/ |
D | SuggestionSpan.java | 110 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { in SuggestionSpan() argument 111 this(null, locale, suggestions, flags, null); in SuggestionSpan() 123 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, in SuggestionSpan() argument 128 if (locale != null) { in SuggestionSpan() 129 mLocaleString = locale.toString(); in SuggestionSpan() 131 mLocaleString = context.getResources().getConfiguration().locale.toString(); in SuggestionSpan() 270 private static int hashCodeInternal(String[] suggestions, String locale, in hashCodeInternal() argument 273 locale, notificationTargetClassName}); in hashCodeInternal()
|
/frameworks/base/core/java/android/speech/tts/ |
D | TtsEngines.java | 294 String locale = parseEnginePrefFromList( in getLocalePrefForEngine() local 298 if (TextUtils.isEmpty(locale)) { in getLocalePrefForEngine() 300 locale = getV1Locale(); in getLocalePrefForEngine() 303 if (DBG) Log.d(TAG, "getLocalePrefForEngine(" + engineName + ")= " + locale); in getLocalePrefForEngine() 305 return locale; in getLocalePrefForEngine() 359 final Locale locale = Locale.getDefault(); in getDefaultLocale() local 365 String defaultLocale = locale.getISO3Language(); in getDefaultLocale() 371 if (!TextUtils.isEmpty(locale.getISO3Country())) { in getDefaultLocale() 372 defaultLocale += LOCALE_DELIMITER + locale.getISO3Country(); in getDefaultLocale() 378 if (!TextUtils.isEmpty(locale.getVariant())) { in getDefaultLocale() [all …]
|
D | EventLogTags.logtags | 5 76001 tts_speak_success (engine|3),(caller_uid|1),(caller_pid|1),(length|1),(locale|3),(rate|1),(pi… 6 76002 tts_speak_failure (engine|3),(caller_uid|1),(caller_pid|1),(length|1),(locale|3),(rate|1),(pi…
|
/frameworks/base/services/java/com/android/server/ |
D | TextServicesManagerService.java | 159 private SpellCheckerInfo findAvailSpellCheckerLocked(String locale, String prefPackage) { in findAvailSpellCheckerLocked() argument 185 public SpellCheckerInfo getCurrentSpellChecker(String locale) { in getCurrentSpellChecker() argument 204 String locale, boolean allowImplicitlySelectedSubtype) { in getCurrentSpellCheckerSubtype() argument 246 candidateLocale = mContext.getResources().getConfiguration().locale.toString(); in getCurrentSpellCheckerSubtype() 265 Slog.w(TAG, "Return subtype " + scs.hashCode() + ", input= " + locale in getCurrentSpellCheckerSubtype() 280 public void getSpellCheckerService(String sciId, String locale, in getSpellCheckerService() argument 301 tsListener, locale, scListener, uid, bundle); in getSpellCheckerService() 339 sci, locale, tsListener, scListener, uid, bundle); in getSpellCheckerService() 354 private void startSpellCheckerServiceInnerLocked(SpellCheckerInfo info, String locale, in startSpellCheckerServiceInnerLocked() argument 362 sciId, locale, bundle); in startSpellCheckerServiceInnerLocked() [all …]
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | localization.jd | 14 that match the device's locale.</li> 15 <li>If locale-specific resources are not available, Android falls back to 85 differently depending on locale, then you would use Java to handle the data 93 application that uses locale-specific resources in the way described in this 105 <p>(This document focuses on localization and locale. For a complete description 124 device's locale.</p></td> 137 <p>Whenever the application runs in a locale for which you have not provided 138 locale-specific text, Android will load the default strings from 154 <li>When this application is launched on a device with locale set to English, 210 sounds, layouts, and other locale-specific resources. </p> [all …]
|
/frameworks/base/include/androidfw/ |
D | AssetManager.h | 125 void setLocale(const char* locale); 131 void setConfiguration(const ResTable_config& config, const char* locale = NULL); 234 const asset_path& path, const char* locale, const char* vendor); 235 String8 createPathNameLocked(const asset_path& path, const char* locale, 259 const asset_path& path, const char* locale, const char* vendor, 264 void setLocaleLocked(const char* locale);
|
/frameworks/av/include/media/ |
D | mediascanner.h | 54 void setLocale(const char *locale); 60 const char *locale() const; 86 void setLocale(const char* locale);
|
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/ |
D | OverlayBaseTest.java | 32 Locale locale = new Locale(code); in setLocale() local 33 Locale.setDefault(locale); in setLocale() 35 config.locale = locale; in setLocale()
|
/frameworks/base/core/java/android/widget/ |
D | DatePicker.java | 412 setCurrentLocale(newConfig.locale); in onConfigurationChanged() 467 private void setCurrentLocale(Locale locale) { in setCurrentLocale() argument 468 if (locale.equals(mCurrentLocale)) { in setCurrentLocale() 472 mCurrentLocale = locale; in setCurrentLocale() 474 mTempDate = getCalendarForLocale(mTempDate, locale); in setCurrentLocale() 475 mMinDate = getCalendarForLocale(mMinDate, locale); in setCurrentLocale() 476 mMaxDate = getCalendarForLocale(mMaxDate, locale); in setCurrentLocale() 477 mCurrentDate = getCalendarForLocale(mCurrentDate, locale); in setCurrentLocale() 493 private Calendar getCalendarForLocale(Calendar oldCalendar, Locale locale) { in getCalendarForLocale() argument 495 return Calendar.getInstance(locale); in getCalendarForLocale() [all …]
|
/frameworks/base/core/java/android/service/textservice/ |
D | SpellCheckerService.java | 243 public InternalISpellCheckerSession(String locale, ISpellCheckerSessionListener listener, in InternalISpellCheckerSession() argument 247 mLocale = locale; in InternalISpellCheckerSession() 317 String locale, ISpellCheckerSessionListener listener, Bundle bundle) { in getISpellCheckerSession() argument 322 new InternalISpellCheckerSession(locale, listener, bundle, session); in getISpellCheckerSession() 366 public SentenceLevelAdapter(Locale locale) { in SentenceLevelAdapter() argument 367 mWordIterator = new WordIterator(locale); in SentenceLevelAdapter()
|
/frameworks/base/core/java/android/text/ |
D | AutoText.java | 77 mLocale = resources.getConfiguration().locale; in AutoText() 89 Locale locale = res.getConfiguration().locale; in getInstance() local 95 if (!locale.equals(instance.mLocale)) { in getInstance()
|