/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigurationTest.java | 43 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 …]
|
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 …]
|
D | PluralResourcesTest.java | 45 config.locale = new Locale(lang); in resourcesForLanguage()
|
D | ResourcesTest.java | 459 config.locale = new Locale(lang); in resourcesForLanguage()
|
/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 | 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 | 2124 Locale locale = Locale.forLanguageTag("zz"); in testGetLayoutDirectionFromLocale() local 2126 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() 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/ |
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 | 85 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/ |
D | UserDictionary_WordsTest.java | 88 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/ |
D | CaptioningManagerTest.java | 155 public void onLocaleChanged(Locale locale) { in onLocaleChanged() argument 156 super.onLocaleChanged(locale); in onLocaleChanged()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | BasePrintTest.java | 156 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/ |
D | InputMethodInfoTest.java | 231 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/ |
D | SplitAppTest.java | 498 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/ |
D | TextViewTest.java | 4055 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/ |
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 …]
|