Home
last modified time | relevance | path

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

12

/frameworks/opt/localepicker/src/com/android/localepicker/
DLocaleHelper.java20 import android.icu.util.ULocale;
114 final ULocale displayULocale = ULocale.forLocale(displayLocale); in getDisplayName()
116 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
117 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
141 final ULocale uDisplayLocale = ULocale.forLocale(displayLocale); in getDisplayCountry()
142 final String country = ULocale.getDisplayCountry(languageTag, uDisplayLocale); in getDisplayCountry()
146 ULocale.getDisplayKeywordValue(languageTag, "numbers", uDisplayLocale)); in getDisplayCountry()
159 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
169 return ULocale.addLikelySubtags(ULocale.forLocale(locale)).toLocale(); in addLikelySubtags()
DLocaleStore.java22 import android.icu.util.ULocale;
278 if (LocaleList.isPseudoLocale(ULocale.forLocale(li.getLocale()))) { in fillCache()
/frameworks/base/media/java/android/media/
DAudioPresentation.java21 import android.icu.util.ULocale;
55 private final ULocale mLanguage;
130 private final Map<ULocale, CharSequence> mLabels;
190 @NonNull ULocale language, in AudioPresentation()
195 @NonNull Map<ULocale, CharSequence> labels) { in AudioPresentation() argument
203 mLabels = new HashMap<ULocale, CharSequence>(labels); in AudioPresentation()
229 for (Map.Entry<ULocale, CharSequence> entry : mLabels.entrySet()) { in getLabels()
235 private Map<ULocale, CharSequence> getULabels() { in getULabels()
246 private ULocale getULocale() { in getULocale()
340 private ULocale mLanguage = new ULocale("");
[all …]
/frameworks/base/core/java/com/android/internal/app/
DLocaleHelper.java23 import android.icu.util.ULocale;
87 final ULocale displayULocale = ULocale.forLocale(displayLocale); in getDisplayName()
89 ? ULocale.getDisplayNameWithDialect(locale.toLanguageTag(), displayULocale) in getDisplayName()
90 : ULocale.getDisplayName(locale.toLanguageTag(), displayULocale); in getDisplayName()
115 final ULocale uDisplayLocale = ULocale.forLocale(displayLocale); in getDisplayCountry()
116 final String country = ULocale.getDisplayCountry(languageTag, uDisplayLocale); in getDisplayCountry()
120 ULocale.getDisplayKeywordValue(languageTag, "numbers", uDisplayLocale)); in getDisplayCountry()
133 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
182 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/base/core/java/android/view/translation/
DUiTranslationStateCallback.java20 import android.icu.util.ULocale;
45 default void onStarted(@NonNull ULocale sourceLocale, @NonNull ULocale targetLocale) { in onStarted()
60 default void onResumed(@NonNull ULocale sourceLocale, @NonNull ULocale targetLocale) { in onResumed()
DTranslationSpec.java20 import android.icu.util.ULocale;
58 private final @NonNull ULocale mLocale;
66 static ULocale unparcelLocale(Parcel in) { in unparcelLocale()
67 return (ULocale) in.readSerializable(); in unparcelLocale()
77 mLocale = new ULocale.Builder().setLanguage(language).build(); in TranslationSpec()
86 public TranslationSpec(@NonNull ULocale locale, @DataFormat int dataFormat) { in TranslationSpec()
120 public @NonNull ULocale getLocale() { in getLocale()
196 ULocale locale = unparcelLocale(in); in TranslationSpec()
DUiTranslationManager.java27 import android.icu.util.ULocale;
339 private ULocale mSourceLocale;
340 private ULocale mTargetLocale;
357 mSourceLocale = (ULocale) bundle.getSerializable(EXTRA_SOURCE_LOCALE); in onStateChange()
358 mTargetLocale = (ULocale) bundle.getSerializable(EXTRA_TARGET_LOCALE); in onStateChange()
/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/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/tests/coretests/src/android/view/textclassifier/
DTextLanguageTest.java23 import android.icu.util.ULocale;
51 .putLocale(ULocale.ENGLISH, 0.8f) in testParcel()
52 .putLocale(ULocale.GERMAN, 0.2f) in testParcel()
63 assertEquals(ULocale.ENGLISH, result.getLocale(0)); in testParcel()
64 assertEquals(0.8f, result.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testParcel()
65 assertEquals(ULocale.GERMAN, result.getLocale(1)); in testParcel()
66 assertEquals(0.2f, result.getConfidenceScore(ULocale.GERMAN), EPSILON); in testParcel()
/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.java23 import android.icu.util.ULocale;
98 public ULocale getLocale(int index) { in getLocale()
99 return ULocale.forLanguageTag(mEntityConfidence.getEntities().get(index)); in getLocale()
108 public float getConfidenceScore(@NonNull ULocale locale) { in getConfidenceScore()
169 @NonNull ULocale locale, in putLocale()
DTextClassifierEvent.java22 import android.icu.util.ULocale;
163 private final ULocale mLocale;
201 mLocale = languageTag == null ? null : ULocale.forLanguageTag(languageTag); in TextClassifierEvent()
360 public ULocale getLocale() { in getLocale()
535 private ULocale mLocale;
648 public T setLocale(@Nullable ULocale locale) { in setLocale()
/frameworks/base/core/java/android/os/
DLocaleList.java24 import android.icu.util.ULocale;
286 return ULocale.addLikelySubtags(ULocale.forLocale(locale)).getScript(); in getLikelyScript()
311 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;
157 ULocale.forLocale(locale), in formatRelativeTime()
/frameworks/opt/localepicker/tests/src/com/android/localepicker/
DLocaleStoreTest.java25 import android.icu.util.ULocale;
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java29 import android.icu.util.ULocale;
367 return ULocale.addLikelySubtags(ULocale.forLocale(locale)).toLocale(); in toFullLocale()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java46 import android.icu.util.ULocale;
469 ULocale uLocale = new ULocale(locale); in isLocaleRtl()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java37 import android.icu.util.ULocale;
1393 String script = ULocale.addLikelySubtags(ULocale.forLanguageTag(locale)).getScript();
1400 String fontScript = ULocale.addLikelySubtags(
1401 ULocale.forLocale(family.getLocaleList().get(j))).getScript();
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java30 import android.icu.util.ULocale;
379 ULocale.Builder builder = new ULocale.Builder(); in isLanguage()
/frameworks/base/boot/
Dboot-image-profile.txt8701ULocale;)Ljava/lang/String;+]Landroid/icu/impl/CalendarUtil$CalendarPreferences;Landroid/icu/impl/…
8714 HSPLandroid/icu/impl/DateNumberFormat;-><init>(Landroid/icu/util/ULocale;Ljava/lang/String;Ljava/la…
8716 HSPLandroid/icu/impl/DateNumberFormat;->initialize(Landroid/icu/util/ULocale;Ljava/lang/String;Ljav…
8775 …ncyDisplayInfoProvider$ICUCurrencyDisplayInfo;-><init>(Landroid/icu/util/ULocale;Landroid/icu/impl…
8781 …(Landroid/icu/util/ULocale;Z)Landroid/icu/impl/CurrencyData$CurrencyDisplayInfo;+]Landroid/icu/uti…
8802 …oid/icu/util/ULocale;Ljava/lang/String;I)Landroid/icu/impl/ICULocaleService$LocaleKey;+]Landroid/i…
8805 HSPLandroid/icu/impl/ICULocaleService$LocaleKey;->currentLocale()Landroid/icu/util/ULocale;
8811 HSPLandroid/icu/impl/ICULocaleService;->createKey(Landroid/icu/util/ULocale;I)Landroid/icu/impl/ICU…
8812 HSPLandroid/icu/impl/ICULocaleService;->get(Landroid/icu/util/ULocale;I[Landroid/icu/util/ULocale;)…
8813 HSPLandroid/icu/impl/ICULocaleService;->get(Landroid/icu/util/ULocale;[Landroid/icu/util/ULocale;)L…
[all …]

12