/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/ |
H A D | PickerUtility.java | 27 * Utility class that provides Date/Time related constants as well as locale-specific calendar for 36 public final Locale locale; field in class:PickerUtility.DateConstant 40 private DateConstant(Locale locale, Resources resources) { argument 41 this.locale = locale; 42 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); 44 Calendar calendar = Calendar.getInstance(locale); 51 public final Locale locale; field in class:PickerUtility.TimeConstant 57 private TimeConstant(Locale locale, Resources resources) { argument 58 this.locale 67 getDateConstantInstance(Locale locale, Resources resources) argument 71 getTimeConstantInstance(Locale locale, Resources resources) argument 88 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument [all...] |
/frameworks/base/tools/localedata/ |
H A D | extract_icu_data.py | 18 """Generate a C++ data table containing locale data.""" 26 def get_locale_parts(locale): 27 """Split a locale into three parts, for langauge, script, and region.""" 28 parts = locale.split('_') 111 def pack_to_uint32(locale): 112 """Pack language+region of locale into a 32-bit unsigned integer.""" 113 lang, _, region = get_locale_parts(locale) 133 for locale in sorted(likely_script_dict.keys()): 134 script = likely_script_dict[locale] 136 pack_to_uint32(locale), [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | DateTimeKeyListener.java | 67 public DateTimeKeyListener(@Nullable Locale locale) { argument 71 final boolean success = NumberKeyListener.addDigits(chars, locale) 72 && NumberKeyListener.addAmPmChars(chars, locale) 74 chars, locale, SKELETON_12HOUR, SYMBOLS_TO_IGNORE) 76 chars, locale, SKELETON_24HOUR, SYMBOLS_TO_IGNORE); 79 if (locale != null && "en".equals(locale.getLanguage())) { 103 * Returns an instance of DateTimeKeyListener appropriate for the given locale. 106 public static DateTimeKeyListener getInstance(@Nullable Locale locale) { argument 109 instance = sInstanceCache.get(locale); [all...] |
H A D | TimeKeyListener.java | 67 public TimeKeyListener(@Nullable Locale locale) { argument 71 final boolean success = NumberKeyListener.addDigits(chars, locale) 72 && NumberKeyListener.addAmPmChars(chars, locale) 74 chars, locale, SKELETON_12HOUR, SYMBOLS_TO_IGNORE) 76 chars, locale, SKELETON_24HOUR, SYMBOLS_TO_IGNORE); 79 if (locale != null && "en".equals(locale.getLanguage())) { 103 * Returns an instance of TimeKeyListener appropriate for the given locale. 106 public static TimeKeyListener getInstance(@Nullable Locale locale) { argument 109 instance = sInstanceCache.get(locale); [all...] |
H A D | DateKeyListener.java | 65 public DateKeyListener(@Nullable Locale locale) { argument 69 final boolean success = NumberKeyListener.addDigits(chars, locale) 71 chars, locale, SKELETONS, SYMBOLS_TO_IGNORE); 91 * Returns an instance of DateKeyListener appropriate for the given locale. 94 public static DateKeyListener getInstance(@Nullable Locale locale) { argument 97 instance = sInstanceCache.get(locale); 99 instance = new DateKeyListener(locale); 100 sInstanceCache.put(locale, instance);
|
H A D | AllCapsTransformationMethod.java | 31 * Transforms source text into an ALL CAPS string, locale-aware. 56 Locale locale = null; 58 locale = ((TextView)view).getTextLocale(); 60 if (locale == null) { 61 locale = mLocale; 64 return TextUtils.toUpperCase(locale, source, copySpans);
|
/frameworks/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/tools/aapt2/configuration/ |
H A D | ConfigurationParser_test.cpp | 66 <locale-group label="europe"> 67 <locale lang="en"/> 68 <locale lang="es"/> 69 <locale lang="fr"/> 70 <locale lang="de"/> 71 </locale-group> 72 <locale-group label="north-america"> 73 <locale lang="en"/> 74 <locale lang="es" region="MX"/> 75 <locale lan [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocaleHelper.java | 56 * BreakIterator breakIterator = BreakIterator.getSentenceInstance(locale); 57 * String result = UCharacter.toTitleCase(locale, 61 * <p>That also means creating a BreakIterator for each locale. Expensive...</p> 64 * @param locale the locale used for the case conversion. 67 public static String toSentenceCase(String str, Locale locale) { argument 72 return str.substring(0, firstCodePointLen).toUpperCase(locale) 77 * Normalizes a string for locale name search. Does case conversion for now, 80 * <p>Warning: it is only intended to be used in searches by the locale picker. 84 * @param locale th 87 normalizeForSearch(String str, Locale locale) argument 97 shouldUseDialectName(Locale locale) argument 112 getDisplayName(Locale locale, Locale displayLocale, boolean sentenceCase) argument 127 getDisplayName(Locale locale, boolean sentenceCase) argument 138 getDisplayCountry(Locale locale, Locale displayLocale) argument 148 getDisplayCountry(Locale locale) argument 197 addLikelySubtags(Locale locale) argument 232 removePrefixForCompare(Locale locale, String str) argument [all...] |
H A D | LocalePicker.java | 53 public void onLocaleSelected(Locale locale); argument 62 final Locale locale; field in class:LocalePicker.LocaleInfo 64 public LocaleInfo(String label, Locale locale) { argument 66 this.locale = locale; 74 return locale; 109 for (String locale : pseudoLocales) { 110 localeList.remove(locale); 119 for (String locale : localeList) { 120 final Locale l = Locale.forLanguageTag(locale 261 updateLocale(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/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,
|
H A D | ISpellCheckerService.aidl | 36 * @param locale locale to be returned from 45 String locale, ISpellCheckerSessionListener listener, in Bundle bundle,
|
/frameworks/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. 84 * The locale that this word belongs to. Null if it pertains to all 88 public static final String LOCALE = "locale"; 120 * specified locale type. 128 * @param localeType the locale type for this word. It should be one of 139 final Locale locale; 142 locale = Locale.getDefault(); 144 locale = null; 147 addWord(context, word, frequency, null, locale); 151 * locale typ 161 addWord(Context context, String word, int frequency, String shortcut, Locale locale) argument [all...] |
/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 | 74 public static CharacterTextSegmentIterator getInstance(Locale locale) { argument 76 sInstance = new CharacterTextSegmentIterator(locale); 81 private CharacterTextSegmentIterator(Locale locale) { argument 82 mLocale = locale; 83 onLocaleChanged(locale); 147 final Locale locale = globalConfig.getLocales().get(0); 148 if (!mLocale.equals(locale)) { 149 mLocale = locale; 150 onLocaleChanged(locale); 154 protected void onLocaleChanged(Locale locale) { argument 162 getInstance(Locale locale) argument 169 WordTextSegmentIterator(Locale locale) argument 174 onLocaleChanged(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 131 locale = Locale.getDefault(); 166 locale = other.locale;
|
/frameworks/support/compat/java/android/support/v4/os/ |
H A D | ConfigurationCompat.java | 34 * @return The locale list. 40 return LocaleListCompat.create(configuration.locale);
|
H A D | LocaleHelper.java | 61 static String toLanguageTag(Locale locale) { argument 63 buf.append(locale.getLanguage()); 64 final String country = locale.getCountry(); 67 buf.append(locale.getCountry());
|
/frameworks/base/core/java/android/view/textservice/ |
H A D | TextServicesManager.java | 96 * Returns the language component of a given locale string. 98 private static String parseLanguageFromLocaleString(String locale) { argument 99 final int idx = locale.indexOf('_'); 101 return locale; 103 return locale.substring(0, idx); 109 * @param locale the locale for the spell checker. If {@code locale} is null and 110 * referToSpellCheckerLanguageSettings is true, the locale specified in Settings will be 111 * returned. If {@code locale} i 121 newSpellCheckerSession(Bundle bundle, Locale locale, SpellCheckerSessionListener listener, boolean referToSpellCheckerLanguageSettings) argument [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | FontLanguageListCache.cpp | 34 static size_t toLanguageTag(char* output, size_t outSize, const std::string& locale) { argument 36 if (locale.empty()) { 42 outLength = uloc_canonicalize(locale.c_str(), output, outSize, &uErr); 45 ALOGD("uloc_canonicalize(\"%s\") failed: %s", locale.c_str(), u_errorName(uErr)); 75 ALOGD("ICU normalized '%s' to '%s'", locale.c_str(), output); 86 std::string locale(input.size(), 0); 89 locale.assign(input, currentIdx, commaLoc - currentIdx); 91 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); 103 locale.assign(input, currentIdx, input.size() - currentIdx); 104 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); [all...] |
/frameworks/support/compat/java/android/support/v4/text/ |
H A D | ICUCompat.java | 65 * If the locale isn't already in its maximal form, likely subtags for the provided locale 71 * If locale is already in the maximal form, or there is no data available for maximization, 86 public static String maximizeAndGetScript(Locale locale) { argument 89 final Object[] args = new Object[] { locale }; 96 return locale.getScript(); 98 final String localeWithSubtags = addLikelySubtags(locale); 123 private static String addLikelySubtags(Locale locale) { argument 124 final String localeStr = locale.toString();
|
/frameworks/base/core/java/android/text/format/ |
H A D | Formatter.java | 73 final Locale locale = localeFromContext(context); 74 if (TextUtils.getLayoutDirectionFromLocale(locale) == View.LAYOUT_DIRECTION_RTL) { 90 * <p>If the context has a right-to-left locale, the returned string is wrapped in bidi 93 * left-to-right, but the locale is right-to-left.)</p> 127 private static NumberFormat getNumberFormatter(Locale locale, int fractionDigits) { argument 128 final NumberFormat numberFormatter = NumberFormat.getInstance(locale); 150 private static String formatMeasureShort(Locale locale, NumberFormat numberFormatter, argument 153 locale, MeasureFormat.FormatWidth.SHORT, numberFormatter); 162 final Locale locale = localeFromContext(context); 163 final NumberFormat numberFormatter = getNumberFormatter(locale, inpu [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
H A D | I18Name.java | 51 public I18Name(String language, Locale locale, String text) { argument 53 mLocale = locale; 77 Locale locale = Locale.forLanguageTag(language); 82 return new I18Name(language, locale, text);
|