Lines Matching defs:LocaleInfo
58 public static class LocaleInfo implements Comparable<LocaleInfo> {
64 public LocaleInfo(String label, Locale locale) {
83 public int compareTo(LocaleInfo another) {
100 public static List<LocaleInfo> getAllAssetLocales(Context context, boolean isInDeveloperMode) {
118 final ArrayList<LocaleInfo> localeInfos = new ArrayList<LocaleInfo>(localeList.size());
130 localeInfos.add(new LocaleInfo(toTitleCase(l.getDisplayLanguage(l)), l));
136 final LocaleInfo previous = localeInfos.get(localeInfos.size() - 1);
149 localeInfos.add(new LocaleInfo(toTitleCase(
156 localeInfos.add(new LocaleInfo(displayName, l));
167 * {@link LocaleInfo#label}.
169 public static ArrayAdapter<LocaleInfo> constructAdapter(Context context) {
173 public static ArrayAdapter<LocaleInfo> constructAdapter(Context context,
177 final List<LocaleInfo> localeInfos = getAllAssetLocales(context, isInDeveloperMode);
181 return new ArrayAdapter<LocaleInfo>(context, layoutId, fieldId, localeInfos) {
194 LocaleInfo item = getItem(position);
227 final ArrayAdapter<LocaleInfo> adapter = constructAdapter(getActivity());
250 final Locale locale = ((LocaleInfo)getListAdapter().getItem(position)).locale;