/frameworks/base/core/tests/coretests/apks/locales/ |
H A D | Android.mk | 6 LOCAL_PACKAGE_NAME := 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/telephony/java/android/telephony/mbms/ |
H A D | ServiceInfo.java | 47 private final List<Locale> locales; field in class:ServiceInfo 64 throw new RuntimeException("bad locales length " + newLocales.size()); 70 locales = new ArrayList(newLocales); 93 locales = new ArrayList<Locale>(localesCount); 96 locales.add(l); 112 int localesCount = locales.size(); 114 for (Locale l : locales) { 160 return locales; 196 Objects.equals(locales, that.locales) [all...] |
H A D | StreamingServiceInfo.java | 38 * @param locales The languages available for this service content. 46 List<Locale> locales, String serviceId, Date start, Date end) { 47 super(names, className, locales, serviceId, start, end); 45 StreamingServiceInfo(Map<Locale, String> names, String className, List<Locale> locales, String serviceId, Date start, Date end) argument
|
/frameworks/base/core/proto/android/content/ |
H A D | configuration.proto | 33 repeated LocaleProto locales = 4;
|
/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/packages/Osu/src/com/android/hotspot2/flow/ |
H A D | OSUInfo.java | 76 Set<Locale> locales = new HashSet<>(mOSUProvider.getNames().size()); 78 locales.add(name.getLocale()); 80 return locales; 84 Set<Locale> locales = new HashSet<>(mOSUProvider.getServiceDescriptions().size()); 86 locales.add(name.getLocale()); 88 return locales; 92 Set<String> locales = new HashSet<>(mOSUProvider.getIcons().size()); 94 locales.add(iconInfo.getLanguage()); 96 return locales;
|
/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_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 | 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 | 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/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesLocaleTest.java | 59 "supported locales: " + Arrays.toString(supportedLocales), 66 final Resources resources = createResourcesWithApk(R.raw.locales); 83 final Resources resources = createResourcesWithApk(R.raw.locales);
|
/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/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | IccRecords.java | 597 String[] locales = mContext.getAssets().getLocales(); 599 mPrefLang = findBestLanguage(efLi, locales); 606 mPrefLang = findBestLanguage(efPl, locales); 613 protected static String findBestLanguage(byte[] languages, String[] locales) argument 615 if ((languages == null) || (locales == null)) return null; 620 for (int j = 0; j < locales.length; j++) { 621 if (locales[j] != null && locales[j].length() >= 2 && 622 locales[j].substring(0, 2).equalsIgnoreCase(lang)) {
|
/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/java/android/widget/ |
H A D | TextInputTimePickerView.java | 145 final LocaleList locales = mContext.getResources().getConfiguration().getLocales(); 146 mHourEditText.setImeHintLocales(locales); 147 mMinuteEditText.setImeHintLocales(locales);
|
H A D | SelectionActionModeHelper.java | 630 CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) { 631 init(textClassifier, text, selectionStart, selectionEnd, locales); 636 CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) { 643 mLocales = locales; 629 TextClassificationHelper(TextClassifier textClassifier, CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) argument 635 init(TextClassifier textClassifier, CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) argument
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputMethodUtils.java | 153 // some particular locales but "not default" for other locales. 163 // If no fallback locale is found in the above condition, find fallback locales regardless 565 // For each non-keyboard mode, extract subtypes with system locales. 1463 final ArrayList<Locale> locales = new ArrayList<>(); 1465 locales.add(systemLocaleLanguageCountryVariant); 1477 locales.add(systemLocaleLanguageCountry); 1480 locales.add(LOCALE_EN_US); 1483 locales.add(LOCALE_EN_GB); 1485 locales [all...] |
/frameworks/base/core/java/android/hardware/soundtrigger/ |
H A D | KeyphraseEnrollmentInfo.java | 236 // Get the supported locales. 247 ArraySet<Locale> locales = new ArraySet<>(); 248 // Try adding locales if the locale string is non-empty. 253 locales.add(Locale.forLanguageTag(supportedLocalesDelimited[i])); 257 // to be affected by a malformed metadata because invalid locales were specified 277 return new KeyphraseMetadata(searchKeyphraseId, searchKeyphrase, locales, recognitionModes);
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | DateUtilsTest.java | 146 private void setLocales(LocaleList locales) { argument 149 config.setLocales(locales);
|
/frameworks/layoutlib/bridge/src/android/text/ |
H A D | StaticLayout_Delegate.java | 62 /*package*/ static void nSetLocales(long nativeBuilder, String locales, argument 66 builder.mLocales = locales;
|
/frameworks/base/core/java/android/text/ |
H A D | StaticLayout.java | 337 private long[] getHyphenators(LocaleList locales) { argument 338 final int length = locales.size(); 341 final Locale locale = locales.get(i); 368 private void setLocales(LocaleList locales) { argument 369 if (!locales.equals(mLocales)) { 370 nSetLocales(mNativePtr, locales.toLanguageTags(), getHyphenators(locales)); 371 mLocales = locales; 1324 private static native void nSetLocales(long nativePtr, String locales, argument
|