/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
H A D | TextViewSetTextLocalePerfTest.java | 45 public static Collection locales() { method in class:TextViewSetTextLocalePerfTest
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | DateUtilsTest.java | 106 private void setLocales(LocaleList locales) { argument 109 config.setLocales(locales);
|
/frameworks/base/core/java/android/text/style/ |
H A D | LocaleSpan.java | 59 * @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 D | LocaleHelper.java | 30 * 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 D | LocalePicker.java | 103 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 D | AssetManager2_test.cpp | 403 std::set<std::string> locales = assetmanager.GetResourceLocales(); local 406 EXPECT_EQ(3u, locales.size()); 407 EXPECT_GT(locales.count("sv"), 0u); 408 EXPECT_GT(locales.count("de"), 0u); 409 EXPECT_GT(locales.count("fr"), 0u); 411 locales = assetmanager.GetResourceLocales(true /*exclude_system*/); 412 // We expect the de and fr locales from basic_de_fr assets. 413 EXPECT_EQ(2u, locales.size()); 414 EXPECT_GT(locales.count("de"), 0u); 415 EXPECT_GT(locales [all...] |
H A D | AssetManager2_bench.cpp | 221 std::set<std::string> locales = local 223 benchmark::DoNotOptimize(locales); 239 Vector<String8> locales; local 240 table.getLocales(&locales, true /*includeSystemLocales*/, true /*mergeEquivalentLangs*/); 241 benchmark::DoNotOptimize(locales);
|
H A D | ResTable_test.cpp | 421 Vector<String8> locales; local 422 table.getLocales(&locales); 424 EXPECT_EQ(1, std::count(locales.begin(), locales.end(), String8("sv")));
|
/frameworks/base/core/java/android/hardware/input/ |
H A D | KeyboardLayout.java | 53 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 D | LocaleList.java | 34 * 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/support/compat/java/android/support/v4/os/ |
H A D | LocaleListHelper.java | 37 * preferences for locales. 45 // This is a comma-separated list of the locales in the LocaleListHelper created at construction 167 * @throws NullPointerException if any of the input locales is <code>null</code>. 168 * @throws IllegalArgumentException if any of the input locales repeat. 321 // The locales are not the same, but the languages are the same, and one of the locales 327 // If we can't guess a script, we don't know enough about the locales' language to find 328 // if the locales match. So we fall back to old behavior of matching, which considered 329 // locales with different regions different. 336 // There is no match if the two locales us 550 setDefault(@onNull @izemin = 1) LocaleListHelper locales) argument 563 setDefault(@onNull @izemin = 1) LocaleListHelper locales, int localeIndex) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
H A D | InputMethodUtilsTest.java | 461 // Make sure that secondary locales are taken into account to find the best matching 590 // provides multiple locales, we try to enable multiple subtypes. 788 private Context createTargetContextWithLocales(final LocaleList locales) { argument 790 resourceConfiguration.setLocales(locales); 796 private Resources getResourcesForLocales(Locale... locales) { argument 797 return createTargetContextWithLocales(new LocaleList(locales)).getResources(); 1049 final ArrayList<Locale> locales = 1051 assertEquals(3, locales.size()); 1052 assertEquals(LOCALE_EN_US, locales.get(0)); 1053 assertEquals(LOCALE_EN_GB, locales [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SelectionActionModeHelper.java | 416 CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) { 417 reset(textClassifier, text, selectionStart, selectionEnd, true, locales); 423 boolean resetSelectionTag, LocaleList locales) { 430 mLocales = locales; 415 TextClassificationHelper(TextClassifier textClassifier, CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) argument 421 reset(TextClassifier textClassifier, CharSequence text, int selectionStart, int selectionEnd, boolean resetSelectionTag, LocaleList locales) argument
|
H A D | TextView.java | 3540 * for CJK locales to disambiguate Hanzi/Kanji/Hanja characters). It also affects 3543 * @param locales the {@link LocaleList} for drawing text, must not be null or empty. 3547 public void setTextLocales(@NonNull @Size(min = 1) LocaleList locales) { argument 3549 mTextPaint.setTextLocales(locales); 5722 final LocaleList locales = getImeHintLocales(); 5723 if (locales == null) { 5728 return locales.get(0); 6037 * Change "hint" locales associated with the text view, which will be reported to an IME with 11309 // Phone numbers must be in the direction of the locale's digits. Most locales have LTR 11310 // digits, but some locales, suc [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AssetManager2.cpp | 179 std::set<std::string> locales; local 185 package->CollectLocales(merge_equivalent_languages, &locales); 188 return locales;
|
H A D | AssetManager.cpp | 721 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const argument 725 res->getLocales(locales, includeSystemLocales, true /* mergeEquivalentLangs */);
|
H A D | ResourceTypes.cpp | 2227 // Non-matching locales have been filtered out, so both resources 2246 // for US English and similar locales than locales that are a descendant 2592 // For backward compatibility and supporting private-use locales, we 2595 // the scripts, they should be the same for the locales to match. 3410 // determining non-system locales. 5997 void ResTable::getLocales(Vector<String8>* locales, bool includeSystemLocales, argument 6004 const auto beginIter = locales->begin(); 6005 const auto endIter = locales->end(); 6009 locales [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | IccRecords.java | 554 String[] locales = mContext.getAssets().getLocales(); 556 mPrefLang = findBestLanguage(efLi, locales); 563 mPrefLang = findBestLanguage(efPl, locales); 570 protected static String findBestLanguage(byte[] languages, String[] locales) argument 572 if ((languages == null) || (locales == null)) return null; 577 for (int j = 0; j < locales.length; j++) { 578 if (locales[j] != null && locales[j].length() >= 2 && 579 locales[j].substring(0, 2).equalsIgnoreCase(lang)) {
|
/frameworks/base/core/java/android/content/res/ |
H A D | Configuration.java | 1696 * Get the locale list. This is the preferred way for getting the locales (instead of using 1707 * Set the locale list. This is the preferred way for setting up the locales (instead of using 1715 * @param locales The locale list. If null, an empty LocaleList will be assigned. 1717 public void setLocales(@Nullable LocaleList locales) { argument 1718 mLocaleList = locales == null ? LocaleList.getEmptyLocaleList() : locales; 2260 private static final String XML_ATTR_LOCALES = "locales";
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 551 static jint setTextLocales(JNIEnv* env, jobject clazz, jlong objHandle, jstring locales) { argument 553 ScopedUtfChars localesChars(env, locales);
|
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 582 Vector<String8> locales; local 589 am->getLocales(&locales, includeSystemLocales); 591 const int N = locales.size(); 599 jstring str = env->NewStringUTF(locales[i].string()); 612 return getLocales(env, clazz, true /* include system locales */); 617 return getLocales(env, clazz, false /* don't include system locales */);
|
/frameworks/base/tools/aapt/ |
H A D | Command.cpp | 970 Vector<String8> locales; local 971 res.getLocales(&locales); 1305 const size_t NL = locales.size(); 1307 const char* localeStr = locales[i].string(); 2265 printf("locales:"); 2266 const size_t NL = locales.size(); 2268 const char* localeStr = locales[i].string();
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Paint.java | 1334 * the order those locales appear in the list is considered for deciding the font. 1341 * system locales. This assumes that the text to be rendered will most likely be in the user's 1347 * the text locale here. Specifying the text locales just helps it do a better 1350 * @param locales the paint's locale list for drawing text, must not be null or empty. 1352 public void setTextLocales(@NonNull @Size(min=1) LocaleList locales) { argument 1353 if (locales == null || locales.isEmpty()) { 1354 throw new IllegalArgumentException("locales cannot be null or empty"); 1356 if (locales.equals(mLocales)) return; 1357 mLocales = locales; 2791 nSetTextLocales(long paintPtr, String locales) argument [all...] |
/frameworks/data-binding/prebuilds/1.0-rc0/ |
H A D | databinding-studio-bundle.jar | META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ... |