/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
H A D | CurrencyTest.java | 21 import java.util.Locale; 25 private static Locale defaultLocale = Locale.getDefault(); 35 * @tests java.util.Currency#getInstance(java.util.Locale) 43 Currency c1 = Currency.getInstance(new Locale("en", "CA")); 45 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")", 47 Currency c2 = Currency.getInstance(new Locale("fr", "CA")); 49 "Currency.getInstance(new Locale(\"fr\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")", 51 Currency c3 = Currency.getInstance(new Locale("", "CA")); 53 "Currency.getInstance(new Locale(\"\",\"C [all...] |
H A D | LocaleTest.java | 23 import java.util.Locale; 28 Locale testLocale; 30 Locale l; 32 Locale defaultLocale; 35 * @tests java.util.Locale#Locale(java.lang.String, java.lang.String) 38 // Test for method java.util.Locale(java.lang.String, java.lang.String) 39 Locale x = new Locale("xx", "CV"); 40 assertTrue("Failed to create Locale", [all...] |
H A D | ControlTest.java | 40 import java.util.Locale; 217 Locale defaultLocale = Locale.getDefault(); 218 Locale.setDefault(new Locale("TestLanguage", "TestCountry", "Var")); 219 assertNull(control.getFallbackLocale("message", Locale.US)); 227 control.getFallbackLocale(null, Locale.US); 232 Locale.setDefault(defaultLocale); 291 * @tests {@link java.util.ResourceBundle.Control#getCandidateLocales(java.lang.String, java.util.Locale)}. 295 // the ResourceBundle for this baseName and Locale doe [all...] |
/external/icu4c/common/unicode/ |
H A D | 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> 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, 91 * no validity check is performed when you construct a <code>Locale</code>. 93 * <code>Locale</cod 181 class U_COMMON_API Locale : public UObject { class in inherits:UObject [all...] |
H A D | brkiter.h | 306 createWordInstance(const Locale& where, UErrorCode& status); 330 createLineInstance(const Locale& where, UErrorCode& status); 352 createCharacterInstance(const Locale& where, UErrorCode& status); 373 createSentenceInstance(const Locale& where, UErrorCode& status); 398 createTitleInstance(const Locale& where, UErrorCode& status); 409 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count); 412 * Get name of the object for the desired Locale, in the desired langauge. 420 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale, 421 const Locale& displayLocale, 425 * Get name of the object for the desired Locale, i [all...] |
/external/nist-sip/java/javax/sip/header/ |
H A D | ContentLanguageHeader.java | 3 import java.util.Locale; 8 Locale getContentLanguage(); 9 void setContentLanguage(Locale language);
|
H A D | AcceptLanguageHeader.java | 3 import java.util.Locale; 9 Locale getAcceptLanguage(); 10 void setAcceptLanguage(Locale acceptLanguage);
|
/external/apache-http/src/org/apache/http/ |
H A D | ReasonPhraseCatalog.java | 34 import java.util.Locale; 60 public String getReason(int status, Locale loc)
|
H A D | HttpResponse.java | 35 import java.util.Locale; 148 Locale getLocale(); 160 void setLocale(Locale loc);
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
H A D | MockedDateFormatSymbolsProvider.java | 22 import java.util.Locale; 25 private static Locale supportLocale = new Locale("mock"); 28 public DateFormatSymbols getInstance(Locale locale) { 40 public Locale[] getAvailableLocales() { 41 return new Locale[] { supportLocale };
|
H A D | MockedDecimalFormatSymbolsProvider.java | 22 import java.util.Locale; 26 private static Locale supportLocale = new Locale("mock"); 29 public DecimalFormatSymbols getInstance(Locale locale) { 41 public Locale[] getAvailableLocales() { 42 return new Locale[] { supportLocale };
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
H A D | ContentLanguage.java | 31 import java.util.Locale; 93 protected Locale locale; 135 this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) ); 137 this.locale = new Locale(languageTag); 146 * @return the Locale value of this ContentLanguageHeader 149 public Locale getContentLanguage() { 156 * @param language - the new Locale value of the language of 161 public void setContentLanguage(Locale language) { 168 retval.locale = (Locale) this.locale.clone();
|
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/ |
H A D | PhoneNumberOfflineGeocoderTest.java | 22 import java.util.Locale; 67 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); 69 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); 71 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); 73 new Locale("en", "US"))); 75 new Locale("en", "US"))); 82 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); 87 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); 89 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))); 91 geocoder.getDescriptionForNumber(US_NUMBER3, new Locale("e [all...] |
/external/icu4c/common/ |
H A D | locutil.h | 26 static Locale& initLocaleFromName(const UnicodeString& id, Locale& result); 27 static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result);
|
H A D | 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; 155 // Create a new Locale object for it. 156 Locale *newFirstDefault = new Locale(Locale::eBOGUS); 168 // Else some other thread raced us through here, and set the new Locale. 201 Locale *newDefaul 286 Locale::Locale() function in class:Locale 297 Locale::Locale(Locale::ELocaleType) function in class:Locale 304 Locale::Locale( const char * newLanguage, function in class:Locale 442 Locale::Locale(const Locale &other) function in class:Locale [all...] |
/external/bison/lib/ |
H A D | main.c | 28 # define setlocale(Category, Locale)
|
/external/icu4c/test/perf/normperf/ |
H A D | dtfmtrtperf.h | 114 const Locale testLocales[] = { 115 Locale("en"), 116 Locale("en_US"), 117 Locale("en_AU"), 118 Locale("de_DE"), 119 Locale("fr"), 120 Locale("ja_JP"), 121 Locale("ko"), 122 Locale("pt"), 123 Locale("th_T [all...] |
/external/icu4c/i18n/unicode/ |
H A D | currpinf.h | 25 class Locale; 62 CurrencyPluralInfo(const Locale& locale, UErrorCode& status); 138 const Locale& getLocale() const; 178 void setLocale(const Locale& loc, UErrorCode& status); 197 void initialize(const Locale& loc, UErrorCode& status); 199 void setupCurrencyPluralPattern(const Locale& loc, UErrorCode& status); 248 Locale* fLocale;
|
H A D | locdspnm.h | 15 * \brief C++ API: Provides display names of Locale and its components. 29 * values, see Locale. 42 * {@link #createInstance(const Locale& locale, UDialectHandling dialectHandling)} 48 static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale); 60 static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale, 70 virtual const Locale& getLocale() const = 0; 87 virtual UnicodeString& localeDisplayName(const Locale& locale, 180 inline LocaleDisplayNames* LocaleDisplayNames::createInstance(const Locale& locale) {
|
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/callback/ |
H A D | LanguageCallbackTest.java | 25 import java.util.Locale; 43 Locale locale = Locale.US;
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/ |
H A D | LocalePropertyEditor.java | 15 import java.util.Locale; 18 * {@link PropertyEditor} for {@link Locale}. 42 if (value instanceof Locale) { 43 return ((Locale) value).getDisplayName(); 58 // if (value instanceof Locale) { 59 // localeDialog = new ChooseLocaleDialog(DesignerPlugin.getShell(), (Locale) value);
|
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
H A D | NodeSortKey.java | 24 import java.util.Locale; 51 /** Locale we're in */ 52 Locale m_locale; 91 // The constructor of Locale is defined as 92 // public Locale(String language, String country) 100 m_locale = new Locale(langValue.toLowerCase(), 101 Locale.getDefault().getCountry()); 104 // m_locale = new Locale(langValue.toUpperCase(), 105 // Locale.getDefault().getDisplayCountry()); 111 m_locale = Locale [all...] |
/external/icu4c/test/intltest/ |
H A D | tzfmttst.cpp | 87 const Locale testLocales[] = { 88 Locale("en"), 89 Locale("en_CA"), 90 Locale("fr"), 91 Locale("zh_Hant") 94 const Locale *LOCALES; 99 nLocales = sizeof(testLocales)/sizeof(Locale); 101 LOCALES = Locale::getAvailableLocales(nLocales); 246 const Locale* locales; // Static 318 log.logln((UnicodeString) "\nThread " + index + ": Locale [all...] |
/external/apache-http/src/org/apache/http/impl/ |
H A D | DefaultHttpResponseFactory.java | 34 import java.util.Locale; 91 final Locale loc = determineLocale(context); 104 final Locale loc = determineLocale(context); 118 protected Locale determineLocale(HttpContext context) { 119 return Locale.getDefault();
|
/external/apache-xml/src/main/java/org/apache/xml/res/ |
H A D | XMLMessages.java | 24 import java.util.Locale; 36 protected Locale fLocale = Locale.getDefault(); 48 * Set the Locale object to use. 50 * @param locale non-null reference to Locale object. 52 public void setLocale(Locale locale) 58 * Get the Locale object that is being used. 60 * @return non-null reference to Locale object. 62 public Locale getLocale()
|