/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/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/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/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. 246 // Try adding locales if the locale string is non-empty. 292 * for the locale. 299 * @param locale The locale for which the enrollment needs to be performed. 301 * given keyphrase/locale combination isn't possible. 303 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) { argument 309 KeyphraseMetadata keyphraseMetadata = getKeyphraseMetadata(keyphrase, locale); 314 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag()) 322 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, nul 331 getKeyphraseMetadata(String keyphrase, Locale locale) 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/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/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/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...] |
H A D | TextUtilsCompat.java | 62 public int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument 63 if (locale != null && !locale.equals(ROOT)) { 64 final String scriptSubtag = ICUCompat.maximizeAndGetScript(locale); 65 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale); 76 * Fallback algorithm to detect the locale direction. Rely on the first char of the 77 * localized locale name. This will not work if the localized locale name is in English 80 * @param locale 87 private static int getLayoutDirectionFromFirstChar(@NonNull Locale locale) { argument 107 getLayoutDirectionFromLocale(@ullable Locale locale) argument 142 getLayoutDirectionFromLocale(@ullable 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 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/core/java/android/text/ |
H A D | Hyphenator.java | 68 public static Hyphenator get(@Nullable Locale locale) { argument 70 Hyphenator result = sMap.get(locale); 76 final String variant = locale.getVariant(); 79 new Locale(locale.getLanguage(), "", variant); 82 sMap.put(locale, result); 88 final Locale languageOnlyLocale = new Locale(locale.getLanguage()); 91 sMap.put(locale, result); 96 final String script = locale.getScript(); 104 sMap.put(locale, result); 109 sMap.put(locale, sEmptyHyphenato [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
H A D | AccessibilityUtils.java | 82 public static CharSequence getTextForLocale(Context context, Locale locale, int resId) { argument 85 config.setLocale(locale);
|
/frameworks/support/v4/ics-mr1/android/support/v4/speech/tts/ |
H A D | TextToSpeechICSMR1.java | 17 static Set<String> getFeatures(TextToSpeech tts, Locale locale) { argument 20 return tts.getFeatures(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/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/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::__anon859 81 gConfigurationClassInfo.locale = GetFieldIDOrDie(env, clazz, "locale", "Ljava/util/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,
|