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

12

/frameworks/minikin/tests/unittest/
H A DFontLanguageListCacheTest.cpp54 const LocaleList& locales = LocaleListCache::getById(LocaleListCache::getId("en")); local
55 ASSERT_EQ(1UL, locales.size());
56 EXPECT_EQ(english, locales[0]);
H A DHyphenatorMapTest.cpp137 const LocaleList& locales = LocaleListCache::getById(id); local
138 MINIKIN_ASSERT(locales.size() == 1, "The input must be a single locale");
139 return locales[0];
H A DFontFamilyTest.cpp296 const LocaleList& locales = createLocaleList("en,en-Latn"); local
297 EXPECT_EQ(1u, locales.size());
298 EXPECT_EQ(english, locales[0]);
/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A DTextViewSetTextLocalePerfTest.java39 public static Collection locales() { method in class:TextViewSetTextLocalePerfTest
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DDateUtilsTest.java154 private void setLocales(LocaleList locales) { argument
157 config.setLocales(locales);
/frameworks/base/telephony/java/android/telephony/mbms/
H A DStreamingServiceInfo.java38 * @param locales The languages available for this service content.
47 List<Locale> locales, String serviceId, Date start, Date end) {
48 super(names, className, locales, serviceId, start, end);
46 StreamingServiceInfo(Map<Locale, String> names, String className, List<Locale> locales, String serviceId, Date start, Date end) argument
H A DServiceInfo.java46 private final List<Locale> locales; field in class:ServiceInfo
63 throw new RuntimeException("bad locales length " + newLocales.size());
69 locales = new ArrayList(newLocales);
92 locales = new ArrayList<Locale>(localesCount);
95 locales.add(l);
111 int localesCount = locales.size();
113 for (Locale l : locales) {
159 return locales;
195 Objects.equals(locales, that.locales)
[all...]
/frameworks/minikin/libs/minikin/
H A DLocaleListCache.h41 static inline uint32_t getId(const std::string& locales) { argument
42 return getInstance().getIdInternal(locales);
54 uint32_t getIdInternal(const std::string& locales);
H A DLocaleListCache.cpp113 uint32_t LocaleListCache::getIdInternal(const std::string& locales) { argument
115 const auto& it = mLocaleListLookupTable.find(locales);
122 LocaleList fontLocales(parseLocaleList(locales));
127 mLocaleListLookupTable.insert(std::make_pair(locales, nextId));
H A DLocale.cpp33 uint32_t registerLocaleList(const std::string& locales) { argument
34 return LocaleListCache::getId(locales);
419 LocaleList::LocaleList(std::vector<Locale>&& locales) : mLocales(std::move(locales)) { argument
/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
164 * @param locales the list of locales whose names is to be displayed.
167 * @param maxLocales maximum number of locales to display. Generates ellipsis after that.
171 LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) {
175 final boolean ellipsisNeeded = locales.size() > maxLocales;
181 listCount = localeCount = locales.size();
185 localeNames[i] = LocaleHelper.getDisplayName(locales.get(i), dispLocale, false);
217 * <p>Gives priority to suggested locales (t
170 getDisplayLocaleList( LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) argument
[all...]
H A DLocalePicker.java99 final String[] locales = getSystemAssetLocales();
100 List<String> localeList = new ArrayList<String>(locales.length);
101 Collections.addAll(localeList, locales);
259 * Requests the system to update the list of system locales.
263 public static void updateLocales(LocaleList locales) { argument
268 config.setLocales(locales);
/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/libs/androidfw/tests/
H A DAssetManager2_bench.cpp190 std::set<std::string> locales = local
192 benchmark::DoNotOptimize(locales);
208 Vector<String8> locales; local
209 table.getLocales(&locales, true /*includeSystemLocales*/, true /*mergeEquivalentLangs*/);
210 benchmark::DoNotOptimize(locales);
H A DAssetManager2_test.cpp492 std::set<std::string> locales = assetmanager.GetResourceLocales(); local
495 EXPECT_EQ(3u, locales.size());
496 EXPECT_GT(locales.count("sv"), 0u);
497 EXPECT_GT(locales.count("de"), 0u);
498 EXPECT_GT(locales.count("fr"), 0u);
500 locales = assetmanager.GetResourceLocales(true /*exclude_system*/);
501 // We expect the de and fr locales from basic_de_fr assets.
502 EXPECT_EQ(2u, locales.size());
503 EXPECT_GT(locales.count("de"), 0u);
504 EXPECT_GT(locales
[all...]
H A DResTable_test.cpp421 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/os/
H A DLocaleList.java36 * preferences for locales.
40 // This is a comma-separated list of the locales in the LocaleList created at construction time,
177 * @throws NullPointerException if any of the input locales is <code>null</code>.
178 * @throws IllegalArgumentException if any of the input locales repeat.
336 // The locales are not the same, but the languages are the same, and one of the locales
342 // If we can't guess a script, we don't know enough about the locales' language to find
343 // if the locales match. So we fall back to old behavior of matching, which considered
344 // locales with different regions different.
351 // There is no match if the two locales us
549 setDefault(@onNull @izemin=1) LocaleList locales) argument
561 setDefault(@onNull @izemin=1) LocaleList locales, int localeIndex) argument
[all...]
/frameworks/base/core/java/android/view/textclassifier/
H A DSelectionSessionLogger.java242 List<Locale> locales) {
245 Preconditions.checkNotNull(locales);
247 for (Locale locale : locales) {
240 createId( String text, int start, int end, Context context, int modelVersion, List<Locale> locales) argument
H A DTextClassifierImplNative.java108 /** Returns a comma separated list of locales supported by the model as BCP 47 tags. */
213 SelectionOptions(String locales) { argument
214 mLocales = locales;
H A DTextClassifierImpl.java335 private static String concatenateLocales(@Nullable LocaleList locales) { argument
336 return (locales == null) ? "" : locales.toLanguageTags();
342 * The basic logic is: we ignore all models that don't support any of the target locales. For
379 // Factory models should never have overlapping locales, so the order doesn't matter.
511 /** All locales supported by the model. */
553 return String.format(Locale.US, "ModelFile { path=%s name=%s version=%d locales=%s }",
/frameworks/base/tools/aapt2/configuration/
H A DConfigurationParser.h52 * acts as a special case for catch all. This can allow all locales to be kept,
113 std::vector<ConfigDescription> locales; member in struct:aapt::configuration::OutputArtifact
/frameworks/support/compat/src/main/java/androidx/core/os/
H A DLocaleListHelper.java37 * preferences for locales.
44 // This is a comma-separated list of the locales in the LocaleListHelper created at construction
166 * @throws NullPointerException if any of the input locales is <code>null</code>.
167 * @throws IllegalArgumentException if any of the input locales repeat.
320 // The locales are not the same, but the languages are the same, and one of the locales
326 // If we can't guess a script, we don't know enough about the locales' language to find
327 // if the locales match. So we fall back to old behavior of matching, which considered
328 // locales with different regions different.
335 // There is no match if the two locales us
549 setDefault(@onNull @izemin = 1) LocaleListHelper locales) argument
562 setDefault(@onNull @izemin = 1) LocaleListHelper locales, int localeIndex) argument
[all...]
/frameworks/base/tools/aapt2/test/
H A DBuilders.cpp252 artifact_.locales.push_back(locale);
280 const std::string& label, std::vector<std::string> locales) {
282 for (const auto& locale : locales) {
279 AddLocaleGroup( const std::string& label, std::vector<std::string> locales) argument
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
H A DInputMethodUtilsTest.java502 // Make sure that secondary locales are taken into account to find the best matching
631 // provides multiple locales, we try to enable multiple subtypes.
841 private Context createTargetContextWithLocales(final LocaleList locales) { argument
843 resourceConfiguration.setLocales(locales);
849 private Resources getResourcesForLocales(Locale... locales) { argument
850 return createTargetContextWithLocales(new LocaleList(locales)).getResources();
1102 final ArrayList<Locale> locales =
1104 assertEquals(3, locales.size());
1105 assertEquals(LOCALE_EN_US, locales.get(0));
1106 assertEquals(LOCALE_EN_GB, locales
[all...]

Completed in 1685 milliseconds

12