/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
LongNameHandler.java | 16 import android.icu.number.NumberFormatter.UnitWidth; 88 UnitWidth width, 96 if (width == UnitWidth.NARROW) { 98 } else if (width == UnitWidth.SHORT) { 131 private static String getPerUnitFormat(ULocale locale, UnitWidth width) { 137 if (width == UnitWidth.NARROW) { 139 } else if (width == UnitWidth.SHORT) { 168 public static String getUnitDisplayName(ULocale locale, MeasureUnit unit, UnitWidth width) { 193 UnitWidth width, 222 UnitWidth width [all...] |
MutablePatternModifier.java | 9 import android.icu.number.NumberFormatter.UnitWidth; 48 UnitWidth unitWidth; 101 * @param unitWidth 110 UnitWidth unitWidth, 115 this.unitWidth = unitWidth; 396 // UnitWidth ISO, HIDDEN, or NARROW overrides the singular currency symbol. 397 if (unitWidth == UnitWidth.ISO_CODE) [all...] |
MacroProps.java | 13 import android.icu.number.NumberFormatter.UnitWidth; 33 public UnitWidth unitWidth; 67 if (unitWidth == null) 68 unitWidth = fallback.unitWidth; 94 unitWidth, 121 && Objects.equals(unitWidth, other.unitWidth)
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
LongNameHandler.java | 15 import com.ibm.icu.number.NumberFormatter.UnitWidth; 84 UnitWidth width, 92 if (width == UnitWidth.NARROW) { 94 } else if (width == UnitWidth.SHORT) { 127 private static String getPerUnitFormat(ULocale locale, UnitWidth width) { 133 if (width == UnitWidth.NARROW) { 135 } else if (width == UnitWidth.SHORT) { 164 public static String getUnitDisplayName(ULocale locale, MeasureUnit unit, UnitWidth width) { 189 UnitWidth width, 218 UnitWidth width [all...] |
MutablePatternModifier.java | 8 import com.ibm.icu.number.NumberFormatter.UnitWidth; 46 UnitWidth unitWidth; 99 * @param unitWidth 108 UnitWidth unitWidth, 113 this.unitWidth = unitWidth; 391 // UnitWidth ISO, HIDDEN, or NARROW overrides the singular currency symbol. 392 if (unitWidth == UnitWidth.ISO_CODE) [all...] |
MacroProps.java | 12 import com.ibm.icu.number.NumberFormatter.UnitWidth; 29 public UnitWidth unitWidth; 63 if (unitWidth == null) 64 unitWidth = fallback.unitWidth; 90 unitWidth, 117 && Objects.equals(unitWidth, other.unitWidth)
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
NumberRangeFormatterTest.java | 16 import android.icu.number.NumberFormatter.UnitWidth; 106 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)), 122 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_NAME)), 290 .unitWidth(UnitWidth.ISO_CODE) 310 .unitWidth(UnitWidth.ISO_CODE) 330 .unitWidth(UnitWidth.ISO_CODE [all...] |
NumberFormatterApiTest.java | 45 import android.icu.number.NumberFormatter.UnitWidth; 234 NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), 249 NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), 283 NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), 299 NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), 425 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME) [all...] |
MutablePatternModifierTest.java | 19 import android.icu.number.NumberFormatter.UnitWidth; 35 UnitWidth.SHORT, 84 mod.setSymbols(DecimalFormatSymbols.getInstance(ULocale.ENGLISH), null, UnitWidth.SHORT, null); 116 UnitWidth.SHORT,
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
NumberRangeFormatterTest.java | 15 import com.ibm.icu.number.NumberFormatter.UnitWidth; 103 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)), 119 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_NAME)), 287 .unitWidth(UnitWidth.ISO_CODE) 307 .unitWidth(UnitWidth.ISO_CODE) 327 .unitWidth(UnitWidth.ISO_CODE [all...] |
NumberFormatterApiTest.java | 44 import com.ibm.icu.number.NumberFormatter.UnitWidth; 231 NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), 246 NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), 280 NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), 296 NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), 422 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME) [all...] |
MutablePatternModifierTest.java | 18 import com.ibm.icu.number.NumberFormatter.UnitWidth; 32 UnitWidth.SHORT, 81 mod.setSymbols(DecimalFormatSymbols.getInstance(ULocale.ENGLISH), null, UnitWidth.SHORT, null); 113 UnitWidth.SHORT,
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
NumberFormatter.java | 38 * .unitWidth(UnitWidth.FULL_NAME); 90 public static enum UnitWidth {
|
NumberFormatterSettings.java | 13 import android.icu.number.NumberFormatter.UnitWidth; 394 * Pass an element from the {@link UnitWidth} enum to this setter. For example: 397 * NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME) 406 * @see UnitWidth 409 public T unitWidth(UnitWidth style) { 617 if (macros.unitWidth == null) { 618 macros.unitWidth = (UnitWidth) current.value [all...] |
NumberFormatterImpl.java | 27 import android.icu.number.NumberFormatter.UnitWidth; 190 UnitWidth unitWidth = UnitWidth.SHORT; 191 if (macros.unitWidth != null) { 192 unitWidth = macros.unitWidth; 231 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { 331 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules) [all...] |
NumberSkeletonImpl.java | 19 import android.icu.number.NumberFormatter.UnitWidth; 279 private static UnitWidth unitWidth(StemEnum stem) { 282 return UnitWidth.NARROW; 284 return UnitWidth.SHORT; 286 return UnitWidth.FULL_NAME; 288 return UnitWidth.ISO_CODE; 290 return UnitWidth.HIDDEN; 388 private static void unitWidth(UnitWidth value, StringBuilder sb) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
NumberFormatter.java | 37 * .unitWidth(UnitWidth.FULL_NAME); 89 public static enum UnitWidth {
|
NumberFormatterSettings.java | 12 import com.ibm.icu.number.NumberFormatter.UnitWidth; 402 * Pass an element from the {@link UnitWidth} enum to this setter. For example: 405 * NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME) 414 * @see UnitWidth 418 public T unitWidth(UnitWidth style) { 630 if (macros.unitWidth == null) { 631 macros.unitWidth = (UnitWidth) current.value [all...] |
NumberFormatterImpl.java | 26 import com.ibm.icu.number.NumberFormatter.UnitWidth; 189 UnitWidth unitWidth = UnitWidth.SHORT; 190 if (macros.unitWidth != null) { 191 unitWidth = macros.unitWidth; 230 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { 330 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules) [all...] |
NumberSkeletonImpl.java | 18 import com.ibm.icu.number.NumberFormatter.UnitWidth; 278 private static UnitWidth unitWidth(StemEnum stem) { 281 return UnitWidth.NARROW; 283 return UnitWidth.SHORT; 285 return UnitWidth.FULL_NAME; 287 return UnitWidth.ISO_CODE; 289 return UnitWidth.HIDDEN; 387 private static void unitWidth(UnitWidth value, StringBuilder sb) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
MeasureFormat.java | 43 import android.icu.number.NumberFormatter.UnitWidth; 148 WIDE(ListFormatter.Style.DURATION, UnitWidth.FULL_NAME, UnitWidth.FULL_NAME), 153 SHORT(ListFormatter.Style.DURATION_SHORT, UnitWidth.SHORT, UnitWidth.ISO_CODE), 158 NARROW(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT), 165 NUMERIC(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT), 169 * (UnitWidth.SHORT) but wide for other units [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
MeasureFormat.java | 42 import com.ibm.icu.number.NumberFormatter.UnitWidth; 158 WIDE(ListFormatter.Style.DURATION, UnitWidth.FULL_NAME, UnitWidth.FULL_NAME), 165 SHORT(ListFormatter.Style.DURATION_SHORT, UnitWidth.SHORT, UnitWidth.ISO_CODE), 172 NARROW(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT), 181 NUMERIC(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT), 185 * (UnitWidth.SHORT) but wide for other units [all...] |
/external/cldr/tools/java/libs/ |
icu4j.jar | |