/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
WifiP2pUpnpServiceInfo.java | 21 import java.util.Locale; 102 sb.append(String.format(Locale.US, "%02x ", VERSION_1_0));
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
CompatTextView.java | 28 import java.util.Locale; 62 * Transforms source text into an ALL CAPS string, locale-aware. 66 private final Locale mLocale; 69 mLocale = context.getResources().getConfiguration().locale;
|
/libcore/luni/src/main/java/java/text/ |
DateFormat.java | 24 import java.util.Locale; 32 * <p>This class provides factories for obtaining instances configured for a specific locale. 333 * <p>Note that Android does not support user-supplied locale service providers. 335 public static Locale[] getAvailableLocales() { 350 * the DEFAULT style for the default locale. 352 * @return the {@code DateFormat} instance for the default style and locale. 360 * the specified style for the user's default locale. 361 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 365 * locale [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1GeneralizedTime.java | 28 import java.util.Locale; 87 SimpleDateFormat sdf = new SimpleDateFormat(GEN_PATTERN, Locale.US);
|
ASN1UTCTime.java | 28 import java.util.Locale; 98 SimpleDateFormat sdf = new SimpleDateFormat(UTC_PATTERN, Locale.US);
|
/libcore/luni/src/main/native/ |
IcuUtilities.cpp | 31 Locale getLocale(JNIEnv* env, jstring localeName) { 32 return Locale::createFromName(ScopedUtfChars(env, localeName).c_str());
|
libcore_icu_NativePluralRules.cpp | 51 Locale locale = Locale::createFromName(localeName.c_str()); local 53 PluralRules* result = PluralRules::forLocale(locale, status);
|
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/ |
MockParser.java | 20 import java.util.Locale; 64 public void setLocale(Locale locale) throws SAXException { 65 logger.add("setLocale", locale);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
DateUtils.java | 28 import java.util.Locale; 48 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'", Locale.US), 49 new SimpleDateFormat("yyyyMMdd", Locale.US), 50 new SimpleDateFormat("yyyyMMdd'T'HHmmssSSS'Z'", Locale.US), 51 new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'", Locale.US), 52 new SimpleDateFormat("yyyyMMdd'T'HHmm'Z'", Locale.US), 105 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); 114 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); 208 // Special case handling for Spanish locale by checking for "de"
|
/packages/apps/Tag/src/com/android/apps/tag/message/ |
ParsedNdefMessage.java | 28 import java.util.Locale; 50 * most appropriate for the given {@code locale}. 52 public String getSnippet(Context context, Locale locale) { 80 return record.getSnippet(context, locale);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/utils/ |
FingerprintUtils.java | 19 import java.util.Locale; 61 return sb.toString().toUpperCase(Locale.US);
|
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
dtitvfmt.h | 131 * If a skeleton is not found in a locale's DateIntervalInfo, which means 176 * create an instance using default or given locale plus given skeleton. 183 * create an instance using default or given locale plus given skeleton 187 * Locale provides the timezone, calendar, and format symbols information. 208 * Locale("en", "GB", ""), status); 222 * Construct a DateIntervalFormat from skeleton and the default locale. 225 * createInstance(const UnicodeString& skeleton, const Locale& locale, 227 * with the value of locale as default locale [all...] |
/external/icu4c/i18n/unicode/ |
dtitvfmt.h | 131 * If a skeleton is not found in a locale's DateIntervalInfo, which means 176 * create an instance using default or given locale plus given skeleton. 183 * create an instance using default or given locale plus given skeleton 187 * Locale provides the timezone, calendar, and format symbols information. 208 * Locale("en", "GB", ""), status); 222 * Construct a DateIntervalFormat from skeleton and the default locale. 225 * createInstance(const UnicodeString& skeleton, const Locale& locale, 227 * with the value of locale as default locale [all...] |
/external/icu4c/layoutex/layout/ |
RunArrays.h | 402 * The <code>LocaleRuns</code> class associates pointers to <code>Locale</code> 414 * @param locales is the address of an array of pointers to <code>Locale</code> objects. This array, 415 * and the <code>Locale</code> objects to which it points, must remain valid until 425 inline LocaleRuns(const Locale **locales, const le_int32 *limits, le_int32 count); 428 * Construct an empty <code>LocaleRuns</code> object. Clients can add locale and limit 431 * @param initialCapacity is the initial size of the locale and limit indices arrays. If 448 * Get the <code>Locale</code> object assoicated with the given run 454 * @return the <code>Locale</code> associated with the given text run. 460 const Locale *getLocale(le_int32 run) const; 464 * Add a <code>Locale</code> and limit index pair to the data arrays and retur [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
StringCaseMappingBenchmark.java | 19 import java.util.Locale; 28 // TODO: locale makes a difference too. 77 s.value.toUpperCase(Locale.US); 83 s.value.toUpperCase(Locale.US); 101 libcore.icu.ICU.toUpperCase(s.value, Locale.US.toString()); 107 libcore.icu.ICU.toLowerCase(s.value, Locale.US.toString());
|
/libcore/luni/src/main/java/libcore/icu/ |
NativeBreakIterator.java | 21 import java.util.Locale; 144 public static NativeBreakIterator getCharacterInstance(Locale where) { 148 public static NativeBreakIterator getLineInstance(Locale where) { 152 public static NativeBreakIterator getSentenceInstance(Locale where) { 156 public static NativeBreakIterator getWordInstance(Locale where) { 160 private static native long getCharacterInstanceImpl(String locale); 161 private static native long getWordInstanceImpl(String locale); 162 private static native long getLineInstanceImpl(String locale); 163 private static native long getSentenceInstanceImpl(String locale);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
NameLookupBuilderTest.java | 26 import java.util.Locale; 82 new NameSplitter("Mr", "", "", "", Locale.getDefault())); 187 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.CHINA)) { 200 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) { 214 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) {
|
NameSplitterTest.java | 27 import java.util.Locale; 45 createNameSplitter(Locale.US); 48 private void createNameSplitter(Locale locale) { 50 "&, AND", locale); 194 createNameSplitter(Locale.JAPAN); 206 // in Locale.JAPAN, so assume Japanese 221 createNameSplitter(Locale.CHINA); 224 // but we are in Locale.CHINA, so assume this is Chinese 259 createNameSplitter(Locale.JAPAN) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
LocaleMenuListener.java | 39 * The {@linkplain LocaleMenuListener} class is responsible for generating the locale 48 private final Locale mLocale; 53 @Nullable Locale locale) { 56 mLocale = locale; 81 List<Locale> locales = chooser.getLocaleList(); 82 Locale current = configuration.getLocale(); 84 for (Locale locale : locales) { 85 String title = ConfigurationChooser.getLocaleLabel(chooser, locale, false) [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
DateIntervalFormatTest.java | 20 import java.util.Locale; 39 Calendar c = Calendar.getInstance(tz, Locale.US); 57 Locale de_DE = new Locale("de", "DE"); 58 Locale en_US = new Locale("en", "US"); 59 Locale es_ES = new Locale("es", "ES"); 60 Locale es_US = new Locale("es", "US") [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tsnmfmt.cpp | 52 if (exec) testLocale(/*par, */Locale::getDefault(), name); 74 IntlTestNumberFormat::testLocale(/* char* par, */const Locale& locale, const UnicodeString& localeName) 78 fLocale = locale; 82 fFormat = NumberFormat::createInstance(locale, fStatus); 88 fFormat = NumberFormat::createCurrencyInstance(locale, fStatus); 94 fFormat = NumberFormat::createPercentInstance(locale, fStatus); 306 + ", Locale=" + UnicodeString(fLocale.getName()) 374 + ", Locale=" + UnicodeString(fLocale.getName()) 389 const Locale* locales = NumberFormat::getAvailableLocales(count) [all...] |
icusvtst.cpp | 110 // use locale keys 114 return LocaleKey::createWithCanonicalFallback(id, NULL, status); // no fallback locale 161 const Locale* loc; 165 } else if ((loc = dynamic_cast<const Locale*>(obj)) != NULL) { 252 ICUServiceTest::confirmEqual(const UnicodeString& message, const Locale* lhs, const Locale* rhs) 326 // create a service using locale keys, 329 // register an object with one locale, 330 // search for an object with a more specific locale 342 // register a new object with the more specific locale [all...] |
/external/icu4c/layoutex/ |
plruns.cpp | 218 * @param locales is the address of an array of locale name strings. This array, 219 * and the <code>Locale</code> objects to which it points, must remain valid until 232 * Construct an empty <code>LoIDRuns</code> object. Clients can add locale and limit 235 * @param initialCapacity is the initial size of the locale and limit indices arrays. If 252 * Get the name of the locale assoicated with the given run 258 * @return the locale name associated with the given text run. 267 * Add a <code>Locale</code> and limit index pair to the data arrays and return 272 * locale and limit indices arrays, this method will return a run index of -1. 275 * method which takes a locale name and a limit index along with whatever other data they implement. 279 * @param locale is the name of the locale to add. This object must remain vali [all...] |
/external/icu4c/test/intltest/ |
tsnmfmt.cpp | 53 if (exec) testLocale(/*par, */Locale::getDefault(), name); 75 IntlTestNumberFormat::testLocale(/* char* par, */const Locale& locale, const UnicodeString& localeName) 79 fLocale = locale; 83 fFormat = NumberFormat::createInstance(locale, fStatus); 89 fFormat = NumberFormat::createCurrencyInstance(locale, fStatus); 95 fFormat = NumberFormat::createPercentInstance(locale, fStatus); 98 if (uprv_strcmp(locale.getName(), "en_US_POSIX") != 0) { 102 fFormat = NumberFormat::createScientificInstance(locale, fStatus); 317 + ", Locale=" + UnicodeString(fLocale.getName() [all...] |
icusvtst.cpp | 110 // use locale keys 114 return LocaleKey::createWithCanonicalFallback(id, NULL, status); // no fallback locale 161 const Locale* loc; 165 } else if ((loc = dynamic_cast<const Locale*>(obj)) != NULL) { 252 ICUServiceTest::confirmEqual(const UnicodeString& message, const Locale* lhs, const Locale* rhs) 326 // create a service using locale keys, 329 // register an object with one locale, 330 // search for an object with a more specific locale 342 // register a new object with the more specific locale [all...] |