Searched defs:locale (Results 1 - 25 of 123) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DInputMethodSubtypeArrayTest.java75 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { argument
80 .setSubtypeLocale(locale)
H A DInputMethodSubtypeTest.java69 // The locale object should be cached.
81 // The locale object should be cached.
96 // The locale string in InputMethodSubtype has accepted an arbitrary text actually,
97 // regardless of the validity of the text as a locale string.
99 verifyLocale("apparently invalid locale string");
141 private static InputMethodSubtype createDummySubtype(final String locale) { argument
145 .setSubtypeLocale(locale)
/frameworks/support/compat/src/main/java/androidx/core/os/
H A DLocaleHelper.java61 static String toLanguageTag(Locale locale) { argument
63 buf.append(locale.getLanguage());
64 final String country = locale.getCountry();
67 buf.append(locale.getCountry());
H A DLocaleListInterface.java47 int indexOf(Locale locale); argument
/frameworks/av/media/libmedia/
H A DMediaScannerClient.cpp34 void MediaScannerClient::setLocale(const char* locale) argument
36 mLocale = locale; // not currently used
/frameworks/base/core/java/android/hardware/soundtrigger/
H A DKeyphraseMetadata.java56 * @return Indicates if we support the given locale.
58 public boolean supportsLocale(Locale locale) { argument
59 return supportedLocales.isEmpty() || supportedLocales.contains(locale);
H A DKeyphraseEnrollmentInfo.java82 * Intent extra: The voice locale to use while managing the keyphrase.
248 // Try adding locales if the locale string is non-empty.
294 * for the locale.
301 * @param locale The locale for which the enrollment needs to be performed.
303 * given keyphrase/locale combination isn't possible.
305 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) { argument
311 KeyphraseMetadata keyphraseMetadata = getKeyphraseMetadata(keyphrase, locale);
316 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag())
324 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, nul
333 getKeyphraseMetadata(String keyphrase, Locale locale) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DDateKeyListener.java65 public DateKeyListener(@Nullable Locale locale) { argument
69 final boolean success = NumberKeyListener.addDigits(chars, locale)
71 chars, locale, SKELETONS, SYMBOLS_TO_IGNORE);
91 * Returns an instance of DateKeyListener appropriate for the given locale.
94 public static DateKeyListener getInstance(@Nullable Locale locale) { argument
97 instance = sInstanceCache.get(locale);
99 instance = new DateKeyListener(locale);
100 sInstanceCache.put(locale, instance);
H A DDateTimeKeyListener.java67 public DateTimeKeyListener(@Nullable Locale locale) { argument
71 final boolean success = NumberKeyListener.addDigits(chars, locale)
72 && NumberKeyListener.addAmPmChars(chars, locale)
74 chars, locale, SKELETON_12HOUR, SYMBOLS_TO_IGNORE)
76 chars, locale, SKELETON_24HOUR, SYMBOLS_TO_IGNORE);
79 if (locale != null && "en".equals(locale.getLanguage())) {
103 * Returns an instance of DateTimeKeyListener appropriate for the given locale.
106 public static DateTimeKeyListener getInstance(@Nullable Locale locale) { argument
109 instance = sInstanceCache.get(locale);
[all...]
H A DTimeKeyListener.java67 public TimeKeyListener(@Nullable Locale locale) { argument
71 final boolean success = NumberKeyListener.addDigits(chars, locale)
72 && NumberKeyListener.addAmPmChars(chars, locale)
74 chars, locale, SKELETON_12HOUR, SYMBOLS_TO_IGNORE)
76 chars, locale, SKELETON_24HOUR, SYMBOLS_TO_IGNORE);
79 if (locale != null && "en".equals(locale.getLanguage())) {
103 * Returns an instance of TimeKeyListener appropriate for the given locale.
106 public static TimeKeyListener getInstance(@Nullable Locale locale) { argument
109 instance = sInstanceCache.get(locale);
[all...]
/frameworks/base/location/java/android/location/
H A DGeocoderParams.java28 * language, country and variant information from the Geocoder's locale
48 public GeocoderParams(Context context, Locale locale) { argument
49 mLocale = locale;
54 * returns the Geocoder's locale
H A DGeocoder.java75 * @param locale the desired Locale for the query results
79 public Geocoder(Context context, Locale locale) { argument
80 if (locale == null) {
81 throw new NullPointerException("locale == null");
83 mParams = new GeocoderParams(context, locale);
101 * The returned addresses will be localized for the locale
151 * returned addresses will be localized for the locale provided to
193 * returned addresses will be localized for the locale provided to
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DAndroidLocale.java35 public static String toLanguageTag(Locale locale) { argument
36 return ULocale.forLocale(locale).toLanguageTag();
58 public static String getScript(Locale locale) { argument
59 return ULocale.forLocale(locale).getScript();
65 Locale locale = context.getConfiguration().locale;
66 if (locale != null) {
67 return locale;
/frameworks/minikin/libs/minikin/
H A DHyphenatorMap.h45 // The returned pointer is never a dangling pointer. If nothing found for a given locale,
49 // 1. Search for the Hyphenator with the given locale.
55 static const Hyphenator* lookup(const Locale& locale) { argument
56 return getInstance().lookupInternal(locale);
64 const Hyphenator* lookupInternal(const Locale& locale);
75 const Hyphenator* lookupBySubtag(const Locale& locale, SubtagBits bits) const
/frameworks/support/compat/src/main/java/androidx/core/text/
H A DICUCompat.java66 * If the locale isn't already in its maximal form, likely subtags for the provided locale
72 * If locale is already in the maximal form, or there is no data available for maximization,
87 public static String maximizeAndGetScript(Locale locale) { argument
90 final Object[] args = new Object[] { locale };
97 return locale.getScript();
99 final String localeWithSubtags = addLikelySubtags(locale);
124 private static String addLikelySubtags(Locale locale) { argument
125 final String localeStr = locale.toString();
H A DTextUtilsCompat.java84 * @param locale the {@link Locale} for which we want the layout direction, maybe be
89 public static int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument
91 return TextUtils.getLayoutDirectionFromLocale(locale);
93 if (locale != null && !locale.equals(ROOT)) {
94 final String scriptSubtag = ICUCompat.maximizeAndGetScript(locale);
95 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale);
109 * Fallback algorithm to detect the locale direction. Rely on the first char of the
110 * localized locale name. This will not work if the localized locale nam
118 getLayoutDirectionFromFirstChar(@onNull Locale locale) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DSearchIndexableData.java42 * The locale for the data
44 public Locale locale; field in class:SearchIndexableData
128 locale = Locale.getDefault();
148 sb.append("locale: ");
149 sb.append(locale);
H A DUserDictionary.java30 * frequency information and locale information.
84 * The locale that this word belongs to. Null if it pertains to all
88 public static final String LOCALE = "locale";
120 * specified locale type.
128 * @param localeType the locale type for this word. It should be one of
139 final Locale locale;
142 locale = Locale.getDefault();
144 locale = null;
147 addWord(context, word, frequency, null, locale);
151 * locale typ
161 addWord(Context context, String word, int frequency, String shortcut, Locale locale) argument
[all...]
/frameworks/layoutlib/bridge/src/android/view/textservice/
H A DTextServicesManager.java39 public SpellCheckerSession newSpellCheckerSession(Bundle bundle, Locale locale, argument
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabaseConfiguration.java73 * The database locale.
77 public Locale locale; field in class:SQLiteDatabaseConfiguration
144 locale = Locale.getDefault();
179 locale = other.locale;
/frameworks/base/core/java/android/text/style/
H A DLocaleSpan.java48 * @param locale The {@link Locale} of the text to which the span is attached.
52 public LocaleSpan(@Nullable Locale locale) { argument
53 mLocales = locale == null ? LocaleList.getEmptyLocaleList() : new LocaleList(locale);
98 * span, only the first locale is returned. {@code null} if no {@link Locale} is specified.
/frameworks/base/core/java/android/view/textservice/
H A DTextServicesManager.java102 * Returns the language component of a given locale string.
104 private static String parseLanguageFromLocaleString(String locale) { argument
105 final int idx = locale.indexOf('_');
107 return locale;
109 return locale.substring(0, idx);
115 * @param locale the locale for the spell checker. If {@code locale} is null and
116 * referToSpellCheckerLanguageSettings is true, the locale specified in Settings will be
117 * returned. If {@code locale} i
127 newSpellCheckerSession(Bundle bundle, Locale locale, SpellCheckerSessionListener listener, boolean referToSpellCheckerLanguageSettings) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DLocaleHelper.java56 * BreakIterator breakIterator = BreakIterator.getSentenceInstance(locale);
57 * String result = UCharacter.toTitleCase(locale,
61 * <p>That also means creating a BreakIterator for each locale. Expensive...</p>
64 * @param locale the locale used for the case conversion.
67 public static String toSentenceCase(String str, Locale locale) { argument
72 return str.substring(0, firstCodePointLen).toUpperCase(locale)
77 * Normalizes a string for locale name search. Does case conversion for now,
80 * <p>Warning: it is only intended to be used in searches by the locale picker.
84 * @param locale th
87 normalizeForSearch(String str, Locale locale) argument
97 shouldUseDialectName(Locale locale) argument
112 getDisplayName(Locale locale, Locale displayLocale, boolean sentenceCase) argument
127 getDisplayName(Locale locale, boolean sentenceCase) argument
138 getDisplayCountry(Locale locale, Locale displayLocale) argument
157 getDisplayCountry(Locale locale) argument
206 addLikelySubtags(Locale locale) argument
241 removePrefixForCompare(Locale locale, String str) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp33 jfieldID locale; member in struct:android::__anon829
81 gConfigurationClassInfo.locale = GetFieldIDOrDie(env, clazz, "locale", "Ljava/util/Locale;");
H A Dandroid_text_Hyphenator.cpp29 static std::string buildFileName(const std::string& locale) { argument
33 lowerLocale.reserve(locale.size());
34 std::transform(locale.begin(), locale.end(), std::back_inserter(lowerLocale), ::tolower);
38 static const uint8_t* mmapPatternFile(const std::string& locale) { argument
39 const std::string hyFilePath = buildFileName(locale);
59 static void addHyphenatorWithoutPatternFile(const std::string& locale, int minPrefix, argument
61 minikin::addHyphenator(locale, minikin::Hyphenator::loadBinary(
62 nullptr, minPrefix, minSuffix, locale));
65 static void addHyphenator(const std::string& locale, in argument
[all...]

Completed in 401 milliseconds

12345