Searched refs:LocaleInfo (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/com/android/internal/app/ |
D | LocaleStore.java | 33 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 …]
|
D | LocalePicker.java | 65 public static class LocaleInfo implements Comparable<LocaleInfo> { class in LocalePicker 71 public LocaleInfo(String label, Locale locale) { in LocaleInfo() method in LocalePicker.LocaleInfo 91 public int compareTo(LocaleInfo another) { in compareTo() 135 public static List<LocaleInfo> getAllAssetLocales(Context context, boolean isInDeveloperMode) { in getAllAssetLocales() 146 final ArrayList<LocaleInfo> localeInfos = new ArrayList<LocaleInfo>(localeList.size()); in getAllAssetLocales() 162 localeInfos.add(new LocaleInfo(toTitleCase(l.getDisplayLanguage(l)), l)); in getAllAssetLocales() 168 final LocaleInfo previous = localeInfos.get(localeInfos.size() - 1); in getAllAssetLocales() 181 localeInfos.add(new LocaleInfo(toTitleCase( in getAllAssetLocales() 188 localeInfos.add(new LocaleInfo(displayName, l)); in getAllAssetLocales() 201 public static ArrayAdapter<LocaleInfo> constructAdapter(Context context) { in constructAdapter() [all …]
|
D | SuggestedLocaleAdapter.java | 58 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()
|
D | LocalePickerWithRegion.java | 52 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()
|
D | LocaleHelper.java | 223 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/ |
D | HdmiCecLocalDevicePlayback.java | 32 import com.android.internal.app.LocalePicker.LocaleInfo; 274 final List<LocaleInfo> localeInfos = LocalePicker.getAllAssetLocales( in handleSetMenuLanguage() 276 for (LocaleInfo localeInfo : localeInfos) { in handleSetMenuLanguage()
|