Searched refs:locales (Results 1 – 8 of 8) sorted by relevance
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | LocaleDeviceInfo.java | 30 List<String> locales = Arrays.asList( in collectDeviceInfo() local 32 if (locales.isEmpty()) { in collectDeviceInfo() 34 locales.add("en_US"); in collectDeviceInfo() 36 store.addListResult("locale", locales); in collectDeviceInfo()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | LocaleSpanTest.java | 29 private void checkGetLocales(@NonNull final LocaleList locales) { in checkGetLocales() argument 30 final LocaleSpan span = new LocaleSpan(locales); in checkGetLocales() 31 assertEquals(locales.get(0), span.getLocale()); in checkGetLocales() 32 assertEquals(locales, span.getLocales()); in checkGetLocales() 35 assertEquals(locales.get(0), cloned.getLocale()); in checkGetLocales() 36 assertEquals(locales, cloned.getLocales()); in checkGetLocales()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | LocaleListTest.java | 276 final LocaleList locales = LocaleList.forLanguageTags("ae"); in testSetDefault_oneLocale() local 277 LocaleList.setDefault(locales); in testSetDefault_oneLocale() 280 assertEquals(locales, LocaleList.getDefault()); in testSetDefault_oneLocale() 281 assertEquals(locales, LocaleList.getAdjustedDefault()); in testSetDefault_oneLocale() 292 final LocaleList locales = LocaleList.forLanguageTags("ae,en"); in testSetDefault_twoLocales() local 293 LocaleList.setDefault(locales); in testSetDefault_twoLocales() 296 assertEquals(locales, LocaleList.getDefault()); in testSetDefault_twoLocales() 297 assertEquals(locales, LocaleList.getAdjustedDefault()); in testSetDefault_twoLocales()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 172 String locales[] = mAssets.getNonSystemLocales(); in testGetNonSystemLocales() local 173 HashSet<String> localesSet = new HashSet<String>(Arrays.asList(locales)); in testGetNonSystemLocales()
|
D | ResourcesTest.java | 261 final LocaleList locales = res.getConfiguration().getLocales(); in testUpdateConfiguration_copyLocales() local 262 assertTrue(LocaleList.forLanguageTags("az-Arab,ru").equals(locales) || in testUpdateConfiguration_copyLocales() 263 LocaleList.forLanguageTags("ru,az-Arab").equals(locales)); in testUpdateConfiguration_copyLocales()
|
D | ConfigTest.java | 1265 String[] locales = am.getLocales(); in testGetLocalesConvertsTlToFil() local 1268 for (String locale : locales) { in testGetLocalesConvertsTlToFil()
|
/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/text/src/android/text/format/cts/ |
D | TimeTest.java | 2864 String[] locales = Resources.getSystem().getAssets().getLocales(); in maybeInitializeSystemLocales() local 2865 List<Locale> systemLocales = new ArrayList<Locale>(locales.length); in maybeInitializeSystemLocales() 2866 for (String localeStr : locales) { in maybeInitializeSystemLocales()
|