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

1234

/frameworks/base/core/tests/inputmethodtests/src/android/os/
H A DInputMethodSubtypeArrayTest.java68 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { argument
73 .setSubtypeLocale(locale)
H A DInputMethodSubtypeTest.java52 // The locale string in InputMethodSubtype has accepted an arbitrary text actually,
53 // regardless of the validity of the text as a locale string.
55 verifyLocale("apparently invalid locale string");
97 private static final InputMethodSubtype createDummySubtype(final String locale) { argument
101 .setSubtypeLocale(locale)
/frameworks/support/v4/api23/android/support/v4/text/
H A DICUCompatApi23.java43 public static String maximizeAndGetScript(Locale locale) { argument
45 final Object[] args = new Object[] { locale };
53 return locale.getScript();
/frameworks/support/v4/jellybean-mr1/android/support/v4/text/
H A DTextUtilsCompatJellybeanMr1.java34 public static int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument
35 return TextUtils.getLayoutDirectionFromLocale(locale);
/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.java79 * Intent extra: The voice locale to use while managing the keyphrase.
206 // Try adding locales if the locale string is non-empty.
250 * for the locale.
257 * @param locale The locale for which the enrollment needs to be performed.
259 * given keyphrase/locale combination isn't possible.
261 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) { argument
267 if (getKeyphraseMetadata(keyphrase, locale) != null) {
271 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag())
279 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, nul
288 getKeyphraseMetadata(String keyphrase, Locale locale) argument
[all...]
/frameworks/base/core/java/android/text/
H A DHyphenator.java56 public static long get(@Nullable Locale locale) { argument
58 Hyphenator result = sMap.get(locale);
63 // TODO: Convert this a proper locale-fallback system
66 Locale languageOnlyLocale = new Locale(locale.getLanguage());
69 sMap.put(locale, result);
74 String script = locale.getScript();
82 sMap.put(locale, result);
87 sMap.put(locale, sEmptyHyphenator); // To remember we found nothing.
109 // This array holds pairs of language tags that are used to prefill the map from locale to
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DFormatterTest.java35 mOriginalLocale = mContext.getResources().getConfiguration().locale;
46 private void setLocale(Locale locale) { argument
49 config.locale = locale;
52 Locale.setDefault(locale);
/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/base/tools/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/support/v4/ics/android/support/v4/text/
H A DICUCompatIcs.java50 public static String maximizeAndGetScript(Locale locale) { argument
51 final String localeWithSubtags = addLikelySubtags(locale);
76 private static String addLikelySubtags(Locale locale) { argument
77 final String localeStr = locale.toString();
/frameworks/support/v4/java/android/support/v4/text/
H A DICUCompat.java26 public String maximizeAndGetScript(Locale locale); argument
31 public String maximizeAndGetScript(Locale locale) { argument
38 public String maximizeAndGetScript(Locale locale) { argument
39 return ICUCompatIcs.maximizeAndGetScript(locale);
45 public String maximizeAndGetScript(Locale locale) { argument
46 return ICUCompatApi23.maximizeAndGetScript(locale);
66 * 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,
86 public static String maximizeAndGetScript(Locale locale) { argument
[all...]
H A DTextUtilsCompat.java62 public int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument
63 if (locale != null && !locale.equals(ROOT)) {
64 final String scriptSubtag = ICUCompat.maximizeAndGetScript(locale);
65 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale);
76 * Fallback algorithm to detect the locale direction. Rely on the first char of the
77 * localized locale name. This will not work if the localized locale name is in English
80 * @param locale
87 private static int getLayoutDirectionFromFirstChar(@NonNull Locale locale) { argument
107 getLayoutDirectionFromLocale(@ullable Locale locale) argument
142 getLayoutDirectionFromLocale(@ullable Locale locale) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabaseConfiguration.java73 * The database locale.
77 public Locale locale; field in class:SQLiteDatabaseConfiguration
110 locale = Locale.getDefault();
145 locale = other.locale;
/frameworks/base/core/java/android/provider/
H A DSearchIndexableData.java42 * The locale for the data
44 public Locale locale; field in class:SearchIndexableData
126 locale = Locale.getDefault();
146 sb.append("locale: ");
147 sb.append(locale);
H A DUserDictionary.java30 * frequency information and locale information.
81 * The locale that this word belongs to. Null if it pertains to all
85 public static final String LOCALE = "locale";
117 * specified locale type.
125 * @param localeType the locale type for this word. It should be one of
136 final Locale locale;
139 locale = Locale.getDefault();
141 locale = null;
144 addWord(context, word, frequency, null, locale);
148 * locale typ
158 addWord(Context context, String word, int frequency, String shortcut, Locale locale) argument
[all...]
/frameworks/base/core/java/android/text/style/
H A DLocaleSpan.java34 * @param locale The {@link Locale} of the text to which the span is
37 public LocaleSpan(Locale locale) { argument
38 mLocale = locale;
91 private static void apply(Paint paint, Locale locale) { argument
92 paint.setTextLocale(locale);
/frameworks/base/tools/layoutlib/bridge/src/android/widget/
H A DSimpleMonthView_Delegate.java50 private Locale locale; field in class:SimpleMonthView_Delegate
77 if (delegate.locale == null) {
78 delegate.locale = view.getContext().getResources().getConfiguration().locale;
80 return delegate.locale;
/frameworks/support/v4/ics-mr1/android/support/v4/speech/tts/
H A DTextToSpeechICSMR1.java17 static Set<String> getFeatures(TextToSpeech tts, Locale locale) { argument
20 return tts.getFeatures(locale);
/frameworks/base/core/java/android/view/textservice/
H A DTextServicesManager.java93 * Returns the language component of a given locale string.
95 private static String parseLanguageFromLocaleString(String locale) { argument
96 final int idx = locale.indexOf('_');
98 return locale;
100 return locale.substring(0, idx);
106 * @param locale the locale for the spell checker. If {@code locale} is null and
107 * referToSpellCheckerLanguageSettings is true, the locale specified in Settings will be
108 * returned. If {@code locale} i
118 newSpellCheckerSession(Bundle bundle, Locale locale, SpellCheckerSessionListener listener, boolean referToSpellCheckerLanguageSettings) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp33 jfieldID locale; member in struct:android::__anon828
81 gConfigurationClassInfo.locale = GetFieldIDOrDie(env, clazz, "locale", "Ljava/util/Locale;");
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
H A DZoneGetter.java57 Locale locale = Locale.getDefault();
58 String gmtString = getGmtOffsetString(locale, tz, now);
59 String zoneNameString = getZoneLongName(locale, tz, now);
69 final Locale locale = Locale.getDefault();
73 // with the country of the user's chosen locale. For "local" zones we prefer the "long name"
92 for (String olsonId : TimeZoneNames.forLocale(locale)) {
103 String zoneLongName = getZoneLongName(locale, tz, now);
120 String displayName = getZoneDisplayName(locale, tz, now, preferLongName);
122 String gmtOffsetString = getGmtOffsetString(locale, tz, now);
146 private static String getZoneDisplayName(Locale locale, TimeZon argument
161 getZoneExemplarLocation(Locale locale, TimeZone tz) argument
196 getZoneLongName(Locale locale, TimeZone tz, Date now) argument
202 getGmtOffsetString(Locale locale, TimeZone tz, Date now) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DWordIterator.java44 * Constructs a WordIterator using the default locale.
51 * Constructs a new WordIterator for the specified locale.
52 * @param locale The locale to be used when analysing the text.
54 public WordIterator(Locale locale) { argument
55 mIterator = BreakIterator.getWordInstance(locale);

Completed in 625 milliseconds

1234