/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigurationTest.java | 111 cfg1.locale = Locale.forLanguageTag("en"); in testCompareTo() 112 cfg2.locale = Locale.forLanguageTag("en-Shaw"); in testCompareTo() 114 cfg1.locale = Locale.forLanguageTag("en-Shaw"); in testCompareTo() 115 cfg2.locale = Locale.forLanguageTag("en"); in testCompareTo() 118 cfg1.locale = new Locale("", "", "2"); in testCompareTo() 119 cfg2.locale = new Locale("", "", "3"); in testCompareTo() 121 cfg1.locale = new Locale("", "", "3"); in testCompareTo() 122 cfg2.locale = new Locale("", "", "2"); in testCompareTo() 125 cfg1.locale = new Locale("", "2", ""); in testCompareTo() 126 cfg2.locale = new Locale("", "3", ""); in testCompareTo() [all …]
|
D | ConfigTest.java | 95 mConfig.locale = Locale.ROOT; in TotalConfig() 156 mConfig.locale = new Locale.Builder() in setProperty() 157 .setLocale(mConfig.locale) in setProperty() 162 mConfig.locale = new Locale.Builder() in setProperty() 163 .setLocale(mConfig.locale) in setProperty() 168 mConfig.locale = new Locale.Builder() in setProperty() 169 .setLocale(mConfig.locale) in setProperty() 174 mConfig.locale = new Locale.Builder() in setProperty() 175 .setLocale(mConfig.locale) in setProperty() 1268 for (String locale : locales) { in testGetLocalesConvertsTlToFil() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | SuggestionSpanTest.java | 35 private Locale toWellFormedLocale(@Nullable final Locale locale) { in toWellFormedLocale() argument 36 if (locale == null) { in toWellFormedLocale() 40 return Locale.forLanguageTag(locale.toLanguageTag()); in toWellFormedLocale() 51 private void checkGetLocaleObject(final Locale locale) { in checkGetLocaleObject() argument 52 final SuggestionSpan span = new SuggestionSpan(locale, new String[0], in checkGetLocaleObject() 56 assertEquals(toWellFormedLocale(locale), span.getLocaleObject()); in checkGetLocaleObject() 57 assertEquals(getNonNullLocaleString(locale), span.getLocale()); in checkGetLocaleObject() 61 assertEquals(toWellFormedLocale(locale), cloned.getLocaleObject()); in checkGetLocaleObject() 62 assertEquals(getNonNullLocaleString(locale), cloned.getLocale()); in checkGetLocaleObject()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | LocaleUtils.java | 26 public static boolean isCurrentLocale(Context context, Locale locale) { in isCurrentLocale() argument 28 Locale currentLocale = context.getResources().getConfiguration().locale; in isCurrentLocale() 29 return locale.equals(currentLocale); in isCurrentLocale()
|
D | DateFormatTest.java | 266 for (Locale locale : Locale.getAvailableLocales()) { in test_bug_82144() 267 if (locale.toString().startsWith("haw")) { in test_bug_82144() 271 Locale.setDefault(locale); in test_bug_82144() 287 + " for " + locale); in test_bug_82144() 291 assertTrue(locale.toString() + " day not found", seenDay); in test_bug_82144() 292 assertTrue(locale.toString() + " month not found", seenMonth); in test_bug_82144() 293 assertTrue(locale.toString() + " year not found", seenYear); in test_bug_82144()
|
D | TimeTest.java | 2874 private static boolean changeJavaAndAndroidLocale(Locale locale, boolean force) { in changeJavaAndAndroidLocale() argument 2887 if (!force && !sSystemLocales.contains(locale)) { in changeJavaAndAndroidLocale() 2892 Locale.setDefault(locale); in changeJavaAndAndroidLocale() 2897 configuration.locale = locale; in changeJavaAndAndroidLocale()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AutoTextTest.java | 35 if (!config.locale.equals(Locale.getDefault())) { in testGet() 36 config.locale = Locale.getDefault(); in testGet() 81 if (!config.locale.equals(Locale.getDefault())) { in testGetSize() 82 config.locale = Locale.getDefault(); in testGetSize()
|
D | TextUtilsTest.java | 2130 Locale locale = Locale.forLanguageTag("zz"); in testGetLayoutDirectionFromLocale() local 2132 TextUtils.getLayoutDirectionFromLocale(locale)); in testGetLayoutDirectionFromLocale()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | AddressTest.java | 250 Locale locale = Locale.US; in testGetLocale() local 251 Address address = new Address(locale); in testGetLocale() 252 assertSame(locale, address.getLocale()); in testGetLocale() 254 locale = Locale.UK; in testGetLocale() 255 address = new Address(locale); in testGetLocale() 256 assertSame(locale, address.getLocale()); in testGetLocale() 307 Locale locale = Locale.KOREA; in testWriteToParcel() local 308 Address address = new Address(locale); in testWriteToParcel() 313 assertEquals(locale.getLanguage(), parcel.readString()); in testWriteToParcel() 314 assertEquals(locale.getCountry(), parcel.readString()); in testWriteToParcel()
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | StubTextToSpeechService.java | 104 Locale locale = new Locale(lang, country); in onGetDefaultVoiceNameFor() local 105 if (supportedCountries.contains(locale)) { in onGetDefaultVoiceNameFor() 106 return TtsEngines.normalizeTTSLocale(locale).toLanguageTag(); in onGetDefaultVoiceNameFor()
|
D | TextToSpeechTest.java | 83 for (Locale locale : Locale.getAvailableLocales()) { in checkAndSetLanguageAvailable() 84 int availability = getTts().isLanguageAvailable(locale); in checkAndSetLanguageAvailable() 88 getTts().setLanguage(locale); in checkAndSetLanguageAvailable()
|
/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/tests/accessibility/src/android/view/accessibility/cts/ |
D | CaptioningManagerTest.java | 157 public void onLocaleChanged(Locale locale) { in onLocaleChanged() argument 158 super.onLocaleChanged(locale); in onLocaleChanged()
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | InputMethodInfoTest.java | 229 for (final String locale : localeList) { in testInputMethodSubtypesOfSystemImes() 230 if (locale.startsWith(subtypeLanguage)) { in testInputMethodSubtypesOfSystemImes()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 545 private static void updateLocale(Resources r, Locale locale) { in updateLocale() argument 547 c.locale = locale; in updateLocale()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 4645 for (Locale locale: testLocales) { in testAllCapsLocalization() 4646 tv.setTextLocale(locale); in testAllCapsLocalization() 4647 assertEquals("Locale: " + locale.getDisplayName(), in testAllCapsLocalization() 4648 testString.toUpperCase(locale), in testAllCapsLocalization()
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 7086 private java.util.Locale locale 7151 private java.lang.String locale 7170 private java.lang.String locale 7265 private java.lang.String locale 7305 private java.lang.String locale 7321 private java.lang.String locale 38974 final transient java.util.Locale locale 39303 private transient java.util.Locale locale 39463 final java.util.Locale val$locale 39531 private java.util.Locale locale [all …]
|
D | classes.out.dex | 25395 public java.util.Locale locale 112442 public static final int locale 152637 private java.util.Locale locale
|