Searched defs:locales (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/core/java/android/text/style/
H A DLocaleSpan.java59 * @param locales The {@link LocaleList} of the text to which the span is attached.
60 * @throws NullPointerException if {@code locales} is null
62 public LocaleSpan(@NonNull LocaleList locales) { argument
63 Preconditions.checkNotNull(locales, "locales cannot be null");
64 mLocales = locales;
97 * @return The {@link Locale} for this span. If multiple locales are associated with this
109 * @return The entire list of locales that are associated with this span.
126 private static void apply(@NonNull Paint paint, @NonNull LocaleList locales) { argument
127 paint.setTextLocales(locales);
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DLocaleHelper.java30 * This class implements some handy methods to process with locales.
95 // For some locales we want to use a "dialect" form, for instance
155 * @param locales the list of locales whose names is to be displayed.
158 * @param maxLocales maximum number of locales to display. Generates ellipsis after that.
162 LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) {
166 final boolean ellipsisNeeded = locales.size() > maxLocales;
172 listCount = localeCount = locales.size();
176 localeNames[i] = LocaleHelper.getDisplayName(locales.get(i), dispLocale, false);
208 * <p>Gives priority to suggested locales (t
161 getDisplayLocaleList( LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) argument
[all...]
H A DLocalePicker.java103 final String[] locales = getSystemAssetLocales();
104 List<String> localeList = new ArrayList<String>(locales.length);
105 Collections.addAll(localeList, locales);
266 * Requests the system to update the list of system locales.
270 public static void updateLocales(LocaleList locales) { argument
275 config.setLocales(locales);
/frameworks/base/libs/androidfw/tests/
H A DResTable_test.cpp359 Vector<String8> locales; local
360 table.getLocales(&locales);
362 EXPECT_EQ(1, std::count(locales.begin(), locales.end(), String8("sv")));
/frameworks/base/core/java/android/hardware/input/
H A DKeyboardLayout.java53 LocaleList locales, int vid, int pid) {
58 mLocales = locales;
102 * Gets the locales that this keyboard layout is intended for.
52 KeyboardLayout(String descriptor, String label, String collection, int priority, LocaleList locales, int vid, int pid) argument
/frameworks/base/core/java/android/os/
H A DLocaleList.java34 * preferences for locales.
38 // This is a comma-separated list of the locales in the LocaleList created at construction time,
156 * @throws NullPointerException if any of the input locales is <code>null</code>.
157 * @throws IllegalArgumentException if any of the input locales repeat.
311 // The locales are not the same, but the languages are the same, and one of the locales
317 // If we can't guess a script, we don't know enough about the locales' language to find
318 // if the locales match. So we fall back to old behavior of matching, which considered
319 // locales with different regions different.
326 // There is no match if the two locales us
524 setDefault(@onNull @izemin=1) LocaleList locales) argument
536 setDefault(@onNull @izemin=1) LocaleList locales, int localeIndex) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
H A DInputMethodUtilsTest.java492 // Make sure that secondary locales are taken into account to find the best matching
621 // provides multiple locales, we try to enable multiple subtypes.
819 private Context createTargetContextWithLocales(final LocaleList locales) { argument
821 resourceConfiguration.setLocales(locales);
827 private Resources getResourcesForLocales(Locale... locales) { argument
828 return createTargetContextWithLocales(new LocaleList(locales)).getResources();
1080 final ArrayList<Locale> locales =
1082 assertEquals(3, locales.size());
1083 assertEquals(LOCALE_EN_US, locales.get(0));
1084 assertEquals(LOCALE_EN_GB, locales
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccRecords.java527 String[] locales = mContext.getAssets().getLocales();
529 mPrefLang = findBestLanguage(efLi, locales);
536 mPrefLang = findBestLanguage(efPl, locales);
543 protected static String findBestLanguage(byte[] languages, String[] locales) argument
545 if ((languages == null) || (locales == null)) return null;
550 for (int j = 0; j < locales.length; j++) {
551 if (locales[j] != null && locales[j].length() >= 2 &&
552 locales[j].substring(0, 2).equalsIgnoreCase(lang)) {
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java1444 * Get the locale list. This is the preferred way for getting the locales (instead of using
1455 * Set the locale list. This is the preferred way for setting up the locales (instead of using
1463 * @param locales The locale list. If null, an empty LocaleList will be assigned.
1465 public void setLocales(@Nullable LocaleList locales) { argument
1466 mLocaleList = locales == null ? LocaleList.getEmptyLocaleList() : locales;
1910 private static final String XML_ATTR_LOCALES = "locales";
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp319 static jint setTextLocales(JNIEnv* env, jobject clazz, jlong objHandle, jstring locales) { argument
321 ScopedUtfChars localesChars(env, locales);
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp382 Vector<String8> locales; local
385 res->getLocales(&locales);
387 const size_t localesSize = locales.size();
390 if (locales[i].find(kFilPrefix) == 0) {
815 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const argument
819 res->getLocales(locales, includeSystemLocales);
822 const size_t numLocales = locales->size();
824 const String8& localeStr = locales->itemAt(i);
828 locales->editItemAt(i) = replaced;
H A DResourceTypes.cpp2182 // The locales parts of both resources are empty, so no one is better
2187 // Non-matching locales have been filtered out, so both resources
2205 // for US English and similar locales than locales that are a descendant
2529 // For backward compatibility and supporting private-use locales, we
2532 // the scripts, they should be the same for the locales to match.
3300 // determining non-system locales.
5882 void ResTable::getLocales(Vector<String8>* locales, bool includeSystemLocales) const { argument
5889 const auto beginIter = locales->begin();
5890 const auto endIter = locales
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp583 Vector<String8> locales; local
590 am->getLocales(&locales, includeSystemLocales);
592 const int N = locales.size();
600 jstring str = env->NewStringUTF(locales[i].string());
613 return getLocales(env, clazz, true /* include system locales */);
618 return getLocales(env, clazz, false /* don't include system locales */);
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1339 * the order those locales appear in the list is considered for deciding the font.
1346 * system locales. This assumes that the text to be rendered will most likely be in the user's
1352 * the text locale here. Specifying the text locales just helps it do a better
1355 * @param locales the paint's locale list for drawing text, must not be null or empty.
1357 public void setTextLocales(@NonNull @Size(min=1) LocaleList locales) { argument
1358 if (locales == null || locales.isEmpty()) {
1359 throw new IllegalArgumentException("locales cannot be null or empty");
1361 if (locales.equals(mLocales)) return;
1362 mLocales = locales;
2676 nSetTextLocales(long paintPtr, String locales) argument
[all...]
/frameworks/base/tools/aapt/
H A DCommand.cpp915 Vector<String8> locales; local
916 res.getLocales(&locales);
1244 const size_t NL = locales.size();
1246 const char* localeStr = locales[i].string();
2174 printf("locales:");
2175 const size_t NL = locales.size();
2177 const char* localeStr = locales[i].string();
/frameworks/base/core/java/android/widget/
H A DTextView.java2908 * for CJK locales to disambiguate Hanzi/Kanji/Hanja characters). It also affects
2911 * @param locales the {@link LocaleList} for drawing text, must not be null or empty.
2915 public void setTextLocales(@NonNull @Size(min=1) LocaleList locales) { argument
2917 mTextPaint.setTextLocales(locales);
5026 * Change "hint" locales associated with the text view, which will be reported to an IME with
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 372 milliseconds