Searched refs:locale (Results 1 - 25 of 55) sorted by relevance

123

/frameworks/base/core/java/android/content/res/
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 DPluralRules.java72 static final PluralRules ruleForLocale(Locale locale) { argument
73 String lang = locale.getLanguage();
/frameworks/base/tests/CoreTests/android/core/
H A DLocaleTest.java34 * Test some locale-dependent stuff for Android. This test mainly ensures that
43 Locale locale = new Locale("en");
44 assertEquals("en", locale.toString());
46 locale = new Locale("en", "US");
47 assertEquals("en_US", locale.toString());
49 locale = new Locale("en", "", "POSIX");
50 assertEquals("en__POSIX", locale.toString());
52 locale = new Locale("en", "US", "POSIX");
53 assertEquals("en_US_POSIX", locale.toString());
91 * checks for stuff in the "de" locale, becaus
[all...]
/frameworks/base/tools/localize/
H A DConfiguration.cpp9 n = locale.compare(that.locale);
40 if (locale.length() > 0) {
44 s += locale;
H A Dmerge_res_and_xliff_test.cpp9 english.locale = "en_US";
11 translated.locale = "zz_ZZ";
H A Dfile_utils.h11 string translated_file_name(const string& file, const string& locale);
H A DConfiguration.h10 string locale; member in struct:Configuration
H A DValuesFile_test.cpp9 config.locale = "zz_ZZ";
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)) {
H A Dlocalize.h28 string translated_file_name(const string& file, const string& locale);
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());
/frameworks/base/core/java/android/provider/
H A DUserDictionary.java30 * frequency information and locale information.
78 * The locale that this word belongs to. Null if it pertains to all
82 public static final String LOCALE = "locale";
90 /** The locale type to specify that the word is common to all locales. */
93 /** The locale type to specify that the word is for the current locale. */
102 * specified locale type.
106 * @param localeType the locale type for this word. It should be one of
120 String locale = null;
122 // TODO: Verify if this is the best way to get the current locale
[all...]
/frameworks/base/include/media/
H A Dmediascanner.h45 void setLocale(const char *locale);
51 const char *locale() const;
54 // current locale (like "ja_JP"), created/destroyed with strdup()/free()
71 void setLocale(const char* locale);
/frameworks/base/media/libmedia/
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.
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());
/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
/frameworks/base/location/tests/locationtests/src/android/location/
H A DGeocoderTest.java35 Locale locale = new Locale("en", "us");
36 Geocoder g = new Geocoder(mContext, locale);
/frameworks/base/core/jni/
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 DTimeUtils.h62 String8 format(const char *format, const struct strftime_locale *locale) const;
/frameworks/base/include/utils/
H A DAssetManager.h118 * Set the current locale and vendor. The locale can change during
124 void setLocale(const char* locale);
130 void setConfiguration(const ResTable_config& config, const char* locale = NULL);
139 * This will search through locale-specific and vendor-specific
151 * but aren't assets. These sit outside the usual "locale/vendor"
167 * locale-specific, and generic assets stored loosely or in asset
179 * locale-specific, and generic assets stored loosely or in asset
232 const asset_path& path, const char* locale, const char* vendor);
233 String8 createPathNameLocked(const asset_path& path, const char* locale,
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java136 final Locale loc = conf.locale;
146 * Sets the locale specified. Input data is the equivalent of "ll_cc".getBytes(), where
148 * @param data the locale string in bytes.
151 // Check if locale was set by the user:
153 Locale loc = conf.locale;
154 // TODO: The following is not working as intended because the network is forcing a locale
156 // changed the locale
170 if (loc == null) return; // Couldn't find the saved locale in this version of the software
175 config.locale = loc;
/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/core/java/android/text/
H A DAutoText.java77 mLocale = resources.getConfiguration().locale;
82 * Returns the instance of AutoText. If the locale has changed, it will create a new
83 * instance of AutoText for the locale.
89 Locale locale = res.getConfiguration().locale;
95 if (!locale.equals(instance.mLocale)) {
116 * no auto correction data available for the current locale.
/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);

Completed in 375 milliseconds

123