/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
|
/frameworks/support/v4/ics/android/support/v4/text/ |
H A D | ICUCompatIcs.java | 46 public static String getScript(String locale) { argument 49 final Object[] args = new Object[] { locale }; 63 public static String addLikelySubtags(String locale) { argument 66 final Object[] args = new Object[] { locale }; 77 return locale;
|
/frameworks/support/v4/java/android/support/v4/text/ |
H A D | ICUCompat.java | 24 public String getScript(String locale); argument 25 public String addLikelySubtags(String locale); argument 30 public String getScript(String locale) { argument 35 public String addLikelySubtags(String locale) { argument 36 return locale; 42 public String getScript(String locale) { argument 43 return ICUCompatIcs.getScript(locale); 47 public String addLikelySubtags(String locale) { argument 48 return ICUCompatIcs.addLikelySubtags(locale); 66 * @param locale Th 69 getScript(String locale) argument 95 addLikelySubtags(String locale) argument [all...] |
H A D | TextUtilsCompat.java | 65 * @param locale the Locale for which we want the layout direction. Can be null. 72 public static int getLayoutDirectionFromLocale(Locale locale) { argument 73 if (locale != null && !locale.equals(ROOT)) { 75 ICUCompat.addLikelySubtags(locale.toString())); 76 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale); 88 * Fallback algorithm to detect the locale direction. Rely on the fist char of the 89 * localized locale name. This will not work if the localized locale name is in English 92 * @param locale 99 getLayoutDirectionFromFirstChar(Locale locale) argument [all...] |
/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 | 111 * @param locale Locale of the suggestions 115 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { argument 116 this(null, locale, suggestions, flags, null); 121 * @param locale locale Locale of the suggestions 128 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, argument 133 if (locale != null) { 134 mLocaleString = locale.toString(); 136 mLocaleString = context.getResources().getConfiguration().locale.toString(); 138 Log.e("SuggestionSpan", "No locale o 283 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::__anon990 99 GET_FIELD_ID(gConfigurationClassInfo.locale, clazz, 100 "locale", "Ljava/util/Locale;");
|
/frameworks/base/core/tests/inputmethodtests/src/android/os/ |
H A D | InputMethodTest.java | 108 private static InputMethodSubtype createDummyInputMethodSubtype(String locale, String mode, argument 110 return new InputMethodSubtype(0, 0, locale, mode, "", isAuxiliary,
|
/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 | 49 public void onLocaleSelected(Locale locale); argument 62 Locale locale; field in class:LocalePicker.LocaleInfo 64 public LocaleInfo(String label, Locale locale) { argument 66 this.locale = locale; 74 return locale; 98 return constructAdapter(context, R.layout.locale_picker_item, R.id.locale, 151 if (preprocess[finalSize-1].locale.getLanguage().equals( 153 !preprocess[finalSize-1].locale.getLanguage().equals("zz")) { 157 getDisplayName(preprocess[finalSize-1].locale, 276 updateLocale(Locale locale) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/ |
H A D | ICU_Delegate.java | 102 /*package*/ static String getCurrencyCode(String locale) { argument 107 /*package*/ static String getCurrencyDisplayName(String locale, String currencyCode) { argument 117 /*package*/ static String getCurrencySymbol(String locale, String currencyCode) { argument 122 /*package*/ static String getDisplayCountryNative(String countryCode, String locale) { argument 127 /*package*/ static String getDisplayLanguageNative(String languageCode, String locale) { argument 132 /*package*/ static String getDisplayVariantNative(String variantCode, String locale) { argument 137 /*package*/ static String getISO3CountryNative(String locale) { argument 142 /*package*/ static String getISO3LanguageNative(String locale) { argument 147 /*package*/ static String addLikelySubtags(String locale) { argument 152 /*package*/ static String getScript(String locale) { argument 167 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/text/ |
H A D | BidiFormatter.java | 157 * @param locale The context locale. 159 public Builder(Locale locale) { argument 160 initialize(isRtlLocale(locale)); 234 * Factory for creating an instance of BidiFormatter for the default locale directionality. 251 * Factory for creating an instance of BidiFormatter given the context locale. 253 * @param locale The context locale. 255 public static BidiFormatter getInstance(Locale locale) { argument 256 return new Builder(locale) 446 isRtlLocale(Locale locale) argument [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 135 Locale locale = context.getResources().getConfiguration().locale; 138 if (sIs24HourLocale != null && sIs24HourLocale.equals(locale)) { 144 java.text.DateFormat.getTimeInstance(java.text.DateFormat.LONG, locale); 160 sIs24HourLocale = locale; 172 * locale. A skeleton is similar to, and uses the same format characters as, a Unicode 177 * "MMMM d" in the {@code en_US} locale, but "d. MMMM" in the {@code de_CH} locale. 184 * same "MMMMd" input, this method will return "d LLLL" in the {@code fa_IR} locale, 186 * so "Md" would give a different result to "MMMd", say, except in a locale suc 197 getBestDateTimePattern(Locale locale, String skeleton) argument [all...] |
/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 | 145 private void setLocale(Locale locale) { argument 146 mCurrentLocale = locale; 150 if (locale != null) { 151 // Change SpellParsers' wordIterator locale 152 mWordIterator = new WordIterator(locale); 155 // This class is the listener for locale change: warn other locale-aware objects 228 final Locale locale = mTextView.getSpellCheckerLocale(); 230 if (locale == null || mCurrentLocale == null || (!(mCurrentLocale.equals(locale)))) { [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CallerInfo.java | 519 * @param context the context used to look up the current locale / country 542 Locale locale = context.getResources().getConfiguration().locale; 543 String countryIso = getCurrentCountryIso(context, locale); 555 String description = geocoder.getDescriptionForNumber(pn, locale); 567 private static String getCurrentCountryIso(Context context, Locale locale) { argument 574 countryIso = locale.getCountry(); 575 Rlog.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
|