Home
last modified time | relevance | path

Searched refs:CompactStyle (Results 1 – 25 of 38) sorted by relevance

12

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DCompactDecimalFormatTest.java35 import android.icu.text.CompactDecimalFormat.CompactStyle;
371 CompactDecimalFormat.getInstance(ULocale.ENGLISH, CompactStyle.SHORT); in TestDefaultSignificantDigits()
381 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestCharacterIterator()
393 checkLocale(ULocale.ENGLISH, CompactStyle.SHORT, EnglishTestData); in TestEnglishShort()
399 CompactDecimalFormat.getInstance(new Locale("ar-EG"), CompactStyle.LONG); in TestArabicLongStyle()
405 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); in TestCsShort()
410 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); in TestSkLong()
415 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); in TestSerbianShort()
420 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); in TestSerbianLong()
425 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); in TestSerbianLongNegative()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DCompactDecimalFormatTest.java34 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
368 CompactDecimalFormat.getInstance(ULocale.ENGLISH, CompactStyle.SHORT); in TestDefaultSignificantDigits()
378 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestCharacterIterator()
390 checkLocale(ULocale.ENGLISH, CompactStyle.SHORT, EnglishTestData); in TestEnglishShort()
396 CompactDecimalFormat.getInstance(new Locale("ar-EG"), CompactStyle.LONG); in TestArabicLongStyle()
402 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); in TestCsShort()
407 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); in TestSkLong()
412 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); in TestSerbianShort()
417 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); in TestSerbianLong()
422 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); in TestSerbianLongNegative()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCompactDecimalFormat.java58 public enum CompactStyle { enum in CompactDecimalFormat
76 public static CompactDecimalFormat getInstance(ULocale locale, CompactStyle style) { in getInstance()
87 public static CompactDecimalFormat getInstance(Locale locale, CompactStyle style) { in getInstance()
97 CompactDecimalFormat(ULocale locale, CompactStyle style) { in CompactDecimalFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCompactDecimalFormat.java66 public enum CompactStyle { enum in CompactDecimalFormat
92 public static CompactDecimalFormat getInstance(ULocale locale, CompactStyle style) { in getInstance()
107 public static CompactDecimalFormat getInstance(Locale locale, CompactStyle style) { in getInstance()
117 CompactDecimalFormat(ULocale locale, CompactStyle style) { in CompactDecimalFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DCompactData.java13 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
48 CompactStyle compactStyle, in populate()
56 boolean compactIsShort = compactStyle == CompactStyle.SHORT; in populate()
67 getResourceBundleKey(nsName, CompactStyle.SHORT, compactType, resourceKey); in populate()
71 getResourceBundleKey("latn", CompactStyle.SHORT, compactType, resourceKey); in populate()
84 CompactStyle compactStyle, in getResourceBundleKey()
90 sb.append(compactStyle == CompactStyle.SHORT ? "/patternsShort" : "/patternsLong"); in getResourceBundleKey()
DDecimalFormatProperties.java19 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
81 private transient CompactStyle compactStyle;
411 public CompactStyle getCompactStyle() { in getCompactStyle()
671 public DecimalFormatProperties setCompactStyle(CompactStyle compactStyle) { in setCompactStyle()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DCompactData.java14 import android.icu.text.CompactDecimalFormat.CompactStyle;
53 CompactStyle compactStyle, in populate()
61 boolean compactIsShort = compactStyle == CompactStyle.SHORT; in populate()
72 getResourceBundleKey(nsName, CompactStyle.SHORT, compactType, resourceKey); in populate()
76 getResourceBundleKey("latn", CompactStyle.SHORT, compactType, resourceKey); in populate()
89 CompactStyle compactStyle, in getResourceBundleKey()
95 sb.append(compactStyle == CompactStyle.SHORT ? "/patternsShort" : "/patternsLong"); in getResourceBundleKey()
DDecimalFormatProperties.java20 import android.icu.text.CompactDecimalFormat.CompactStyle;
86 private transient CompactStyle compactStyle;
416 public CompactStyle getCompactStyle() { in getCompactStyle()
676 public DecimalFormatProperties setCompactStyle(CompactStyle compactStyle) { in setCompactStyle()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNotation.java7 import android.icu.text.CompactDecimalFormat.CompactStyle;
27 private static final CompactNotation COMPACT_SHORT = new CompactNotation(CompactStyle.SHORT);
28 private static final CompactNotation COMPACT_LONG = new CompactNotation(CompactStyle.LONG);
DCompactNotation.java22 import android.icu.text.CompactDecimalFormat.CompactStyle;
40 final CompactStyle compactStyle;
54 /* package-private */ CompactNotation(CompactStyle compactStyle) { in CompactNotation()
DNumberPropertyMapper.java24 import android.icu.text.CompactDecimalFormat.CompactStyle;
300 } else if (properties.getCompactStyle() == CompactStyle.LONG) { in oldToNew()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNotation.java6 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
26 private static final CompactNotation COMPACT_SHORT = new CompactNotation(CompactStyle.SHORT);
27 private static final CompactNotation COMPACT_LONG = new CompactNotation(CompactStyle.LONG);
DCompactNotation.java21 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
39 final CompactStyle compactStyle;
53 /* package-private */ CompactNotation(CompactStyle compactStyle) { in CompactNotation()
DNumberPropertyMapper.java23 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
299 } else if (properties.getCompactStyle() == CompactStyle.LONG) { in oldToNew()
/external/icu/icu4c/source/i18n/
Dnumber_compact.cpp28 void getResourceBundleKey(const char *nsName, CompactStyle compactStyle, CompactType compactType, in getResourceBundleKey()
33 … sb.append(compactStyle == CompactStyle::UNUM_SHORT ? "/patternsShort" : "/patternsLong", status); in getResourceBundleKey()
61 void CompactData::populate(const Locale &locale, const char *nsName, CompactStyle compactStyle, in populate()
68 bool compactIsShort = compactStyle == CompactStyle::UNUM_SHORT; in populate()
81 getResourceBundleKey(nsName, CompactStyle::UNUM_SHORT, compactType, resourceKey, status); in populate()
86 getResourceBundleKey("latn", CompactStyle::UNUM_SHORT, compactType, resourceKey, status); in populate()
218 CompactHandler::CompactHandler(CompactStyle compactStyle, const Locale &locale, const char *nsName, in CompactHandler()
Dnumber_compact.h26 void populate(const Locale &locale, const char *nsName, CompactStyle compactStyle,
59 CompactHandler(CompactStyle compactStyle, const Locale &locale, const char *nsName,
Dnumber_notation.cpp54 union_.compactStyle = CompactStyle::UNUM_SHORT; in compactShort()
60 union_.compactStyle = CompactStyle::UNUM_LONG; in compactLong()
Dnumber_types.h32 typedef UNumberCompactStyle CompactStyle; typedef
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DPropertiesTest.java36 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
230 } else if (type == CompactStyle.class) { in getSampleValueForType()
233 CompactStyle[] values = CompactStyle.values(); in getSampleValueForType()
352 new DecimalFormatProperties().setCompactStyle(CompactStyle.LONG) in getTestObjects()
DDecimalQuantityTest.java27 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
48 .setMaximumSignificantDigits(3).setCompactStyle(CompactStyle.LONG); in testBehavior()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DPropertiesTest.java37 import android.icu.text.CompactDecimalFormat.CompactStyle;
233 } else if (type == CompactStyle.class) { in getSampleValueForType()
236 CompactStyle[] values = CompactStyle.values(); in getSampleValueForType()
355 new DecimalFormatProperties().setCompactStyle(CompactStyle.LONG) in getTestObjects()
DDecimalQuantityTest.java28 import android.icu.text.CompactDecimalFormat.CompactStyle;
51 .setMaximumSignificantDigits(3).setCompactStyle(CompactStyle.LONG); in testBehavior()
/external/cldr/tools/java/org/unicode/cldr/util/
DVerifyCompactNumbers.java26 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
163 debugOriginals, CompactStyle.SHORT, locale2, CurrencyStyle.PLAIN, currencyCode); in showNumbers()
166 debugOriginals, CompactStyle.LONG, locale2, CurrencyStyle.PLAIN, currencyCode); in showNumbers()
170 debugOriginals, CompactStyle.SHORT, locale2, CurrencyStyle.CURRENCY, currencyCode); in showNumbers()
/external/cldr/tools/java/org/unicode/cldr/test/
DBuildIcuCompactDecimalFormat.java18 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
43CompactStyle style, ULocale locale, CurrencyStyle currencyStyle, String currencyCodeOrUnit) { in build()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCoverageLevel.java50 import com.ibm.icu.text.CompactDecimalFormat.CompactStyle;
232 ULocale.ENGLISH, CompactStyle.SHORT);

12