HomeSort by relevance Sort by last modified time
    Searched defs:Locale (Results 1 - 25 of 36) sorted by null

1 2

  /cts/tests/tests/location/src/android/location/cts/
GeocoderTest.java 31 import java.util.Locale;
44 args = {android.content.Context.class, java.util.Locale.class}
50 new Geocoder(getContext(), Locale.ENGLISH);
119 Geocoder geocoder = new Geocoder(getContext(), Locale.US);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
UserBigramTests.java 21 import java.util.Locale;
52 * Test loading correct (locale) bigrams
59 sh.changeUserBigramLocale(getTestContext(), Locale.FRANCE);
61 assertTrue(sh.isUserBigramSuggestion("locale", 'f', "france"));
65 sh.changeUserBigramLocale(getTestContext(), Locale.US);
66 assertFalse(sh.isUserBigramSuggestion("locale", 'f', "france"));
87 sh.changeUserBigramLocale(getTestContext(), Locale.US);
93 final String[] pair3 = new String[] {"locale", "france"};
  /external/chromium/third_party/icu/public/common/unicode/
locid.h 41 * \brief C++ API: Locale ID object.
45 * A <code>Locale</code> object represents a specific geographical, political,
46 * or cultural region. An operation that requires a <code>Locale</code> to perform
47 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
49 * is a locale-sensitive operation--the number should be formatted
53 * The Locale class is not suitable for subclassing.
56 * You can create a <code>Locale</code> object using the constructor in
60 * Locale( const char* language,
90 * Because a <code>Locale</code> object is just an identifier for a region
    [all...]
  /external/icu4c/common/unicode/
locid.h 41 * \brief C++ API: Locale ID object.
45 * A <code>Locale</code> object represents a specific geographical, political,
46 * or cultural region. An operation that requires a <code>Locale</code> to perform
47 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
49 * is a locale-sensitive operation--the number should be formatted
53 * The Locale class is not suitable for subclassing.
56 * You can create a <code>Locale</code> object using the constructor in
60 * Locale( const char* language,
90 * Because a <code>Locale</code> object is just an identifier for a region
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
ListResourceBundleTest.java 27 import java.util.Locale;
60 Locale.setDefault(new Locale("en", "US"));
61 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
100 Locale.setDefault(new Locale("en", "US"));
101 bundle = (ListResourceBundle)ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
LocaleTest.java 31 import java.util.Locale;
35 @TestTargetClass(Locale.class)
38 Locale testLocale;
40 Locale l;
42 Locale defaultLocale;
45 * @tests java.util.Locale#Locale(java.lang.String, java.lang.String)
50 method = "Locale",
54 // Test for method java.util.Locale(java.lang.String)
55 Locale x = new Locale("xx")
    [all...]
ResourceBundleTest.java 32 import java.util.Locale;
52 * java.util.Locale)
58 args = {java.lang.String.class, java.util.Locale.class}
63 Locale defLocale = Locale.getDefault();
65 Locale.setDefault(new Locale("en", "US"));
66 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
69 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "v1"));
72 bundle = ResourceBundle.getBundle(name, new Locale("fr", "US", "VAR"))
246 Locale locale = Locale.GERMAN; local
    [all...]
CurrencyTest.java 30 import java.util.Locale;
35 private static Locale defaultLocale = Locale.getDefault();
51 * @tests java.util.Currency#getInstance(java.util.Locale)
57 args = {java.util.Locale.class}
62 * method ignores language and variant component of the locale.
65 Currency c1 = Currency.getInstance(new Locale("en", "CA"));
67 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")",
69 Currency c2 = Currency.getInstance(new Locale("fr", "CA"));
71 "Currency.getInstance(new Locale(\"fr\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")"
    [all...]
ScannerTest.java 48 import java.util.Locale;
509 * @tests java.util.Scanner#locale()
514 method = "locale",
519 assertEquals(Locale.getDefault(), s.locale());
523 * @tests java.util.Scanner#useLocale(Locale)
529 args = {java.util.Locale.class}
540 s.useLocale(new Locale("test", "test"));
541 assertEquals(new Locale("test", "test"), s.locale());
    [all...]
  /bionic/libc/tzcode/
strftime.c 38 #include "locale.h"
62 #define Locale (&C_time_locale)
140 return strftime_tz(s, maxsize, format, t, Locale);
144 strftime_tz(s, maxsize, format, t, locale)
149 const struct strftime_locale *locale;
156 p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize, &warn, locale);
168 (void) fprintf(stderr, "the current locale");
196 _fmt(format, t, pt, ptlim, warnp, locale)
202 const struct strftime_locale* locale;
215 "?" : locale->weekday[t->tm_wday]
    [all...]
  /libcore/luni/src/main/java/java/text/
DateFormatSymbols.java 27 import java.util.Locale;
72 * Locale, necessary to lazily load time zone strings. We force the time
76 transient final Locale locale; field in class:DateFormatSymbols
85 zoneStrings = TimeZones.getZoneStrings(locale);
92 * symbols for the user's default locale.
93 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
96 this(Locale.getDefault());
101 * symbols for the specified locale
    [all...]
SimpleDateFormat.java 28 import java.util.Locale;
35 * A concrete class for formatting and parsing dates in a locale-sensitive
43 * locale.
47 * to explicitly ask for {@link Locale#US} to ensure that you get ASCII digits (rather than,
49 * (See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".)
158 * SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US);
228 * dates and times in the {@code SHORT} style for the user's default locale.
229 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>"
    [all...]
DecimalFormatSymbols.java 28 import java.util.Locale;
34 * {@code DecimalFormatSymbols} from its locale data. If you need to change any
38 * @see java.util.Locale
57 private transient Locale locale; field in class:DecimalFormatSymbols
62 * the user's default locale.
63 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
69 this(Locale.getDefault());
74 * specified Locale
    [all...]
  /libcore/luni/src/test/java/tests/api/org/xml/sax/helpers/
XMLReaderAdapterTest.java 20 import java.util.Locale;
118 args = { Locale.class }
123 adapter.setLocale(Locale.getDefault());
  /external/chromium/third_party/icu/source/common/
locid.cpp 44 static U_NAMESPACE_QUALIFIER Locale* availableLocaleList = NULL;
79 static U_NAMESPACE_QUALIFIER Locale *gLocaleCache = NULL;
80 static U_NAMESPACE_QUALIFIER Locale *gDefaultLocale = NULL;
85 // Deleter function for Locales owned by the default Locale hash table/
89 delete (U_NAMESPACE_QUALIFIER Locale *) obj;
112 // The cache wasn't created, and only one default locale was created.
130 // If given a NULL string for the locale id, grab the default
132 // (Different from most other locale APIs, where a null name means use
133 // the current ICU default locale.)
141 // put the locale id into a canonical form
    [all...]
  /external/icu4c/common/
locid.cpp 78 static U_NAMESPACE_QUALIFIER Locale *gLocaleCache = NULL;
79 static U_NAMESPACE_QUALIFIER Locale *gDefaultLocale = NULL;
84 // Deleter function for Locales owned by the default Locale hash table/
88 delete (U_NAMESPACE_QUALIFIER Locale *) obj;
105 // The cache wasn't created, and only one default locale was created.
123 // If given a NULL string for the locale id, grab the default
125 // (Different from most other locale APIs, where a null name means use
126 // the current ICU default locale.)
134 // put the locale id into a canonical form,
135 // in preparation for looking up this locale in the hash table o
    [all...]
  /libcore/luni/src/main/java/java/util/
Locale.java 31 * {@code Locale} represents a language/country/variant combination. Locales are used to
43 * rewriting happens even if you construct your own {@code Locale} object, not just for
47 * <p>This class' constructors do no error checking. You can create a {@code Locale} for languages
51 * <p>Note that locale data is not necessarily available for any of the locales pre-defined as
52 * constants in this class except for en_US, which is the only locale Java guarantees is always
61 * <p>You can use {@code getDefault} to get an appropriate locale for the <i>user</i> of
65 * <a name="locale_data"><h3>Locale data</h3></a>
66 * <p>Note that locale data comes solely from ICU. User-supplied locale service providers (using
77 * <a name="default_locale"><h3>Be wary of the default locale</h3></a
    [all...]
GregorianCalendar.java 236 * time with the default {@code Locale} and {@code TimeZone}.
239 this(TimeZone.getDefault(), Locale.getDefault());
244 * {@code TimeZone} and {@code Locale} on the specified date.
254 super(TimeZone.getDefault(), Locale.getDefault());
260 * time in the default {@code TimeZone} and {@code Locale}.
274 super(TimeZone.getDefault(), Locale.getDefault());
280 * time in the default {@code TimeZone} and {@code Locale}.
297 super(TimeZone.getDefault(), Locale.getDefault());
308 * time and using the specified {@code Locale} and the default {@code TimeZone}.
310 * @param locale
    [all...]
Calendar.java 42 * Like other locale-sensitive classes, {@code Calendar} provides a class
45 * returns a calendar whose locale is based on system settings and whose time fields
75 * {@code Calendar} defines a locale-specific seven day week using two
77 * (from 1 to 7). These numbers are taken from the locale resource data when a
700 * Constructs a {@code Calendar} instance using the default {@code TimeZone} and {@code Locale}.
703 this(TimeZone.getDefault(), Locale.getDefault());
715 * Constructs a {@code Calendar} instance using the specified {@code TimeZone} and {@code Locale}.
719 * @param locale
720 * the locale.
722 protected Calendar(TimeZone timezone, Locale locale)
    [all...]
  /external/sonivox/arm-wt-22k/lib_src/
dls.h 198 MIDILOCALE Locale; /* Intended MIDI locale of this instrument */
  /libcore/luni/src/test/java/libcore/java/util/logging/
OldLoggerTest.java 20 import java.util.Locale;
40 Locale.setDefault(new Locale("zh", "CN"));
  /frameworks/base/core/java/android/database/sqlite/
SQLiteDatabase.java 46 import java.util.Locale;
65 * 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.
    [all...]
  /packages/apps/Gallery3D/src/com/cooliris/cache/
CacheService.java 34 import java.util.Locale;
161 final Locale locale = getLocaleForAlbumCache(); local
162 final Locale defaultLocale = Locale.getDefault();
163 if (locale == null || !locale.equals(defaultLocale)) {
272 putLocaleForAlbumCache(Locale.getDefault());
308 putLocaleForAlbumCache(Locale.getDefault());
367 putLocaleForAlbumCache(Locale.getDefault())
707 Locale locale = getLocaleForAlbumCache(); local
761 final Locale locale = new Locale(language, country, variant); local
    [all...]
  /external/webkit/JavaScriptCore/icu/unicode/
urename.h     [all...]
  /external/webkit/JavaScriptGlue/icu/unicode/
urename.h     [all...]

Completed in 411 milliseconds

1 2