/frameworks/base/graphics/java/android/graphics/ |
H A D | Paint.java | 1175 * Set the text locale. 1177 * The text locale affects how the text is drawn for some languages. 1179 * For example, if the locale is {@link Locale#CHINESE} or {@link Locale#CHINA}, 1181 * if the locale is {@link Locale#JAPANESE} or {@link Locale#JAPAN}, then the text 1188 * By default, the text locale is initialized to the system locale (as returned 1195 * the text locale here. Specifying the text locale just helps it do a better 1198 * @param locale the paint's locale valu 1200 setTextLocale(Locale locale) argument 2258 native_setTextLocale(long native_object, String locale) argument [all...] |
/frameworks/base/include/androidfw/ |
H A D | AssetManager.h | 127 * Set the current locale and vendor. The locale can change during 133 void setLocale(const char* locale); 139 void setConfiguration(const ResTable_config& config, const char* locale = NULL); 148 * This will search through locale-specific and vendor-specific 160 * but aren't assets. These sit outside the usual "locale/vendor" 176 * locale-specific, and generic assets stored loosely or in asset 188 * locale-specific, and generic assets stored loosely or in asset 249 const asset_path& path, const char* locale, const char* vendor); 250 String8 createPathNameLocked(const asset_path& path, const char* locale, [all...] |
H A D | ResourceTypes.h | 880 // 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/libs/androidfw/ |
H A D | AssetManager.cpp | 68 * 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...] |
H A D | ResourceTypes.cpp | 1791 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/libs/androidfw/tests/ |
H A D | ConfigLocale_test.cpp | 39 config.locale = 0;
|
/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);
|
H A D | Geocoder.java | 75 * @param locale the desired Locale for the query results 79 public Geocoder(Context context, Locale locale) { argument 80 if (locale == null) { 81 throw new NullPointerException("locale == null"); 83 mParams = new GeocoderParams(context, locale); 101 * The returned addresses will be localized for the locale 151 * returned addresses will be localized for the locale provided to 193 * returned addresses will be localized for the locale provided to
|
H A D | GeocoderParams.java | 28 * language, country and variant information from the Geocoder's locale 48 public GeocoderParams(Context context, Locale locale) { argument 49 mLocale = locale; 54 * returns the Geocoder's locale
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
H A D | GeocoderTest.java | 35 Locale locale = new Locale("en", "us"); 36 Geocoder g = new Geocoder(mContext, locale);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaScanner.java | 1866 public native void setLocale(String locale); argument
|
H A D | SubtitleController.java | 82 public void onLocaleChanged(Locale locale) { 215 Locale locale = selectedLocale; 216 if (locale == null) { 217 locale = Locale.getDefault(); 233 (locale == null || 234 locale.getLanguage().equals("") || 235 locale.getISO3Language().equals(language) || 236 locale.getLanguage().equals(language)); 246 // we treat null locale/language as matching any language
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDatabase.java | 191 // Set locale to MediaScanner. 192 Locale locale = context.getResources().getConfiguration().locale; 193 if (locale != null) { 194 String language = locale.getLanguage(); 195 String country = locale.getCountry();
|
/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/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | PickFragment.java | 83 final Locale locale = getResources().getConfiguration().locale; 84 final String raw = getString(R.string.menu_select).toUpperCase(locale);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | CarrierText.java | 321 mLocale = context.getResources().getConfiguration().locale;
|
H A D | KeyguardStatusView.java | 224 final Locale locale = Locale.getDefault(); 231 final String key = locale.toString() + dateViewSkel + clockView12Skel + clockView24Skel; 234 dateView = DateFormat.getBestDateTimePattern(locale, dateViewSkel); 236 clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel); 243 clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel);
|
H A D | KeyguardTransportControlView.java | 513 getContext().getResources().getConfiguration().locale,
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 78 private static final String KEY_LOCALE = "locale"; 374 byte[] locale = mSettingsHelper.getLocaleData(); 387 writeIfChanged(stateChecksums[STATE_LOCALE], KEY_LOCALE, locale, data); 520 byte[] locale = mSettingsHelper.getLocaleData(); 545 if (DEBUG_BACKUP) Log.d(TAG, locale.length + " bytes of locale data"); 546 out.writeInt(locale.length); 547 out.write(locale); 607 // locale 609 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of locale dat [all...] |
H A D | SettingsHelper.java | 204 final Locale loc = conf.locale; 214 * Sets the locale specified. Input data is the byte representation of a 219 * @param data the locale string in bytes. 222 // Check if locale was set by the user: 224 // TODO: The following is not working as intended because the network is forcing a locale 226 // changed the locale 239 if (loc == null) return; // Couldn't find the saved locale in this version of the software 244 config.locale = loc;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | BaseStatusBar.java | 538 mLocale = currentConfig.locale; 711 final Locale locale = mContext.getResources().getConfiguration().locale; 712 final int ld = TextUtils.getLayoutDirectionFromLocale(locale); 715 if (! locale.equals(mLocale) || ld != mLayoutDirection || fontScale != mFontScale) { 718 "config changed locale/LD: %s (%d) -> %s (%d)", mLocale, mLayoutDirection, 719 locale, ld)); 721 mLocale = locale;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | Clock.java | 130 final Locale newLocale = getResources().getConfiguration().locale; 149 LocaleData d = LocaleData.get(context.getResources().getConfiguration().locale);
|
H A D | NetworkControllerImpl.java | 175 mLocale = mContext.getResources().getConfiguration().locale; 533 Locale current = mContext.getResources().getConfiguration().locale;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | InputMethodManagerService.java | 744 // 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...] |
H A D | MountService.java | 858 // 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());
|