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

12

/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/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/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 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/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.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...]
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp31 jfieldID locale; member in struct:android::__anon991
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/av/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")) {
210 // if the locale encoding matches, then assume we have a native encoding.
/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/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/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/service/textservice/
H A DSpellCheckerService.java66 * locale before {@link SpellCheckerService.Session#onCreate()} </p>
243 public InternalISpellCheckerSession(String locale, ISpellCheckerSessionListener listener, argument
247 mLocale = locale;
317 String locale, ISpellCheckerSessionListener listener, Bundle bundle) {
322 new InternalISpellCheckerSession(locale, listener, bundle, session);
366 public SentenceLevelAdapter(Locale locale) { argument
367 mWordIterator = new WordIterator(locale);
316 getISpellCheckerSession( String locale, ISpellCheckerSessionListener listener, Bundle bundle) argument
/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/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/base/core/java/android/widget/
H A DSpellChecker.java144 private void setLocale(Locale locale) { argument
145 mCurrentLocale = locale;
149 // Change SpellParsers' wordIterator locale
150 mWordIterator = new WordIterator(locale);
152 // This class is the listener for locale change: warn other locale-aware objects
225 final Locale locale = mTextView.getTextServicesLocale();
227 if (mCurrentLocale == null || (!(mCurrentLocale.equals(locale)))) {
228 setLocale(locale);
H A DTimePicker.java132 // initialization based on locale
288 setCurrentLocale(newConfig.locale);
292 * Sets the current locale.
294 * @param locale The current locale.
296 private void setCurrentLocale(Locale locale) { argument
297 if (locale.equals(mCurrentLocale)) {
300 mCurrentLocale = locale;
301 mTempCalendar = Calendar.getInstance(locale);
H A DDatePicker.java151 // initialization based on locale
412 setCurrentLocale(newConfig.locale);
463 * Sets the current locale.
465 * @param locale The current locale.
467 private void setCurrentLocale(Locale locale) { argument
468 if (locale.equals(mCurrentLocale)) {
472 mCurrentLocale = locale;
474 mTempDate = getCalendarForLocale(mTempDate, locale);
475 mMinDate = getCalendarForLocale(mMinDate, locale);
493 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp267 JNIEnv *env, jobject thiz, jstring locale)
276 if (locale == NULL) {
280 const char *localeStr = env->GetStringUTFChars(locale, NULL);
286 env->ReleaseStringUTFChars(locale, localeStr);
266 android_media_MediaScanner_setLocale( JNIEnv *env, jobject thiz, jstring locale) argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java518 * @param context the context used to look up the current locale / country
541 Locale locale = context.getResources().getConfiguration().locale;
542 String countryIso = getCurrentCountryIso(context, locale);
554 String description = geocoder.getDescriptionForNumber(pn, locale);
566 private static String getCurrentCountryIso(Context context, Locale locale) { argument
573 countryIso = locale.getCountry();
574 Log.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
/frameworks/base/services/java/com/android/server/
H A DTextServicesManagerService.java101 // TODO: Update for each locale
158 // TODO: find an appropriate spell checker for specified locale
159 private SpellCheckerInfo findAvailSpellCheckerLocked(String locale, String prefPackage) { argument
185 public SpellCheckerInfo getCurrentSpellChecker(String locale) { argument
201 // TODO: Save SpellCheckerSubtype by supported languages by looking at "locale".
204 String locale, boolean allowImplicitlySelectedSubtype) {
239 // 1. Use keyboard locale if available in the spell checker
245 // 2. Use System locale if available in the spell checker
246 candidateLocale = mContext.getResources().getConfiguration().locale.toString();
265 Slog.w(TAG, "Return subtype " + scs.hashCode() + ", input= " + locale
203 getCurrentSpellCheckerSubtype( String locale, boolean allowImplicitlySelectedSubtype) argument
280 getSpellCheckerService(String sciId, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, Bundle bundle) argument
354 startSpellCheckerServiceInnerLocked(SpellCheckerInfo info, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
409 setCurrentSpellChecker(String locale, String sciId) argument
423 setCurrentSpellCheckerSubtype(String locale, int hashCode) argument
590 SpellCheckerBindGroup(InternalServiceConnection connection, ITextServicesSessionListener listener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
626 addListener(ITextServicesSessionListener tsListener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
722 InternalServiceConnection( String id, String locale, Bundle bundle) argument
[all...]
/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...]

Completed in 374 milliseconds

12