/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/ |
D | HdmiCecSystemInformationTest.java | 76 final String locale = getSystemLocale(); in cect_11_2_6_3_SetValidMenuLanguage() local 77 final String originalLanguage = extractLanguage(locale); in cect_11_2_6_3_SetValidMenuLanguage() 86 setSystemLocale(locale); in cect_11_2_6_3_SetValidMenuLanguage() 97 final String locale = getSystemLocale(); in cect_11_2_6_4_SetInvalidMenuLanguage() local 98 final String originalLanguage = extractLanguage(locale); in cect_11_2_6_4_SetInvalidMenuLanguage() 105 setSystemLocale(locale); in cect_11_2_6_4_SetInvalidMenuLanguage() 117 final String locale = getSystemLocale(); in cect_11_2_6_5_SetValidMenuLanguageFromInvalidSource() local 118 final String originalLanguage = extractLanguage(locale); in cect_11_2_6_5_SetValidMenuLanguageFromInvalidSource() 125 setSystemLocale(locale); in cect_11_2_6_5_SetValidMenuLanguageFromInvalidSource() 145 final String locale = getSystemLocale(); in setMenuLanguageNotHandledWhenDisabled() local [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigurationTest.java | 127 cfg1.locale = Locale.forLanguageTag("en"); in testCompareTo() 128 cfg2.locale = Locale.forLanguageTag("en-Shaw"); in testCompareTo() 130 cfg1.locale = Locale.forLanguageTag("en-Shaw"); in testCompareTo() 131 cfg2.locale = Locale.forLanguageTag("en"); in testCompareTo() 134 cfg1.locale = new Locale("", "", "2"); in testCompareTo() 135 cfg2.locale = new Locale("", "", "3"); in testCompareTo() 137 cfg1.locale = new Locale("", "", "3"); in testCompareTo() 138 cfg2.locale = new Locale("", "", "2"); in testCompareTo() 141 cfg1.locale = new Locale("", "2", ""); in testCompareTo() 142 cfg2.locale = new Locale("", "3", ""); in testCompareTo() [all …]
|
D | ConfigTest.java | 115 mConfig.locale = Locale.ROOT; in TotalConfig() 179 mConfig.locale = new Locale.Builder() in setProperty() 180 .setLocale(mConfig.locale) in setProperty() 185 mConfig.locale = new Locale.Builder() in setProperty() 186 .setLocale(mConfig.locale) in setProperty() 191 mConfig.locale = new Locale.Builder() in setProperty() 192 .setLocale(mConfig.locale) in setProperty() 197 mConfig.locale = new Locale.Builder() in setProperty() 198 .setLocale(mConfig.locale) in setProperty() 1409 for (String locale : locales) { in testGetLocalesConvertsTlToFil() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | SuggestionSpanTest.java | 56 final Locale locale = Locale.forLanguageTag("az-Arab"); in testConstructorWithContext() local 57 overrideConfig.setLocales(new LocaleList(locale)); in testConstructorWithContext() 64 assertEquals(locale, span.getLocaleObject()); in testConstructorWithContext() 170 private Locale toWellFormedLocale(@Nullable final Locale locale) { in toWellFormedLocale() argument 171 if (locale == null) { in toWellFormedLocale() 175 return Locale.forLanguageTag(locale.toLanguageTag()); in toWellFormedLocale() 186 private void verifyGetLocaleObject(final Locale locale) { in verifyGetLocaleObject() argument 187 final SuggestionSpan span = new SuggestionSpan(locale, new String[0], in verifyGetLocaleObject() 191 assertEquals(toWellFormedLocale(locale), span.getLocaleObject()); in verifyGetLocaleObject() 192 assertEquals(getNonNullLocaleString(locale), span.getLocale()); in verifyGetLocaleObject() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/ |
D | Android.bp | 33 // Make sure our test locale polish is not stripped. 41 // Generate a locale split. 53 // Make sure our test locale polish is not stripped. 61 // Generate a locale split.
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | AddressTest.java | 269 Locale locale = Locale.US; in testGetLocale() local 270 Address address = new Address(locale); in testGetLocale() 271 assertSame(locale, address.getLocale()); in testGetLocale() 273 locale = Locale.UK; in testGetLocale() 274 address = new Address(locale); in testGetLocale() 275 assertSame(locale, address.getLocale()); in testGetLocale() 331 Locale locale = Locale.KOREA; in testWriteToParcel() local 332 Address address = new Address(locale); in testWriteToParcel() 337 assertEquals(locale.getLanguage(), parcel.readString()); in testWriteToParcel() 338 assertEquals(locale.getCountry(), parcel.readString()); in testWriteToParcel()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/ |
D | Android.bp | 31 // Make sure our test locale polish is not stripped. 35 // Generate a locale split. 58 // Make sure our test locale polish is not stripped. 62 // Generate a locale split.
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | StubTextToSpeechService.java | 128 Locale locale = new Locale(lang, country); in onGetDefaultVoiceNameFor() local 129 if (supportedCountries.contains(locale)) { in onGetDefaultVoiceNameFor() 130 return locale.toLanguageTag(); in onGetDefaultVoiceNameFor()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/common/ |
D | HdmiCecInvalidMessagesTest.java | 81 final String locale = getSystemLocale(); in cect_12_1_BroadcastReceivedAsDirectlyAddressed() local 82 final String originalLanguage = extractLanguage(locale); in cect_12_1_BroadcastReceivedAsDirectlyAddressed() 92 setSystemLocale(locale); in cect_12_1_BroadcastReceivedAsDirectlyAddressed()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_c/ |
D | Android.bp | 29 // Make sure our test locale polish is not stripped. 32 // Generate a locale split.
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | UserDictionary_WordsTest.java | 86 private void assertWord(String word, int frequency, String shortcut, Locale locale, in assertWord() argument 89 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale); in assertWord()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_b/ |
D | Android.bp | 29 // Make sure our test locale polish is not stripped. 32 // Generate a locale split.
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutLineBreakingVariantsTest.java | 55 private static void assertLineBreak(String text, String locale, int width, String... expected) { in assertLineBreak() argument 56 final StaticLayout layout = buildLayout(text, LocaleList.forLanguageTags(locale), width); in assertLineBreak()
|
D | AutoTextTest.java | 52 if (!config.locale.equals(Locale.getDefault())) { in setup() 53 config.locale = Locale.getDefault(); in setup()
|
D | MyanmarTest.java | 74 final Locale locale = Locale.forLanguageTag(localeName); in setupLocales() local 75 final String script = ULocale.addLikelySubtags(ULocale.forLocale(locale)).getScript(); in setupLocales() 78 sZawgyiLocales.add(locale); in setupLocales() 80 sMymrLocales.add(locale); in setupLocales()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 292 for (Locale locale : Locale.getAvailableLocales()) { in test_bug_82144() 293 Locale.setDefault(locale); in test_bug_82144() 309 + " for " + locale); in test_bug_82144() 313 assertTrue(locale.toString() + " day not found", seenDay); in test_bug_82144() 314 assertTrue(locale.toString() + " month not found", seenMonth); in test_bug_82144() 315 assertTrue(locale.toString() + " year not found", seenYear); in test_bug_82144()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | BaseHdmiCecCtsTest.java | 317 public static String extractLanguage(String locale) { in extractLanguage() argument 318 return locale.split("[^a-zA-Z]")[0]; in extractLanguage() 321 public void setSystemLocale(String locale) throws Exception { in setSystemLocale() argument 323 device.executeShellCommand("setprop " + PROPERTY_LOCALE + " " + locale); in setSystemLocale()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DateKeyListenerTest.java | 196 MockDateKeyListener(Locale locale) { in MockDateKeyListener() argument 197 super(locale); in MockDateKeyListener()
|
D | DateTimeKeyListenerTest.java | 216 MockDateTimeKeyListener(Locale locale) { in MockDateTimeKeyListener() argument 217 super(locale); in MockDateTimeKeyListener()
|
D | TimeKeyListenerTest.java | 211 MockTimeKeyListener(Locale locale) { in MockTimeKeyListener() argument 212 super(locale); in MockTimeKeyListener()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsTestActivity.java | 348 Locale locale = Locale.getDefault(); in onCreate() local 349 if (!Locale.US.equals(locale)) { in onCreate() 350 String toastMessage = "Unsupported default language " + locale + "! " + in onCreate()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierTest.java | 345 final ULocale locale = language.getLocale(i); in assertValidResult() local 346 assertNotNull(locale); in assertValidResult() 347 final float confidenceScore = language.getConfidenceScore(locale); in assertValidResult()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockContentProvider.java | 263 final String locale = queryArgs.getString(ContentResolver.QUERY_ARG_SORT_LOCALE); in query() local 264 final String safeLocale = locale.replaceAll("[^a-zA-Z]", ""); in query() 266 new String[] { locale, safeLocale }, cancellationSignal)) { in query() argument
|
/cts/tools/release-parser/tests/resources/ |
D | build.prop | 35 ro.product.locale=en-US
|
/cts/tests/tests/os/src/android/os/cts/ |
D | LocaleListTest.java | 330 final Locale locale = localeList.get(index); in resetDefaultLocaleList() local 331 if (topLocale != null && !topLocale.equals(locale)) { in resetDefaultLocaleList() 332 newLocales.add(locale); in resetDefaultLocaleList()
|