Searched refs:locale (Results 1 - 25 of 76) sorted by relevance

1234

/frameworks/base/core/java/android/util/
H A DLocaleUtil.java39 * @param locale the Locale for which we want the layout direction. Can be null.
47 public static int getLayoutDirectionFromLocale(Locale locale) { argument
48 if (locale != null && !locale.equals(Locale.ROOT)) {
49 final String scriptSubtag = ICU.getScript(ICU.addLikelySubtags(locale.toString()));
50 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale);
62 * Fallback algorithm to detect the locale direction. Rely on the fist char of the
63 * localized locale name. This will not work if the localized locale name is in English
66 * @param locale
74 getLayoutDirectionFromFirstChar(Locale locale) argument
[all...]
/frameworks/base/core/java/com/android/internal/textservice/
H A DITextServicesManager.aidl32 SpellCheckerInfo getCurrentSpellChecker(String locale);
34 String locale, boolean allowImplicitlySelectedSubtype);
35 oneway void getSpellCheckerService(String sciId, in String locale,
39 oneway void setCurrentSpellChecker(String locale, String sciId);
40 oneway void setCurrentSpellCheckerSubtype(String locale, int hashCode);
H A DISpellCheckerService.aidl30 String locale, ISpellCheckerSessionListener listener, in Bundle bundle);
/frameworks/base/core/java/android/provider/
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/view/
H A DAccessibilityIterators.java77 public static CharacterTextSegmentIterator getInstance(Locale locale) { argument
79 sInstance = new CharacterTextSegmentIterator(locale);
84 private CharacterTextSegmentIterator(Locale locale) { argument
85 mLocale = locale;
86 onLocaleChanged(locale);
150 Locale locale = newConfig.locale;
151 if (!mLocale.equals(locale)) {
152 mLocale = locale;
153 onLocaleChanged(locale);
162 onLocaleChanged(Locale locale) argument
170 getInstance(Locale locale) argument
177 WordTextSegmentIterator(Locale locale) argument
182 onLocaleChanged(Locale locale) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/
H A DICU_Delegate.java92 /*package*/ static String getCurrencyCode(String locale) { argument
97 /*package*/ static String getCurrencyDisplayName(String locale, String currencyCode) { argument
107 /*package*/ static String getCurrencySymbol(String locale, String currencyCode) { argument
112 /*package*/ static String getDisplayCountryNative(String countryCode, String locale) { argument
117 /*package*/ static String getDisplayLanguageNative(String languageCode, String locale) { argument
122 /*package*/ static String getDisplayVariantNative(String variantCode, String locale) { argument
127 /*package*/ static String getISO3CountryNative(String locale) { argument
132 /*package*/ static String getISO3LanguageNative(String locale) { argument
137 /*package*/ static String addLikelySubtags(String locale) { argument
142 /*package*/ static String getScript(String locale) { argument
157 initLocaleDataImpl(String locale, LocaleData result) 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/com/android/internal/app/
H A DLocalePicker.java45 public void onLocaleSelected(Locale locale); argument
54 Locale locale; field in class:LocalePicker.LocaleInfo
56 public LocaleInfo(String label, Locale locale) { argument
58 this.locale = locale;
66 return locale;
85 return constructAdapter(context, R.layout.locale_picker_item, R.id.locale);
117 if (preprocess[finalSize-1].locale.getLanguage().equals(
122 getDisplayName(preprocess[finalSize-1].locale,
126 getDisplayName(preprocess[finalSize-1].locale,
216 updateLocale(Locale locale) argument
[all...]
/frameworks/av/include/media/
H A Dmediascanner.h54 void setLocale(const char *locale);
60 const char *locale() const;
63 // current locale (like "ja_JP"), created/destroyed with strdup()/free()
86 void setLocale(const char* locale);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java36 * (IME). Subtype can describe locale (e.g. en_US, fr_FR...) and mode (e.g. voice, keyboard...),
66 * one %s in it. If there is, the %s part will be replaced with the locale's display name by
69 * @param locale The locale supported by the subtype
84 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, argument
86 this(nameId, iconId, locale, mode, extraValue, isAuxiliary, false);
92 * one %s in it. If there is, the %s part will be replaced with the locale's display name by
95 * @param locale The locale supported by the subtype
113 public InputMethodSubtype(int nameId, int iconId, String locale, Strin argument
347 hashCodeInternal(String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype) argument
[all...]
/frameworks/av/media/libmedia/
H A DMediaScannerClient.cpp40 void MediaScannerClient::setLocale(const char* locale) argument
42 if (!locale) return;
44 if (!strncmp(locale, "ja", 2))
46 else if (!strncmp(locale, "ko", 2))
48 else if (!strncmp(locale, "zh", 2)) {
49 if (!strcmp(locale, "zh_CN")) {
210 // if the locale encoding matches, then assume we have a native encoding.
H A DMediaScanner.cpp40 void MediaScanner::setLocale(const char *locale) { argument
45 if (locale) {
46 mLocale = strdup(locale);
50 const char *MediaScanner::locale() const { function in class:android::MediaScanner
100 client.setLocale(locale());
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java30 * user-specified configuration options (locale and scaling) as well
59 * Current user preference for the locale, corresponding to
60 * <a href="{@docRoot}guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a>
63 public Locale locale; field in class:Configuration
440 if (o.locale != null) {
441 locale = (Locale) o.locale.clone();
472 if (locale != null) {
474 sb.append(locale);
476 sb.append(" (no locale)");
[all...]
/frameworks/base/core/java/android/text/style/
H A DSuggestionSpan.java106 * @param locale Locale of the suggestions
110 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { argument
111 this(null, locale, suggestions, flags, null);
116 * @param locale locale Locale of the suggestions
123 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, argument
128 if (locale != null) {
129 mLocaleString = locale.toString();
131 mLocaleString = context.getResources().getConfiguration().locale.toString();
133 Log.e("SuggestionSpan", "No locale o
270 hashCodeInternal(String[] suggestions, String locale, String notificationTargetClassName) argument
[all...]
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSubtype.java35 * Subtype can describe locale (e.g. en_US, fr_FR...) used for settings.
51 * @param locale The locale supported by the subtype
54 public SpellCheckerSubtype(int nameId, String locale, String extraValue) { argument
56 mSubtypeLocale = locale != null ? locale : "";
79 * @return the locale of the subtype
173 * can have only one %s in it. If there is, the %s part will be replaced with the locale's
180 final Locale locale = constructLocaleFromString(mSubtypeLocale);
181 final String localeStr = locale !
219 hashCodeInternal(String locale, String extraValue) argument
[all...]
H A DTextServicesManager.java94 * @param locale the locale for the spell checker. If {@code locale} is null and
95 * referToSpellCheckerLanguageSettings is true, the locale specified in Settings will be
96 * returned. If {@code locale} is not null and referToSpellCheckerLanguageSettings is true,
97 * the locale specified in Settings will be returned only when it is same as {@code locale}.
98 * Exceptionally, when referToSpellCheckerLanguageSettings is true and {@code locale} is
99 * only language (e.g. "en"), the specified locale in Settings (e.g. "en_US") will be
106 public SpellCheckerSession newSpellCheckerSession(Bundle bundle, Locale locale, argument
[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/base/location/tests/locationtests/src/android/location/
H A DGeocoderTest.java35 Locale locale = new Locale("en", "us");
36 Geocoder g = new Geocoder(mContext, locale);
/frameworks/base/core/java/android/text/method/
H A DAllCapsTransformationMethod.java26 * Transforms source text into an ALL CAPS string, locale-aware.
37 mLocale = context.getResources().getConfiguration().locale;
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
H A DOverlayBaseTest.java32 Locale locale = new Locale(code);
33 Locale.setDefault(locale);
35 config.locale = locale;
/frameworks/support/v4/ics/android/support/v4/view/
H A DPagerTitleStripIcs.java37 mLocale = context.getResources().getConfiguration().locale;
/frameworks/base/core/java/android/speech/tts/
H A DTtsEngines.java284 * Returns the locale string for a given TTS engine. Attempts to read the
287 * both these values are empty, the default phone locale is returned.
289 * @param engineName the engine to return the locale for.
290 * @return the locale string preference for this engine. Will be non null
294 String locale = parseEnginePrefFromList(
298 if (TextUtils.isEmpty(locale)) {
300 locale = getV1Locale();
303 if (DBG) Log.d(TAG, "getLocalePrefForEngine(" + engineName + ")= " + locale);
305 return locale;
309 * Parses a locale preferenc
[all...]
/frameworks/base/core/jni/
H A Dandroid_text_format_Time.cpp190 // We only teardown and setup our 'locale' struct and other state
191 // when the Java-side locale changed. This is safe to do here
195 static struct strftime_locale locale; local
209 env->ReleaseStringUTFChars(js_mon[i], locale.mon[i]);
210 env->ReleaseStringUTFChars(js_month[i], locale.month[i]);
211 env->ReleaseStringUTFChars(js_standalone_month[i], locale.standalone_month[i]);
218 env->ReleaseStringUTFChars(js_wday[i], locale.wday[i]);
219 env->ReleaseStringUTFChars(js_weekday[i], locale.weekday[i]);
224 env->ReleaseStringUTFChars(js_X_fmt, locale.X_fmt);
225 env->ReleaseStringUTFChars(js_x_fmt, locale
[all...]
/frameworks/base/include/androidfw/
H A DAssetManager.h119 * Set the current locale and vendor. The locale can change during
125 void setLocale(const char* locale);
131 void setConfiguration(const ResTable_config& config, const char* locale = NULL);
140 * This will search through locale-specific and vendor-specific
152 * but aren't assets. These sit outside the usual "locale/vendor"
168 * locale-specific, and generic assets stored loosely or in asset
180 * locale-specific, and generic assets stored loosely or in asset
234 const asset_path& path, const char* locale, const char* vendor);
235 String8 createPathNameLocked(const asset_path& path, const char* locale,
[all...]

Completed in 2473 milliseconds

1234