Searched defs:locale (Results 26 - 50 of 89) sorted by relevance

1234

/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java75 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/core/tests/inputmethodtests/src/android/os/
H A DInputMethodSubtypeSwitchingControllerTest.java45 private static InputMethodSubtype createDummySubtype(final String locale) { argument
49 .setSubtypeLocale(locale)
/frameworks/base/tools/split-select/
H A DRuleGenerator.cpp102 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);
/frameworks/av/media/libmedia/
H A DMediaScanner.cpp40 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/service/textservice/
H A DSpellCheckerService.java65 * locale before {@link SpellCheckerService.Session#onCreate()} </p>
242 public InternalISpellCheckerSession(String locale, ISpellCheckerSessionListener listener, argument
246 mLocale = locale;
316 String locale, ISpellCheckerSessionListener listener, Bundle bundle) {
321 new InternalISpellCheckerSession(locale, listener, bundle, session);
365 public SentenceLevelAdapter(Locale locale) { argument
366 mWordIterator = new WordIterator(locale);
315 getISpellCheckerSession( String locale, ISpellCheckerSessionListener listener, Bundle bundle) argument
/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionService.java257 * Creates an {@link AlwaysOnHotwordDetector} for the given keyphrase and locale.
263 * @param locale The locale for which the enrollment needs to be performed.
265 * @return An always-on hotword detector for the given keyphrase and locale.
268 String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) {
275 mHotwordDetector = new AlwaysOnHotwordDetector(keyphrase, locale, callback,
267 createAlwaysOnHotwordDetector( String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) argument
/frameworks/base/core/java/android/speech/tts/
H A DTtsEngines.java66 /** Locale delimiter used by the old-style 3 char locale string format (like "eng-usa") */
69 /** Locale delimiter used by the new-style locale string format (Locale.toString() results,
323 * Returns the default locale for a given TTS engine. Attempts to read the
325 * default phone locale is returned.
327 * @param engineName the engine to return the locale for.
328 * @return the locale preference for this engine. Will be non null.
336 * Returns the default locale for a given TTS engine from given settings string. */
349 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead");
360 * True if a given TTS engine uses the default phone locale as a default locale
470 toOldLocaleStringFormat(Locale locale) argument
[all...]
H A DVoice.java30 * multiple voices for each locale, with different set of features.
71 Locale locale,
77 this.mLocale = locale;
123 * @return The voice's locale
189 .append(", locale: ").append(mLocale)
70 Voice(String name, Locale locale, int quality, int latency, boolean requiresNetworkConnection, Set<String> features) argument
/frameworks/base/core/java/android/text/
H A DBidiFormatter.java157 * @param locale The context locale.
159 public Builder(Locale locale) { argument
160 initialize(isRtlLocale(locale));
234 * Factory for creating an instance of BidiFormatter for the default locale directionality.
251 * Factory for creating an instance of BidiFormatter given the context locale.
253 * @param locale The context locale.
255 public static BidiFormatter getInstance(Locale locale) { argument
256 return new Builder(locale)
449 isRtlLocale(Locale locale) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java184 Locale locale = context.getResources().getConfiguration().locale;
187 if (sIs24HourLocale != null && sIs24HourLocale.equals(locale)) {
193 java.text.DateFormat.getTimeInstance(java.text.DateFormat.LONG, locale);
209 sIs24HourLocale = locale;
221 * locale. A skeleton is similar to, and uses the same format characters as, a Unicode
226 * "MMMM d" in the {@code en_US} locale, but "d. MMMM" in the {@code de_CH} locale.
233 * same "MMMMd" input, this method will return "d LLLL" in the {@code fa_IR} locale,
235 * so "Md" would give a different result to "MMMd", say, except in a locale suc
246 getBestDateTimePattern(Locale locale, String skeleton) argument
[all...]
/frameworks/base/core/java/android/text/style/
H A DSuggestionSpan.java111 * @param locale Locale of the suggestions
115 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { argument
116 this(null, locale, suggestions, flags, null);
121 * @param locale locale Locale of the suggestions
128 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, argument
133 if (locale != null) {
134 mLocaleString = locale.toString();
136 mLocaleString = context.getResources().getConfiguration().locale.toString();
138 Log.e("SuggestionSpan", "No locale o
293 hashCodeInternal(String[] suggestions, String locale, String notificationTargetClassName) argument
[all...]
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSubtype.java35 * Subtype can describe locale (e.g. en_US, fr_FR...) used for settings.
51 * @param locale The locale supported by the subtype
54 public SpellCheckerSubtype(int nameId, String locale, String extraValue) { argument
56 mSubtypeLocale = locale != null ? locale : "";
79 * @return the locale of the subtype
173 * can have only one %s in it. If there is, the %s part will be replaced with the locale's
180 final Locale locale = constructLocaleFromString(mSubtypeLocale);
181 final String localeStr = locale !
219 hashCodeInternal(String locale, String extraValue) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DSpellChecker.java145 private void setLocale(Locale locale) { argument
146 mCurrentLocale = locale;
150 if (locale != null) {
151 // Change SpellParsers' wordIterator locale
152 mWordIterator = new WordIterator(locale);
155 // This class is the listener for locale change: warn other locale-aware objects
220 final Locale locale = mTextView.getSpellCheckerLocale();
222 if (locale == null || mCurrentLocale == null || (!(mCurrentLocale.equals(locale)))) {
[all...]
H A DTimePicker.java316 // The current locale
327 // initialization based on locale
331 public void setCurrentLocale(Locale locale) { argument
332 if (locale.equals(mCurrentLocale)) {
335 mCurrentLocale = locale;
H A DCalendarView.java625 // Initialization based on locale
629 protected void setCurrentLocale(Locale locale) { argument
630 if (locale.equals(mCurrentLocale)) {
633 mCurrentLocale = locale;
H A DTimePickerSpinnerDelegate.java392 setCurrentLocale(newConfig.locale);
470 * Sets the current locale.
472 * @param locale The current locale.
475 public void setCurrentLocale(Locale locale) { argument
476 super.setCurrentLocale(locale);
477 mTempCalendar = Calendar.getInstance(locale);
594 LocaleData d = LocaleData.get(context.getResources().getConfiguration().locale);
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java51 public void onLocaleSelected(Locale locale); argument
60 Locale locale; field in class:LocalePicker.LocaleInfo
62 public LocaleInfo(String label, Locale locale) { argument
64 this.locale = locale;
72 return locale;
104 for (String locale : localeList) {
105 final Locale l = Locale.forLanguageTag(locale.replace('_', '-'));
122 if (previous.locale.getLanguage().equals(l.getLanguage()) &&
123 !previous.locale
244 updateLocale(Locale locale) argument
[all...]
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
H A DOverlayBaseTest.java39 private void setLocale(Locale locale) { argument
40 Locale.setDefault(locale);
42 config.locale = locale;
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java548 * @param context the context used to look up the current locale / country
571 Locale locale = context.getResources().getConfiguration().locale;
572 String countryIso = getCurrentCountryIso(context, locale);
584 String description = geocoder.getDescriptionForNumber(pn, locale);
596 private static String getCurrentCountryIso(Context context, Locale locale) { argument
609 countryIso = locale.getCountry();
610 Rlog.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
/frameworks/base/tools/aapt/
H A DAaptConfig.cpp38 AaptLocaleValue locale; local
66 localeIndex = locale.initFromDirName(parts, index);
70 locale.writeTo(&config);
/frameworks/base/tools/aapt2/
H A DConfigDescription.cpp560 LocaleValue locale; local
585 partsConsumed = locale.initFromParts(partIter, partsEnd);
589 locale.writeTo(&config);
/frameworks/base/tools/layoutlib/bridge/src/android/text/
H A DStaticLayout_Delegate.java60 /*package*/ static void nSetLocale(long nativeBuilder, String locale, long nativeHyphenator) { argument
63 builder.mLocale = locale;
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/
H A DICU_Delegate.java109 /*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/support/v4/java/android/support/v4/text/
H A DBidiFormatter.java153 * @param locale The context locale.
155 public Builder(Locale locale) { argument
156 initialize(isRtlLocale(locale));
230 * Factory for creating an instance of BidiFormatter for the default locale directionality.
247 * Factory for creating an instance of BidiFormatter given the context locale.
249 * @param locale The context locale.
251 public static BidiFormatter getInstance(Locale locale) { argument
252 return new Builder(locale)
439 isRtlLocale(Locale locale) argument
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java39 * (IME). Subtype can describe locale (e.g. en_US, fr_FR...) and mode (e.g. voice, keyboard...),
142 * the %s part will be replaced with the locale's display name by
155 * Arrays.hashCode(new Object[] {locale, mode, extraValue,
165 * @param subtypeLocale is the locale supported by this subtype.
200 private static InputMethodSubtypeBuilder getBuilder(int nameId, int iconId, String locale, argument
206 builder.mSubtypeLocale = locale;
223 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, argument
225 this(nameId, iconId, locale, mode, extraValue, isAuxiliary,
234 * one %s in it. If there is, the %s part will be replaced with the locale's display name by
237 * @param locale Th
260 InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, int id) argument
522 hashCodeInternal(String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, boolean isAsciiCapable) argument
[all...]

Completed in 556 milliseconds

1234