/frameworks/base/services/tests/servicestests/src/com/android/server/textservices/ |
D | LocaleUtilsTest.java | 49 final ArrayList<Locale> locales = in testGetSuitableLocalesForSpellChecker() local 51 assertEquals(3, locales.size()); in testGetSuitableLocalesForSpellChecker() 52 assertEquals(LOCALE_EN_US, locales.get(0)); in testGetSuitableLocalesForSpellChecker() 53 assertEquals(LOCALE_EN_GB, locales.get(1)); in testGetSuitableLocalesForSpellChecker() 54 assertEquals(LOCALE_EN, locales.get(2)); in testGetSuitableLocalesForSpellChecker() 58 final ArrayList<Locale> locales = in testGetSuitableLocalesForSpellChecker() local 60 assertEquals(3, locales.size()); in testGetSuitableLocalesForSpellChecker() 61 assertEquals(LOCALE_EN_GB, locales.get(0)); in testGetSuitableLocalesForSpellChecker() 62 assertEquals(LOCALE_EN_US, locales.get(1)); in testGetSuitableLocalesForSpellChecker() 63 assertEquals(LOCALE_EN, locales.get(2)); in testGetSuitableLocalesForSpellChecker() [all …]
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | LocaleUtils.java | 100 final ArrayList<Locale> locales = new ArrayList<>(); in getSuitableLocalesForSpellChecker() local 102 locales.add(systemLocaleLanguageCountryVariant); in getSuitableLocalesForSpellChecker() 114 locales.add(systemLocaleLanguageCountry); in getSuitableLocalesForSpellChecker() 117 locales.add(Locale.US); in getSuitableLocalesForSpellChecker() 120 locales.add(Locale.UK); in getSuitableLocalesForSpellChecker() 122 locales.add(Locale.ENGLISH); in getSuitableLocalesForSpellChecker() 129 locales.add(Locale.ENGLISH); in getSuitableLocalesForSpellChecker() 130 locales.add(Locale.US); in getSuitableLocalesForSpellChecker() 131 locales.add(Locale.UK); in getSuitableLocalesForSpellChecker() 141 locales.add(systemLocaleLanguageCountry); in getSuitableLocalesForSpellChecker() [all …]
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | ServiceInfo.java | 46 private final List<Locale> locales; field in ServiceInfo 69 locales = new ArrayList(newLocales); in ServiceInfo() 92 locales = new ArrayList<Locale>(localesCount); in ServiceInfo() 95 locales.add(l); in ServiceInfo() 111 int localesCount = locales.size(); in writeToParcel() 113 for (Locale l : locales) { in writeToParcel() 159 return locales; in getLocales() 195 Objects.equals(locales, that.locales) && in equals() 203 return Objects.hash(names, className, locales, serviceId, sessionStartTime, sessionEndTime); in hashCode()
|
D | StreamingServiceInfo.java | 47 List<Locale> locales, String serviceId, Date start, Date end) { in StreamingServiceInfo() argument 48 super(names, className, locales, serviceId, start, end); in StreamingServiceInfo()
|
/frameworks/base/tests/LocalizationTest/java/com/android/internal/app/ |
D | LocalizationTest.kt | 76 val locales = LocalePicker.getSupportedLocales(mContext) in testGetSupportedLocales_invalidFilter() constant 78 assertThat(locales).isEqualTo(mUnfilteredLocales) in testGetSupportedLocales_invalidFilter() 85 val locales = LocalePicker.getSupportedLocales(mContext) in testGetSupportedLocales_inclusiveFilter() constant 87 assertThat(locales).isEqualTo( in testGetSupportedLocales_inclusiveFilter() 98 val locales = LocalePicker.getSupportedLocales(mContext) in testGetSupportedLocales_exclusiveFilter() constant 100 assertThat(locales).isEqualTo( in testGetSupportedLocales_exclusiveFilter()
|
/frameworks/base/core/java/android/text/style/ |
D | LocaleSpan.java | 62 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/core/java/com/android/internal/app/ |
D | LocalePicker.java | 138 final String[] locales = getSystemAssetLocales(); in getAllAssetLocales() local 139 List<String> localeList = new ArrayList<String>(locales.length); in getAllAssetLocales() 140 Collections.addAll(localeList, locales); in getAllAssetLocales() 304 public static void updateLocales(LocaleList locales) { 305 if (locales != null) { 306 locales = removeExcludedLocales(locales); 314 config.setLocales(locales); 326 private static LocaleList removeExcludedLocales(@NonNull LocaleList locales) { 329 return locales; 332 int localeCount = locales.size(); [all …]
|
D | LocaleHelper.java | 175 LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) { in getDisplayLocaleList() argument 179 final boolean ellipsisNeeded = locales.size() > maxLocales; in getDisplayLocaleList() 185 listCount = localeCount = locales.size(); in getDisplayLocaleList() 189 localeNames[i] = LocaleHelper.getDisplayName(locales.get(i), dispLocale, false); in getDisplayLocaleList()
|
/frameworks/minikin/libs/minikin/ |
D | LocaleListCache.h | 41 static inline uint32_t getId(const std::string& locales) { in getId() argument 42 return getInstance().getIdInternal(locales); in getId() 54 uint32_t getIdInternal(const std::string& locales);
|
D | LocaleListCache.cpp | 116 uint32_t LocaleListCache::getIdInternal(const std::string& locales) { in getIdInternal() argument 118 const auto& it = mLocaleListLookupTable.find(locales); in getIdInternal() 125 LocaleList fontLocales(parseLocaleList(locales)); in getIdInternal() 130 mLocaleListLookupTable.insert(std::make_pair(locales, nextId)); in getIdInternal()
|
D | Locale.cpp | 33 uint32_t registerLocaleList(const std::string& locales) { in registerLocaleList() argument 34 return LocaleListCache::getId(locales); in registerLocaleList() 491 LocaleList::LocaleList(std::vector<Locale>&& locales) : mLocales(std::move(locales)) { in LocaleList() argument
|
/frameworks/minikin/tests/unittest/ |
D | FontLanguageListCacheTest.cpp | 54 const LocaleList& locales = LocaleListCache::getById(LocaleListCache::getId("en")); in TEST() local 55 ASSERT_EQ(1UL, locales.size()); in TEST() 56 EXPECT_EQ(english, locales[0]); in TEST()
|
/frameworks/base/core/java/android/os/ |
D | LocaleList.java | 536 public static void setDefault(@NonNull @Size(min=1) LocaleList locales) { in setDefault() 537 setDefault(locales, 0); in setDefault() 549 public static void setDefault(@NonNull @Size(min=1) LocaleList locales, int localeIndex) { in setDefault() 550 if (locales == null) { in setDefault() 553 if (locales.isEmpty()) { in setDefault() 557 sLastDefaultLocale = locales.get(localeIndex); in setDefault() 559 sLastExplicitlySetLocaleList = locales; in setDefault() 560 sDefaultLocaleList = locales; in setDefault()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | LocaleUtils.java | 88 List<String> locales = new ArrayList<>(Arrays.asList(localeArray)); in getLocaleForLanguageCountry() local 91 locales.remove("ar-XB"); in getLocaleForLanguageCountry() 92 locales.remove("en-XA"); in getLocaleForLanguageCountry() 95 for (String locale : locales) { in getLocaleForLanguageCountry()
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_bench.cpp | 190 std::set<std::string> locales = in BM_AssetManagerGetResourceLocales() local 192 benchmark::DoNotOptimize(locales); in BM_AssetManagerGetResourceLocales() 208 Vector<String8> locales; in BM_AssetManagerGetResourceLocalesOld() local 209 table.getLocales(&locales, true /*includeSystemLocales*/, true /*mergeEquivalentLangs*/); in BM_AssetManagerGetResourceLocalesOld() 210 benchmark::DoNotOptimize(locales); in BM_AssetManagerGetResourceLocalesOld()
|
D | AssetManager2_test.cpp | 512 std::set<std::string> locales = assetmanager.GetResourceLocales(); in TEST_F() local 515 EXPECT_EQ(3u, locales.size()); in TEST_F() 516 EXPECT_GT(locales.count("sv"), 0u); in TEST_F() 517 EXPECT_GT(locales.count("de"), 0u); in TEST_F() 518 EXPECT_GT(locales.count("fr"), 0u); in TEST_F() 520 locales = assetmanager.GetResourceLocales(true /*exclude_system*/); in TEST_F() 522 EXPECT_EQ(2u, locales.size()); in TEST_F() 523 EXPECT_GT(locales.count("de"), 0u); in TEST_F() 524 EXPECT_GT(locales.count("fr"), 0u); in TEST_F()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | ActionsModelParamsSupplier.java | 105 String locales = keyValueListParser.getString(KEY_REQUIRED_LOCALES, null); in parse() local 106 if (locales == null) { in parse() 118 return new ActionsModelParams(version, locales, serializedPreconditions); in parse()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeMigrationUtilsTest.java | 77 Locale[] locales = new Locale[] { in formatMillisAsDateTime_matchesOldBehavior() local 102 for (Locale locale : locales) { in formatMillisAsDateTime_matchesOldBehavior()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesLocaleTest.java | 67 final Resources resources = createResourcesWithApk(R.raw.locales); in testEnglishIsAlwaysConsideredSupported() 84 final Resources resources = createResourcesWithApk(R.raw.locales); in testSelectFirstSupportedLanguage()
|
/frameworks/base/core/java/android/hardware/input/ |
D | KeyboardLayout.java | 53 LocaleList locales, int vid, int pid) { in KeyboardLayout() argument 58 mLocales = locales; in KeyboardLayout()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 44 localeList = currentConfig.locales 75 val localeList = newConfig.locales in onConfigurationChanged()
|
/frameworks/minikin/include/minikin/ |
D | LocaleList.h | 27 uint32_t registerLocaleList(const std::string& locales);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccRecords.java | 970 String[] locales = mContext.getAssets().getLocales(); in setSimLanguage() local 972 mPrefLang = findBestLanguage(efLi, locales); in setSimLanguage() 979 mPrefLang = findBestLanguage(efPl, locales); in setSimLanguage() 986 protected static String findBestLanguage(byte[] languages, String[] locales) in findBestLanguage() argument 988 if ((languages == null) || (locales == null)) return null; in findBestLanguage() 993 for (int j = 0; j < locales.length; j++) { in findBestLanguage() 994 if (locales[j] != null && locales[j].length() >= 2 && in findBestLanguage() 995 locales[j].substring(0, 2).equalsIgnoreCase(lang)) { in findBestLanguage()
|
/frameworks/base/core/java/android/widget/ |
D | TextInputTimePickerView.java | 154 final LocaleList locales = mContext.getResources().getConfiguration().getLocales(); in setHourFormat() local 155 mHourEditText.setImeHintLocales(locales); in setHourFormat() 156 mMinuteEditText.setImeHintLocales(locales); in setHourFormat()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | KeyphraseEnrollmentInfo.java | 247 ArraySet<Locale> locales = new ArraySet<>(); in getKeyphraseFromTypedArray() local 253 locales.add(Locale.forLanguageTag(supportedLocalesDelimited[i])); in getKeyphraseFromTypedArray() 277 return new KeyphraseMetadata(searchKeyphraseId, searchKeyphrase, locales, recognitionModes); in getKeyphraseFromTypedArray()
|