/frameworks/support/v4/java/android/support/v4/text/ |
H A D | ICUCompat.java | 26 public String maximizeAndGetScript(Locale locale); argument 31 public String maximizeAndGetScript(Locale locale) { argument 38 public String maximizeAndGetScript(Locale locale) { argument 39 return ICUCompatIcs.maximizeAndGetScript(locale); 45 public String maximizeAndGetScript(Locale locale) { argument 46 return ICUCompatApi23.maximizeAndGetScript(locale); 66 * If the locale isn't already in its maximal form, likely subtags for the provided locale 72 * If locale is already in the maximal form, or there is no data available for maximization, 86 public static String maximizeAndGetScript(Locale locale) { argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | MediaScannerClient.cpp | 34 void MediaScannerClient::setLocale(const char* locale) argument 36 mLocale = locale; // not currently used
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | AndroidLocale.java | 35 public static String toLanguageTag(Locale locale) { argument 36 return ULocale.forLocale(locale).toLanguageTag(); 58 public static String getScript(Locale locale) { argument 59 return ULocale.forLocale(locale).getScript(); 65 Locale locale = context.getConfiguration().locale; 66 if (locale != null) { 67 return locale;
|
/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/support/v4/jellybean-mr1/android/support/v4/text/ |
H A D | TextUtilsCompatJellybeanMr1.java | 34 public static int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument 35 return TextUtils.getLayoutDirectionFromLocale(locale);
|
/frameworks/base/core/java/android/text/method/ |
H A D | AllCapsTransformationMethod.java | 27 * Transforms source text into an ALL CAPS string, locale-aware. 38 mLocale = context.getResources().getConfiguration().locale; 52 Locale locale = null; 54 locale = ((TextView)view).getTextLocale(); 56 if (locale == null) { 57 locale = mLocale; 59 return source.toString().toUpperCase(locale);
|
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/ |
H A D | ICU_Delegate.java | 109 /*package*/ static String getCurrencyCode(String locale) { argument 114 /*package*/ static String getCurrencyDisplayName(String locale, String currencyCode) { argument 129 /*package*/ static String getCurrencySymbol(String locale, String currencyCode) { argument 134 /*package*/ static String getDisplayCountryNative(String countryCode, String locale) { argument 139 /*package*/ static String getDisplayLanguageNative(String languageCode, String locale) { argument 144 /*package*/ static String getDisplayVariantNative(String variantCode, String locale) { argument 149 /*package*/ static String getDisplayScriptNative(String variantCode, String locale) { argument 154 /*package*/ static String getISO3Country(String locale) { argument 159 /*package*/ static String getISO3Language(String locale) { argument 164 /*package*/ static String addLikelySubtags(String locale) { argument 169 getScript(String locale) argument 184 initLocaleDataNative(String locale, LocaleData result) argument 250 setDefaultLocale(String locale) 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...] |
H A D | SearchIndexableData.java | 42 * The locale for the data 44 public Locale locale; field in class:SearchIndexableData 126 locale = Locale.getDefault(); 146 sb.append("locale: "); 147 sb.append(locale);
|
/frameworks/support/v4/api23/android/support/v4/text/ |
H A D | ICUCompatApi23.java | 43 public static String maximizeAndGetScript(Locale locale) { argument 45 final Object[] args = new Object[] { locale }; 53 return locale.getScript();
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
H A D | KeyphraseMetadata.java | 56 * @return Indicates if we support the given locale. 58 public boolean supportsLocale(Locale locale) { argument 59 return supportedLocales.isEmpty() || supportedLocales.contains(locale);
|
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityIterators.java | 75 public static CharacterTextSegmentIterator getInstance(Locale locale) { argument 77 sInstance = new CharacterTextSegmentIterator(locale); 82 private CharacterTextSegmentIterator(Locale locale) { argument 83 mLocale = locale; 84 onLocaleChanged(locale); 148 Locale locale = newConfig.locale; 149 if (!mLocale.equals(locale)) { 150 mLocale = locale; 151 onLocaleChanged(locale); 160 onLocaleChanged(Locale locale) argument 168 getInstance(Locale locale) argument 175 WordTextSegmentIterator(Locale locale) argument 180 onLocaleChanged(Locale locale) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocalePicker.java | 51 public void onLocaleSelected(Locale locale); argument 60 Locale locale; field in class:LocalePicker.LocaleInfo 62 public LocaleInfo(String label, Locale locale) { argument 64 this.locale = locale; 72 return locale; 104 for (String locale : localeList) { 105 final Locale l = Locale.forLanguageTag(locale.replace('_', '-')); 122 if (previous.locale.getLanguage().equals(l.getLanguage()) && 123 !previous.locale 244 updateLocale(Locale locale) argument [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/ |
H A D | ZoneGetter.java | 57 Locale locale = Locale.getDefault(); 58 String gmtString = getGmtOffsetString(locale, tz, now); 59 String zoneNameString = getZoneLongName(locale, tz, now); 69 final Locale locale = Locale.getDefault(); 73 // with the country of the user's chosen locale. For "local" zones we prefer the "long name" 92 for (String olsonId : TimeZoneNames.forLocale(locale)) { 103 String zoneLongName = getZoneLongName(locale, tz, now); 120 String displayName = getZoneDisplayName(locale, tz, now, preferLongName); 122 String gmtOffsetString = getGmtOffsetString(locale, tz, now); 146 private static String getZoneDisplayName(Locale locale, TimeZon argument 161 getZoneExemplarLocation(Locale locale, TimeZone tz) argument 196 getZoneLongName(Locale locale, TimeZone tz, Date now) argument 202 getGmtOffsetString(Locale locale, TimeZone tz, Date now) 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; 91 private static void apply(Paint paint, Locale locale) { argument 92 paint.setTextLocale(locale);
|
/frameworks/support/v4/ics/android/support/v4/text/ |
H A D | ICUCompatIcs.java | 50 public static String maximizeAndGetScript(Locale locale) { argument 51 final String localeWithSubtags = addLikelySubtags(locale); 76 private static String addLikelySubtags(Locale locale) { argument 77 final String localeStr = locale.toString();
|
/frameworks/base/core/java/android/view/textservice/ |
H A D | TextServicesManager.java | 93 * Returns the language component of a given locale string. 95 private static String parseLanguageFromLocaleString(String locale) { argument 96 final int idx = locale.indexOf('_'); 98 return locale; 100 return locale.substring(0, idx); 106 * @param locale the locale for the spell checker. If {@code locale} is null and 107 * referToSpellCheckerLanguageSettings is true, the locale specified in Settings will be 108 * returned. If {@code locale} i 118 newSpellCheckerSession(Bundle bundle, Locale locale, SpellCheckerSessionListener listener, boolean referToSpellCheckerLanguageSettings) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | FormatterTest.java | 35 mOriginalLocale = mContext.getResources().getConfiguration().locale; 46 private void setLocale(Locale locale) { argument 49 config.locale = locale; 52 Locale.setDefault(locale);
|
/frameworks/base/tools/layoutlib/bridge/src/android/widget/ |
H A D | SimpleMonthView_Delegate.java | 50 private Locale locale; field in class:SimpleMonthView_Delegate 77 if (delegate.locale == null) { 78 delegate.locale = view.getContext().getResources().getConfiguration().locale; 80 return delegate.locale;
|
/frameworks/base/core/java/android/content/res/ |
H A D | Configuration.java | 39 * user-specified configuration options (locale and scaling) as well 78 * Current user preference for the locale, corresponding to 79 * <a href="{@docRoot}guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a> 82 public Locale locale; field in class:Configuration 655 if (o.locale != null) { 656 locale = (Locale) o.locale.clone(); 695 if (locale != null) { 697 sb.append(locale); 699 sb.append(" ?locale"); 1347 setLayoutDirection(Locale locale) argument 1373 localeToResourceQualifier(Locale locale) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | DateSorter.java | 68 Locale locale = resources.getConfiguration().locale; 69 if (locale == null) { 70 locale = Locale.getDefault(); 72 LocaleData localeData = LocaleData.get(locale);
|
/frameworks/base/core/java/android/text/ |
H A D | Hyphenator.java | 68 public static Hyphenator get(@Nullable Locale locale) { argument 70 Hyphenator result = sMap.get(locale); 75 // TODO: Convert this a proper locale-fallback system 78 Locale languageOnlyLocale = new Locale(locale.getLanguage()); 81 sMap.put(locale, result); 86 String script = locale.getScript(); 94 sMap.put(locale, result); 99 sMap.put(locale, sEmptyHyphenator); // To remember we found nothing. 127 // This array holds pairs of language tags that are used to prefill the map from locale to
|
/frameworks/av/include/media/ |
H A D | mediascanner.h | 81 void setLocale(const char *locale); 86 const char *locale() const; 89 // current locale (like "ja_JP"), created/destroyed with strdup()/free() 112 void setLocale(const char* locale);
|