Searched defs:locale (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/location/java/android/location/
H A DGeocoderParams.java28 * 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
H A DGeocoder.java75 * @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 DAddress.java63 public Address(Locale locale) { argument
64 mLocale = locale;
480 Locale locale = country.length() > 0 ?
483 Address a = new Address(locale);
/frameworks/base/tools/localize/
H A DConfiguration.h10 string locale; member in struct:Configuration
H A Dlocalize_test.cpp10 test_filename(const string& file, const string& locale, const string& expected) argument
12 string result = translated_file_name(file, locale);
15 fprintf(stderr, " locale='%s'\n", locale.c_str());
22 fprintf(stderr, " locale='%s'\n", locale.c_str());
H A Dfile_utils.cpp51 translated_file_name(const string& file, const string& locale) argument
74 if (locale == "") {
78 else if (!split_locale(locale, &language, &region)) {
/frameworks/base/core/java/android/content/res/
H A DPluralRules.java72 static final PluralRules ruleForLocale(Locale locale) { argument
73 String lang = locale.getLanguage();
H A DConfiguration.java28 * user-specified configuration options (locale and scaling) as well
49 * Current user preference for the locale.
51 public Locale locale; field in class:Configuration
230 if (o.locale != null) {
231 locale = (Locale) o.locale.clone();
255 sb.append(locale);
288 locale = null;
329 if (delta.locale != null
330 && (locale
[all...]
H A DAssetManager.java635 * Change the locale being used by this asset manager. Not for use by
639 public native final void setLocale(String locale); argument
651 public native final void setConfiguration(int mcc, int mnc, String locale, argument
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp33 jfieldID locale; member in struct:android::__anon30
93 GET_FIELD_ID(gConfigurationClassInfo.locale, gConfigurationClassInfo.clazz,
94 "locale", "Ljava/util/Locale;");
H A Dandroid_text_format_Time.cpp190 // We only teardown and setup our 'locale' struct and other state
191 // when the Java-side locale changed. This is safe to do here
195 static struct strftime_locale locale; local
209 env->ReleaseStringUTFChars(js_mon[i], locale.mon[i]);
210 env->ReleaseStringUTFChars(js_month[i], locale.month[i]);
211 env->ReleaseStringUTFChars(js_standalone_month[i], locale.standalone_month[i]);
218 env->ReleaseStringUTFChars(js_wday[i], locale.wday[i]);
219 env->ReleaseStringUTFChars(js_weekday[i], locale.weekday[i]);
224 env->ReleaseStringUTFChars(js_X_fmt, locale.X_fmt);
225 env->ReleaseStringUTFChars(js_x_fmt, locale
[all...]
H A Dandroid_util_AssetManager.cpp479 jstring locale)
481 if (locale == NULL) {
482 jniThrowException(env, "java/lang/NullPointerException", "locale");
486 const char* locale8 = env->GetStringUTFChars(locale, NULL);
495 env->ReleaseStringUTFChars(locale, locale8);
530 jstring locale, jint orientation,
546 const char* locale8 = locale != NULL ? env->GetStringUTFChars(locale, NULL) : NULL;
564 if (locale != NULL) env->ReleaseStringUTFChars(locale, locale
478 android_content_AssetManager_setLocale(JNIEnv* env, jobject clazz, jstring locale) argument
528 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 screenLayout, jint uiMode, jint sdkVersion) argument
[all...]
/frameworks/base/media/libmedia/
H A DMediaScanner.cpp36 void MediaScanner::setLocale(const char *locale) { argument
41 if (locale) {
42 mLocale = strdup(locale);
46 const char *MediaScanner::locale() const { function in class:android::MediaScanner
71 client.setLocale(locale());
H A DMediaScannerClient.cpp40 void MediaScannerClient::setLocale(const char* locale) argument
42 if (!locale) return;
44 if (!strncmp(locale, "ja", 2))
46 else if (!strncmp(locale, "ko", 2))
48 else if (!strncmp(locale, "zh", 2)) {
49 if (!strcmp(locale, "zh_CN")) {
209 // if the locale encoding matches, then assume we have a native encoding.
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp211 android_media_MediaScanner_setLocale(JNIEnv *env, jobject thiz, jstring locale) argument
215 if (locale == NULL) {
219 const char *localeStr = env->GetStringUTFChars(locale, NULL);
226 env->ReleaseStringUTFChars(locale, localeStr);
/frameworks/base/core/java/android/speech/srec/
H A DRecognizer.java142 * @param locale <code>Locale</code> corresponding to the desired language,
146 public static String getConfigDir(Locale locale) { argument
147 if (locale == null) locale = Locale.US;
149 locale.toString().replace('_', '.').toLowerCase();
445 || SR_VocabularyGetLanguage ( applicationData.vocabulary, &applicationData.locale )
704 // ESR_Locale* locale);
718 // private static native void SR_RecognizerResultGetLocale(int recognizer, ESR_Locale* locale);
/frameworks/base/libs/utils/
H A DAssetManager.cpp43 * Names for default app, locale, and vendor. We might want to change
44 * these to be an actual locale, e.g. always use en-US as the default.
168 * Set the current locale. Use NULL to indicate no locale.
171 * information in the locale-specific sections of the tree.
173 void AssetManager::setLocale(const char* locale) argument
176 setLocaleLocked(locale);
179 void AssetManager::setLocaleLocked(const char* locale) argument
187 mLocale = strdupNew(locale);
211 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale) argument
616 openInLocaleVendorLocked(const char* fileName, AccessMode mode, const asset_path& ap, const char* locale, const char* vendor) argument
753 createPathNameLocked(const asset_path& ap, const char* locale, const char* vendor) argument
1463 fncScanAndMergeDirLocked( SortedVector<AssetDir::FileInfo>* pMergedInfo, const asset_path& ap, const char* locale, const char* vendor, const char* dirName) argument
[all...]
H A DResourceTypes.cpp3608 char locale[6]; local
3609 configs[i].getLocale(locale);
3613 if (0 == strcmp(locale, (*locales)[j].string())) {
3618 locales->add(String8(locale));
4161 if (type->config.locale != 0) {
/frameworks/base/media/java/android/media/
H A DMediaScanner.java1512 public native void setLocale(String locale); argument
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java1025 /** The current locale is unknown, look for a country code or don't format */
1092 * Returns the phone number formatting type for the given locale.
1094 * @param locale The locale of interest, usually {@link Locale#getDefault()}
1095 * @return The formatting type for the given locale, or FORMAT_UNKNOWN if the formatting
1096 * rules are not known for the given locale
1098 public static int getFormatTypeForLocale(Locale locale) { argument
1099 String country = locale.getCountry();
/frameworks/base/tools/aapt/
H A DAaptAssets.h66 : locale(_locale), vendor(_vendor) { }
70 String8 locale; member in struct:AaptGroupEntry
197 * vendor/locale variations).
H A DResourceTable.cpp563 return config.locale == 0;
1211 // Note the existence and locale of every string we process
1214 String8 locale(rawLocale);
1235 // Untranslatable strings must only exist in the default [empty] locale
1236 if (locale.size() > 0) {
1238 " in locale '%s'\n", String8(name).string(),
1240 locale.string());
1250 outTable->addLocalization(name, locale);
2414 ResourceTable::addLocalization(const String16& name, const String8& locale) argument
2416 mLocalizations[name].insert(locale);
2575 uint32_t locale = (config.country[1] << 24) | (config.country[0] << 16) local
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabase.java65 * two more, <code>LOCALIZED</code>, which changes with the system's current locale
67 * is the Unicode Collation Algorithm and not tailored to the current locale.
806 * <p>Sets the locale of the database to the the system's current locale.
861 * <p>Sets the locale of the database to the the system's current locale.
1978 * Sets the locale for this database. Does nothing if this database has
1980 * @throws SQLException if the locale could not be set. The most common reason
1981 * for this is that there is no collator available for the locale you requested.
1984 public void setLocale(Locale locale) { argument
[all...]
/frameworks/base/include/utils/
H A DResourceTypes.h823 uint32_t locale; member in union:android::ResTable_config::__anon182
1011 diff = (int32_t)(locale - o.locale);
1052 if (locale != o.locale) diffs |= CONFIG_LOCALE;
1085 if (locale || o.locale) {
1204 if (locale || o.locale) {
1385 if (locale !
[all...]

Completed in 548 milliseconds