/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 | 52 // The locale string in InputMethodSubtype has accepted an arbitrary text actually, 53 // regardless of the validity of the text as a locale string. 55 verifyLocale("apparently invalid locale string"); 97 private static final InputMethodSubtype createDummySubtype(final String locale) { argument 101 .setSubtypeLocale(locale)
|
/frameworks/support/compat/api23/android/support/v4/text/ |
H A D | ICUCompatApi21.java | 44 public static String maximizeAndGetScript(Locale locale) { argument 46 final Object[] args = new Object[] { locale }; 54 return locale.getScript();
|
/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/support/compat/java/android/support/v4/text/ |
H A D | ICUCompat.java | 27 public String maximizeAndGetScript(Locale locale) { argument 28 return ICUCompatIcs.maximizeAndGetScript(locale); 35 public String maximizeAndGetScript(Locale locale) { argument 36 return ICUCompatApi21.maximizeAndGetScript(locale); 53 * If the locale isn't already in its maximal form, likely subtags for the provided locale 59 * If locale is already in the maximal form, or there is no data available for maximization, 74 public static String maximizeAndGetScript(Locale locale) { argument 75 return IMPL.maximizeAndGetScript(locale);
|
H A D | TextUtilsCompat.java | 89 * @param locale the {@link Locale} for which we want the layout direction, maybe be 94 public static int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument 96 return TextUtils.getLayoutDirectionFromLocale(locale); 98 if (locale != null && !locale.equals(ROOT)) { 99 final String scriptSubtag = ICUCompat.maximizeAndGetScript(locale); 100 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale); 114 * Fallback algorithm to detect the locale direction. Rely on the first char of the 115 * localized locale name. This will not work if the localized locale nam 123 getLayoutDirectionFromFirstChar(@onNull 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/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/core/tests/coretests/src/android/text/format/ |
H A D | FormatterTest.java | 45 .getConfiguration().locale; 110 private void setLocale(Locale locale) { argument 113 config.locale = locale; 116 Locale.setDefault(locale);
|
/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/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/support/compat/ics/android/support/v4/text/ |
H A D | ICUCompatIcs.java | 52 public static String maximizeAndGetScript(Locale locale) { argument 53 final String localeWithSubtags = addLikelySubtags(locale); 78 private static String addLikelySubtags(Locale locale) { argument 79 final String localeStr = locale.toString();
|
/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/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/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/base/tools/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/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/android/view/textclassifier/ |
H A D | TextLanguage.java | 72 * Returns the language locale at the specified index. 125 * Sets a language locale with the associated confidence score. 128 @NonNull Locale locale, @FloatRange(from = 0.0, to = 1.0) float confidenceScore) { 129 mLanguageConfidence.setEntityType(locale, confidenceScore); 127 setLanguage( @onNull Locale locale, @FloatRange(from = 0.0, to = 1.0) float confidenceScore) argument
|
/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...] |