/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LocaleUtilTest.java | 85 Locale locale = new Locale("ar"); 87 LocaleUtil.getLayoutDirectionFromLocale(locale)); 88 locale = new Locale("ar", "AE"); 90 LocaleUtil.getLayoutDirectionFromLocale(locale)); 91 locale = new Locale("ar", "BH"); 93 LocaleUtil.getLayoutDirectionFromLocale(locale)); 94 locale = new Locale("ar", "DZ"); 96 LocaleUtil.getLayoutDirectionFromLocale(locale)); 97 locale = new Locale("ar", "EG"); 99 LocaleUtil.getLayoutDirectionFromLocale(locale)); [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LocaleUtil.java | 50 * @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/core/java/com/android/internal/textservice/ |
H A D | ITextServicesManager.aidl | 32 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 D | ISpellCheckerService.aidl | 30 String locale, ISpellCheckerSessionListener listener, in Bundle bundle);
|
/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/com/android/internal/app/ |
H A D | LocalePicker.java | 45 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/localize/ |
H A D | Configuration.cpp | 9 n = locale.compare(that.locale); 40 if (locale.length() > 0) { 44 s += locale;
|
H A D | merge_res_and_xliff_test.cpp | 9 english.locale = "en_US"; 11 translated.locale = "zz_ZZ";
|
H A D | file_utils.h | 11 string translated_file_name(const string& file, const string& locale);
|
H A D | Configuration.h | 10 string locale; member in struct:Configuration
|
/frameworks/base/core/java/android/view/textservice/ |
H A D | SpellCheckerSubtype.java | 33 * 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...] |
H A D | TextServicesManager.java | 94 * @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...] |
/frameworks/base/core/java/android/provider/ |
H A D | UserDictionary.java | 30 * frequency information and locale information. 78 * The locale that this word belongs to. Null if it pertains to all 82 public static final String LOCALE = "locale"; 90 /** The locale type to specify that the word is common to all locales. */ 93 /** The locale type to specify that the word is for the current locale. */ 102 * specified locale type. 106 * @param localeType the locale type for this word. It should be one of 120 String locale = null; 122 // TODO: Verify if this is the best way to get the current locale [all...] |
/frameworks/base/include/media/ |
H A D | mediascanner.h | 54 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 D | InputMethodSubtype.java | 35 * 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/media/libmedia/ |
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")) { 209 // if the locale encoding matches, then assume we have a native encoding.
|
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());
|
/frameworks/base/core/java/android/content/res/ |
H A D | Configuration.java | 29 * 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...] |
/frameworks/base/core/java/android/text/style/ |
H A D | SuggestionSpan.java | 105 * @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/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/base/location/tests/locationtests/src/android/location/ |
H A D | GeocoderTest.java | 35 Locale locale = new Locale("en", "us"); 36 Geocoder g = new Geocoder(mContext, locale);
|
/frameworks/base/core/java/android/service/textservice/ |
H A D | SpellCheckerService.java | 59 * 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/android/text/method/ |
H A D | AllCapsTransformationMethod.java | 26 * 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 D | OverlayBaseTest.java | 32 Locale locale = new Locale(code); 33 Locale.setDefault(locale); 35 config.locale = locale;
|