Searched refs:newForTest (Results 1 – 3 of 3) sorted by relevance
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | LocaleSetTest.java | 28 assertEquals(Locale.CANADA, LocaleSet.newForTest(Locale.CANADA).getPrimaryLocale()); in testPrimaryLocale() 29 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN).getPrimaryLocale()); in testPrimaryLocale() 30 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN, Locale.CANADA) in testPrimaryLocale() 122 assertFalse(LocaleSet.newForTest(Locale.ENGLISH) in testShouldPreferJapanese() 125 assertTrue(LocaleSet.newForTest(Locale.JAPAN) in testShouldPreferJapanese() 127 assertTrue(LocaleSet.newForTest(Locale.ENGLISH, Locale.KOREAN, Locale.JAPAN) in testShouldPreferJapanese() 129 assertTrue(LocaleSet.newForTest(Locale.JAPAN, Locale.TRADITIONAL_CHINESE) in testShouldPreferJapanese() 131 assertTrue(LocaleSet.newForTest(Locale.JAPAN, Locale.SIMPLIFIED_CHINESE) in testShouldPreferJapanese() 133 assertFalse(LocaleSet.newForTest(Locale.TRADITIONAL_CHINESE, Locale.JAPAN) in testShouldPreferJapanese() 137 assertFalse(LocaleSet.newForTest(Locale.SIMPLIFIED_CHINESE, Locale.JAPAN) in testShouldPreferJapanese() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLocaleUtils.java | 530 return new ContactLocaleUtils(LocaleSet.newForTest(locales)); in newInstanceForTest() 535 setLocales(LocaleSet.newForTest(locales)); in setLocaleForTest()
|
D | LocaleSet.java | 47 public static LocaleSet newForTest(Locale... locales) { in newForTest() method in LocaleSet
|