/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | InputMethodSubtypeArrayTest.java | 67 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { argument 72 .setSubtypeLocale(locale)
|
H A D | InputMethodSubtypeTest.java | 58 // The locale object should be cached. 70 // The locale object should be cached. 85 // The locale string in InputMethodSubtype has accepted an arbitrary text actually, 86 // regardless of the validity of the text as a locale string. 88 verifyLocale("apparently invalid locale string"); 130 private static InputMethodSubtype createDummySubtype(final String locale) { argument 134 .setSubtypeLocale(locale)
|
/frameworks/support/compat/java/android/support/v4/os/ |
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/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/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);
|
H A D | KeyphraseEnrollmentInfo.java | 82 * Intent extra: The voice locale to use while managing the keyphrase. 248 // Try adding locales if the locale string is non-empty. 294 * for the locale. 301 * @param locale The locale for which the enrollment needs to be performed. 303 * given keyphrase/locale combination isn't possible. 305 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) { argument 311 KeyphraseMetadata keyphraseMetadata = getKeyphraseMetadata(keyphrase, locale); 316 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag()) 324 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, nul 333 getKeyphraseMetadata(String keyphrase, Locale locale) argument [all...] |
/frameworks/base/core/java/android/text/method/ |
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 | 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...] |
/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/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/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();
|
H A D | TextUtilsCompat.java | 83 * @param locale the {@link Locale} for which we want the layout direction, maybe be 88 public static int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument 90 return TextUtils.getLayoutDirectionFromLocale(locale); 92 if (locale != null && !locale.equals(ROOT)) { 93 final String scriptSubtag = ICUCompat.maximizeAndGetScript(locale); 94 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale); 108 * Fallback algorithm to detect the locale direction. Rely on the first char of the 109 * localized locale name. This will not work if the localized locale nam 117 getLayoutDirectionFromFirstChar(@onNull Locale locale) argument [all...] |
/frameworks/base/core/java/android/provider/ |
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);
|
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/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/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
H A D | AccessibilityUtils.java | 84 public static CharSequence getTextForLocale(Context context, Locale locale, int resId) { argument 87 config.setLocale(locale);
|
/frameworks/layoutlib/bridge/src/android/view/textservice/ |
H A D | TextServicesManager.java | 39 public SpellCheckerSession newSpellCheckerSession(Bundle bundle, Locale locale, argument
|
/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/base/core/java/android/text/style/ |
H A D | LocaleSpan.java | 48 * @param locale The {@link Locale} of the text to which the span is attached. 52 public LocaleSpan(@Nullable Locale locale) { argument 53 mLocales = locale == null ? LocaleList.getEmptyLocaleList() : new LocaleList(locale); 98 * span, only the first locale is returned. {@code null} if no {@link Locale} is specified.
|
/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...] |
/frameworks/base/core/jni/ |
H A D | android_content_res_Configuration.cpp | 33 jfieldID locale; member in struct:android::__anon1013 81 gConfigurationClassInfo.locale = GetFieldIDOrDie(env, clazz, "locale", "Ljava/util/Locale;");
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | FormatterTest.java | 50 .getConfiguration().locale; 204 private void setLocale(Locale locale) { argument 207 config.locale = locale; 210 Locale.setDefault(locale);
|
/frameworks/base/core/tests/coretests/src/android/view/textservice/ |
H A D | SpellCheckerSubtypeTest.java | 47 private static int defaultHashCodeAlgorithm(String locale, String extraValue) { argument 48 return Arrays.hashCode(new Object[] {locale, extraValue}); 127 // If neither locale string nor language tag is specified, 134 // If both locale string and language tag are specified,
|