/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/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/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 | 113 uint32_t LocaleListCache::getIdInternal(const std::string& locales) { in getIdInternal() argument 115 const auto& it = mLocaleListLookupTable.find(locales); in getIdInternal() 122 LocaleList fontLocales(parseLocaleList(locales)); in getIdInternal() 127 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()
|
D | HyphenatorMapTest.cpp | 137 const LocaleList& locales = LocaleListCache::getById(id); in getLocale() local 138 MINIKIN_ASSERT(locales.size() == 1, "The input must be a single locale"); in getLocale() 139 return locales[0]; in getLocale()
|
/frameworks/base/core/java/android/os/ |
D | LocaleList.java | 558 public static void setDefault(@NonNull @Size(min=1) LocaleList locales) { in setDefault() 559 setDefault(locales, 0); in setDefault() 571 public static void setDefault(@NonNull @Size(min=1) LocaleList locales, int localeIndex) { in setDefault() 572 if (locales == null) { in setDefault() 575 if (locales.isEmpty()) { in setDefault() 579 sLastDefaultLocale = locales.get(localeIndex); in setDefault() 581 sLastExplicitlySetLocaleList = locales; in setDefault() 582 sDefaultLocaleList = locales; in setDefault()
|
/frameworks/base/core/java/com/android/internal/app/ |
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()
|
D | LocalePicker.java | 101 final String[] locales = getSystemAssetLocales(); in getAllAssetLocales() local 102 List<String> localeList = new ArrayList<String>(locales.length); in getAllAssetLocales() 103 Collections.addAll(localeList, locales); in getAllAssetLocales() 267 public static void updateLocales(LocaleList locales) { 272 config.setLocales(locales);
|
/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()
|
D | SelectionSessionLogger.java | 251 List<Locale> locales) { in createId() argument 254 Preconditions.checkNotNull(locales); in createId() 256 for (Locale locale : locales) { in createId()
|
/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/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/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccRecords.java | 840 String[] locales = mContext.getAssets().getLocales(); in setSimLanguage() local 842 mPrefLang = findBestLanguage(efLi, locales); in setSimLanguage() 849 mPrefLang = findBestLanguage(efPl, locales); in setSimLanguage() 856 protected static String findBestLanguage(byte[] languages, String[] locales) in findBestLanguage() argument 858 if ((languages == null) || (locales == null)) return null; in findBestLanguage() 863 for (int j = 0; j < locales.length; j++) { in findBestLanguage() 864 if (locales[j] != null && locales[j].length() >= 2 && in findBestLanguage() 865 locales[j].substring(0, 2).equalsIgnoreCase(lang)) { in findBestLanguage()
|
/frameworks/minikin/include/minikin/ |
D | LocaleList.h | 27 uint32_t registerLocaleList(const std::string& locales);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 47 localeList = currentConfig.locales 78 val localeList = newConfig.locales in onConfigurationChanged()
|
/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()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateUtilsTest.java | 155 private void setLocales(LocaleList locales) { in setLocales() argument 158 config.setLocales(locales); in setLocales()
|