Home
last modified time | relevance | path

Searched refs:locales (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/text/src/android/text/style/cts/
DLocaleSpanTest.java37 private void verifyGetLocales(@NonNull final LocaleList locales) { in verifyGetLocales() argument
38 final LocaleSpan span = new LocaleSpan(locales); in verifyGetLocales()
39 assertEquals(locales.get(0), span.getLocale()); in verifyGetLocales()
40 assertEquals(locales, span.getLocales()); in verifyGetLocales()
43 assertEquals(locales.get(0), cloned.getLocale()); in verifyGetLocales()
44 assertEquals(locales, cloned.getLocales()); in verifyGetLocales()
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingVariantsTest.java38 private static TextPaint setupPaint(LocaleList locales) { in setupPaint() argument
46 paint.setTextLocales(locales); in setupPaint()
50 private static StaticLayout buildLayout(String text, LocaleList locales, int width) { in buildLayout() argument
52 text, 0, text.length(), setupPaint(locales), width).build(); in buildLayout()
DBoringLayoutTest.java483 LocaleList[] locales = { in testPrecomputedText() local
498 for (LocaleList locale : locales) { in testPrecomputedText()
516 for (int localei = 0; localei < locales.length; localei++) { in testPrecomputedText()
523 precomputedPaint.setTextLocales(locales[localei]); in testPrecomputedText()
524 layoutPaint.setTextLocales(locales[(localei + 1) % locales.length]); in testPrecomputedText()
DStaticLayoutTest.java1430 LocaleList[] locales = {
1444 for (LocaleList locale : locales) {
1463 for (int localei = 0; localei < locales.length; localei++) {
1470 p1.setTextLocales(locales[localei]);
1471 p2.setTextLocales(locales[(localei + 1) % locales.length]);
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DLocaleDeviceInfo.java43 List<String> locales = Arrays.asList( in collectDeviceInfo() local
45 if (locales.isEmpty()) { in collectDeviceInfo()
47 locales.add("en_US"); in collectDeviceInfo()
49 store.addListResult("locale", locales); in collectDeviceInfo()
/cts/tests/tests/os/src/android/os/cts/
DLocaleListTest.java279 final LocaleList locales = LocaleList.forLanguageTags("ae"); in testSetDefault_oneLocale() local
280 LocaleList.setDefault(locales); in testSetDefault_oneLocale()
283 assertEquals(locales, LocaleList.getDefault()); in testSetDefault_oneLocale()
284 assertEquals(locales, LocaleList.getAdjustedDefault()); in testSetDefault_oneLocale()
295 final LocaleList locales = LocaleList.forLanguageTags("ae,en"); in testSetDefault_twoLocales() local
296 LocaleList.setDefault(locales); in testSetDefault_twoLocales()
299 assertEquals(locales, LocaleList.getDefault()); in testSetDefault_twoLocales()
300 assertEquals(locales, LocaleList.getAdjustedDefault()); in testSetDefault_twoLocales()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoActivity.java179 String[] locales = getAssets().getLocales(); in onCreate() local
181 for (String s : locales) { in onCreate()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManagerTest.java200 String locales[] = mAssets.getNonSystemLocales(); in testGetNonSystemLocales() local
201 HashSet<String> localesSet = new HashSet<String>(Arrays.asList(locales)); in testGetNonSystemLocales()
DResourcesTest.java285 final LocaleList locales = res.getConfiguration().getLocales(); in testUpdateConfiguration_copyLocales() local
286 assertTrue(LocaleList.forLanguageTags("az-Arab,ru").equals(locales) || in testUpdateConfiguration_copyLocales()
287 LocaleList.forLanguageTags("ru,az-Arab").equals(locales)); in testUpdateConfiguration_copyLocales()
DConfigTest.java1406 String[] locales = am.getLocales(); in testGetLocalesConvertsTlToFil() local
1409 for (String locale : locales) { in testGetLocalesConvertsTlToFil()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_fonts_cts_SystemFonts.cpp115 FontMatcher& setLocales(const std::string& locales) { in setLocales() argument
116 AFontMatcher_setLocales(mMatcher.get(), locales.c_str()); in setLocales()
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/
DCtsStreamingService.java76 List<Locale> locales = new ArrayList<Locale>() {{
80 STREAMING_SERVICE_INFO = new StreamingServiceInfo(localeDict, "class1", locales,
DCtsDownloadService.java125 List<Locale> locales = new ArrayList<Locale>() {{
133 FILE_SERVICE_INFO = new FileServiceInfo(localeDict, "class1", locales,
/cts/tests/tests/media/src/android/media/cts/
DAudioPresentationTest.java193 private static Map<ULocale, CharSequence> localeToULocale(Map<Locale, CharSequence> locales) { in localeToULocale() argument
195 for (Map.Entry<Locale, CharSequence> entry : locales.entrySet()) { in localeToULocale()
/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java3260 String[] locales = Resources.getSystem().getAssets().getLocales(); in maybeInitializeSystemLocales() local
3261 List<Locale> systemLocales = new ArrayList<Locale>(locales.length); in maybeInitializeSystemLocales()
3262 for (String localeStr : locales) { in maybeInitializeSystemLocales()