Home
last modified time | relevance | path

Searched refs:LocaleHelper (Results 1 – 13 of 13) sorted by relevance

/frameworks/opt/localepicker/tests/src/com/android/localepicker/
DLocaleHelperTest.java21 import com.android.localepicker.LocaleHelper.LocaleInfoComparator;
37 String sentenceCase = LocaleHelper.toSentenceCase("hello Google", Locale.US); in toSentenceCase_shouldUpperCaseFirstLetter()
43 String lowerCase = LocaleHelper.normalizeForSearch("english", Locale.US); in normalizeForSearch_sameStrings_shouldBeEqualAfterNormalized()
44 String upperCase = LocaleHelper.normalizeForSearch("ENGLISH", Locale.US); in normalizeForSearch_sameStrings_shouldBeEqualAfterNormalized()
51 LocaleHelper.getDisplayName(Locale.US, Locale.US, /* sentenceCase */ true); in getDisplayName_shouldReturnLocaleDisplayName()
58 LocaleHelper.getDisplayName( in getDisplayName_withDifferentLocale_shouldReturnLocalizedDisplayName()
67 String displayCountry = LocaleHelper.getDisplayCountry(Locale.GERMANY, Locale.GERMANY); in getDisplayCountry_shouldReturnLocalizedCountryName()
DSuggestedLocaleAdapterTest.java21 import com.android.localepicker.LocaleHelper.LocaleInfoComparator;
/frameworks/opt/localepicker/src/com/android/localepicker/
DLocaleStore.java126 LocaleHelper.getDisplayName(mLocale, mLocale, true /* sentence case */); in getFullNameNative()
133 mFullCountryNameNative = LocaleHelper.getDisplayCountry(mLocale, mLocale); in getFullCountryNameNative()
140 return LocaleHelper.getDisplayCountry(mLocale); in getFullCountryNameInUiLanguage()
150 return LocaleHelper.getDisplayName(mLocale, true /* sentence case */); in getFullNameInUiLanguage()
159 Locale parentWithScript = getParent(LocaleHelper.addLikelySubtags(baseLocale)); in getLangScriptKey()
DSuggestedLocaleAdapter.java241 public void sort(LocaleHelper.LocaleInfoComparator comp) { in sort()
263 String prefixString = LocaleHelper.normalizeForSearch(prefix.toString(), locale); in performFiltering()
270 final String nameToCheck = LocaleHelper.normalizeForSearch( in performFiltering()
272 final String nativeNameToCheck = LocaleHelper.normalizeForSearch( in performFiltering()
DLocaleHelper.java33 public class LocaleHelper { class
/frameworks/base/core/java/com/android/internal/app/
DSuggestedLocaleAdapter.java338 public void sort(LocaleHelper.LocaleInfoComparator comp) { in sort()
360 String prefixString = LocaleHelper.normalizeForSearch(prefix.toString(), locale); in performFiltering()
367 final String nameToCheck = LocaleHelper.normalizeForSearch( in performFiltering()
369 final String nativeNameToCheck = LocaleHelper.normalizeForSearch( in performFiltering()
DLocaleStore.java215 LocaleHelper.getDisplayName(locale, locale, true /* sentence case */); in getFullNameNative()
222 mFullCountryNameNative = LocaleHelper.getDisplayCountry(mLocale, mLocale); in getFullCountryNameNative()
229 return LocaleHelper.getDisplayCountry(mLocale); in getFullCountryNameInUiLanguage()
241 return LocaleHelper.getDisplayName(locale, true /* sentence case */); in getFullNameInUiLanguage()
250 Locale parentWithScript = getParent(LocaleHelper.addLikelySubtags(baseLocale)); in getLangScriptKey()
268 return LocaleHelper.getDisplayNumberingSystemKeyValue(mLocale, mLocale); in getNumberingSystem()
DLocaleHelper.java35 public class LocaleHelper { class
161 localeNames[i] = LocaleHelper.getDisplayName(locales.get(i), dispLocale, false); in getDisplayLocaleList()
DLocalePickerWithRegion.java205 final LocaleHelper.LocaleInfoComparator comp = in onCreate()
206 new LocaleHelper.LocaleInfoComparator(sortingLocale, countryMode); in onCreate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtil.java38 import com.android.internal.app.LocaleHelper;
381 return LocaleHelper.toSentenceCase(subtypeName.toString(), locale); in getSubtypeLocaleNameAsSentence()
399 return LocaleHelper.toSentenceCase( in getSubtypeLocaleNameListAsSentence()
DInputMethodAndSubtypeUtilCompat.java40 import com.android.internal.app.LocaleHelper;
424 return LocaleHelper.toSentenceCase(subtypeName.toString(), locale); in getSubtypeLocaleNameAsSentence()
442 return LocaleHelper.toSentenceCase( in getSubtypeLocaleNameListAsSentence()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DBilingualSuggestedLocaleAdapterTest.java23 import com.android.internal.app.LocaleHelper.LocaleInfoComparator;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
DZoneGetter.java39 import com.android.internal.app.LocaleHelper;
129 return LocaleHelper.toSentenceCase(toCapitalize, locale); in capitalizeForStandaloneDisplay()