Searched refs:localeInfos (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/tests/Internal/src/com/android/internal/app/ |
D | LocaleStoreTest.java | 179 Set<LocaleInfo> localeInfos = LocaleStore.getLevelLocales( in getLevelLocales_languageTier_returnAllSupportLanguages() local 182 assertEquals(5, localeInfos.size()); in getLevelLocales_languageTier_returnAllSupportLanguages() 183 localeInfos.forEach(localeInfo -> { in getLevelLocales_languageTier_returnAllSupportLanguages() 186 assertTrue(localeInfos.stream().anyMatch( in getLevelLocales_languageTier_returnAllSupportLanguages() 188 assertTrue(localeInfos.stream().anyMatch( in getLevelLocales_languageTier_returnAllSupportLanguages() 190 assertTrue(localeInfos.stream().anyMatch( in getLevelLocales_languageTier_returnAllSupportLanguages() 192 assertTrue(localeInfos.stream().anyMatch( in getLevelLocales_languageTier_returnAllSupportLanguages() 194 assertTrue(localeInfos.stream().anyMatch( in getLevelLocales_languageTier_returnAllSupportLanguages() 207 Set<LocaleInfo> localeInfos = LocaleStore.getLevelLocales( in getLevelLocales_regionTierAndParentIsEn_returnEnLocales() local 210 assertEquals(3, localeInfos.size()); in getLevelLocales_regionTierAndParentIsEn_returnEnLocales() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocalePicker.java | 151 final ArrayList<LocaleInfo> localeInfos = new ArrayList<LocaleInfo>(localeList.size()); in getAllAssetLocales() local 163 if (localeInfos.isEmpty()) { in getAllAssetLocales() 167 localeInfos.add(new LocaleInfo(toTitleCase(l.getDisplayLanguage(l)), l)); in getAllAssetLocales() 173 final LocaleInfo previous = localeInfos.get(localeInfos.size() - 1); in getAllAssetLocales() 186 localeInfos.add(new LocaleInfo(toTitleCase( in getAllAssetLocales() 193 localeInfos.add(new LocaleInfo(displayName, l)); in getAllAssetLocales() 198 Collections.sort(localeInfos); in getAllAssetLocales() 199 return localeInfos; in getAllAssetLocales() 214 final List<LocaleInfo> localeInfos = getAllAssetLocales(context, isInDeveloperMode); in constructAdapter() local 218 return new ArrayAdapter<LocaleInfo>(context, layoutId, fieldId, localeInfos) { in constructAdapter()
|
D | LocaleStore.java | 661 HashMap<String, LocaleInfo> localeInfos = new HashMap<>(); in convertExplicitLocales() local 669 if (localeInfos.containsKey(li.getId())) { in convertExplicitLocales() 672 localeInfos.put(li.getId(), li); in convertExplicitLocales() 676 if (!localeInfos.containsKey(parentId)) { in convertExplicitLocales() 677 localeInfos.put(parentId, new LocaleInfo(parent)); in convertExplicitLocales() 681 return localeInfos; in convertExplicitLocales() 685 LocaleList explicitLocales, Collection<LocaleInfo> localeInfos) { in matchLocaleFromSupportedLocaleList() argument 686 if (localeInfos == null) { in matchLocaleFromSupportedLocaleList() 694 for (LocaleInfo localeInfo :localeInfos) { in matchLocaleFromSupportedLocaleList() 718 Locale locale, HashMap<String, LocaleInfo> localeInfos) { in getLocaleInfo() argument [all …]
|
/frameworks/opt/localepicker/src/com/android/localepicker/ |
D | LocaleStore.java | 355 ArrayList<LocaleStore.LocaleInfo> localeInfos = new ArrayList<>(sLocaleCache.values()); in getLevelLocales() local 356 for (LocaleStore.LocaleInfo li : localeInfos) { in getLevelLocales()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDevicePlayback.java | 504 final List<LocaleInfo> localeInfos = LocalePicker.getAllAssetLocales( in handleSetMenuLanguage() local 506 for (LocaleInfo localeInfo : localeInfos) { in handleSetMenuLanguage()
|