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

12

/frameworks/base/core/java/android/util/
H A DLocaleUtil.java50 * @param locale the Locale for which we want the layout direction. Can be null.
59 public static int getLayoutDirectionFromLocale(Locale locale) { argument
60 if (locale != null && !locale.equals(Locale.ROOT)) {
61 final String scriptSubtag = ICU.getScript(ICU.addLikelySubtags(locale.toString()));
62 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale);
74 * Fallback algorithm to detect the locale direction. Rely on the fist char of the
75 * localized locale name. This will not work if the localized locale name is in English
78 * @param locale
87 getLayoutDirectionFromFirstChar(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/tools/localize/
H A DConfiguration.h10 string locale; member in struct:Configuration
H A Dlocalize_test.cpp10 test_filename(const string& file, const string& locale, const string& expected) argument
12 string result = translated_file_name(file, locale);
15 fprintf(stderr, " locale='%s'\n", locale.c_str());
22 fprintf(stderr, " locale='%s'\n", locale.c_str());
H A Dfile_utils.cpp51 translated_file_name(const string& file, const string& locale) argument
74 if (locale == "") {
78 else if (!split_locale(locale, &language, &region)) {
/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);
/frameworks/base/core/java/android/view/textservice/
H A DTextServicesManager.java94 * @param locale the locale for the spell checker. If {@param locale} is null and
95 * referToSpellCheckerLanguageSettings is true, the locale specified in Settings will be
96 * returned. If {@param locale} is not null and referToSpellCheckerLanguageSettings is true,
97 * the locale specified in Settings will be returned only when it is same as {@param locale}.
98 * Exceptionally, when referToSpellCheckerLanguageSettings is true and {@param 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...]
H A DSpellCheckerSubtype.java33 * Subtype can describe locale (e.g. en_US, fr_FR...) used for settings.
45 * @param locale The locale supported by the subtype
48 public SpellCheckerSubtype(int nameId, String locale, String extraValue) { argument
50 mSubtypeLocale = locale != null ? locale : "";
73 * @return the locale of the subtype
124 * can have only one %s in it. If there is, the %s part will be replaced with the locale's
131 final Locale locale = constructLocaleFromString(mSubtypeLocale);
132 final String localeStr = locale !
170 hashCodeInternal(String locale, String extraValue) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp31 jfieldID locale; member in struct:android::__anon28
99 GET_FIELD_ID(gConfigurationClassInfo.locale, clazz,
100 "locale", "Ljava/util/Locale;");
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/core/java/android/service/textservice/
H A DSpellCheckerService.java59 * locale before {@link SpellCheckerService.Session#onCreate()} </p>
179 public InternalISpellCheckerSession(String locale, ISpellCheckerSessionListener listener, argument
183 mLocale = locale;
244 String locale, ISpellCheckerSessionListener listener, Bundle bundle) {
249 new InternalISpellCheckerSession(locale, listener, bundle, session);
243 getISpellCheckerSession( String locale, ISpellCheckerSessionListener listener, Bundle bundle) argument
/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/base/media/libmedia/
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());
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")) {
209 // if the locale encoding matches, then assume we have a native encoding.
/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/text/style/
H A DSuggestionSpan.java105 * @param locale Locale of the suggestions
109 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { argument
110 this(null, locale, suggestions, flags, null);
115 * @param locale locale Locale of the suggestions
122 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, argument
127 if (context != null && locale == null) {
128 mLocaleString = context.getResources().getConfiguration().locale.toString();
130 mLocaleString = locale.toString();
201 * @return the locale o
266 hashCodeInternal(String[] suggestions, String locale, String notificationTargetClassName) argument
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java35 * Subtype can describe locale (e.g. en_US, fr_FR...) and mode (e.g. voice, keyboard...), and is
65 * @param locale The locale supported by the subtype
71 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, argument
73 this(nameId, iconId, locale, mode, extraValue, isAuxiliary, false);
80 * @param locale The locale supported by the subtype
88 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, argument
92 mSubtypeLocale = locale != null ? locale
300 hashCodeInternal(String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DSpellChecker.java124 // This class is the listener for locale change: warn other locale-aware objects
128 private void setLocale(Locale locale) { argument
129 mCurrentLocale = locale;
133 // Change SpellParsers' wordIterator locale
134 mWordIterator = new WordIterator(locale);
136 // This class is the listener for locale change: warn other locale-aware objects
204 final Locale locale = mTextView.getTextServicesLocale();
205 if (mCurrentLocale == null || (!(mCurrentLocale.equals(locale)))) {
[all...]
H A DTimePicker.java131 // initialization based on locale
280 setCurrentLocale(newConfig.locale);
284 * Sets the current locale.
286 * @param locale The current locale.
288 private void setCurrentLocale(Locale locale) { argument
289 if (locale.equals(mCurrentLocale)) {
292 mCurrentLocale = locale;
293 mTempCalendar = Calendar.getInstance(locale);
H A DDatePicker.java150 // initialization based on locale
396 setCurrentLocale(newConfig.locale);
447 * Sets the current locale.
449 * @param locale The current locale.
451 private void setCurrentLocale(Locale locale) { argument
452 if (locale.equals(mCurrentLocale)) {
456 mCurrentLocale = locale;
458 mTempDate = getCalendarForLocale(mTempDate, locale);
459 mMinDate = getCalendarForLocale(mMinDate, locale);
477 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java494 * @param context the context used to look up the current locale / country
517 Locale locale = context.getResources().getConfiguration().locale;
518 String countryIso = getCurrentCountryIso(context, locale);
530 String description = geocoder.getDescriptionForNumber(pn, locale);
542 private static String getCurrentCountryIso(Context context, Locale locale) { argument
549 countryIso = locale.getCountry();
550 Log.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp310 JNIEnv *env, jobject thiz, jstring locale)
319 if (locale == NULL) {
323 const char *localeStr = env->GetStringUTFChars(locale, NULL);
329 env->ReleaseStringUTFChars(locale, localeStr);
309 android_media_MediaScanner_setLocale( JNIEnv *env, jobject thiz, jstring locale) argument
/frameworks/base/services/java/com/android/server/
H A DTextServicesManagerService.java100 // TODO: Update for each locale
157 // TODO: find an appropriate spell checker for specified locale
158 private SpellCheckerInfo findAvailSpellCheckerLocked(String locale, String prefPackage) { argument
184 public SpellCheckerInfo getCurrentSpellChecker(String locale) { argument
203 String locale, boolean allowImplicitlySelectedSubtype) {
238 // 1. Use keyboard locale if available in the spell checker
244 // 2. Use System locale if available in the spell checker
245 candidateLocale = mContext.getResources().getConfiguration().locale.toString();
252 if (candidateLocale.equals(locale)) {
266 Slog.w(TAG, "Return subtype " + scs.hashCode() + ", input= " + locale
202 getCurrentSpellCheckerSubtype( String locale, boolean allowImplicitlySelectedSubtype) argument
281 getSpellCheckerService(String sciId, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, Bundle bundle) argument
355 startSpellCheckerServiceInnerLocked(SpellCheckerInfo info, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
410 setCurrentSpellChecker(String locale, String sciId) argument
424 setCurrentSpellCheckerSubtype(String locale, int hashCode) argument
591 SpellCheckerBindGroup(InternalServiceConnection connection, ITextServicesSessionListener listener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
622 addListener(ITextServicesSessionListener tsListener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
718 InternalServiceConnection( String id, String locale, Bundle bundle) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java29 * user-specified configuration options (locale and scaling) as well
54 * Current user preference for the locale.
56 public Locale locale; field in class:Configuration
309 if (o.locale != null) {
310 locale = (Locale) o.locale.clone();
341 if (locale != null) {
343 sb.append(locale);
345 sb.append(" (no locale)");
457 locale
[all...]

Completed in 5370 milliseconds

12