Searched refs:locale (Results 101 - 125 of 130) sorted by relevance

123456

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java943 /*package*/ static void native_setTextLocale(long native_object, String locale) { argument
950 delegate.setTextLocale(locale);
1229 private void setTextLocale(String locale) { argument
1230 mLocale = new Locale(locale);
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java135 * 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/tests/coretests/src/android/database/
H A DDatabaseGeneralTest.java945 * This test is available only when the platform has a locale with the language "ja".
956 for (Locale locale : localeArray) {
957 if (locale != null) {
958 final String language = locale.getLanguage();
962 japaneseLocale = locale;
964 englishLocale = locale;
978 "English locale does not exist.") :
980 "Japanese locale does not exist." :
1008 // Assume setLocale() does REINDEX and an English locale does not consider
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp322 // generate bcp47 identifier for the supplied locale
324 const char* locale) {
328 if (locale == NULL) {
334 uloc_canonicalize(locale, canonicalChars, ULOC_FULLNAME_CAPACITY,
355 ALOGD("uloc_canonicalize(\"%s\") failed: %s", locale,
362 static void setTextLocale(JNIEnv* env, jobject clazz, jlong objHandle, jstring locale) { argument
364 ScopedUtfChars localeChars(env, locale);
323 toLanguageTag(char* output, size_t outSize, const char* locale) argument
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DCarrierText.java341 mLocale = context.getResources().getConfiguration().locale;
H A DKeyguardTransportControlView.java513 getContext().getResources().getConfiguration().locale,
/frameworks/base/core/java/android/widget/
H A DListPopupWindow.java227 // Set the default layout direction to match the default locale one
228 final Locale locale = mContext.getResources().getConfiguration().locale;
229 mLayoutDirection = TextUtils.getLayoutDirectionFromLocale(locale);
H A DTimePickerClockDelegate.java443 public void setCurrentLocale(Locale locale) { argument
444 super.setCurrentLocale(locale);
445 mTempCalendar = Calendar.getInstance(locale);
H A DSimpleMonthView.java193 mDayFormatter = new SimpleDateFormat("EEEEE", newConfig.locale);
H A DTextView.java2591 * @param locale the {@link Locale} for drawing text, must not be null.
2595 public void setTextLocale(Locale locale) { argument
2596 mTextPaint.setTextLocale(locale);
8299 // Start fetching the text services locale asynchronously.
8301 // If !allowNullLocale and there is no cached text services locale, just return the default
8302 // locale.
8308 * This is a temporary method. Future versions may support multi-locale text.
8309 * Caveat: This method may not return the latest text services locale, but this should be
8312 * @return The locale that should be used for a word iterator
8314 * the current IME's locale, o
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_SQLiteConnection.cpp274 const char* locale = env->GetStringUTFChars(localeStr, NULL); local
275 int err = register_localized_collators(connection->db, locale, UTF16_STORAGE);
276 env->ReleaseStringUTFChars(localeStr, locale);
H A Dandroid_util_AssetManager.cpp550 jstring locale)
552 ScopedUtfChars locale8(env, locale);
597 jstring locale, jint orientation,
615 const char* locale8 = locale != NULL ? env->GetStringUTFChars(locale, NULL) : NULL;
636 if (locale != NULL) env->ReleaseStringUTFChars(locale, locale8);
549 android_content_AssetManager_setLocale(JNIEnv* env, jobject clazz, jstring locale) argument
595 android_content_AssetManager_setConfiguration(JNIEnv* env, jobject clazz, jint mcc, jint mnc, jstring locale, jint orientation, jint touchscreen, jint density, jint keyboard, jint keyboardHidden, jint navigation, jint screenWidth, jint screenHeight, jint smallestScreenWidthDp, jint screenWidthDp, jint screenHeightDp, jint screenLayout, jint uiMode, jint sdkVersion) argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java244 // Set the default layout direction to match the default locale one
245 final Locale locale = mContext.getResources().getConfiguration().locale;
246 mLayoutDirection = TextUtilsCompat.getLayoutDirectionFromLocale(locale);
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiControlService.java164 Locale locale = Locale.getDefault();
165 if (locale.equals(Locale.TAIWAN) || locale.equals(HONG_KONG) || locale.equals(MACAU)) {
171 return locale.getISO3Language();
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java1101 /** The current locale is unknown, look for a country code or don't format */
1171 * Returns the phone number formatting type for the given locale.
1173 * @param locale The locale of interest, usually {@link Locale#getDefault()}
1174 * @return The formatting type for the given locale, or FORMAT_UNKNOWN if the formatting
1175 * rules are not known for the given locale
1179 public static int getFormatTypeForLocale(Locale locale) { argument
1180 String country = locale.getCountry();
2024 Locale locale = context.getResources().getConfiguration().locale;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DBaseStatusBar.java539 mLocale = currentConfig.locale;
712 final Locale locale = mContext.getResources().getConfiguration().locale;
713 final int ld = TextUtils.getLayoutDirectionFromLocale(locale);
716 if (! locale.equals(mLocale) || ld != mLayoutDirection || fontScale != mFontScale) {
719 "config changed locale/LD: %s (%d) -> %s (%d)", mLocale, mLayoutDirection,
720 locale, ld));
722 mLocale = locale;
/frameworks/base/tools/aapt/
H A DResourceTable.cpp572 return config.locale == 0;
880 curParams.locale == pseudoParams.locale) ||
882 curParams.locale == pseudoBidiParams.locale)) {
1322 // Note the existence and locale of every string we process
1325 String8 locale(rawLocale);
1346 // Untranslatable strings must only exist in the default [empty] locale
1347 if (locale.size() > 0) {
1349 "string '%s' marked untranslatable but exists in locale '
2657 addLocalization(const String16& name, const String8& locale, const SourcePos& src) argument
2705 AaptLocaleValue locale; local
[all...]
H A DResourceTable.h241 void addLocalization(const String16& name, const String8& locale, const SourcePos& src);
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1791 if (l.locale != r.locale) {
1795 return l.locale - r.locale;
1917 if (locale || o.locale) {
1963 if (locale || o.locale) {
2096 if (locale || o.locale) {
5390 char locale[RESTABLE_MAX_LOCALE_LEN]; local
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuItemImpl.java118 String lang = menu.getContext().getResources().getConfiguration().locale.toString();
/frameworks/base/include/androidfw/
H A DResourceTypes.h880 // The most specific locale can consist of:
951 uint32_t locale; member in union:android::ResTable_config::__anon903
1127 // the locale field.
1131 // chars. Interpreted in conjunction with the locale field.
1191 // Get the string representation of the locale component of this
1199 // well formed BCP-47 locale contained in |in|. The input locale is
1204 locale = 0;
/frameworks/base/services/core/java/com/android/server/
H A DMountService.java858 // the system locale out of the mount service.
883 Slog.d(TAG, "Got locale " + systemLocale + " from mount service");
884 Locale locale = Locale.forLanguageTag(systemLocale);
886 config.setLocale(locale);
890 Slog.e(TAG, "Error setting system locale from mount service", e);
895 SystemProperties.set("persist.sys.language", locale.getLanguage());
896 SystemProperties.set("persist.sys.country", locale.getCountry());
H A DInputMethodManagerService.java744 // according to the new system locale.
795 final Locale newLocale = mRes.getConfiguration().locale;
815 // If the locale is changed, needs to reset the default ime
912 mLastSystemLocale = mRes.getConfiguration().locale;
2223 final String locale = mCurrentSubtype == null
2224 ? mRes.getConfiguration().locale.toString()
2232 InputMethodUtils.SUBTYPE_MODE_KEYBOARD, locale, true);
2237 if(keyboardSubtype.getLocale().equals(locale)) {
3139 // 1. Search by the current subtype's locale from enabledSubtypes.
3144 // 2. Search by the system locale fro
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerImpl.java175 mLocale = mContext.getResources().getConfiguration().locale;
533 Locale current = mContext.getResources().getConfiguration().locale;
/frameworks/base/core/java/android/text/
H A DStaticLayout.java859 private static native int[] nLineBreakOpportunities(String locale, char[] text, int length, int[] recycle); argument

Completed in 852 milliseconds

123456