HomeSort by relevance Sort by last modified time
    Searched refs:localeList (Results 1 - 25 of 32) sorted by null

1 2

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
LocaleListCompatUtils.java 23 private static final Class CLASS_LocaleList = CompatUtils.getClass("android.os.LocaleList");
33 public static boolean isEmpty(final Object localeList) {
34 return (Boolean) CompatUtils.invoke(localeList, Boolean.FALSE, METHOD_isEmpty);
37 public static Locale get(final Object localeList, final int index) {
38 return (Locale) CompatUtils.invoke(localeList, null, METHOD_get, index);
EditorInfoCompatUtils.java 89 final Object localeList = CompatUtils.getFieldValue(editorInfo, null, FIELD_HINT_LOCALES);
90 if (localeList == null) {
93 if (LocaleListCompatUtils.isEmpty(localeList)) {
96 return LocaleListCompatUtils.get(localeList, 0);
  /cts/tests/tests/text/src/android/text/style/cts/
LocaleSpanTest.java 21 import android.os.LocaleList;
36 private void verifyGetLocales(@NonNull final LocaleList locales) {
48 verifyGetLocales(LocaleList.getEmptyLocaleList());
49 verifyGetLocales(LocaleList.forLanguageTags("en"));
50 verifyGetLocales(LocaleList.forLanguageTags("en-GB,en"));
51 verifyGetLocales(LocaleList.forLanguageTags("de-DE-u-co-phonebk,en-GB,en"));
56 new LocaleSpan((LocaleList) null);
76 LocaleSpan localeSpan = new LocaleSpan(LocaleList.getEmptyLocaleList());
82 LocaleSpan localeSpan = new LocaleSpan(LocaleList.getEmptyLocaleList());
88 LocaleList localeListForSpan = LocaleList.forLanguageTags("en")
    [all...]
  /cts/tests/tests/assist/common/src/android/assist/common/
MyWebView.java 19 import android.os.LocaleList;
30 private LocaleList mLocaleList;
44 public void setLocaleList(LocaleList localeList) {
45 this.mLocaleList = localeList;
48 public LocaleList getLocaleList() {
  /cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DeviceInfoActivity.java 180 StringBuilder localeList = new StringBuilder();
183 localeList.append(new Locale("en", "US").toString());
185 localeList.append(s);
187 localeList.append(";");
190 localeList.toString());
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
CorrectionSettingsFragment.java 97 final TreeSet<String> localeList = UserDictionaryList.getUserDictionaryLocalesSet(activity);
98 if (null == localeList) {
102 } else if (localeList.size() <= 1) {
104 // If the size of localeList is 0, we don't set the locale parameter in the
110 if (localeList.size() == 1) {
111 final String locale = (String)localeList.toArray()[0];
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
ConfigurationControllerImpl.java 21 import android.os.LocaleList;
42 private LocaleList mLocaleList;
79 final LocaleList localeList = newConfig.getLocales();
80 if (!localeList.equals(mLocaleList)) {
81 mLocaleList = localeList;
  /frameworks/base/core/java/android/os/
LocaleList.java 33 * LocaleList is an immutable list of Locales, typically used to keep an ordered list of user
36 public final class LocaleList implements Parcelable {
38 // This is a comma-separated list of the locales in the LocaleList created at construction time,
45 private static final LocaleList sEmptyLocaleList = new LocaleList();
58 * Returns whether the {@link LocaleList} contains no {@link Locale} items.
60 * @return {@code true} if this {@link LocaleList} has no {@link Locale} items, {@code false}
68 * Returns the number of {@link Locale} items in this {@link LocaleList}.
76 * Searches this {@link LocaleList} for the specified {@link Locale} and returns the index of
97 if (!(other instanceof LocaleList))
    [all...]
  /frameworks/support/compat/java/android/support/v4/os/
LocaleListHelper.java 178 final Locale[] localeList = new Locale[list.length];
189 localeList[i] = localeClone;
197 mList = localeList;
224 final Locale[] localeList = new Locale[outputLength];
225 localeList[0] = (Locale) topLocale.clone();
229 localeList[i + 1] = (Locale) otherLocales.mList[i].clone();
233 localeList[i + 1] = (Locale) otherLocales.mList[i].clone();
236 localeList[i] = (Locale) otherLocales.mList[i].clone();
242 sb.append(LocaleHelper.toLanguageTag(localeList[i]));
249 mList = localeList;
    [all...]
LocaleListCompat.java 20 import android.os.LocaleList;
30 * Helper for accessing features in {@link LocaleList}.
104 private LocaleList mLocaleList = new LocaleList();
108 mLocaleList = new LocaleList(list);
184 if (object instanceof LocaleList) {
185 instance.setLocaleList((LocaleList) object);
194 * @return an android.os.LocaleList object if API &gt;= 24 , or {@link Locale} if not.
204 public static LocaleListCompat create(@NonNull Locale... localeList) {
206 instance.setLocaleListArray(localeList);
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
LocalePicker.java 29 import android.os.LocaleList;
104 List<String> localeList = new ArrayList<String>(locales.length);
105 Collections.addAll(localeList, locales);
110 localeList.remove(locale);
114 Collections.sort(localeList);
118 final ArrayList<LocaleInfo> localeInfos = new ArrayList<LocaleInfo>(localeList.size());
119 for (String locale : localeList) {
259 * @see #updateLocales(LocaleList)
262 updateLocales(new LocaleList(locale));
270 public static void updateLocales(LocaleList locales)
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
LocaleSet.java 22 import android.os.LocaleList;
34 private final LocaleList mLocaleList;
36 private LocaleSet(LocaleList localeList, Locale defaultLocaleOverrideForTest) {
37 mLocaleList = localeList;
42 return new LocaleSet(LocaleList.getDefault(),
48 return new LocaleSet(new LocaleList(locales), locales[0]);
101 * (See {@link LocaleList})
110 public @NonNull LocaleList getAllLocales() {
163 return Objects.equals(mLocaleList, LocaleList.getDefault())
    [all...]
ContactLocaleUtils.java 22 import android.os.LocaleList;
150 final LocaleList localeList = systemLocales.getAllLocales();
153 localeList.size() + sDefaultLabelLocales.length);
154 for (int i = 0; i < localeList.size(); i++) {
155 locales.add(localeList.get(i));
  /external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
DemoUtility.java 130 return localeList;
132 private static Locale[] localeList = {
  /packages/apps/Settings/src/com/android/settings/localepicker/
LocaleDragAndDropAdapter.java 22 import android.os.LocaleList;
275 final LocaleList ll = new LocaleList(newList);
279 private LocaleList mLocalesToSetNext = null;
280 private LocaleList mLocalesSetLast = null;
282 public void updateLocalesWhenAnimationStops(final LocaleList localeList) {
283 if (localeList.equals(mLocalesToSetNext)) {
289 LocaleList.setDefault(localeList);
    [all...]
LocaleListEditor.java 24 import android.os.LocaleList;
225 final LocaleList localeList = LocalePicker.getLocales();
226 for (int i = 0; i < localeList.size(); i++) {
227 Locale locale = localeList.get(i);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
ConfigurationMatcher.java 188 List<Locale> localeList = mConfigChooser.getLocaleList();
203 for (int i = 0 ; i < localeList.size() ; i++) {
204 Locale locale = localeList.get(i);
222 Locale locale = localeList.get(localeIndex);
250 List<Locale> localeList = mConfigChooser.getLocaleList();
278 max = localeList.size();
286 Locale l = localeList.get(i);
353 mConfiguration.setLocale(localeList.get(match.bundle.localeIndex), true);
386 mConfiguration.setLocale(localeList.get(match.bundle.localeIndex), true);
456 List<Locale> localeList = mConfigChooser.getLocaleList()
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
LayoutReloadMonitor.java 69 public boolean localeList = false;
73 return code && resources && rClass && localeList && manifest;
348 changeFlags.localeList = true;
  /frameworks/base/core/java/android/view/
ViewStructure.java 24 import android.os.LocaleList;
388 public abstract void setLocaleList(LocaleList localeList);
  /frameworks/base/core/java/android/view/textclassifier/
TextClassifierImpl.java 28 import android.os.LocaleList;
103 @Nullable LocaleList defaultLocales) {
148 @Nullable LocaleList defaultLocales) {
174 @NonNull CharSequence text, int linkMask, @Nullable LocaleList defaultLocales) {
203 private SmartSelection getSmartSelection(LocaleList localeList) throws FileNotFoundException {
205 localeList = localeList == null ? LocaleList.getEmptyLocaleList() : localeList;
    [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 38 import android.os.LocaleList;
356 public static LocaleList resolveLocales(LocaleList restore, LocaleList current,
382 return new LocaleList(filtered.toArray(new Locale[filtered.size()]));
398 final LocaleList localeList = LocaleList.forLanguageTags(localeCodes);
399 if (localeList.isEmpty()) {
404 final LocaleList currentLocales = conf.getLocales()
    [all...]
  /frameworks/support/design/tests/src/android/support/design/testutils/
ViewStructureImpl.java 21 import android.os.LocaleList;
275 public void setLocaleList(LocaleList localeList) {
  /cts/tests/inputmethod/src/android/view/inputmethod/cts/
InputMethodInfoTest.java 238 final ArrayList<String> localeList = new ArrayList<>(Arrays.asList(
261 for (final String locale : localeList) {
  /cts/tests/tests/assist/src/android/assist/cts/
AssistTestBase.java 32 import android.os.LocaleList;
394 * Return true if the expected LocaleList is found in the WebView, else fail.
396 protected void verifyAssistStructureHasLocaleList(LocaleList localeList) {
398 return n.getLocaleList() != null && localeList.equals(n.getLocaleList());
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/cldr/
TestCLDRVsICU.java 253 String localeList = attributes.getValue("locales");
255 android.icu.impl.Utility.split(localeList, ' ', currentLocaleString);

Completed in 1000 milliseconds

1 2