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

1234

/frameworks/base/awt/javax/imageio/plugins/bmp/
H A DBMPImageWriteParam.java46 * @param locale
49 public BMPImageWriteParam(Locale locale) { argument
50 super(locale);
/frameworks/base/awt/java/awt/
H A DComponentOrientation.java102 Locale locale = bdl.getLocale();
103 if (locale == null) {
104 locale = Locale.getDefault();
106 return getOrientation(locale);
110 * Gets the orientation for the specified locale.
112 * @param locale
116 public static ComponentOrientation getOrientation(Locale locale) { argument
117 String lang = locale.getLanguage();
/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
229 if (o.locale != null) {
230 locale = (Locale) o.locale.clone();
254 sb.append(locale);
287 locale = null;
328 if (delta.locale != null
329 && (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);
/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/awt/org/apache/harmony/awt/im/
H A DInputMethodContext.java66 private final Map<Locale, InputMethod> localeIM; // Map<Locale, InputMethod> last user-selected IM for locale
305 public boolean selectInputMethod(Locale locale) { argument
307 if ((inputMethod != null) && inputMethod.setLocale(locale)) {
311 // take last user-selected IM for locale
312 InputMethod newIM = localeIM.get(locale);
322 locale);
329 return switchToIM(locale, newIM);
332 private boolean switchToIM(Locale locale, InputMethod newIM) { argument
339 initIM(newIM, locale);
351 void selectIM(InputMethodDescriptor imd, Locale locale) { argument
367 getIMInstance(Iterator<InputMethodDescriptor> descriptors, Locale locale) argument
391 initIM(InputMethod im, Locale locale) argument
[all...]
/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.cpp32 void MediaScanner::setLocale(const char *locale) { argument
37 if (locale) {
38 mLocale = strdup(locale);
42 const char *MediaScanner::locale() const { function in class:android::MediaScanner
67 client.setLocale(locale());
/frameworks/base/awt/java/awt/im/
H A DInputContext.java73 public boolean selectInputMethod(Locale locale) { argument
/frameworks/base/awt/java/awt/im/spi/
H A DInputMethod.java65 public boolean setLocale(Locale locale); argument
/frameworks/base/awt/javax/imageio/spi/
H A DIIOServiceProvider.java100 * @param locale
104 public abstract String getDescription(Locale locale); argument
/frameworks/base/awt/javax/imageio/
H A DImageWriter.java60 * The locale.
62 protected Locale locale; field in class:ImageWriter
217 Locale locale = warningLocales.get(i);
222 rb = ResourceBundle.getBundle(bundle, locale, contextClassloader);
225 rb = ResourceBundle.getBundle(bundle, locale);
613 * Gets the current locale of this ImageWriter.
615 * @return the current locale of this ImageWriter.
618 return locale;
931 * Sets the locale of this ImageWriter.
933 * @param locale
936 setLocale(Locale locale) argument
[all...]
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DCommonGraphicsEnvironment.java44 public String[] getAvailableFontFamilyNames(Locale locale) { argument
49 String name = element.getFamily(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.java56 * @param locale the desired Locale for the query results
60 public Geocoder(Context context, Locale locale) { argument
61 if (locale == null) {
62 throw new NullPointerException("locale == null");
64 mParams = new GeocoderParams(context, locale);
82 * The returned addresses will be localized for the locale
132 * returned addresses will be localized for the locale provided to
174 * 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/awt/org/apache/harmony/x/imageio/plugins/jpeg/
H A DJPEGImageWriterSpi.java53 public String getDescription(Locale locale) { argument
/frameworks/base/awt/org/apache/harmony/x/imageio/spi/
H A DFileIISSpi.java50 public String getDescription(Locale locale) { argument
H A DFileIOSSpi.java49 public String getDescription(Locale locale) { argument
H A DInputStreamIISSpi.java39 public String getDescription(Locale locale) { argument

Completed in 8488 milliseconds

1234