/libcore/luni/src/test/java/libcore/java/io/ |
StreamTokenizerTest.java | 21 import java.util.Locale; 26 Locale.setDefault(Locale.US); 32 Locale.setDefault(new Locale("tr", "TR"));
|
/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...] |
/external/libtextclassifier/util/i18n/ |
locale.h | 26 class Locale { 30 static Locale FromBCP47(const std::string& locale_tag); 32 // Creates a prototypical invalid locale object. 33 static Locale Invalid() { 34 Locale locale(/*language=*/"", /*script=*/"", /*region=*/""); 35 locale.is_valid_ = false; 36 return locale; 48 Locale(const std::string& language, const std::string& script,
|
/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...] |
/packages/apps/TV/common/src/com/android/tv/common/util/ |
PostalCodeUtils.java | 28 import java.util.Locale; 50 REGION_PATTERN.put(Locale.US.getCountry(), Pattern.compile(POSTCODE_REGEX_US)); 52 Locale.UK.getCountry(), 54 REGION_MAX_LENGTH.put(Locale.US.getCountry(), 5); 55 REGION_MAX_LENGTH.put(Locale.UK.getCountry(), 8);
|
/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/luni/src/main/java/libcore/icu/ |
LocaleData.java | 21 import java.util.Locale; 25 * Passes locale-specific from ICU native code to Java. 32 // A cache for the locale-specific data. 35 // Ensure that we pull in the locale data for the root locale, en_US, and the 36 // user's default locale. (All devices must support the root locale and en_US, 39 get(Locale.ROOT); 40 get(Locale.US); 41 get(Locale.getDefault()) [all...] |
/cts/tests/tests/location/src/android/location/cts/ |
GeocoderTest.java | 27 import java.util.Locale; 37 new Geocoder(getContext(), Locale.ENGLISH); 120 Geocoder geocoder = new Geocoder(getContext(), Locale.US);
|
/libcore/benchmarks/src/benchmarks/regression/ |
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...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
ListResourceBundleTest.java | 22 import java.util.Locale; 33 Locale.setDefault(new Locale("en", "US")); 34 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); 52 Locale.setDefault(new Locale("en", "US")); 53 bundle = (ListResourceBundle) ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
|
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...] |
/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...] |
LocaleTest.java | 19 import static java.util.Locale.FilteringMode.AUTOSELECT_FILTERING; 20 import static java.util.Locale.FilteringMode.EXTENDED_FILTERING; 21 import static java.util.Locale.FilteringMode.IGNORE_EXTENDED_RANGES; 22 import static java.util.Locale.FilteringMode.MAP_EXTENDED_RANGES; 23 import static java.util.Locale.FilteringMode.REJECT_EXTENDED_RANGES; 37 import java.util.Locale; 38 import java.util.Locale.LanguageRange; 44 Locale locale = Locale.forLanguageTag("en-US") local 53 Locale locale = b.build(); local 1471 final Locale locale = new Locale("en", "US", "variant"); local [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsIcuTest.java | 25 import java.util.Locale; 31 final AlphabeticIndex ai = new AlphabeticIndex(Locale.forLanguageTag(localeTags[0])); 35 ai.addLabels(Locale.forLanguageTag(localeTags[i]));
|
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...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
Locale.java | 31 public class Locale { 38 * A locale which matches any language and region 40 public static final Locale ANY = new Locale(ANY_QUALIFIER); 43 * The locale qualifier, or {@link #ANY_QUALIFIER} if this locale matches 44 * any locale 50 * Constructs a new {@linkplain Locale} matching a given language in a given 51 * locale. 53 * @param locale the local 80 LocaleQualifier locale = folder.getLocaleQualifier(); local [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Time/ |
strftime.c | 57 #include "locale.h"
73 #define Locale _CurrentTimeLocale
117 (void) fprintf(stderr, "the current locale");
148 "?" : Locale->day[t->tm_wday],
154 "?" : Locale->abday[t->tm_wday],
160 "?" : Locale->mon[t->tm_mon],
167 "?" : Locale->abmon[t->tm_mon],
185 pt = _fmt(Locale->d_t_fmt, t, pt, ptlim, &warn2);
201 ** C99 locale modifiers.
273 Locale->am_pm[1] : [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
DateFormatRoundTripTest.java | 21 import java.util.Locale; 58 final Locale[] avail = DateFormat.getAvailableLocales(); 71 Locale loc = Locale.getDefault(); 72 logln("ENTERING INFINITE TEST LOOP FOR Locale: " + loc.getDisplayName()); 77 _test(Locale.getDefault()); 99 private void _test(Locale loc) { 101 logln("Locale: " + loc.getDisplayName()); 162 // quoted characters. Currently, this isn't a problem with the locale 252 SimpleDateFormat sdf = new SimpleDateFormat("EEEE, MMMM d, yyyy HH:mm:ss, z G", Locale.US) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
DateFormatRoundTripTest.java | 20 import java.util.Locale; 55 final Locale[] avail = DateFormat.getAvailableLocales(); 68 Locale loc = Locale.getDefault(); 69 logln("ENTERING INFINITE TEST LOOP FOR Locale: " + loc.getDisplayName()); 74 _test(Locale.getDefault()); 96 private void _test(Locale loc) { 98 logln("Locale: " + loc.getDisplayName()); 159 // quoted characters. Currently, this isn't a problem with the locale 249 SimpleDateFormat sdf = new SimpleDateFormat("EEEE, MMMM d, yyyy HH:mm:ss, z G", Locale.US) [all...] |
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
TestUtil.java | 12 import java.util.Locale; 23 public static Locale toICUExtendedLocale(Locale locale) { 24 if (isICUExtendedLocale(locale)) { 25 return locale; 28 String variant = locale.getVariant(); 31 // We once convert Locale to ULocale, then update variant 32 // field. We could do this using Locale APIs, but have to 35 ULocale uloc = ULocale.forLocale(locale); [all...] |
/external/jacoco/jacoco-maven-plugin/src/org/jacoco/maven/ |
AbstractReportMojo.java | 16 import java.util.Locale; 94 public String getDescription(final Locale locale) { 95 return getName(locale) + " Coverage Report."; 165 executeReport(Locale.getDefault()); 168 + getName(Locale.ENGLISH) + " report generation.", e); 173 protected void executeReport(final Locale locale) 178 addFormatters(support, locale); 191 abstract void addFormatters(final ReportSupport support, final Locale locale [all...] |
/frameworks/base/core/java/android/text/method/ |
WordIterator.java | 26 import java.util.Locale; 45 * Constructs a WordIterator using the default locale. 48 this(Locale.getDefault()); 52 * Constructs a new WordIterator for the specified locale. 53 * @param locale The locale to be used for analyzing the text. 55 public WordIterator(Locale locale) { 56 mIterator = BreakIterator.getWordInstance(locale); 329 * At the moment, this is locale-independent, and includes all the characters i [all...] |
/packages/apps/Car/libs/car-settings-lib/tests/robotests/src/com/android/car/settingslib/language/ |
LocaleListItemProviderTest.java | 42 import java.util.Locale; 89 Locale.setDefault(new Locale("en", "US")); 155 // In TEST_LOCALES the language ja has only one locale 161 LocaleStore.LocaleInfo localeInfo = LocaleStore.getLocaleInfo(new Locale("es"));
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/ |
ZonePickerComparatorTest.java | 17 import java.util.Locale; 37 private static final Locale INIT_LOCALE = Locale.getDefault(); 51 Locale.setDefault(INIT_LOCALE); 58 Locale.setDefault(new Locale("zh")); 69 Locale.setDefault(new Locale("en")); 79 // TestList of any locale can be selected to test integer sorting. 87 private List<Map<String, Object>> getMockZonesList(String locale) { [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
SlicesDatabaseHelperTest.java | 38 import java.util.Locale; 111 Locale.setDefault(new Locale("ca"));
|