/frameworks/base/core/java/android/content/res/ |
H A D | Configuration.java | 28 * 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 D | PluralRules.java | 72 static final PluralRules ruleForLocale(Locale locale) { argument 73 String lang = locale.getLanguage();
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | LocaleTest.java | 34 * 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 D | Configuration.cpp | 9 n = locale.compare(that.locale); 40 if (locale.length() > 0) { 44 s += locale;
|
H A D | merge_res_and_xliff_test.cpp | 9 english.locale = "en_US"; 11 translated.locale = "zz_ZZ";
|
H A D | file_utils.h | 11 string translated_file_name(const string& file, const string& locale);
|
H A D | Configuration.h | 10 string locale; member in struct:Configuration
|
H A D | ValuesFile_test.cpp | 9 config.locale = "zz_ZZ";
|
H A D | file_utils.cpp | 51 translated_file_name(const string& file, const string& locale) argument 74 if (locale == "") { 78 else if (!split_locale(locale, &language, ®ion)) {
|
H A D | localize.h | 28 string translated_file_name(const string& file, const string& locale);
|
H A D | localize_test.cpp | 10 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 D | UserDictionary.java | 30 * 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 D | mediascanner.h | 45 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 D | MediaScannerClient.cpp | 40 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 D | MediaScanner.cpp | 36 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 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
|
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
|
/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/core/jni/ |
H A D | android_text_format_Time.cpp | 190 // 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 D | TimeUtils.h | 62 String8 format(const char *format, const struct strftime_locale *locale) const;
|
/frameworks/base/include/utils/ |
H A D | AssetManager.h | 118 * 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 D | SettingsHelper.java | 136 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 D | Recognizer.java | 142 * @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 D | AutoText.java | 77 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 D | android_media_MediaScanner.cpp | 211 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);
|