/external/icu/android_icu4j/src/main/java/android/icu/text/ |
LowercaseTransliterator.java | 12 import android.icu.util.ULocale; 33 return new LowercaseTransliterator(ULocale.US); 40 private ULocale locale; 51 public LowercaseTransliterator(ULocale loc) {
|
TitlecaseTransliterator.java | 11 import android.icu.util.ULocale; 30 return new TitlecaseTransliterator(ULocale.US); 37 private ULocale locale; 47 public TitlecaseTransliterator(ULocale loc) {
|
DecimalFormatSymbols.java | 26 import android.icu.util.ULocale; 27 import android.icu.util.ULocale.Category; 51 initialize(ULocale.getDefault(Category.FORMAT)); 59 initialize(ULocale.forLocale(locale)); 66 public DecimalFormatSymbols(ULocale locale) { 112 public static DecimalFormatSymbols getInstance(ULocale locale) { 139 * returns the array of <code>ULocale</code>s available in this class. ICU currently 143 * @return An array of <code>ULocale</code>s for which localized 147 public static ULocale[] getAvailableULocales() { 698 public ULocale getULocale() 1189 private ULocale ulocale; field in class:DecimalFormatSymbols [all...] |
CompactDecimalDataCache.java | 17 import android.icu.util.ULocale; 43 private final ICUCache<ULocale, DataBundle> cache = 44 new SimpleCache<ULocale, DataBundle>(); 114 DataBundle get(ULocale locale) { 132 * @param ulocale the locale for which we are loading the data. 135 private static DataBundle load(ULocale ulocale) { 136 NumberingSystem ns = NumberingSystem.getInstance(ulocale); 138 getBundleInstance(ICUResourceBundle.ICU_BASE_NAME, ulocale); 161 Data shortData = loadStyle(shortDataBundle, ulocale, SHORT_STYLE) [all...] |
TimeZoneNames.java | 22 import android.icu.util.ULocale; 70 * The default <code>TimeZoneNames</code> implementation returned by {@link #getInstance(ULocale)} uses the locale data 153 public static TimeZoneNames getInstance(ULocale locale) { 167 return getInstance(ULocale.forLocale(locale)); 179 public static TimeZoneNames getTZDBInstance(ULocale locale) { 467 public abstract TimeZoneNames getTimeZoneNames(ULocale locale); 481 * TimeZoneNames cache used by {@link TimeZoneNames#getInstance(ULocale)} 483 private static class Cache extends SoftCache<String, TimeZoneNames, ULocale> { 491 protected TimeZoneNames createInstance(String key, ULocale data) { 499 * The default implementation of <code>TimeZoneNames</code> used by {@link TimeZoneNames#getInstance(ULocale)} whe [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
ChineseDateFormat.java | 15 import com.ibm.icu.util.ULocale; 60 this(pattern, ULocale.forLocale(locale)); 70 public ChineseDateFormat(String pattern, ULocale locale) { 88 public ChineseDateFormat(String pattern, String override, ULocale locale) {
|
DecimalFormatSymbols.java | 25 import com.ibm.icu.util.ULocale; 26 import com.ibm.icu.util.ULocale.Category; 52 initialize(ULocale.getDefault(Category.FORMAT)); 61 initialize(ULocale.forLocale(locale)); 69 public DecimalFormatSymbols(ULocale locale) { 118 public static DecimalFormatSymbols getInstance(ULocale locale) { 146 * returns the array of <code>ULocale</code>s available in this class. ICU currently 150 * @return An array of <code>ULocale</code>s for which localized 155 public static ULocale[] getAvailableULocales() { 753 public ULocale getULocale() 1252 private ULocale ulocale; field in class:DecimalFormatSymbols [all...] |
CompactDecimalDataCache.java | 16 import com.ibm.icu.util.ULocale; 42 private final ICUCache<ULocale, DataBundle> cache = 43 new SimpleCache<ULocale, DataBundle>(); 113 DataBundle get(ULocale locale) { 131 * @param ulocale the locale for which we are loading the data. 134 private static DataBundle load(ULocale ulocale) { 135 NumberingSystem ns = NumberingSystem.getInstance(ulocale); 137 getBundleInstance(ICUResourceBundle.ICU_BASE_NAME, ulocale); 160 Data shortData = loadStyle(shortDataBundle, ulocale, SHORT_STYLE) [all...] |
TimeZoneNames.java | 21 import com.ibm.icu.util.ULocale; 69 * The default <code>TimeZoneNames</code> implementation returned by {@link #getInstance(ULocale)} uses the locale data 171 public static TimeZoneNames getInstance(ULocale locale) { 186 return getInstance(ULocale.forLocale(locale)); 200 public static TimeZoneNames getTZDBInstance(ULocale locale) { 500 public abstract TimeZoneNames getTimeZoneNames(ULocale locale); 513 * TimeZoneNames cache used by {@link TimeZoneNames#getInstance(ULocale)} 515 private static class Cache extends SoftCache<String, TimeZoneNames, ULocale> { 523 protected TimeZoneNames createInstance(String key, ULocale data) { 531 * The default implementation of <code>TimeZoneNames</code> used by {@link TimeZoneNames#getInstance(ULocale)} whe [all...] |
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
LowercaseTransliterator.java | 11 import com.ibm.icu.util.ULocale; 32 return new LowercaseTransliterator(ULocale.US); 39 private ULocale locale; 50 public LowercaseTransliterator(ULocale loc) {
|
TitlecaseTransliterator.java | 10 import com.ibm.icu.util.ULocale; 29 return new TitlecaseTransliterator(ULocale.US); 36 private ULocale locale; 46 public TitlecaseTransliterator(ULocale loc) {
|
UppercaseTransliterator.java | 11 import com.ibm.icu.util.ULocale; 31 return new UppercaseTransliterator(ULocale.US); 36 private ULocale locale; 46 public UppercaseTransliterator(ULocale loc) {
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
DateIntervalFormatTest.java | 30 import android.icu.util.ULocale; 40 private static final ULocale SPANISH = new ULocale("es"); 44 private static final ULocale LA_SPANISH = new ULocale("es-419"); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
ICUResourceBundleTest.java | 31 import android.icu.util.ULocale; 121 UResourceBundle bundle = (UResourceBundle) UResourceBundle.getBundleInstance("android/icu/dev/data/testdata", ULocale.getDefault(), testLoader); 176 if(!bundle.getULocale().equals(ULocale.getDefault())){ 177 errln("UResourceBundle did not load the default bundle when bundle was not found. Default: " + ULocale.getDefault() + 686 ULocale[] locales = ULocale.getAvailableLocales(); 688 if (!hasLocalizedCountryFor(ULocale.ENGLISH, locales[i]) && (locales[i].getLanguage().compareTo("ti") != 0)){ // TODO: restore test for ti_* when cldrbug 3058 is fixed 691 if(!hasLocalizedLanguageFor(ULocale.ENGLISH, locales[i])){ 704 logln(locales[i] + "\t" + locales[i].getDisplayName(ULocale.ENGLISH) + "\t" + locales[i].getDisplayName(locales[i])); 708 private static boolean hasLocalizedLanguageFor(ULocale locale, ULocale otherLocale) 1087 ULocale ulocale = null; local [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
DateIntervalFormatTest.java | 29 import com.ibm.icu.util.ULocale; 36 private static final ULocale SPANISH = new ULocale("es"); 40 private static final ULocale LA_SPANISH = new ULocale("es-419"); [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
ICUResourceBundleTest.java | 30 import com.ibm.icu.util.ULocale; 117 UResourceBundle bundle = (UResourceBundle) UResourceBundle.getBundleInstance("com/ibm/icu/dev/data/testdata", ULocale.getDefault(), testLoader); 172 if(!bundle.getULocale().equals(ULocale.getDefault())){ 173 errln("UResourceBundle did not load the default bundle when bundle was not found. Default: " + ULocale.getDefault() + 682 ULocale[] locales = ULocale.getAvailableLocales(); 684 if (!hasLocalizedCountryFor(ULocale.ENGLISH, locales[i]) && (locales[i].getLanguage().compareTo("ti") != 0)){ // TODO: restore test for ti_* when cldrbug 3058 is fixed 687 if(!hasLocalizedLanguageFor(ULocale.ENGLISH, locales[i])){ 700 logln(locales[i] + "\t" + locales[i].getDisplayName(ULocale.ENGLISH) + "\t" + locales[i].getDisplayName(locales[i])); 704 private static boolean hasLocalizedLanguageFor(ULocale locale, ULocale otherLocale) 1083 ULocale ulocale = null; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
UResourceBundle.java | 161 public static UResourceBundle getBundleInstance(ULocale locale) { 163 locale = ULocale.getDefault(); 180 ULocale uloc = ULocale.getDefault(); 199 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); 214 public static UResourceBundle getBundleInstance(String baseName, ULocale locale) { 219 locale = ULocale.getDefault(); 240 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale) [all...] |
BuddhistCalendar.java | 32 * {@link android.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code> 89 * @param locale the given ulocale. 91 public BuddhistCalendar(ULocale locale) { 113 * @param locale the given ulocale. 115 public BuddhistCalendar(TimeZone zone, ULocale locale) {
|
HebrewCalendar.java | 13 import android.icu.util.ULocale.Category; 65 * {@link android.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code> 269 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 280 this(zone, ULocale.getDefault(Category.FORMAT)); 299 public HebrewCalendar(ULocale locale) { 324 public HebrewCalendar(TimeZone zone, ULocale locale) { 342 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 356 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 381 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)) [all...] |
IndianCalendar.java | 14 import android.icu.util.ULocale.Category; 60 * {@link android.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code> 148 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 159 this(zone, ULocale.getDefault(Category.FORMAT)); 176 * @param locale the given ulocale. 178 public IndianCalendar(ULocale locale) { 201 * @param locale the given ulocale. 203 public IndianCalendar(TimeZone zone, ULocale locale) { 216 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
UResourceBundle.java | 165 public static UResourceBundle getBundleInstance(ULocale locale) { 167 locale = ULocale.getDefault(); 185 ULocale uloc = ULocale.getDefault(); 205 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); 221 public static UResourceBundle getBundleInstance(String baseName, ULocale locale) { 226 locale = ULocale.getDefault(); 248 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale) [all...] |
BuddhistCalendar.java | 31 * {@link com.ibm.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code> 93 * @param locale the given ulocale. 96 public BuddhistCalendar(ULocale locale) { 119 * @param locale the given ulocale. 122 public BuddhistCalendar(TimeZone zone, ULocale locale) {
|
HebrewCalendar.java | 12 import com.ibm.icu.util.ULocale.Category; 64 * {@link com.ibm.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code> 283 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 295 this(zone, ULocale.getDefault(Category.FORMAT)); 316 public HebrewCalendar(ULocale locale) { 343 public HebrewCalendar(TimeZone zone, ULocale locale) { 362 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 377 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 403 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)) [all...] |
IndianCalendar.java | 13 import com.ibm.icu.util.ULocale.Category; 59 * {@link com.ibm.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code> 163 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); 175 this(zone, ULocale.getDefault(Category.FORMAT)); 193 * @param locale the given ulocale. 196 public IndianCalendar(ULocale locale) { 220 * @param locale the given ulocale. 223 public IndianCalendar(TimeZone zone, ULocale locale) { 237 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)) [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
DateTimeFormat.java | 24 import android.icu.util.ULocale; 43 public static String format(ULocale icuLocale, Calendar time, int flags,
|