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

123456

/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/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 DTimePickerSpinnerDelegate.java433 public void setCurrentLocale(Locale locale) { argument
434 super.setCurrentLocale(locale);
435 mTempCalendar = Calendar.getInstance(locale);
H A DSimpleMonthView.java194 mDayFormatter = new SimpleDateFormat("EEEEE", newConfig.locale);
H A DTextView.java2583 * @param locale the {@link Locale} for drawing text, must not be null.
2587 public void setTextLocale(Locale locale) { argument
2588 mTextPaint.setTextLocale(locale);
8283 // Start fetching the text services locale asynchronously.
8285 // If !allowNullLocale and there is no cached text services locale, just return the default
8286 // locale.
8292 * This is a temporary method. Future versions may support multi-locale text.
8293 * Caveat: This method may not return the latest text services locale, but this should be
8296 * @return The locale that should be used for a word iterator
8298 * 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.cpp549 jstring locale)
551 ScopedUtfChars locale8(env, locale);
596 jstring locale, jint orientation,
614 const char* locale8 = locale != NULL ? env->GetStringUTFChars(locale, NULL) : NULL;
635 if (locale != NULL) env->ReleaseStringUTFChars(locale, locale8);
548 android_content_AssetManager_setLocale(JNIEnv* env, jobject clazz, jstring locale) argument
594 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.java231 // Set the default layout direction to match the default locale one
232 final Locale locale = mContext.getResources().getConfiguration().locale;
233 mLayoutDirection = TextUtilsCompat.getLayoutDirectionFromLocale(locale);
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java1099 /** The current locale is unknown, look for a country code or don't format */
1169 * Returns the phone number formatting type for the given locale.
1171 * @param locale The locale of interest, usually {@link Locale#getDefault()}
1172 * @return The formatting type for the given locale, or FORMAT_UNKNOWN if the formatting
1173 * rules are not known for the given locale
1177 public static int getFormatTypeForLocale(Locale locale) { argument
1178 String country = locale.getCountry();
2003 Locale locale = context.getResources().getConfiguration().locale;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DBaseStatusBar.java487 mLocale = currentConfig.locale;
650 final Locale locale = mContext.getResources().getConfiguration().locale;
651 final int ld = TextUtils.getLayoutDirectionFromLocale(locale);
654 if (! locale.equals(mLocale) || ld != mLayoutDirection || fontScale != mFontScale) {
657 "config changed locale/LD: %s (%d) -> %s (%d)", mLocale, mLayoutDirection,
658 locale, ld));
660 mLocale = locale;
/frameworks/base/tools/aapt/
H A DResourceTable.cpp567 return config.locale == 0;
875 curParams.locale == pseudoParams.locale) ||
877 curParams.locale == pseudoBidiParams.locale)) {
1317 // Note the existence and locale of every string we process
1320 String8 locale(rawLocale);
1341 // Untranslatable strings must only exist in the default [empty] locale
1342 if (locale.size() > 0) {
1344 "string '%s' marked untranslatable but exists in locale '
2621 addLocalization(const String16& name, const String8& locale, const SourcePos& src) argument
2669 AaptLocaleValue locale; local
[all...]
H A DResourceTable.h240 void addLocalization(const String16& name, const String8& locale, const SourcePos& src);
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1787 if (l.locale != r.locale) {
1791 return l.locale - r.locale;
1913 if (locale || o.locale) {
1959 if (locale || o.locale) {
2092 if (locale || o.locale) {
5358 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.h860 // The most specific locale can consist of:
931 uint32_t locale; member in union:android::ResTable_config::__anon890
1107 // the locale field.
1111 // chars. Interpreted in conjunction with the locale field.
1171 // Get the string representation of the locale component of this
1179 // well formed BCP-47 locale contained in |in|. The input locale is
1184 locale = 0;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardTransportControlView.java513 getContext().getResources().getConfiguration().locale,
/frameworks/base/services/core/java/com/android/server/
H A DMountService.java828 // the system locale out of the mount service.
853 Slog.d(TAG, "Got locale " + systemLocale + " from mount service");
854 Locale locale = Locale.forLanguageTag(systemLocale);
856 config.setLocale(locale);
860 Slog.e(TAG, "Error setting system locale from mount service", e);
865 SystemProperties.set("persist.sys.language", locale.getLanguage());
866 SystemProperties.set("persist.sys.country", locale.getCountry());
H A DInputMethodManagerService.java743 // according to the new system locale.
790 final Locale newLocale = mRes.getConfiguration().locale;
810 // If the locale is changed, needs to reset the default ime
907 mLastSystemLocale = mRes.getConfiguration().locale;
2218 final String locale = mCurrentSubtype == null
2219 ? mRes.getConfiguration().locale.toString()
2227 InputMethodUtils.SUBTYPE_MODE_KEYBOARD, locale, true);
2232 if(keyboardSubtype.getLocale().equals(locale)) {
3126 // 1. Search by the current subtype's locale from enabledSubtypes.
3131 // 2. Search by the system locale fro
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerImpl.java242 mLastLocale = mContext.getResources().getConfiguration().locale;
611 mLocale = 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
/frameworks/base/core/java/com/android/internal/app/
H A DResolverActivity.java1056 mCollator = Collator.getInstance(context.getResources().getConfiguration().locale);
/frameworks/base/media/java/android/media/
H A DMediaScanner.java1866 public native void setLocale(String locale); argument
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java1903 Log.d(TAG, "Storing locale " + l.toLanguageTag() + " for decryption UI");
1906 Log.e(TAG, "Error storing locale for decryption UI", e);
11017 configuration.setLayoutDirection(configuration.locale);
16258 if (values.locale != null && !initLocale) {
16259 saveLocaleLocked(values.locale,
16260 !values.locale.equals(mConfiguration.locale),
16368 * Save the locale. You must be inside a synchronized (this) block.
/frameworks/base/core/java/android/view/
H A DView.java1919 * script for the locale. Use with {@link #setLayoutDirection}.
8230 mContext.getResources().getConfiguration().locale);
8240 mContext.getResources().getConfiguration().locale);

Completed in 2513 milliseconds

123456