/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigurationTest.java | 119 cfg1.locale = Locale.forLanguageTag("en"); in testCompareTo() 120 cfg2.locale = Locale.forLanguageTag("en-Shaw"); in testCompareTo() 122 cfg1.locale = Locale.forLanguageTag("en-Shaw"); in testCompareTo() 123 cfg2.locale = Locale.forLanguageTag("en"); in testCompareTo() 126 cfg1.locale = new Locale("", "", "2"); in testCompareTo() 127 cfg2.locale = new Locale("", "", "3"); in testCompareTo() 129 cfg1.locale = new Locale("", "", "3"); in testCompareTo() 130 cfg2.locale = new Locale("", "", "2"); in testCompareTo() 133 cfg1.locale = new Locale("", "2", ""); in testCompareTo() 134 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/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 | 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()
|
D | TimeTest.java | 3239 private static boolean changeJavaAndAndroidLocale(Locale locale, boolean force) { in changeJavaAndAndroidLocale() argument 3252 if (!force && !sSystemLocales.contains(locale)) { in changeJavaAndAndroidLocale() 3257 Locale.setDefault(locale); in changeJavaAndAndroidLocale() 3262 configuration.locale = locale; in changeJavaAndAndroidLocale()
|
/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 | 114 Locale locale = new Locale(lang, country); in onGetDefaultVoiceNameFor() local 115 if (supportedCountries.contains(locale)) { in onGetDefaultVoiceNameFor() 116 return locale.toLanguageTag(); in onGetDefaultVoiceNameFor()
|
/cts/tests/tests/text/src/android/text/cts/ |
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()
|
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 | BoringLayoutTest.java | 498 for (LocaleList locale : locales) { in testPrecomputedText() 500 paint.setTextLocales(locale); in testPrecomputedText()
|
D | StaticLayoutTest.java | 1443 for (LocaleList locale : locales) { 1445 paint.setTextLocales(locale);
|
/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/tests/text/src/android/text/method/cts/ |
D | DateKeyListenerTest.java | 196 MockDateKeyListener(Locale locale) { in MockDateKeyListener() argument 197 super(locale); in MockDateKeyListener()
|
D | TimeKeyListenerTest.java | 211 MockTimeKeyListener(Locale locale) { in MockTimeKeyListener() argument 212 super(locale); in MockTimeKeyListener()
|
D | DateTimeKeyListenerTest.java | 216 MockDateTimeKeyListener(Locale locale) { in MockDateTimeKeyListener() argument 217 super(locale); in MockDateTimeKeyListener()
|
D | DigitsKeyListenerTest.java | 996 MockDigitsKeyListener(Locale locale) { in MockDigitsKeyListener() argument 997 super(locale); in MockDigitsKeyListener() 1000 MockDigitsKeyListener(Locale locale, boolean sign, boolean decimal) { in MockDigitsKeyListener() argument 1001 super(locale, sign, decimal); in MockDigitsKeyListener()
|
/cts/tests/tests/view/src/android/view/textclassifier/cts/ |
D | TextClassificationManagerTest.java | 276 final ULocale locale = language.getLocale(i); in assertValidResult() local 277 assertNotNull(locale); in assertValidResult() 278 final float confidenceScore = language.getConfidenceScore(locale); in assertValidResult()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | LocaleListTest.java | 334 final Locale locale = localeList.get(index); in resetDefaultLocaleList() local 335 if (topLocale != null && !topLocale.equals(locale)) { in resetDefaultLocaleList() 336 newLocales.add(locale); in resetDefaultLocaleList()
|
/cts/tools/release-parser/tests/resources/ |
D | build.prop | 35 ro.product.locale=en-US
|
D | build.prop.pb.txt | 90 key: "ro.product.locale"
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 562 private static void updateLocale(Resources r, Locale locale) { in updateLocale() argument 564 c.locale = locale; in updateLocale()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 795 Locale locale = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testGetSimLocale() local 797 Log.d(TAG, "testGetSimLocale: " + locale); in testGetSimLocale() 798 assertNotNull(locale); in testGetSimLocale()
|
/cts/tools/cts-api-coverage/proto/ |
D | cts_report.proto | 180 repeated string locale = 8; field
|