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

1 2 3 4 5 6 7 8 91011>>

  /external/vogar/test/vogar/target/junit3/
ChangeDefaultLocaleTest.java 19 import java.util.Locale;
23 * Verify that the locale is reset to Locale.US before/after each test is run.
29 assertEquals(Locale.US, Locale.getDefault());
30 Locale.setDefault(Locale.CANADA);
34 assertEquals(Locale.US, Locale.getDefault());
35 Locale.setDefault(Locale.CHINA)
    [all...]
  /external/vogar/test/vogar/target/junit4/
ChangeDefaultLocaleTest.java 19 import java.util.Locale;
25 * Verify that the locale is reset to Locale.US before/after each test is run.
33 assertEquals(Locale.US, Locale.getDefault());
34 Locale.setDefault(Locale.CANADA);
39 assertEquals(Locale.US, Locale.getDefault());
40 Locale.setDefault(Locale.CHINA)
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
LocaleSetTest.java 20 import java.util.Locale;
26 final Locale previousDefault = Locale.getDefault();
28 assertEquals(Locale.CANADA, LocaleSet.newForTest(Locale.CANADA).getPrimaryLocale());
29 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN).getPrimaryLocale());
30 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN, Locale.CANADA
    [all...]
  /frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TtsEnginesTests.java 6 import java.util.Locale;
17 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-usa"));
18 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-USA"));
19 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en-US"));
20 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en_us"));
21 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng_US"));
22 assertEquals(new Locale("en", "US", "foobar"),
24 assertEquals(new Locale("en", "", "foobar"), mTtsHelper.parseLocaleString("eng__foobar"));
28 assertEquals(new Locale("en"), mTtsHelper.parseLocaleString("eng"));
29 assertEquals(new Locale("en","US","var"), mTtsHelper.parseLocaleString("eng-USA-var"))
    [all...]
  /external/icu/icu4c/source/common/unicode/
locid.h 41 * \brief C++ API: Locale ID object.
53 * A <code>Locale</code> object represents a specific geographical, political,
54 * or cultural region. An operation that requires a <code>Locale</code> to perform
55 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
57 * is a locale-sensitive operation--the number should be formatted
61 * The Locale class is not suitable for subclassing.
64 * You can create a <code>Locale</code> object using the constructor in
68 * Locale( const char* language,
98 * Because a <code>Locale</code> object is just an identifier for a region
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
LocaleTest.java 23 import java.util.Locale;
28 Locale testLocale;
30 Locale l;
32 Locale defaultLocale;
35 * java.util.Locale#Locale(java.lang.String, java.lang.String)
38 // Test for method java.util.Locale(java.lang.String)
39 Locale x = new Locale("xx");
40 assertTrue("Failed to create Locale", x.getVariant().equals(""))
198 Locale locale = new Locale("no", "NO"); local
    [all...]
CurrencyTest.java 26 import java.util.Locale;
31 private Locale originalLocale;
36 originalLocale = Locale.getDefault();
41 Locale.setDefault(originalLocale);
52 * java.util.Currency#getInstance(java.util.Locale)
57 * method ignores language and variant component of the locale.
60 Currency c1 = Currency.getInstance(new Locale("en", "CA"));
62 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")",
64 Currency c2 = Currency.getInstance(new Locale("fr", "CA"));
66 "Currency.getInstance(new Locale(\"fr\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")"
    [all...]
  /external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
RbnfSampleRuleSets.java 11 import java.util.Locale;
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
CommonDateUtils.java 20 import java.util.Locale;
29 new SimpleDateFormat("--MM-dd", Locale.US);
31 new SimpleDateFormat("yyyy-MM-dd", Locale.US);
33 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
35 new SimpleDateFormat("--MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
PhonebookCollatorFactory.java 20 import java.util.Locale;
28 return Collator.getInstance(Locale.getDefault());
  /external/nist-sip/java/javax/sip/header/
ContentLanguageHeader.java 3 import java.util.Locale;
8 Locale getContentLanguage();
9 void setContentLanguage(Locale language);
  /external/apache-http/src/org/apache/http/
ReasonPhraseCatalog.java 34 import java.util.Locale;
61 * @param loc the preferred locale for the reason phrase
65 public String getReason(int status, Locale loc)
  /libcore/luni/src/test/java/libcore/java/util/
Locales.java 20 import java.util.Locale;
23 import static java.util.Locale.Category.DISPLAY;
24 import static java.util.Locale.Category.FORMAT;
31 private final Locale uncategorizedLocale;
32 private final Locale displayLocale;
33 private final Locale formatLocale;
35 private Locales(Locale uncategorizedLocale, Locale displayLocale, Locale formatLocale) {
42 * Sets the specified default Locale, default DISPLAY Locale and default FORMAT Locale
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
LocaleTest.java 27 Locale locale = Locale.create("en-rUS"); local
28 assertEquals("en", locale.qualifier.getLanguage());
29 assertEquals("US", locale.qualifier.getRegion());
30 assertTrue(locale.hasLanguage());
31 assertTrue(locale.hasRegion());
35 Locale locale = Locale.create("zh") local
43 Locale locale = Locale.create("zh"); local
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
DecimalFormatSymbolsBenchmark.java 19 import java.util.Locale;
23 private static Locale locale = Locale.getDefault(Locale.Category.FORMAT); field in class:DecimalFormatSymbolsBenchmark
27 new DecimalFormatSymbols(locale);
NumberFormatBenchmark.java 20 import java.util.Locale;
24 private static Locale locale = Locale.getDefault(Locale.Category.FORMAT); field in class:NumberFormatBenchmark
28 NumberFormat.getInstance(locale);
BreakIteratorBenchmark.java 21 import java.util.Locale;
26 LIPSUM(Locale.US, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mollis consequat nisl non pharetra. Praesent pretium vehicula odio sed ultrices. Aenean a felis libero. Vivamus sed commodo nibh. Pellentesque turpis lectus, euismod vel ante nec, cursus posuere orci. Suspendisse velit neque, fermentum luctus ultrices in, ultrices vitae arcu. Duis tincidunt cursus lorem. Nam ultricies accumsan quam vitae imperdiet. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque aliquet pretium nisi, eget laoreet enim molestie sit amet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.\nNam dapibus aliquam lacus ac suscipit. Proin in nibh sit amet purus congue laoreet eget quis nisl. Morbi gravida dignissim justo, a venenatis ante pulvinar at. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ultrices vestibulum dui, vel aliquam lacus aliquam quis. Duis fringilla sapien ac lacus egestas, vel adipiscing elit euismod. Donec non tellus odio. Donec gravida eu massa ac feugiat. Aliquam erat volutpat. Praesent id adipiscing metus, nec laoreet enim. Aliquam vitae posuere turpis. Mauris ac pharetra sem. In at placerat tortor. Vivamus ac vehicula neque. Cras volutpat ullamcorper massa et varius. Praesent sagittis neque vitae nulla euismod pharetra.\nSed placerat sapien non molestie sollicitudin. Nullam sit amet dictum quam. Etiam tincidunt tortor vel pretium vehicula. Praesent fringilla ipsum vel velit luctus dignissim. Nulla massa ligula, mattis in enim et, mattis lacinia odio. Suspendisse tristique urna a orci commodo tempor. Duis lacinia egestas arcu a sollicitudin.\nIn ac feugiat lacus. Nunc fermentum eu est at tristique. Pellentesque quis ligula et orci placerat lacinia. Maecenas quis mauris diam. Etiam mi ipsum, tempus in purus quis, euismod faucibus orci. Nulla facilisi. Praesent sit amet sapien vel elit porta adipiscing. Phasellus sit amet volutpat diam.\nProin bibendum elit non lacus pharetra, quis eleifend tellus placerat. Nulla facilisi. Maecenas ante diam, pellentesque mattis mattis in, porta ut lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nunc interdum tristique metus, in scelerisque odio fermentum eget. Cras nec venenatis lacus. Aenean euismod eget metus quis molestie. Cras tincidunt dolor ut massa ornare, in elementum lacus auctor. Cras sodales nisl lacus, id ultrices ligula varius at. Sed tristique sit amet tellus vel mollis. Sed sed sollicitudin quam. Sed sed adipiscing risus, et dictum orci. Cras tempor pellentesque turpis et tempus."),
27 LONGPARA(Locale.US, "During dinner, Mr. Bennet scarcely spoke at all; but when the servants were withdrawn, he thought it time to have some conversation with his guest, and therefore started a subject in which he expected him to shine, by observing that he seemed very fortunate in his patroness. Lady Catherine de Bourgh's attention to his wishes, and consideration for his comfort, appeared very remarkable. Mr. Bennet could not have chosen better. Mr. Collins was eloquent in her praise. The subject elevated him to more than usual solemnity of manner, and with a most important aspect he protested that \"he had never in his life witnessed such behaviour in a person of rank--such affability and condescension, as he had himself experienced from Lady Catherine. She had been graciously pleased to approve of both of the discourses which he had already had the honour of preaching before her. She had also asked him twice to dine at Rosings, and had sent for him only the Saturday before, to make up her pool of quadrille in the evening. Lady Catherine was reckoned proud by many people he knew, but _he_ had never seen anything but affability in her. She had always spoken to him as she would to any other gentleman; she made not the smallest objection to his joining in the society of the neighbourhood nor to his leaving the parish occasionally for a week or two, to visit his relations. She had even condescended to advise him to marry as soon as he could, provided he chose with discretion; and had once paid him a visit in his humble parsonage, where she had perfectly approved all the alterations he had been making, and had even vouchsafed to suggest some herself--some shelves in the closet up stairs.\""),
28 GERMAN(Locale.GERMANY, "Aber dieser Freiheit setzte endlich der Winter ein Ziel. Draußen auf den Feldern und den hohen Bergen lag der Schnee und Peter wäre in seinem dünnen Leinwandjäckchen bald erfroren. Es war also seine einzige Freude, hinaus vor die Hütte zu treten und den Sperlingen Brotkrümchen zu streuen, was er sich jedesmal an seinem Frühstück absparte. Wenn nun die Vögel so lustig zwitscherten und um ihn herumflogen, da klopfte ihm das Herz vor Lust, und oft gab er ihnen sein ganzes Stück Schwarzbrot, ohne daran zu denken, daß er dafür alsdann selbst hungern müsse."),
29 THAI(Locale.forLanguageTag("th-TH"), "??????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????? ?????????????????? ??? ?????????????????????????????????? ?????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????????? ???, ????, ??????, ?????? ???????????????????? ????????????????? ??(?), ????(? ???????\"???\") ???????? ???(? ??????? \"???\") ??????? ??????????????????????????????????????????????????????????????? \"?\" ?????????????????????? \"?\" ????????????????????????????????????? ??? ???? ???, ?????? ???? ?????? ???? ?????? ???? ????? ????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????"),
30 THAI2(Locale.forLanguageTag("th-TH"), "this is the word browser in Thai: ???????????"),
31 TABS(Locale.US, "one\t\t\t\t\t\t\t\t\t\t\t\t\t\ttwo\n"),
32 ACCENT(Locale.US, "e\u0301\u00e9\nwhich is:\n\"e\\u0301\\u00e9\""),
33 EMOJI(Locale.US, ">>\ud83d\ude01<<\nwhich is:\n\">>\\ud83d\\ude01<<\""),
34 SPACES(Locale.US, " leading spaces and trailing ones too ")
39 final Locale locale; field in class:BreakIteratorBenchmark.Text
    [all...]
DateFormatBenchmark.java 22 import java.util.Locale;
26 private Locale locale1;
27 private Locale locale2;
28 private Locale locale3;
29 private Locale locale4;
33 locale1 = Locale.TAIWAN;
34 locale2 = Locale.GERMANY;
35 locale3 = Locale.FRANCE;
36 locale4 = Locale.ITALY;
  /packages/apps/Dialer/java/com/android/contacts/common/util/
CommonDateUtils.java 20 import java.util.Locale;
27 new SimpleDateFormat("--MM-dd", Locale.US);
29 new SimpleDateFormat("yyyy-MM-dd", Locale.US);
31 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
33 new SimpleDateFormat("--MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
  /frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
LocaleUtilsTest.java 29 import java.util.Locale;
35 private static final LocaleUtils.LocaleExtractor<Locale> sIdentityMapper = source -> source;
39 final ArrayList<Locale> availableLocales = new ArrayList<>();
40 availableLocales.add(Locale.forLanguageTag("en-US"));
41 availableLocales.add(Locale.forLanguageTag("fr-CA"));
42 availableLocales.add(Locale.forLanguageTag("in"));
43 availableLocales.add(Locale.forLanguageTag("ja"));
44 availableLocales.add(Locale.forLanguageTag("fil"));
48 final ArrayList<Locale> dest = new ArrayList<>();
55 final ArrayList<Locale> availableLocales = new ArrayList<>()
    [all...]
  /frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
InputMethodSubtypePreferenceTest.java 31 import java.util.Locale;
38 // Subtypes that has the same locale of the system's.
39 createPreference("", "en_US", Locale.US),
40 createPreference("E", "en_US", Locale.US),
41 createPreference("Z", "en_US", Locale.US),
43 createPreference("", "en", Locale.US),
44 createPreference("E", "en", Locale.US),
45 createPreference("Z", "en", Locale.US),
47 createPreference("", "ja", Locale.US),
48 createPreference("A", "hi_IN", Locale.US)
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/exception/util/
Localizable.java 20 import java.util.Locale;
38 * @param locale locale into which to get the string
41 String getLocalizedString(Locale locale);
  /external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/indic/
IndicIMDescriptor.java 15 import java.util.Locale;
19 private final Locale locale; field in class:IndicIMDescriptor
22 protected IndicIMDescriptor(Locale locale, String name) {
23 this.locale = locale;
29 public Locale[] getAvailableLocales() {
30 return new Locale[] { locale };
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
UserDictionaryLocalePicker.java 21 import java.util.Locale;
34 public void onLocaleSelected(Locale locale);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
LanguageOnSpacebarUtilsTests.java 35 import java.util.Locale;
60 EN_US_QWERTY = findSubtypeOf(Locale.US.toString(), "qwerty");
61 EN_GB_QWERTY = findSubtypeOf(Locale.UK.toString(), "qwerty");
62 FR_AZERTY = findSubtypeOf(Locale.FRENCH.toString(), "azerty");
63 FR_CA_QWERTY = findSubtypeOf(Locale.CANADA_FRENCH.toString(), "qwerty");
94 final boolean implicitlyEnabledSubtype, final Locale systemLocale,
104 assertFormatType(EN_US_QWERTY, true, Locale.US, FORMAT_TYPE_NONE);
107 assertFormatType(EN_GB_QWERTY, true, Locale.UK, FORMAT_TYPE_NONE);
110 assertFormatType(FR_AZERTY, true, Locale.FRANCE, FORMAT_TYPE_NONE);
113 assertFormatType(FR_CA_QWERTY, true, Locale.CANADA_FRENCH, FORMAT_TYPE_NONE)
    [all...]

Completed in 2150 milliseconds

1 2 3 4 5 6 7 8 91011>>