Searched defs:locale (Results 26 - 47 of 47) sorted by relevance

12

/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/core/java/android/database/sqlite/
H A DSQLiteDatabase.java62 * 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.
817 * <p>Sets the locale of the database to the the system's current locale.
1734 * Sets the locale for this database. Does nothing if this database has
1737 * @param locale Th
1743 setLocale(Locale locale) argument
[all...]
H A DSQLiteConnection.java125 private static native void nativeRegisterLocalizedCollators(int connectionPtr, String locale); argument
353 final String newLocale = mConfiguration.locale.toString();
364 execute("CREATE TABLE IF NOT EXISTS android_metadata (locale TEXT)", null, null);
366 // Check whether the locale was actually changed.
367 final String oldLocale = executeForString("SELECT locale FROM android_metadata "
368 + "UNION SELECT NULL ORDER BY locale DESC LIMIT 1", null, null);
373 // Go ahead and update the indexes using the new locale.
378 execute("INSERT INTO android_metadata (locale) VALUES(?)",
386 throw new SQLiteException("Failed to change locale for db '" + mConfiguration.label
409 boolean localeChanged = !configuration.locale
[all...]
/frameworks/base/core/java/android/speech/srec/
H A DRecognizer.java141 * @param locale <code>Locale</code> corresponding to the desired language,
145 public static String getConfigDir(Locale locale) { argument
146 if (locale == null) locale = Locale.US;
148 locale.toString().replace('_', '.').toLowerCase();
444 || SR_VocabularyGetLanguage ( applicationData.vocabulary, &applicationData.locale )
703 // ESR_Locale* locale);
717 // private static native void SR_RecognizerResultGetLocale(int recognizer, ESR_Locale* locale);
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java86 * Denotes the language is available exactly as specified by the locale.
92 * by the locale, but not the variant.
97 * Denotes the language is available for the language by the locale,
347 * the TextToSpeech engine specifies the locale associated with each resource file.
890 * Queries the engine for the set of features it supports for a given locale.
901 * @param locale The locale to query features for.
903 public Set<String> getFeatures(final Locale locale) { argument
908 locale.getISO3Language(), locale
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_SQLiteConnection.cpp273 const char* locale = env->GetStringUTFChars(localeStr, NULL); local
274 int err = register_localized_collators(connection->db, locale, UTF16_STORAGE);
275 env->ReleaseStringUTFChars(localeStr, locale);
H A Dandroid_util_AssetManager.cpp461 jstring locale)
463 ScopedUtfChars locale8(env, locale);
508 jstring locale, jint orientation,
526 const char* locale8 = locale != NULL ? env->GetStringUTFChars(locale, NULL) : NULL;
547 if (locale != NULL) env->ReleaseStringUTFChars(locale, locale8);
460 android_content_AssetManager_setLocale(JNIEnv* env, jobject clazz, jstring locale) argument
506 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/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java1099 /** The current locale is unknown, look for a country code or don't format */
1166 * Returns the phone number formatting type for the given locale.
1168 * @param locale The locale of interest, usually {@link Locale#getDefault()}
1169 * @return The formatting type for the given locale, or FORMAT_UNKNOWN if the formatting
1170 * rules are not known for the given locale
1172 public static int getFormatTypeForLocale(Locale locale) { argument
1173 String country = locale.getCountry();
1806 Locale locale = context.getResources().getConfiguration().locale;
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java636 * Change the locale being used by this asset manager. Not for use by
640 public native final void setLocale(String locale); argument
652 public native final void setConfiguration(int mcc, int mnc, String locale, argument
/frameworks/base/core/java/android/widget/
H A DCalendarView.java308 * The current locale.
339 // initialization based on locale
698 setCurrentLocale(newConfig.locale);
959 * Sets the current locale.
961 * @param locale The current locale.
963 private void setCurrentLocale(Locale locale) { argument
964 if (locale.equals(mCurrentLocale)) {
968 mCurrentLocale = locale;
970 mTempDate = getCalendarForLocale(mTempDate, locale);
982 getCalendarForLocale(Calendar oldCalendar, Locale locale) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp257 static void setTextLocale(JNIEnv* env, jobject clazz, SkPaint* obj, jstring locale) { argument
258 const char* localeArray = env->GetStringUTFChars(locale, NULL);
261 env->ReleaseStringUTFChars(locale, localeArray);
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp57 * Names for default app, locale, and vendor. We might want to change
58 * these to be an actual locale, e.g. always use en-US as the default.
384 * Set the current locale. Use NULL to indicate no locale.
387 * information in the locale-specific sections of the tree.
389 void AssetManager::setLocale(const char* locale) argument
392 setLocaleLocked(locale);
395 void AssetManager::setLocaleLocked(const char* locale) argument
403 mLocale = strdupNew(locale);
427 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale) argument
851 openInLocaleVendorLocked(const char* fileName, AccessMode mode, const asset_path& ap, const char* locale, const char* vendor) argument
988 createPathNameLocked(const asset_path& ap, const char* locale, const char* vendor) argument
1698 fncScanAndMergeDirLocked( SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* locale, const char* vendor, const char* dirName) argument
[all...]
H A DResourceTypes.cpp1434 diff = (int32_t)(locale - o.locale);
1516 if (locale != o.locale) diffs |= CONFIG_LOCALE;
1549 if (locale || o.locale) {
1676 if (locale || o.locale) {
1896 if (locale != 0) {
4784 char locale[ local
[all...]
/frameworks/base/media/java/android/media/
H A DMediaScanner.java1792 public native void setLocale(String locale); argument
/frameworks/base/tools/aapt/
H A DAaptAssets.h69 : locale(_locale), vendor(_vendor), mParamsChanged(true) { }
119 String8 locale; member in struct:AaptGroupEntry
218 * vendor/locale variations).
H A DResourceTable.cpp564 return config.locale == 0;
1256 // Note the existence and locale of every string we process
1259 String8 locale(rawLocale);
1280 // Untranslatable strings must only exist in the default [empty] locale
1281 if (locale.size() > 0) {
1283 " in locale '%s'\n", String8(name).string(),
1285 locale.string());
1295 outTable->addLocalization(name, locale);
2499 ResourceTable::addLocalization(const String16& name, const String8& locale) argument
2501 mLocalizations[name].insert(locale);
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java912 /*package*/ static void native_setTextLocale(int native_object, String locale) { argument
919 delegate.setTextLocale(locale);
1262 private void setTextLocale(String locale) { argument
1263 mLocale = new Locale(locale);
/frameworks/base/core/java/android/webkit/
H A DWebSettingsClassic.java316 Locale locale;
318 locale = sLocale;
321 addLocaleToHttpAcceptLanguage(buffer, locale);
323 if (!Locale.US.equals(locale)) {
355 Locale locale) {
356 String language = convertObsoleteLanguageCodeToNew(locale.getLanguage());
359 String country = locale.getCountry();
372 Locale locale;
374 locale = sLocale;
393 final String language = locale
354 addLocaleToHttpAcceptLanguage(StringBuilder builder, Locale locale) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1065 * Set the text locale.
1067 * The text locale affects how the text is drawn for some languages.
1069 * For example, if the locale is {@link Locale#CHINESE} or {@link Locale#CHINA},
1071 * if the locale is {@link Locale#JAPANESE} or {@link Locale#JAPAN}, then the text
1078 * By default, the text locale is initialized to the system locale (as returned
1085 * the text locale here. Specifying the text locale just helps it do a better
1088 * @param locale the paint's locale valu
1091 setTextLocale(Locale locale) argument
2200 native_setTextLocale(int native_object, String locale) argument
[all...]
/frameworks/base/include/androidfw/
H A DResourceTypes.h833 uint32_t locale; member in union:android::ResTable_config::__anon1053
/frameworks/base/services/java/com/android/server/
H A DInputMethodManagerService.java634 // according to the new system locale.
653 final Locale newLocale = mRes.getConfiguration().locale;
703 locale.getLanguage())) {
770 mLastSystemLocale = mRes.getConfiguration().locale;
1847 final String locale = mCurrentSubtype == null
1848 ? mRes.getConfiguration().locale.toString()
1855 SUBTYPE_MODE_KEYBOARD, locale, true);
1860 if(keyboardSubtype.getLocale().equals(locale)) {
2739 final String systemLocale = res.getConfiguration().locale.toString();
2759 final String locale
2813 findLastResortApplicableSubtypeLocked( Resources res, List<InputMethodSubtype> subtypes, String mode, String locale, boolean canIgnoreLocaleAsLastResort) argument
[all...]
/frameworks/base/core/java/android/view/
H A DView.java1824 * script for the locale. Use with {@link #setLayoutDirection}.
6975 mContext.getResources().getConfiguration().locale);
6985 mContext.getResources().getConfiguration().locale);
11646 * @param locale Locale to check
11650 protected static boolean isLayoutDirectionRtl(Locale locale) { argument
11651 return (LAYOUT_DIRECTION_RTL == LocaleUtil.getLayoutDirectionFromLocale(locale));

Completed in 1865 milliseconds

12