/frameworks/base/core/tests/inputmethodtests/src/android/os/ |
H A D | InputMethodSubtypeArrayTest.java | 68 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { argument 73 .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"); 93 private static final InputMethodSubtype createDummySubtype(final String locale) { argument 97 .setSubtypeLocale(locale)
|
H A D | InputMethodSubtypeSwitchingControllerTest.java | 45 private static InputMethodSubtype createDummySubtype(final String locale) { argument 49 .setSubtypeLocale(locale)
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | StaticLayout_Delegate.java | 28 /*package*/ static int[] nLineBreakOpportunities(String locale, char[] text, int length, argument 30 BreakIterator iterator = BreakIterator.getLineInstance(new ULocale(locale));
|
/frameworks/av/media/libmedia/ |
H A D | MediaScannerClient.cpp | 34 void MediaScannerClient::setLocale(const char* locale) argument 36 mLocale = locale; // not currently used
|
H A D | MediaScanner.cpp | 40 void MediaScanner::setLocale(const char *locale) { argument 45 if (locale) { 46 mLocale = strdup(locale); 50 const char *MediaScanner::locale() const { function in class:android::MediaScanner 100 client.setLocale(locale());
|
/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 | 79 * Intent extra: The voice locale to use while managing the keyphrase. 206 // Try adding locales if the locale string is non-empty. 250 * for the locale. 257 * @param locale The locale for which the enrollment needs to be performed. 259 * given keyphrase/locale combination isn't possible. 261 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) { argument 267 if (getKeyphraseMetadata(keyphrase, locale) != null) { 271 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag()) 279 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, nul 288 getKeyphraseMetadata(String keyphrase, Locale locale) argument [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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | AndroidLocale.java | 33 public static String toLanguageTag(Locale locale) { argument 34 return ULocale.forLocale(locale).toLanguageTag(); 56 public static String getScript(Locale locale) { argument 57 return ULocale.forLocale(locale).getScript();
|
/frameworks/support/v4/ics/android/support/v4/text/ |
H A D | ICUCompatIcs.java | 46 public static String getScript(String locale) { argument 49 final Object[] args = new Object[] { locale }; 63 public static String addLikelySubtags(String locale) { argument 66 final Object[] args = new Object[] { locale }; 77 return locale;
|
/frameworks/support/v4/java/android/support/v4/text/ |
H A D | ICUCompat.java | 24 public String getScript(String locale); argument 25 public String addLikelySubtags(String locale); argument 30 public String getScript(String locale) { argument 35 public String addLikelySubtags(String locale) { argument 36 return locale; 42 public String getScript(String locale) { argument 43 return ICUCompatIcs.getScript(locale); 47 public String addLikelySubtags(String locale) { argument 48 return ICUCompatIcs.addLikelySubtags(locale); 66 * @param locale Th 69 getScript(String locale) argument 95 addLikelySubtags(String locale) argument [all...] |
H A D | TextUtilsCompat.java | 68 * @param locale the Locale for which we want the layout direction. Can be null. 75 public static int getLayoutDirectionFromLocale(@Nullable Locale locale) { argument 76 if (locale != null && !locale.equals(ROOT)) { 78 ICUCompat.addLikelySubtags(locale.toString())); 79 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale); 91 * Fallback algorithm to detect the locale direction. Rely on the fist char of the 92 * localized locale name. This will not work if the localized locale name is in English 95 * @param locale 102 getLayoutDirectionFromFirstChar(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 | 40 * The locale for the data 42 public Locale locale; field in class:SearchIndexableData 124 locale = Locale.getDefault(); 144 sb.append("locale: "); 145 sb.append(locale);
|
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...] |
/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; 81 private static void apply(Paint paint, Locale locale) { argument 82 paint.setTextLocale(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/method/ |
H A D | WordIterator.java | 44 * Constructs a WordIterator using the default locale. 51 * Constructs a new WordIterator for the specified locale. 52 * @param locale The locale to be used when analysing the text. 54 public WordIterator(Locale locale) { argument 55 mIterator = BreakIterator.getWordInstance(locale);
|
/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/jni/ |
H A D | android_content_res_Configuration.cpp | 31 jfieldID locale; member in struct:android::__anon795 90 GET_FIELD_ID(gConfigurationClassInfo.locale, clazz, 91 "locale", "Ljava/util/Locale;");
|
/frameworks/base/core/java/android/service/voice/ |
H A D | VoiceInteractionService.java | 203 * Creates an {@link AlwaysOnHotwordDetector} for the given keyphrase and locale. 209 * @param locale The locale for which the enrollment needs to be performed. 211 * @return An always-on hotword detector for the given keyphrase and locale. 214 String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) { 221 mHotwordDetector = new AlwaysOnHotwordDetector(keyphrase, locale, callback, 213 createAlwaysOnHotwordDetector( String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) argument
|
/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/tools/split-select/ |
H A D | RuleGenerator.cpp | 102 if (group[index].config.locale != 0) { 103 sp<Rule> locale = new Rule(); local 104 locale->op = Rule::EQUALS; 105 locale->key = Rule::LANGUAGE; 108 locale->stringArgs.add(String8(str)); 109 rootRule->subrules.add(locale);
|