/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
LocaleDisplayNames.java | 16 import java.util.Locale; 38 * Use standard names when generating a locale name, 44 * Use dialect names when generating a locale name, 55 * @param locale the display locale 59 public static LocaleDisplayNames getInstance(ULocale locale) { 60 return getInstance(locale, DialectHandling.STANDARD_NAMES); 64 * Convenience overload of {@link #getInstance(Locale, DisplayContext...)} that specifies 66 * @param locale the display {@link java.util.Locale} 453 private ULocale locale; field in class:LocaleDisplayNames.LastResortLocaleDisplayNames [all...] |
NumberingSystem.java | 13 import java.util.Locale; 68 * systems, the string contains the name of the RBNF ruleset in the locale's 87 * systems, the string contains the name of the RBNF ruleset in the locale's 112 * Returns the default numbering system for the specified locale. 115 public static NumberingSystem getInstance(Locale inLocale) { 123 public static NumberingSystem getInstance(ULocale locale) { 126 String numbersKeyword = locale.getKeywordValue("numbers"); 145 // we return the default for the locale. 150 String baseName = locale.getBaseName(); 151 // TODO: Caching by locale+numbersKeyword could yield a large cache 161 public final ULocale locale; field in class:NumberingSystem.LocaleLookupData 171 ULocale locale = localeLookupData.locale; local [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
DataDrivenCalendarTest.java | 143 String locale = testSetting = currentCase.getString("locale"); local 157 logln(caseString +" "+locale+"/"+from+" >>> "+loc+"/" 161 logln(caseString +" "+locale+"/"+from+" <<< "+loc+"/" 189 // Headers { "locale","from","operation","params","to" } 190 // #1 locale 191 String param = "locale"; 192 String locale; local 194 locale = testSetting; 195 ULocale loc = new ULocale(locale); [all...] |
IndianTest.java | 12 import java.util.Locale; 148 // new IndianCalendar(Locale) 149 IndianCalendar cal = new IndianCalendar(Locale.getDefault()); 151 errln("could not create IndianCalendar with Locale"); 156 // new IndianCalendar(TimeZone, Locale) 157 IndianCalendar cal = new IndianCalendar(TimeZone.getDefault(),Locale.getDefault()); 159 errln("could not create IndianCalendar with TimeZone, Locale"); 205 Locale calLocale = LocaleUtility.getLocaleFromName(calLocName); 211 Locale formatLocale = LocaleUtility.getLocaleFromName(locName); 264 ULocale locale = ULocale.US.setKeywordValue("calendar", "indian") local [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
DataDrivenFormatTest.java | 95 String locale = currentCase.getString("locale"); local 104 ULocale loc = new ULocale(locale);
|
NumberFormatRegressionTest.java | 23 import java.util.Locale; 47 NumberFormat nf = NumberFormat.getInstance(Locale.US); 66 Locale loc = new Locale("fr", "CH"); 72 // create a Calendar for this locale 75 // create a NumberFormat for this locale 113 NumberFormat nf2 = NumberFormat.getIntegerInstance(Locale.CHINA); 393 ULocale locale = new ULocale("en"); local 394 DecimalFormat nf = (DecimalFormat) NumberFormat.getInstance(locale, NumberFormat.PLURALCURRENCYSTYLE);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
NumberFormatterApiTest.java | 10 import java.util.Locale; 422 // The locale string "???" appears only in brx.txt: 1495 public void locale() { method in class:NumberFormatterApiTest [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
LocaleDataTest.java | 49 ULocale locale = availableLocales[i]; local 50 LocaleData.PaperSize paperSize = LocaleData.getPaperSize(locale); 52 String lang = locale.getLanguage(); 56 ULocale fullLoc = ULocale.addLikelySubtags(locale); 65 errln("PaperSize did not return the expected value for locale "+ locale+ 70 logln("PaperSize returned the expected values for locale " + locale); 74 errln("PaperSize did not return the expected value for locale "+ locale 87 ULocale locale = availableLocales[i]; local 205 ULocale locale = availableLocales[i]; local 276 ULocale locale = availableLocales[i]; local 429 ULocale locale = ULocale.ENGLISH; local [all...] |
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
AnyScriptTest.java | 69 ULocale locale = new ULocale(scriptName); local 70 if (locale.getLanguage().equals("new") || locale.getLanguage().equals("pau")) { 72 "long script name loosely looks like a locale ID with a known likely script")) {
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/html/ |
HTMLFormatter.java | 17 import java.util.Locale; 53 private Locale locale = Locale.getDefault(); field in class:HTMLFormatter 85 * Sets the locale used for report rendering. The current default locale is 88 * @param locale 89 * locale used for report rendering 91 public void setLocale(final Locale locale) { [all...] |
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/table/ |
CounterColumnTest.java | 22 import java.util.Locale; 57 private Locale locale; field in class:CounterColumnTest 68 locale = Locale.ENGLISH; 80 locale); 89 locale); 98 locale); 111 locale); 124 locale); [all...] |
/external/libxkbcommon/xkbcommon/test/ |
interactive-evdev.c | 29 #include <locale.h> 379 const char *locale; local 462 locale = setlocale(LC_CTYPE, NULL); 464 xkb_compose_table_new_from_locale(ctx, locale, 468 fprintf(stderr, "Couldn't create compose from locale\n");
|
/external/python/cpython2/Modules/ |
_localemodule.c | 15 #include <locale.h> 51 "(integer,string=None) -> string. Activates/queries locale processing."); 161 char *locale = NULL, *result; local 164 if (!PyArg_ParseTuple(args, "i|z:setlocale", &category, &locale)) 170 PyErr_SetString(Error, "invalid locale category"); 175 if (locale) { 176 /* set locale */ 177 result = setlocale(category, locale); 180 PyErr_SetString(Error, "unsupported locale setting"); 192 /* get locale */ 388 char locale[100]; local [all...] |
/external/python/cpython3/Modules/ |
_localemodule.c | 16 #include <locale.h> 48 "(integer,string=None) -> string. Activates/queries locale processing."); 94 char *locale = NULL, *result; local 97 if (!PyArg_ParseTuple(args, "i|z:setlocale", &category, &locale)) 103 PyErr_SetString(Error, "invalid locale category"); 108 if (locale) { 109 /* set locale */ 110 result = setlocale(category, locale); 113 PyErr_SetString(Error, "unsupported locale setting"); 120 /* get locale */ 289 char locale[100]; local [all...] |
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
LocaleData.java | 29 private static final int PACKED_ROOT = 0; // to represent the root locale 48 // Find the ancestors of a locale, and fill 'out' with it (assumes out has enough 145 // try and see if any of them is a representative locale. 151 // We have no way of figuring out which locale is a better match. For 152 // the sake of stability, we consider the locale with the lower region 167 // We couldn't find the locale. Let's try without the region 177 // We don't know anything about the locale 182 // We found the locale. 198 final int locale = packLocale(ENGLISH_CHARS, region); local 200 findAncestors(null, stop_list_indexRef, locale, LATIN_CHARS, ENGLISH_STOP_LIST, 2) [all...] |
/frameworks/base/core/java/android/security/ |
ConfirmationPrompt.java | 27 import java.util.Locale; 278 String locale = Locale.getDefault().toLanguageTag(); local 280 mCallbackBinder, mPromptText.toString(), mExtraData, locale, uiOptionsAsFlags);
|
/frameworks/base/core/java/android/speech/tts/ |
TextToSpeechService.java | 46 import java.util.Locale; 82 * service to expose multiple backends for a single locale. Each one of them can have a different 93 * {@link #onGetDefaultVoiceNameFor(String, String, String)} is a link between locale and voice 98 * If the client uses a voice instead of a locale, {@link SynthesisRequest} will contain the 102 * pre-existing locale-based implementation. 171 * @return Code indicating the support status for the locale. 192 * @see Locale#getISO3Language() 193 * @see Locale#getISO3Country() 194 * @see Locale#getVariant() 211 * @return Code indicating the support status for the locale 360 Locale locale = Locale.forLanguageTag(voiceName); local 391 Locale locale = Locale.forLanguageTag(voiceName); local 417 final Locale locale = mEngineHelper.getLocalePrefForEngine(mPackageName); local [all...] |
/frameworks/base/core/java/android/text/ |
AutoText.java | 29 import java.util.Locale; 72 private Locale mLocale; 76 mLocale = resources.getConfiguration().locale; 81 * Returns the instance of AutoText. If the locale has changed, it will create a new 82 * instance of AutoText for the locale. 88 Locale locale = res.getConfiguration().locale; local 94 if (!locale.equals(instance.mLocale)) { 106 * The View is used to get the current Locale and Resources [all...] |
/frameworks/base/core/java/android/text/format/ |
DateFormat.java | 34 import java.util.Locale; 159 private static Locale sIs24HourLocale; 164 * formatted as 12 hour (AM/PM) times. Based on the user's chosen locale and other preferences. 174 * formatted as 12 hour (AM/PM) times. Based on the user's chosen locale and other preferences. 188 return is24HourLocale(context.getResources().getConfiguration().locale); 192 * Returns true if the specified locale uses a 24-hour time format by default, ignoring user 194 * @param locale the locale to check 195 * @return true if the locale uses a 24 hour time format by default, false otherwise 198 public static boolean is24HourLocale(@NonNull Locale locale) 263 final Locale locale = context.getResources().getConfiguration().locale; local 297 final Locale locale = context.getResources().getConfiguration().locale; local 308 final Locale locale = context.getResources().getConfiguration().locale; local 319 final Locale locale = context.getResources().getConfiguration().locale; local 337 final Locale locale = context.getResources().getConfiguration().locale; local [all...] |
/frameworks/base/core/java/android/view/textclassifier/ |
SelectionSessionLogger.java | 31 import java.util.Locale; 225 String.format(Locale.US, "%2d: %s/%s/%s, range=%d,%d - smart_range=%d,%d (%s/%s)", 233 public static BreakIterator getTokenIterator(@NonNull Locale locale) { 234 return BreakIterator.getWordInstance(Preconditions.checkNotNull(locale)); 242 List<Locale> locales) { 247 for (Locale locale : locales) { 248 localesJoiner.add(locale.toLanguageTag()); 250 final String modelName = String.format(Locale.US, "%s_v%d", localesJoiner.toString() [all...] |
/frameworks/base/core/java/android/view/textservice/ |
SpellCheckerSubtype.java | 35 import java.util.Locale; 39 * Subtype can describe locale (e.g. en_US, fr_FR...) used for settings. 75 * @param locale The locale supported by the subtype 82 public SpellCheckerSubtype(int nameId, String locale, String languageTag, String extraValue, 85 mSubtypeLocale = locale != null ? locale : ""; 96 * @param locale The locale supported by the subtype 104 public SpellCheckerSubtype(int nameId, String locale, String extraValue) 246 final Locale locale = getLocaleObject(); local [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
LocalePicker.java | 43 import java.util.Locale; 53 public void onLocaleSelected(Locale locale); 62 final Locale locale; field in class:LocalePicker.LocaleInfo 64 public LocaleInfo(String label, Locale locale) { 66 this.locale = locale; 73 public Locale getLocale() [all...] |
LocalePickerWithRegion.java | 37 import java.util.Locale; 41 * A two-step locale picker. It shows a language, then a country. 45 * default locale.</p> 62 * Other classes can register to be notified when a locale was selected. 68 * The classes that want to retrieve the locale picked should implement this method. 69 * @param locale the locale picked. 71 void onLocaleSelected(LocaleStore.LocaleInfo locale); 91 * Sets the listener and initializes the locale list. 96 * but no parent locale was provided.</p 207 final LocaleStore.LocaleInfo locale = local [all...] |
SuggestedLocaleAdapter.java | 36 import java.util.Locale; 64 private Locale mDisplayLocale = null; 138 * Overrides the locale used to display localized labels. Setting the locale to null will reset 139 * the Adapter to use the default locale for the labels. 141 public void setDisplayLocale(@NonNull Context context, @Nullable Locale locale) { 142 if (locale == null) { 145 } else if (!locale.equals(mDisplayLocale)) { 146 mDisplayLocale = locale; 253 Locale locale = Locale.getDefault(); local [all...] |
/frameworks/base/libs/androidfw/ |
LocaleData.cpp | 46 const uint32_t PACKED_ROOT = 0; // to represent the root locale 65 // Find the ancestors of a locale, and fill 'out' with it (assumes out has enough 147 // If one and only one of the two locales is a special Spanish locale, we 148 // replace it with es-419. We don't do the replacement if the other locale 187 // try and see if any of them is a representative locale. 194 // We have no way of figuring out which locale is a better match. For 195 // the sake of stability, we consider the locale with the lower region 209 // We couldn't find the locale. Let's try without the region 218 // We don't know anything about the locale 222 // We found the locale 235 const uint32_t locale = packLocale(ENGLISH_CHARS, region); local [all...] |