/frameworks/base/location/java/android/location/ |
H A D | GeocoderParams.java | 28 * 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 D | Geocoder.java | 75 * @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
|
H A D | Address.java | 63 public Address(Locale locale) { argument 64 mLocale = locale; 480 Locale locale = country.length() > 0 ? 483 Address a = new Address(locale);
|
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDatabaseConfiguration.java | 73 * The database locale. 77 public Locale locale; field in class:SQLiteDatabaseConfiguration 110 locale = Locale.getDefault(); 145 locale = other.locale;
|
/frameworks/base/core/java/android/text/style/ |
H A D | LocaleSpan.java | 34 * @param locale The {@link Locale} of the text to which the span is 37 public LocaleSpan(Locale locale) { argument 38 mLocale = locale; 81 private static void apply(Paint paint, Locale locale) { argument 82 paint.setTextLocale(locale);
|
H A D | SuggestionSpan.java | 106 * @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/provider/ |
H A D | UserDictionary.java | 30 * 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 D | WordIterator.java | 44 * 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 D | TextServicesManager.java | 94 * @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...] |
H A D | SpellCheckerSubtype.java | 35 * 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 D | android_content_res_Configuration.cpp | 31 jfieldID locale; member in struct:android::__anon967 99 GET_FIELD_ID(gConfigurationClassInfo.locale, clazz, 100 "locale", "Ljava/util/Locale;");
|
H A D | android_text_format_Time.cpp | 190 // 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 D | MediaScanner.cpp | 40 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 D | MediaScannerClient.cpp | 40 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 D | AccessibilityIterators.java | 77 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 D | LocalePicker.java | 48 public void onLocaleSelected(Locale locale); argument 57 Locale locale; field in class:LocalePicker.LocaleInfo 59 public LocaleInfo(String label, Locale locale) { argument 61 this.locale = locale; 69 return locale; 88 return constructAdapter(context, R.layout.locale_picker_item, R.id.locale); 120 if (preprocess[finalSize-1].locale.getLanguage().equals( 125 getDisplayName(preprocess[finalSize-1].locale, 129 getDisplayName(preprocess[finalSize-1].locale, 241 updateLocale(Locale locale) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/ |
H A D | ICU_Delegate.java | 92 /*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 D | SpellCheckerService.java | 66 * 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/view/inputmethod/ |
H A D | InputMethodSubtype.java | 36 * (IME). Subtype can describe locale (e.g. en_US, fr_FR...) and mode (e.g. voice, keyboard...), 67 * one %s in it. If there is, the %s part will be replaced with the locale's display name by 70 * @param locale The locale supported by the subtype 85 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, argument 87 this(nameId, iconId, locale, mode, extraValue, isAuxiliary, false); 93 * one %s in it. If there is, the %s part will be replaced with the locale's display name by 96 * @param locale The locale supported by the subtype 114 public InputMethodSubtype(int nameId, int iconId, String locale, Strin argument 149 InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, int id) argument 391 hashCodeInternal(String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SpellChecker.java | 144 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 D | TimePicker.java | 132 // 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 D | DatePicker.java | 151 // 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/telephony/java/com/android/internal/telephony/ |
H A D | CallerInfo.java | 518 * @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/media/jni/ |
H A D | android_media_MediaScanner.cpp | 267 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/services/java/com/android/server/ |
H A D | TextServicesManagerService.java | 155 // TODO: Update for each locale 261 // TODO: find an appropriate spell checker for specified locale 262 private SpellCheckerInfo findAvailSpellCheckerLocked(String locale, String prefPackage) { argument 288 public SpellCheckerInfo getCurrentSpellChecker(String locale) { argument 306 // TODO: Save SpellCheckerSubtype by supported languages by looking at "locale". 309 String locale, boolean allowImplicitlySelectedSubtype) { 346 // 1. Use keyboard locale if available in the spell checker 352 // 2. Use System locale if available in the spell checker 353 candidateLocale = mContext.getResources().getConfiguration().locale.toString(); 372 Slog.w(TAG, "Return subtype " + scs.hashCode() + ", input= " + locale 308 getCurrentSpellCheckerSubtype( String locale, boolean allowImplicitlySelectedSubtype) argument 387 getSpellCheckerService(String sciId, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, Bundle bundle) argument 467 startSpellCheckerServiceInnerLocked(SpellCheckerInfo info, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument 529 setCurrentSpellChecker(String locale, String sciId) argument 546 setCurrentSpellCheckerSubtype(String locale, int hashCode) argument 715 SpellCheckerBindGroup(InternalServiceConnection connection, ITextServicesSessionListener listener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument 751 addListener(ITextServicesSessionListener tsListener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument 847 InternalServiceConnection( String id, String locale, Bundle bundle) argument [all...] |