Home
last modified time | relevance | path

Searched refs:locales (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DInputMethodUtilsTest.java819 private Context createTargetContextWithLocales(final LocaleList locales) { in createTargetContextWithLocales() argument
821 resourceConfiguration.setLocales(locales); in createTargetContextWithLocales()
827 private Resources getResourcesForLocales(Locale... locales) { in getResourcesForLocales() argument
828 return createTargetContextWithLocales(new LocaleList(locales)).getResources(); in getResourcesForLocales()
1080 final ArrayList<Locale> locales = in testGetSuitableLocalesForSpellChecker() local
1082 assertEquals(3, locales.size()); in testGetSuitableLocalesForSpellChecker()
1083 assertEquals(LOCALE_EN_US, locales.get(0)); in testGetSuitableLocalesForSpellChecker()
1084 assertEquals(LOCALE_EN_GB, locales.get(1)); in testGetSuitableLocalesForSpellChecker()
1085 assertEquals(LOCALE_EN, locales.get(2)); in testGetSuitableLocalesForSpellChecker()
1089 final ArrayList<Locale> locales = in testGetSuitableLocalesForSpellChecker() local
[all …]
/frameworks/base/core/java/android/text/style/
DLocaleSpan.java62 public LocaleSpan(@NonNull LocaleList locales) { in LocaleSpan() argument
63 Preconditions.checkNotNull(locales, "locales cannot be null"); in LocaleSpan()
64 mLocales = locales; in LocaleSpan()
126 private static void apply(@NonNull Paint paint, @NonNull LocaleList locales) { in apply() argument
127 paint.setTextLocales(locales); in apply()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUInfo.java72 Set<Locale> locales = new HashSet<>(mOSUProvider.getNames().size()); in getNameLocales() local
74 locales.add(name.getLocale()); in getNameLocales()
76 return locales; in getNameLocales()
80 Set<Locale> locales = new HashSet<>(mOSUProvider.getServiceDescriptions().size()); in getServiceLocales() local
82 locales.add(name.getLocale()); in getServiceLocales()
84 return locales; in getServiceLocales()
88 Set<String> locales = new HashSet<>(mOSUProvider.getIcons().size()); in getIconLanguages() local
90 locales.add(iconInfo.getLanguage()); in getIconLanguages()
92 return locales; in getIconLanguages()
/frameworks/base/core/java/android/os/
DLocaleList.java524 public static void setDefault(@NonNull @Size(min=1) LocaleList locales) { in setDefault()
525 setDefault(locales, 0); in setDefault()
536 public static void setDefault(@NonNull @Size(min=1) LocaleList locales, int localeIndex) { in setDefault()
537 if (locales == null) { in setDefault()
540 if (locales.isEmpty()) { in setDefault()
544 sLastDefaultLocale = locales.get(localeIndex); in setDefault()
546 sLastExplicitlySetLocaleList = locales; in setDefault()
547 sDefaultLocaleList = locales; in setDefault()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccRecords.java527 String[] locales = mContext.getAssets().getLocales(); in setSimLanguage() local
529 mPrefLang = findBestLanguage(efLi, locales); in setSimLanguage()
536 mPrefLang = findBestLanguage(efPl, locales); in setSimLanguage()
543 protected static String findBestLanguage(byte[] languages, String[] locales) in findBestLanguage() argument
545 if ((languages == null) || (locales == null)) return null; in findBestLanguage()
550 for (int j = 0; j < locales.length; j++) { in findBestLanguage()
551 if (locales[j] != null && locales[j].length() >= 2 && in findBestLanguage()
552 locales[j].substring(0, 2).equalsIgnoreCase(lang)) { in findBestLanguage()
DRuimRecords.java728 final String[] locales = ctx.getAssets().getLocales(); in getAssetLanguages() local
729 final String[] localeLangs = new String[locales.length]; in getAssetLanguages()
730 for (int i = 0; i < locales.length; ++i) { in getAssetLanguages()
731 final String localeStr = locales[i]; in getAssetLanguages()
/frameworks/base/core/java/com/android/internal/app/
DLocaleHelper.java162 LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) { in getDisplayLocaleList() argument
166 final boolean ellipsisNeeded = locales.size() > maxLocales; in getDisplayLocaleList()
172 listCount = localeCount = locales.size(); in getDisplayLocaleList()
176 localeNames[i] = LocaleHelper.getDisplayName(locales.get(i), dispLocale, false); in getDisplayLocaleList()
DLocalePicker.java103 final String[] locales = getSystemAssetLocales(); in getAllAssetLocales() local
104 List<String> localeList = new ArrayList<String>(locales.length); in getAllAssetLocales()
105 Collections.addAll(localeList, locales); in getAllAssetLocales()
270 public static void updateLocales(LocaleList locales) {
275 config.setLocales(locales);
/frameworks/base/docs/html/preview/features/
Dmultilingual-support.jd22 allowing them to select multiple locales in settings. Android N
23 provides this capability by greatly expanding the number of locales supported
35 the expanded number of locales to support more multilingual users.</p>
40 match app and system locales.</p>
204 <p>Up through Android 6.0 (API level 23), Android supported only one or two locales
208 in resource files. However, with Android's broadened set of supported locales,
216 one {@code ar_EG} to 27 Arabic locales. These locales can share most resources,
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodUtils.java1527 final ArrayList<Locale> locales = new ArrayList<>(); in getSuitableLocalesForSpellChecker() local
1529 locales.add(systemLocaleLanguageCountryVariant); in getSuitableLocalesForSpellChecker()
1541 locales.add(systemLocaleLanguageCountry); in getSuitableLocalesForSpellChecker()
1544 locales.add(LOCALE_EN_US); in getSuitableLocalesForSpellChecker()
1547 locales.add(LOCALE_EN_GB); in getSuitableLocalesForSpellChecker()
1549 locales.add(Locale.ENGLISH); in getSuitableLocalesForSpellChecker()
1556 locales.add(Locale.ENGLISH); in getSuitableLocalesForSpellChecker()
1557 locales.add(LOCALE_EN_US); in getSuitableLocalesForSpellChecker()
1558 locales.add(LOCALE_EN_GB); in getSuitableLocalesForSpellChecker()
1568 locales.add(systemLocaleLanguageCountry); in getSuitableLocalesForSpellChecker()
[all …]
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayout.java53 LocaleList locales, int vid, int pid) { in KeyboardLayout() argument
58 mLocales = locales; in KeyboardLayout()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java66 final Resources resources = createResourcesWithApk(R.raw.locales); in testEnglishIsAlwaysConsideredSupported()
83 final Resources resources = createResourcesWithApk(R.raw.locales); in testSelectFirstSupportedLanguage()
/frameworks/base/core/tests/coretests/apks/locales/
DAndroid.mk6 LOCAL_PACKAGE_NAME := locales
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java245 ArraySet<Locale> locales = new ArraySet<>(); in getKeyphraseFromTypedArray() local
251 locales.add(Locale.forLanguageTag(supportedLocalesDelimited[i])); in getKeyphraseFromTypedArray()
275 return new KeyphraseMetadata(searchKeyphraseId, searchKeyphrase, locales, recognitionModes); in getKeyphraseFromTypedArray()
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp359 Vector<String8> locales; in TEST() local
360 table.getLocales(&locales); in TEST()
362 EXPECT_EQ(1, std::count(locales.begin(), locales.end(), String8("sv"))); in TEST()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java352 LocaleList locales = mConfiguration.getLocales(); in updateConfiguration() local
353 if (locales.isEmpty()) { in updateConfiguration()
354 locales = LocaleList.getDefault(); in updateConfiguration()
355 mConfiguration.setLocales(locales); in updateConfiguration()
359 if (locales.size() > 1) { in updateConfiguration()
372 final Locale bestLocale = locales.getFirstMatchWithEnglishSupported( in updateConfiguration()
374 if (bestLocale != null && bestLocale != locales.get(0)) { in updateConfiguration()
375 mConfiguration.setLocales(new LocaleList(bestLocale, locales)); in updateConfiguration()
/frameworks/base/libs/androidfw/
DAssetManager.cpp382 Vector<String8> locales; in setLocaleLocked() local
385 res->getLocales(&locales); in setLocaleLocked()
387 const size_t localesSize = locales.size(); in setLocaleLocked()
390 if (locales[i].find(kFilPrefix) == 0) { in setLocaleLocked()
815 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const in getLocales() argument
819 res->getLocales(locales, includeSystemLocales); in getLocales()
822 const size_t numLocales = locales->size(); in getLocales()
824 const String8& localeStr = locales->itemAt(i); in getLocales()
828 locales->editItemAt(i) = replaced; in getLocales()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java785 final LocaleList locales = layout.getLocales(); in getDefaultKeyboardLayout()
786 final int numLocales = locales.size(); in getDefaultKeyboardLayout()
788 if (isCompatibleLocale(systemLocale, locales.get(localeIndex))) { in getDefaultKeyboardLayout()
806 final LocaleList locales = layout.getLocales(); in getDefaultKeyboardLayout() local
807 final int numLocales = locales.size(); in getDefaultKeyboardLayout()
809 final Locale locale = locales.get(localeIndex); in getDefaultKeyboardLayout()
819 final LocaleList locales = layout.getLocales(); in getDefaultKeyboardLayout() local
820 final int numLocales = locales.size(); in getDefaultKeyboardLayout()
822 final Locale locale = locales.get(localeIndex); in getDefaultKeyboardLayout()
1185 LocaleList locales = getLocalesFromLanguageTags(languageTags); in visitKeyboardLayoutsInPackage() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java280 List<String> locales = new ArrayList<>(Arrays.asList(localeArray)); in getLocaleForLanguageCountry() local
283 locales.remove("ar-XB"); in getLocaleForLanguageCountry()
284 locales.remove("en-XA"); in getLocaleForLanguageCountry()
287 for (String locale : locales) { in getLocaleForLanguageCountry()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1357 public void setTextLocales(@NonNull @Size(min=1) LocaleList locales) { in setTextLocales()
1358 if (locales == null || locales.isEmpty()) { in setTextLocales()
1361 if (locales.equals(mLocales)) return; in setTextLocales()
1362 mLocales = locales; in setTextLocales()
2676 private static native int nSetTextLocales(long paintPtr, String locales); in nSetTextLocales() argument
/frameworks/base/docs/html/about/versions/
Dandroid-2.1.jd291 built-in locales. In some cases, region-specific strings are available for the
292 locales. In other cases, a default version of the language is used. The
334 <p>Localized UI strings match the locales that are accessible
Dandroid-2.0.1.jd163 built-in locales. In some cases, region-specific strings are available for the
164 locales. In other cases, a default version of the language is used. The
206 <p>Localized UI strings match the locales that are accessible
Dandroid-1.5.jd301 built-in locales. In some cases, region-specific strings are available for the
302 locales. In other cases, a default version of the language is used. The
344 <p>Localized UI strings match the locales that are accessible
/frameworks/base/docs/html-intl/intl/es/distribute/googleplay/
Dguide.jd51 <strong>Alcance global</strong> &mdash; Lanzamiento de tu aplicación en mercados locales
/frameworks/base/include/androidfw/
DAssetManager.h229 void getLocales(Vector<String8>* locales, bool includeSystemLocales=true) const;

123