Home
last modified time | relevance | path

Searched refs:ULocale (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioPresentation.java21 import android.icu.util.ULocale;
55 private final ULocale mLanguage;
72 private final Map<ULocale, CharSequence> mLabels;
132 @NonNull ULocale language, in AudioPresentation()
137 @NonNull Map<ULocale, CharSequence> labels) { in AudioPresentation() argument
145 mLabels = new HashMap<ULocale, CharSequence>(labels); in AudioPresentation()
171 for (Map.Entry<ULocale, CharSequence> entry : mLabels.entrySet()) { in getLabels()
177 private Map<ULocale, CharSequence> getULabels() { in getULabels()
188 private ULocale getULocale() { in getULocale()
282 private ULocale mLanguage = new ULocale("");
[all …]
/frameworks/base/core/java/com/android/internal/app/
DLocaleHelper.java22 import android.icu.util.ULocale;
116 final ULocale displayULocale = ULocale.forLocale(displayLocale); in getDisplayName()
118 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
119 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
144 final ULocale uDisplayLocale = ULocale.forLocale(displayLocale); in getDisplayCountry()
145 final String country = ULocale.getDisplayCountry(languageTag, uDisplayLocale); in getDisplayCountry()
149 ULocale.getDisplayKeywordValue(languageTag, "numbers", uDisplayLocale)); in getDisplayCountry()
162 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
211 return ULocale.addLikelySubtags(ULocale.forLocale(locale)).toLocale(); in addLikelySubtags()
/frameworks/base/core/tests/coretests/src/android/text/format/
DDateIntervalFormatTest.java20 import static android.icu.util.ULocale.ENGLISH;
41 import android.icu.util.ULocale;
67 Calendar c = Calendar.getInstance(tz, ULocale.US); in test_formatDateInterval()
86 ULocale de_DE = new ULocale("de", "DE"); in test_formatDateInterval()
87 ULocale en_US = new ULocale("en", "US"); in test_formatDateInterval()
88 ULocale es_ES = new ULocale("es", "ES"); in test_formatDateInterval()
89 ULocale es_US = new ULocale("es", "US"); in test_formatDateInterval()
324 ULocale l = ULocale.US; in test8862241()
340 ULocale l = ULocale.US; in test10089890()
365 ULocale l = ULocale.US; in test10318326()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java20 import android.icu.util.ULocale;
172 ULocale likelyLocale = ULocale.addLikelySubtags(new ULocale("und", country)); in defaultLanguageForMcc()
180 ULocale fullTargetLocale = ULocale.addLikelySubtags(ULocale.forLocale(targetLocale)); in isTranslated()
185 ULocale fullLocale = ULocale.addLikelySubtags(new ULocale(localeId)); in isTranslated()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextLanguageTest.java21 import android.icu.util.ULocale;
49 .putLocale(ULocale.ENGLISH, 0.8f) in testParcel()
50 .putLocale(ULocale.GERMAN, 0.2f) in testParcel()
61 assertEquals(ULocale.ENGLISH, result.getLocale(0)); in testParcel()
62 assertEquals(0.8f, result.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testParcel()
63 assertEquals(ULocale.GERMAN, result.getLocale(1)); in testParcel()
64 assertEquals(0.2f, result.getConfidenceScore(ULocale.GERMAN), EPSILON); in testParcel()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DLocaleUtils.java22 import android.icu.util.ULocale;
48 private static byte calculateMatchingSubScore(@NonNull final ULocale supported, in calculateMatchingSubScore()
49 @NonNull final ULocale desired) { in calculateMatchingSubScore()
160 final ULocale[] preferredULocaleCache = new ULocale[numPreferredLocales]; in filterByLanguage()
177 preferredULocaleCache[j] = ULocale.addLikelySubtags( in filterByLanguage()
178 ULocale.forLocale(preferredLocale)); in filterByLanguage()
182 ULocale.addLikelySubtags(ULocale.forLocale(locale))); in filterByLanguage()
/frameworks/base/core/java/android/text/format/
DDateIntervalFormat.java25 import android.icu.util.ULocale;
59 ULocale icuLocale = ULocale.getDefault(); in formatDateRange()
68 public static String formatDateRange(ULocale icuLocale, android.icu.util.TimeZone icuTimeZone, in formatDateRange()
107 private static android.icu.text.DateIntervalFormat getFormatter(String skeleton, ULocale locale, in getFormatter()
DRelativeDateTimeFormatter.java32 import android.icu.util.ULocale;
112 ULocale icuLocale = ULocale.forLocale(locale); in getRelativeTimeSpanString()
118 private static String getRelativeTimeSpanString(ULocale icuLocale, in getRelativeTimeSpanString()
269 ULocale icuLocale = ULocale.forLocale(locale); in getRelativeDateTimeString()
337 ULocale locale, android.icu.text.RelativeDateTimeFormatter.Style style, in getFormatter()
DDateTimeFormat.java24 import android.icu.util.ULocale;
44 public static String format(ULocale icuLocale, Calendar time, int flags, in format()
DDateUtilsBridge.java38 import android.icu.util.ULocale;
65 public static Calendar createIcuCalendar(TimeZone icuTimeZone, ULocale icuLocale, in createIcuCalendar()
/frameworks/base/core/java/android/view/textclassifier/
DTextLanguage.java24 import android.icu.util.ULocale;
100 public ULocale getLocale(int index) { in getLocale()
101 return ULocale.forLanguageTag(mEntityConfidence.getEntities().get(index)); in getLocale()
110 public float getConfidenceScore(@NonNull ULocale locale) { in getConfidenceScore()
171 @NonNull ULocale locale, in putLocale()
DTextClassifierEvent.java22 import android.icu.util.ULocale;
151 private final ULocale mLocale;
189 mLocale = languageTag == null ? null : ULocale.forLanguageTag(languageTag); in TextClassifierEvent()
348 public ULocale getLocale() { in getLocale()
514 private ULocale mLocale;
627 public T setLocale(@Nullable ULocale locale) { in setLocale()
DExtrasUtils.java22 import android.icu.util.ULocale;
114 public static ULocale getTopLanguage(@Nullable Intent intent) { in getTopLanguage()
138 return ULocale.forLanguageTag(languages[highestScoringIndex]); in getTopLanguage()
DTextClassifierImpl.java25 import android.icu.util.ULocale;
410 ULocale.forLanguageTag(langResults[i].getLanguage()), in detectLanguage()
524 ULocale locale = textLanguage.getLocale(i); in detectLanguageTagsFromText()
/frameworks/layoutlib/bridge/src/libcore/icu/
DICU_Delegate.java24 import android.icu.util.ULocale;
54 return DateTimePatternGenerator.getInstance(new ULocale(localeName)) in getBestDateTimePatternNative()
/frameworks/base/core/java/android/os/
DLocaleList.java24 import android.icu.util.ULocale;
285 return ULocale.addLikelySubtags(ULocale.forLocale(locale)).getScript(); in getLikelyScript()
310 public static boolean isPseudoLocale(@Nullable ULocale locale) { in isPseudoLocale()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java26 import android.icu.util.ULocale;
147 ULocale.forLocale(locale), in formatRelativeTime()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java28 import android.icu.util.ULocale;
308 return ULocale.addLikelySubtags(ULocale.forLocale(locale)).toLocale(); in toFullLocale()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java46 import android.icu.util.ULocale;
487 ULocale uLocale = new ULocale(locale); in isLocaleRtl()
/frameworks/base/core/java/android/text/
DTextUtils.java33 import android.icu.util.ULocale;
2059 && ULocale.forLocale(locale).isRightToLeft()) in getLayoutDirectionFromLocale()
/frameworks/base/non-updatable-api/
Dcurrent.txt17865 method public static String toLowerCase(android.icu.util.ULocale, String);
17870 …method public static String toTitleCase(android.icu.util.ULocale, String, android.icu.text.BreakIt…
17871 …method public static String toTitleCase(android.icu.util.ULocale, String, android.icu.text.BreakIt…
17876 method public static String toUpperCase(android.icu.util.ULocale, String);
19088 method public static int[] getCode(android.icu.util.ULocale);
19476 …hod public static android.icu.number.LocalizedNumberFormatter withLocale(android.icu.util.ULocale);
19529 …ublic static android.icu.number.LocalizedNumberRangeFormatter withLocale(android.icu.util.ULocale);
19593 method public android.icu.number.LocalizedNumberFormatter locale(android.icu.util.ULocale);
19598 method public android.icu.number.LocalizedNumberRangeFormatter locale(android.icu.util.ULocale);
19606 ctor public AlphabeticIndex(android.icu.util.ULocale);
[all …]
/frameworks/base/api/
Dcurrent.txt17865 method public static String toLowerCase(android.icu.util.ULocale, String);
17870 …method public static String toTitleCase(android.icu.util.ULocale, String, android.icu.text.BreakIt…
17871 …method public static String toTitleCase(android.icu.util.ULocale, String, android.icu.text.BreakIt…
17876 method public static String toUpperCase(android.icu.util.ULocale, String);
19088 method public static int[] getCode(android.icu.util.ULocale);
19476 …hod public static android.icu.number.LocalizedNumberFormatter withLocale(android.icu.util.ULocale);
19529 …ublic static android.icu.number.LocalizedNumberRangeFormatter withLocale(android.icu.util.ULocale);
19593 method public android.icu.number.LocalizedNumberFormatter locale(android.icu.util.ULocale);
19598 method public android.icu.number.LocalizedNumberRangeFormatter locale(android.icu.util.ULocale);
19606 ctor public AlphabeticIndex(android.icu.util.ULocale);
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt25549 Landroid/icu/impl/ICUResourceBundle$AvailEntry;->getULocaleList()[Landroid/icu/util/ULocale;
25554 Landroid/icu/impl/ICUResourceBundle$AvailEntry;->ulocales:[Landroid/icu/util/ULocale;
25563 Landroid/icu/impl/ICUResourceBundle$WholeBundle;->ulocale:Landroid/icu/util/ULocale;
25572 …rceBundle;->createULocaleList(Ljava/lang/String;Ljava/lang/ClassLoader;)[Landroid/icu/util/ULocale;
25854 …(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/icu/util/ULocale$Minimize;)Landroi…
25948 Landroid/icu/impl/locale/XLocaleMatcher$Builder;->defaultLanguage:Landroid/icu/util/ULocale;
25956 Landroid/icu/impl/locale/XLocaleMatcher;->defaultLanguage:Landroid/icu/util/ULocale;
25966 Landroid/icu/impl/locale/XLocaleMatcher;->UND_LOCALE:Landroid/icu/util/ULocale;
26206 Landroid/icu/impl/number/Parse$CurrencyAffixPatterns;-><init>(Landroid/icu/util/ULocale;)V
26208 Landroid/icu/impl/number/Parse$CurrencyAffixPatterns;->addToState(Landroid/icu/util/ULocale;Landroi…
[all …]
Dboot-image-profile.txt7646 HSPLandroid/icu/impl/CalendarUtil;->getCalendarType(Landroid/icu/util/ULocale;)Ljava/lang/String;
7660 HSPLandroid/icu/impl/DateNumberFormat;->initialize(Landroid/icu/util/ULocale;Ljava/lang/String;Ljav…
7703 HSPLandroid/icu/impl/ICUCurrencyDisplayInfoProvider;->getInstance(Landroid/icu/util/ULocale;Z)Landr…
7723 HSPLandroid/icu/impl/ICULocaleService$LocaleKey;->currentLocale()Landroid/icu/util/ULocale;
7728 HSPLandroid/icu/impl/ICULocaleService;->createKey(Landroid/icu/util/ULocale;I)Landroid/icu/impl/ICU…
7729 HSPLandroid/icu/impl/ICULocaleService;->get(Landroid/icu/util/ULocale;I[Landroid/icu/util/ULocale;)…
7730 HSPLandroid/icu/impl/ICULocaleService;->get(Landroid/icu/util/ULocale;[Landroid/icu/util/ULocale;)L…
7773 HSPLandroid/icu/impl/ICUResourceBundle;->getULocale()Landroid/icu/util/ULocale;
7909 HSPLandroid/icu/impl/PluralRulesLoader;->forLocale(Landroid/icu/util/ULocale;Landroid/icu/text/Plur…
7912 HSPLandroid/icu/impl/PluralRulesLoader;->getRulesIdForLocale(Landroid/icu/util/ULocale;Landroid/icu…
[all …]
Dpreloaded-classes2123 android.icu.util.ULocale$1
2124 android.icu.util.ULocale$2
2125 android.icu.util.ULocale$3
2126 android.icu.util.ULocale$Category
2127 android.icu.util.ULocale$JDKLocaleHelper
2128 android.icu.util.ULocale$Type
2129 android.icu.util.ULocale