Home
last modified time | relevance | path

Searched refs:LocaleInfo (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java33 private static final HashMap<String, LocaleInfo> sLocaleCache = new HashMap<>();
36 public static class LocaleInfo implements Serializable { class in LocaleStore
55 private LocaleInfo(Locale locale) { in LocaleInfo() method in LocaleStore.LocaleInfo
65 private LocaleInfo(String localeId) { in LocaleInfo() method in LocaleStore.LocaleInfo
231 for (LocaleInfo li : sLocaleCache.values()) { in updateSimCountries()
237 li.mSuggestionFlags |= LocaleInfo.SUGGESTION_TYPE_SIM; in updateSimCountries()
255 for (LocaleInfo li : sLocaleCache.values()) { in addSuggestedLocalesForRegion()
258 li.mSuggestionFlags |= LocaleInfo.SUGGESTION_TYPE_SIM; in addSuggestedLocalesForRegion()
277 LocaleInfo li = new LocaleInfo(localeId); in fillCache()
283 li.mSuggestionFlags |= LocaleInfo.SUGGESTION_TYPE_SIM; in fillCache()
[all …]
DLocalePicker.java59 public static class LocaleInfo implements Comparable<LocaleInfo> { class in LocalePicker
65 public LocaleInfo(String label, Locale locale) { in LocaleInfo() method in LocalePicker.LocaleInfo
85 public int compareTo(LocaleInfo another) { in compareTo()
98 public static List<LocaleInfo> getAllAssetLocales(Context context, boolean isInDeveloperMode) { in getAllAssetLocales()
109 final ArrayList<LocaleInfo> localeInfos = new ArrayList<LocaleInfo>(localeList.size()); in getAllAssetLocales()
125 localeInfos.add(new LocaleInfo(toTitleCase(l.getDisplayLanguage(l)), l)); in getAllAssetLocales()
131 final LocaleInfo previous = localeInfos.get(localeInfos.size() - 1); in getAllAssetLocales()
144 localeInfos.add(new LocaleInfo(toTitleCase( in getAllAssetLocales()
151 localeInfos.add(new LocaleInfo(displayName, l)); in getAllAssetLocales()
164 public static ArrayAdapter<LocaleInfo> constructAdapter(Context context) { in constructAdapter()
[all …]
DSuggestedLocaleAdapter.java58 private ArrayList<LocaleStore.LocaleInfo> mLocaleOptions;
59 private ArrayList<LocaleStore.LocaleInfo> mOriginalLocaleOptions;
68 public SuggestedLocaleAdapter(Set<LocaleStore.LocaleInfo> localeOptions, boolean countryMode) { in SuggestedLocaleAdapter()
71 for (LocaleStore.LocaleInfo li : localeOptions) { in SuggestedLocaleAdapter()
197 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in getView()
246 ArrayList<LocaleStore.LocaleInfo> values; in performFiltering()
257 final ArrayList<LocaleStore.LocaleInfo> newValues = new ArrayList<>(); in performFiltering()
260 final LocaleStore.LocaleInfo value = values.get(i); in performFiltering()
298 mLocaleOptions = (ArrayList<LocaleStore.LocaleInfo>) results.values; in publishResults()
301 for (LocaleStore.LocaleInfo li : mLocaleOptions) { in publishResults()
DLocalePickerWithRegion.java52 private Set<LocaleStore.LocaleInfo> mLocaleList;
53 private LocaleStore.LocaleInfo mParentLocale;
71 void onLocaleSelected(LocaleStore.LocaleInfo locale); in onLocaleSelected()
75 LocaleSelectedListener listener, LocaleStore.LocaleInfo parent, in createCountryPicker()
104 LocaleStore.LocaleInfo parent, boolean translatedOnly) { in setListener()
207 final LocaleStore.LocaleInfo locale = in onListItemClick()
208 (LocaleStore.LocaleInfo) getListAdapter().getItem(position); in onListItemClick()
DLocaleHelper.java223 public static final class LocaleInfoComparator implements Comparator<LocaleStore.LocaleInfo> {
263 public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) { in compare()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java31 import com.android.internal.app.LocalePicker.LocaleInfo;
274 final List<LocaleInfo> localeInfos = LocalePicker.getAllAssetLocales( in handleSetMenuLanguage()
276 for (LocaleInfo localeInfo : localeInfos) { in handleSetMenuLanguage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java30 import com.android.internal.app.LocaleStore.LocaleInfo;
332 LocaleInfo targetInfo = LocaleStore.getLocaleInfo(target); in getLocaleForLanguageCountry()