/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputMethodSubtypeSwitchingController.java | 85 * Returns the language component of a given locale string. 88 private static String parseLanguageFromLocaleString(final String locale) { argument 89 final int idx = locale.indexOf('_'); 91 return locale; 93 return locale.substring(0, idx); 173 final Locale locale = context.getResources().getConfiguration().locale; 174 mSystemLocaleStr = locale != null ? locale.toString() : "";
|
H A D | InputMethodUtils.java | 143 // At first, find the fallback locale from the IMEs that are declared as "default" in the 144 // current locale. Note that IME developers can declare an IME as "default" only for 155 // If no fallback locale is found in the above condition, find fallback locales regardless 166 Slog.w(TAG, "Found no fallback locale. imis=" + Arrays.toString(imis.toArray())); 193 return context.getResources().getConfiguration().locale; 207 @Nullable final Locale locale, final boolean checkCountry, 211 if (isSystemImeThatHasSubtypeOf(imi, context, checkDefaultAttribute, locale, 266 // 1. checkDefaultAttribute: true, locale: fallbackLocale, checkCountry: true 267 // 2. checkDefaultAttribute: false, locale: fallbackLocale, checkCountry: true 268 // 3. checkDefaultAttribute: true, locale 205 fillImes(final ArrayList<InputMethodInfo> imis, final Context context, final boolean checkDefaultAttribute, @Nullable final Locale locale, final boolean checkCountry, final String requiredSubtypeMode) argument 400 containsSubtypeOf(final InputMethodInfo imi, @Nullable final Locale locale, final boolean checkCountry, final String mode) argument 574 getLanguageFromLocaleString(String locale) argument 593 findLastResortApplicableSubtypeLocked( Resources res, List<InputMethodSubtype> subtypes, String mode, String locale, boolean canIgnoreLocaleAsLastResort) argument [all...] |
/frameworks/base/core/tests/inputmethodtests/src/android/os/ |
H A D | InputMethodTest.java | 73 // locale: en_US 84 // locale: en_GB 95 // locale: ja_JP 109 // locale: en_US 116 // locale: en_GB 123 // locale: en_IN 130 // locale: hi 137 // locale: ja_JP 144 // locale: zh_CN 151 // locale 570 callGetImplicitlyApplicableSubtypesLockedWithLocale( final Locale locale, final InputMethodInfo imi) argument 608 callGetDefaultEnabledImesWithLocale( final Context context, final boolean isSystemReady, final ArrayList<InputMethodInfo> imis, final Locale locale) argument 662 createDummyInputMethodSubtype(String locale, String mode, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, boolean isAsciiCapable, boolean isEnabledWhenDefaultIsNotAsciiCapable) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaScanner.cpp | 312 JNIEnv *env, jobject thiz, jstring locale) 321 if (locale == NULL) { 325 const char *localeStr = env->GetStringUTFChars(locale, NULL); 331 env->ReleaseStringUTFChars(locale, localeStr); 311 android_media_MediaScanner_setLocale( JNIEnv *env, jobject thiz, jstring locale) argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
H A D | Bridge.java | 509 public boolean isRtl(String locale) { argument 510 return isLocaleRtl(locale); 513 public static boolean isLocaleRtl(String locale) { argument 514 if (locale == null) { 515 locale = ""; 517 ULocale uLocale = new ULocale(locale);
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
H A D | SoundTrigger.java | 265 public final String locale; field in class:SoundTrigger.Keyphrase 274 public Keyphrase(int id, int recognitionModes, String locale, String text, int[] users) { argument 277 this.locale = locale; 296 String locale = in.readString(); 304 return new Keyphrase(id, recognitionModes, locale, text, users); 311 dest.writeString(locale); 332 result = prime * result + ((locale == null) ? 0 : locale.hashCode()); 354 if (locale [all...] |
/frameworks/base/core/java/android/service/voice/ |
H A D | AlwaysOnHotwordDetector.java | 328 * @param locale The java locale for the detector. 335 public AlwaysOnHotwordDetector(String text, Locale locale, Callback callback, argument 340 mLocale = locale; 342 mKeyphraseMetadata = mKeyphraseEnrollmentInfo.getKeyphraseMetadata(text, locale); 733 // No enrollment application supports this keyphrase/locale 743 private boolean internalGetIsEnrolled(int keyphraseId, Locale locale) { argument 746 mVoiceInteractionService, keyphraseId, locale.toLanguageTag());
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | CaptioningManager.java | 80 * @return the raw locale string for the user's preferred captioning 90 * @return the locale for the user's preferred captioning language, or null 207 final Locale locale = getLocale(); 210 listener.onLocaleChanged(locale); 545 * Called when the captioning locale changes. 547 * @param locale the preferred captioning locale, or {@code null} if not specified 550 public void onLocaleChanged(@Nullable Locale locale) {} argument
|
/frameworks/base/core/java/android/widget/ |
H A D | DatePickerCalendarDelegate.java | 100 final Locale locale = mCurrentLocale; 101 mCurrentDate = Calendar.getInstance(locale); 102 mTempDate = Calendar.getInstance(locale); 103 mMinDate = Calendar.getInstance(locale); 104 mMaxDate = Calendar.getInstance(locale); 181 // Initialize for current locale. This also initializes the date, so no 293 protected void onLocaleChanged(Locale locale) { argument 302 final String datePattern = DateFormat.getBestDateTimePattern(locale, "EMMMd"); 303 mMonthDayFormat = new SimpleDateFormat(datePattern, locale); 304 mYearFormat = new SimpleDateFormat("y", locale); [all...] |
H A D | DatePicker.java | 495 // The current locale 509 protected void setCurrentLocale(Locale locale) { argument 510 if (!locale.equals(mCurrentLocale)) { 511 mCurrentLocale = locale; 512 onLocaleChanged(locale); 527 protected void onLocaleChanged(Locale locale) { argument 598 // initialization based on locale 870 setCurrentLocale(newConfig.locale); 901 * Sets the current locale. 903 * @param locale Th 906 setCurrentLocale(Locale locale) argument 941 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument [all...] |
H A D | CalendarViewLegacyDelegate.java | 606 setCurrentLocale(newConfig.locale); 610 * Sets the current locale. 612 * @param locale The current locale. 615 protected void setCurrentLocale(Locale locale) { argument 616 super.setCurrentLocale(locale); 618 mTempDate = getCalendarForLocale(mTempDate, locale); 619 mFirstDayOfMonth = getCalendarForLocale(mFirstDayOfMonth, locale); 620 mMinDate = getCalendarForLocale(mMinDate, locale); 621 mMaxDate = getCalendarForLocale(mMaxDate, locale); 648 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument [all...] |
H A D | TimePickerClockDelegate.java | 523 public void setCurrentLocale(Locale locale) { argument 524 super.setCurrentLocale(locale); 525 mTempCalendar = Calendar.getInstance(locale);
|
/frameworks/base/location/java/android/location/ |
H A D | Address.java | 63 public Address(Locale locale) { argument 64 mLocale = locale; 480 Locale locale = country.length() > 0 ? 483 Address a = new Address(locale);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | TextServicesManagerService.java | 185 // TODO: Update for each locale 355 // Look up a spell checker based on the system locale. 358 final Locale systemLocal = mContext.getResources().getConfiguration().locale; 367 final Locale locale = suitableLocales.get(localeIndex); 376 if (locale.equals(subtypeLocale)) { 395 public SpellCheckerInfo getCurrentSpellChecker(String locale) { argument 417 // TODO: Save SpellCheckerSubtype by supported languages by looking at "locale". 420 String locale, boolean allowImplicitlySelectedSubtype) { 457 // 1. Use keyboard locale if available in the spell checker 463 // 2. Use System locale i 419 getCurrentSpellCheckerSubtype( String locale, boolean allowImplicitlySelectedSubtype) argument 498 getSpellCheckerService(String sciId, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, Bundle bundle) argument 578 startSpellCheckerServiceInnerLocked(SpellCheckerInfo info, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument 641 setCurrentSpellChecker(String locale, String sciId) argument 658 setCurrentSpellCheckerSubtype(String locale, int hashCode) argument 827 SpellCheckerBindGroup(InternalServiceConnection connection, ITextServicesSessionListener listener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument 863 addListener(ITextServicesSessionListener tsListener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument 959 InternalServiceConnection( String id, String locale, Bundle bundle) argument [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | LineBreaker.cpp | 57 void LineBreaker::setLocale(const icu::Locale& locale, Hyphenator* hyphenator) { argument 60 mBreakIterator = icu::BreakIterator::createLineInstance(locale, status); 63 // TODO: load actual resource dependent on locale; letting Minikin do it is a hack
|
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDatabase.java | 62 * two more, <code>LOCALIZED</code>, which changes with the system's current locale, 64 * to the current locale. 658 * <p>Sets the locale of the database to the the system's current locale. 676 * <p>Sets the locale of the database to the the system's current locale. 819 * <p>Sets the locale of the database to the the system's current locale. 1745 * Sets the locale for this database. Does nothing if this database has 1748 * @param locale Th 1754 setLocale(Locale locale) argument [all...] |
H A D | SQLiteConnection.java | 123 private static native void nativeRegisterLocalizedCollators(long connectionPtr, String locale); argument 358 final String newLocale = mConfiguration.locale.toString(); 369 execute("CREATE TABLE IF NOT EXISTS android_metadata (locale TEXT)", null, null); 371 // Check whether the locale was actually changed. 372 final String oldLocale = executeForString("SELECT locale FROM android_metadata " 373 + "UNION SELECT NULL ORDER BY locale DESC LIMIT 1", null, null); 378 // Go ahead and update the indexes using the new locale. 383 execute("INSERT INTO android_metadata (locale) VALUES(?)", 391 throw new SQLiteException("Failed to change locale for db '" + mConfiguration.label 414 boolean localeChanged = !configuration.locale [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeechService.java | 81 * service to expose multiple backends for a single locale. Each one of them can have a different 92 * {@link #onGetDefaultVoiceNameFor(String, String, String)} is a link between locale and voice 97 * If the client uses a voice instead of a locale, {@link SynthesisRequest} will contain the 101 * pre-existing locale-based implementation. 170 * @return Code indicating the support status for the locale. 210 * @return Code indicating the support status for the locale. 254 private int getExpectedLanguageAvailableStatus(Locale locale) { argument 256 if (locale.getVariant().isEmpty()) { 257 if (locale.getCountry().isEmpty()) { 273 * the locale' [all...] |
H A D | TextToSpeech.java | 135 * Denotes the language is available exactly as specified by the locale. 141 * by the locale, but not the variant. 146 * Denotes the language is available for the language by the locale, 379 * locale have to be requested by passing following extra parameters: 444 * the TextToSpeech engine specifies the locale associated with each resource file. 1266 * Queries the engine for the set of features it supports for a given locale. 1277 * @param locale The locale to query features for. 1284 public Set<String> getFeatures(final Locale locale) { argument 1291 locale [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteConnection.cpp | 276 const char* locale = env->GetStringUTFChars(localeStr, NULL); local 277 int err = register_localized_collators(connection->db, locale, UTF16_STORAGE); 278 env->ReleaseStringUTFChars(localeStr, locale);
|
H A D | AndroidRuntime.cpp | 375 * Read the persistent locale. Inspects the following system properties 378 * (1) persist.sys.locale 381 * (3) ro.product.locale 382 * (4) ro.product.locale.language/region 386 * to M. The same goes for ro.product.locale.language/region as well. 390 const std::string locale = getProperty("persist.sys.locale", ""); local 391 if (!locale.empty()) { 392 return locale; 412 const std::string productLocale = getProperty("ro.product.locale", ""); 831 const std::string locale = readLocale(); local [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 675 * Change the locale being used by this asset manager. Not for use by 679 public native final void setLocale(String locale); argument 688 * <p>On SDK 20 (Android 4.4W: Kitkat for watches) and below, locale strings 699 public native final void setConfiguration(int mcc, int mnc, String locale, argument
|
H A D | Configuration.java | 39 * user-specified configuration options (locale and scaling) as well 78 * Current user preference for the locale, corresponding to 79 * <a href="{@docRoot}guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a> 82 public Locale locale; field in class:Configuration 655 if (o.locale != null) { 656 locale = (Locale) o.locale.clone(); 695 if (locale != null) { 697 sb.append(locale); 699 sb.append(" ?locale"); 1347 setLayoutDirection(Locale locale) argument 1373 localeToResourceQualifier(Locale locale) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | StaticLayout.java | 342 private void setLocale(Locale locale) { argument 343 if (!locale.equals(mLocale)) { 344 nSetLocale(mNativePtr, locale.toLanguageTag(), Hyphenator.get(locale)); 345 mLocale = locale; 1248 private static native void nSetLocale(long nativePtr, String locale, long nativeHyphenator); argument
|
H A D | TextUtils.java | 1206 * @param oneMore the string for "1 more" in the current locale 1207 * @param more the string for "%d more" in the current locale 1749 * @param locale the Locale for which we want the layout direction. Can be null. 1756 public static int getLayoutDirectionFromLocale(Locale locale) { argument 1757 if (locale != null && !locale.equals(Locale.ROOT)) { 1758 final String scriptSubtag = ICU.addLikelySubtags(locale).getScript(); 1759 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale); 1773 * Fallback algorithm to detect the locale direction. Rely on the fist char of the 1774 * localized locale nam 1786 getLayoutDirectionFromFirstChar(Locale locale) argument [all...] |