Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java43 mConfig.locale = Locale.getDefault(); in makeConfiguration()
96 cfg1.locale = new Locale("", "", "2"); in testCompareTo()
97 cfg2.locale = new Locale("", "", "3"); in testCompareTo()
99 cfg1.locale = new Locale("", "", "3"); in testCompareTo()
100 cfg2.locale = new Locale("", "", "2"); in testCompareTo()
103 cfg1.locale = new Locale("", "2", ""); in testCompareTo()
104 cfg2.locale = new Locale("", "3", ""); in testCompareTo()
106 cfg1.locale = new Locale("", "3", ""); in testCompareTo()
107 cfg2.locale = new Locale("", "2", ""); in testCompareTo()
110 cfg1.locale = new Locale("2", "", ""); in testCompareTo()
[all …]
DConfigTest.java95 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 …]
DPluralResourcesTest.java45 config.locale = new Locale(lang); in resourcesForLanguage()
DResourcesTest.java459 config.locale = new Locale(lang); in resourcesForLanguage()
/cts/tests/tests/text/src/android/text/format/cts/
DLocaleUtils.java26 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()
DTimeTest.java2874 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/
DAutoTextTest.java35 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()
DTextUtilsTest.java2124 Locale locale = Locale.forLanguageTag("zz"); in testGetLayoutDirectionFromLocale() local
2126 TextUtils.getLayoutDirectionFromLocale(locale)); in testGetLayoutDirectionFromLocale()
/cts/tests/tests/location/src/android/location/cts/
DAddressTest.java250 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()
274 Locale locale = Locale.KOREA; in testWriteToParcel() local
275 Address address = new Address(locale); in testWriteToParcel()
280 assertEquals(locale.getLanguage(), parcel.readString()); in testWriteToParcel()
281 assertEquals(locale.getCountry(), parcel.readString()); in testWriteToParcel()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DStubTextToSpeechService.java104 Locale locale = new Locale(lang, country); in onGetDefaultVoiceNameFor() local
105 if (supportedCountries.contains(locale)) { in onGetDefaultVoiceNameFor()
106 return TtsEngines.normalizeTTSLocale(locale).toLanguageTag(); in onGetDefaultVoiceNameFor()
DTextToSpeechTest.java85 for (Locale locale : Locale.getAvailableLocales()) { in checkAndSetLanguageAvailable()
86 int availability = getTts().isLanguageAvailable(locale); in checkAndSetLanguageAvailable()
90 getTts().setLanguage(locale); in checkAndSetLanguageAvailable()
/cts/tests/tests/provider/src/android/provider/cts/
DUserDictionary_WordsTest.java88 private void assertWord(String word, int frequency, String shortcut, Locale locale, in assertWord() argument
91 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale); in assertWord()
102 assertEquals(locale.toString(), cursor.getString(LOCALE_INDEX)); in assertWord()
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java155 public void onLocaleChanged(Locale locale) { in onLocaleChanged() argument
156 super.onLocaleChanged(locale); in onLocaleChanged()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java156 if (!oldConfiguration.locale.equals(Locale.US)) { in setUp()
157 mOldLocale = oldConfiguration.locale; in setUp()
160 newConfiguration.locale = Locale.US; in setUp()
188 newConfiguration.locale = mOldLocale; in tearDown()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java231 for (final String locale : localeList) { in testInputMethodSubtypesOfSystemImes()
232 if (locale.startsWith(subtypeLanguage)) { in testInputMethodSubtypesOfSystemImes()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java498 private static void updateLocale(Resources r, Locale locale) { in updateLocale() argument
500 c.locale = locale; in updateLocale()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java4055 for (Locale locale: testLocales) { in testAllCapsLocalization()
4056 tv.setTextLocale(locale); in testAllCapsLocalization()
4057 assertEquals("Locale: " + locale.getDisplayName(), in testAllCapsLocalization()
4058 testString.toUpperCase(locale), in testAllCapsLocalization()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex7086 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 …]