Searched refs:locale (Results 51 - 75 of 130) sorted by relevance

123456

/frameworks/base/core/java/android/hardware/soundtrigger/
H A DSoundTrigger.java265 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/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java540 * @param context the context used to look up the current locale / country
563 Locale locale = context.getResources().getConfiguration().locale;
564 String countryIso = getCurrentCountryIso(context, locale);
576 String description = geocoder.getDescriptionForNumber(pn, locale);
588 private static String getCurrentCountryIso(Context context, Locale locale) { argument
601 countryIso = locale.getCountry();
602 Rlog.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
H A DSoundTriggerTest.java54 assertEquals(keyphrase.locale, unparceled.locale);
73 assertEquals(keyphrase.locale, unparceled.locale);
92 assertEquals(keyphrase.locale, unparceled.locale);
/frameworks/base/core/java/android/widget/
H A DDatePicker.java489 // The current locale
500 // initialization based on locale
504 protected void setCurrentLocale(Locale locale) { argument
505 if (locale.equals(mCurrentLocale)) {
508 mCurrentLocale = locale;
589 // initialization based on locale
861 setCurrentLocale(newConfig.locale);
902 * Sets the current locale.
904 * @param locale The current locale
907 setCurrentLocale(Locale locale) argument
942 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument
[all...]
H A DCalendarView.java593 // Initialization based on locale
597 protected void setCurrentLocale(Locale locale) { argument
598 if (locale.equals(mCurrentLocale)) {
601 mCurrentLocale = locale;
H A DTimePicker.java275 // The current locale
286 // initialization based on locale
290 public void setCurrentLocale(Locale locale) { argument
291 if (locale.equals(mCurrentLocale)) {
294 mCurrentLocale = locale;
H A DCalendarViewLegacyDelegate.java607 setCurrentLocale(newConfig.locale);
611 * Sets the current locale.
613 * @param locale The current locale.
616 protected void setCurrentLocale(Locale locale) { argument
617 super.setCurrentLocale(locale);
619 mTempDate = getCalendarForLocale(mTempDate, locale);
620 mFirstDayOfMonth = getCalendarForLocale(mFirstDayOfMonth, locale);
621 mMinDate = getCalendarForLocale(mMinDate, locale);
622 mMaxDate = getCalendarForLocale(mMaxDate, locale);
649 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument
[all...]
H A DDatePickerCalendarDelegate.java109 final Locale locale = Locale.getDefault();
110 mMinDate = getCalendarForLocale(mMinDate, locale);
111 mMaxDate = getCalendarForLocale(mMaxDate, locale);
112 mTempDate = getCalendarForLocale(mMaxDate, locale);
113 mCurrentDate = getCalendarForLocale(mCurrentDate, locale);
231 * Gets a calendar for locale bootstrapped with the value of a given calendar.
234 * @param locale The locale.
236 private Calendar getCalendarForLocale(Calendar oldCalendar, Locale locale) { argument
238 return Calendar.getInstance(locale);
[all...]
/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionService.java203 * 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
H A DAlwaysOnHotwordDetector.java328 * @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/speech/tts/
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
H A DTtsEngines.java67 /** Locale delimiter used by the old-style 3 char locale string format (like "eng-usa") */
70 /** Locale delimiter used by the new-style locale string format (Locale.toString() results,
324 * Returns the default locale for a given TTS engine. Attempts to read the
326 * default phone locale is returned.
328 * @param engineName the engine to return the locale for.
329 * @return the locale preference for this engine. Will be non null.
337 * Returns the default locale for a given TTS engine from given settings string. */
350 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead");
361 * True if a given TTS engine uses the default phone locale as a default locale
471 toOldLocaleStringFormat(Locale locale) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp31 jfieldID locale; member in struct:android::__anon795
90 GET_FIELD_ID(gConfigurationClassInfo.locale, clazz,
91 "locale", "Ljava/util/Locale;");
H A Dandroid_text_StaticLayout.cpp71 BreakIterator* it = BreakIterator::createLineInstance(icuLocale.locale(), status);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DClock.java130 final Locale newLocale = getResources().getConfiguration().locale;
149 LocaleData d = LocaleData.get(context.getResources().getConfiguration().locale);
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp68 * Names for default app, locale, and vendor. We might want to change
69 * these to be an actual locale, e.g. always use en-US as the default.
354 * Set the current locale. Use NULL to indicate no locale.
357 * information in the locale-specific sections of the tree.
359 void AssetManager::setLocale(const char* locale) argument
362 setLocaleLocked(locale);
374 void AssetManager::setLocaleLocked(const char* locale) argument
383 // If we're attempting to set a locale that starts with "fil",
389 if (strncmp(locale, kFilPrefi
444 setConfiguration(const ResTable_config& config, const char* locale) argument
929 openInLocaleVendorLocked(const char* fileName, AccessMode mode, const asset_path& ap, const char* locale, const char* vendor) argument
1064 createPathNameLocked(const asset_path& ap, const char* locale, const char* vendor) argument
1781 fncScanAndMergeDirLocked( SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* locale, const char* vendor, const char* dirName) argument
[all...]
/frameworks/base/location/java/android/location/
H A DAddress.java63 public Address(Locale locale) { argument
64 mLocale = locale;
480 Locale locale = country.length() > 0 ?
483 Address a = new Address(locale);
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp312 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/split-select/
H A DGrouper.cpp50 } else if (split.config.locale != 0) {
/frameworks/base/core/tests/inputmethodtests/src/android/os/
H A DInputMethodTest.java57 // locale: en_US
68 // locale: en_GB
79 // locale: ja_JP
93 // locale: en_US
100 // locale: en_GB
107 // locale: en_IN
114 // locale: hi
121 // locale: ja_JP
128 // locale: zh_CN
135 // locale
187 callGetDefaultEnabledImesUnderWithLocale( final Context context, final boolean isSystemReady, final ArrayList<InputMethodInfo> imis, final Locale locale) argument
237 createDummyInputMethodSubtype(String locale, String mode, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, boolean isAsciiCapable) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java420 Locale locale = r.getConfiguration().locale;
421 if (locale == null) {
422 locale = Locale.getDefault();
440 return LocaleData.get(locale).yesterday;
442 return LocaleData.get(locale).tomorrow;
445 return LocaleData.get(locale).today;
510 * suited to the current locale), similar to that used on the call-in-progress
540 // Format the broken-down time in a locale-appropriate way.
819 // the 12- or 24-hour clock, icu4c will fall back to the locale'
[all...]
H A DDateFormat.java186 Locale locale = context.getResources().getConfiguration().locale;
189 if (sIs24HourLocale != null && sIs24HourLocale.equals(locale)) {
195 java.text.DateFormat.getTimeInstance(java.text.DateFormat.LONG, locale);
211 sIs24HourLocale = locale;
223 * locale. A skeleton is similar to, and uses the same format characters as, a Unicode
228 * "MMMM d" in the {@code en_US} locale, but "d. MMMM" in the {@code de_CH} locale.
235 * same "MMMMd" input, this method will return "d LLLL" in the {@code fa_IR} locale,
237 * so "Md" would give a different result to "MMMd", say, except in a locale suc
248 getBestDateTimePattern(Locale locale, String skeleton) argument
[all...]
H A DTimeFormatter.java68 Locale locale = Locale.getDefault();
70 if (sLocale == null || !(locale.equals(sLocale))) {
71 sLocale = locale;
72 sLocaleData = LocaleData.get(locale);
95 // This uses the US locale because number localization is handled separately (see below)
96 // and locale sensitive strings are output directly using outputBuilder.
203 // C99 locale modifiers are not supported.
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridge.java404 public boolean isRtl(String locale) { argument
405 return isLocaleRtl(locale);
408 public static boolean isLocaleRtl(String locale) { argument
409 if (locale == null) {
410 locale = "";
412 ULocale uLocale = new ULocale(locale);
/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java79 * @return the raw locale string for the user's preferred captioning
89 * @return the locale for the user's preferred captioning language, or null
206 final Locale locale = getLocale();
209 listener.onLocaleChanged(locale);
514 * Called when the captioning locale changes.
516 * @param locale the preferred captioning locale, or {@code null} if not specified
519 public void onLocaleChanged(@Nullable Locale locale) {} argument

Completed in 617 milliseconds

123456