/cts/tests/tests/text/src/android/text/style/cts/ |
D | LocaleSpanTest.java | 37 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/ |
D | StaticLayoutLineBreakingVariantsTest.java | 38 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()
|
D | BoringLayoutTest.java | 483 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()
|
D | StaticLayoutTest.java | 1430 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/ |
D | LocaleDeviceInfo.java | 43 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/ |
D | LocaleListTest.java | 279 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/ |
D | DeviceInfoActivity.java | 179 String[] locales = getAssets().getLocales(); in onCreate() local 181 for (String s : locales) { in onCreate()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 200 String locales[] = mAssets.getNonSystemLocales(); in testGetNonSystemLocales() local 201 HashSet<String> localesSet = new HashSet<String>(Arrays.asList(locales)); in testGetNonSystemLocales()
|
D | ResourcesTest.java | 285 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()
|
D | ConfigTest.java | 1406 String[] locales = am.getLocales(); in testGetLocalesConvertsTlToFil() local 1409 for (String locale : locales) { in testGetLocalesConvertsTlToFil()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_fonts_cts_SystemFonts.cpp | 115 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/ |
D | CtsStreamingService.java | 76 List<Locale> locales = new ArrayList<Locale>() {{ 80 STREAMING_SERVICE_INFO = new StreamingServiceInfo(localeDict, "class1", locales,
|
D | CtsDownloadService.java | 125 List<Locale> locales = new ArrayList<Locale>() {{ 133 FILE_SERVICE_INFO = new FileServiceInfo(localeDict, "class1", locales,
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioPresentationTest.java | 193 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/ |
D | TimeTest.java | 3260 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()
|