Home
last modified time | relevance | path

Searched refs:NumberFormatter (Results 1 – 25 of 81) sorted by relevance

1234

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java41 import android.icu.number.NumberFormatter;
42 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
43 import android.icu.number.NumberFormatter.GroupingStrategy;
44 import android.icu.number.NumberFormatter.SignDisplay;
45 import android.icu.number.NumberFormatter.UnitWidth;
77 NumberFormatter.with(), in notationSimple()
92 NumberFormatter.with().notation(Notation.simple()), in notationSimple()
107 NumberFormatter.with(), in notationSimple()
118 NumberFormatter.with().notation(Notation.scientific()), in notationScientific()
133 NumberFormatter.with().notation(Notation.engineering()), in notationScientific()
[all …]
DNumberRangeFormatterTest.java15 import android.icu.number.NumberFormatter;
16 import android.icu.number.NumberFormatter.UnitWidth;
73 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testBasic()
89 .numberFormatterFirst(NumberFormatter.with().unit(MeasureUnit.METER)) in testBasic()
90 .numberFormatterSecond(NumberFormatter.with().unit(MeasureUnit.KILOMETER)), in testBasic()
106 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic()
122 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic()
154 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.KELVIN)), in testBasic()
186 .numberFormatterBoth(NumberFormatter.with().unit(PTE)), in testBasic()
205 .numberFormatterBoth(NumberFormatter.with().unit(USD)), in testCollapse()
[all …]
DNumberSkeletonTest.java14 import android.icu.number.NumberFormatter;
102 NumberFormatter.forSkeleton(cas); in validTokens()
145 NumberFormatter.forSkeleton(cas); in invalidTokens()
166 NumberFormatter.forSkeleton(cas); in unknownTokens()
185 NumberFormatter.forSkeleton(cas); in unexpectedTokens()
206 NumberFormatter.forSkeleton(cas); in duplicateValues()
230 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
251 String normalized = NumberFormatter.forSkeleton(skeleton).toSkeleton(); in defaultTokens()
267 … String actual = NumberFormatter.forSkeleton(skeleton).locale(ULocale.ENGLISH).format(5142.3) in flexibleSeparators()
280 String skeleton = NumberFormatter.with().roundingMode(mode).toSkeleton(); in roundingModeNames()
DDecimalQuantityTest.java27 import android.icu.number.NumberFormatter;
48NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
53NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
58NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
62NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java40 import com.ibm.icu.number.NumberFormatter;
41 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
42 import com.ibm.icu.number.NumberFormatter.GroupingStrategy;
43 import com.ibm.icu.number.NumberFormatter.SignDisplay;
44 import com.ibm.icu.number.NumberFormatter.UnitWidth;
74 NumberFormatter.with(), in notationSimple()
89 NumberFormatter.with().notation(Notation.simple()), in notationSimple()
104 NumberFormatter.with(), in notationSimple()
115 NumberFormatter.with().notation(Notation.scientific()), in notationScientific()
130 NumberFormatter.with().notation(Notation.engineering()), in notationScientific()
[all …]
DNumberRangeFormatterTest.java14 import com.ibm.icu.number.NumberFormatter;
15 import com.ibm.icu.number.NumberFormatter.UnitWidth;
70 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testBasic()
86 .numberFormatterFirst(NumberFormatter.with().unit(MeasureUnit.METER)) in testBasic()
87 .numberFormatterSecond(NumberFormatter.with().unit(MeasureUnit.KILOMETER)), in testBasic()
103 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic()
119 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic()
151 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.KELVIN)), in testBasic()
183 .numberFormatterBoth(NumberFormatter.with().unit(PTE)), in testBasic()
202 .numberFormatterBoth(NumberFormatter.with().unit(USD)), in testCollapse()
[all …]
DNumberSkeletonTest.java13 import com.ibm.icu.number.NumberFormatter;
99 NumberFormatter.forSkeleton(cas); in validTokens()
142 NumberFormatter.forSkeleton(cas); in invalidTokens()
163 NumberFormatter.forSkeleton(cas); in unknownTokens()
182 NumberFormatter.forSkeleton(cas); in unexpectedTokens()
203 NumberFormatter.forSkeleton(cas); in duplicateValues()
227 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
248 String normalized = NumberFormatter.forSkeleton(skeleton).toSkeleton(); in defaultTokens()
264 … String actual = NumberFormatter.forSkeleton(skeleton).locale(ULocale.ENGLISH).format(5142.3) in flexibleSeparators()
277 String skeleton = NumberFormatter.with().roundingMode(mode).toSkeleton(); in roundingModeNames()
DDecimalQuantityTest.java26 import com.ibm.icu.number.NumberFormatter;
45NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
50NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
55NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
59NumberFormatter.fromDecimalFormat(properties, symbols, null).locale(ULocale.ENGLISH)); in testBehavior()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp100 NumberFormatter::with(), in notationSimple()
115 NumberFormatter::with().notation(Notation::simple()), in notationSimple()
130 NumberFormatter::with(), in notationSimple()
141 NumberFormatter::with().notation(Notation::scientific()), in notationScientific()
156 NumberFormatter::with().notation(Notation::engineering()), in notationScientific()
171 NumberFormatter::with().notation( in notationScientific()
187 NumberFormatter::with().notation(Notation::scientific().withMinExponentDigits(2)), in notationScientific()
202 NumberFormatter::with().notation(Notation::scientific()), in notationScientific()
212 NumberFormatter::with().notation(Notation::compactShort()), in notationCompact()
227 NumberFormatter::with().notation(Notation::compactLong()), in notationCompact()
[all …]
Dnumbertest_range.cpp83 .numberFormatterBoth(NumberFormatter::with().unit(METER)), in testBasic()
99 .numberFormatterFirst(NumberFormatter::with().unit(METER)) in testBasic()
100 .numberFormatterSecond(NumberFormatter::with().unit(KILOMETER)), in testBasic()
116 … .numberFormatterBoth(NumberFormatter::with().unit(METER).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)), in testBasic()
132 ….numberFormatterBoth(NumberFormatter::with().unit(FAHRENHEIT).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)… in testBasic()
164 .numberFormatterBoth(NumberFormatter::with().unit(KELVIN)), in testBasic()
196 .numberFormatterBoth(NumberFormatter::with().unit(PTE)), in testBasic()
214 .numberFormatterBoth(NumberFormatter::with().unit(USD)), in testCollapse()
230 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
247 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
[all …]
Dnumbertest_skeletons.cpp113 NumberFormatter::forSkeleton(skeletonString, status); in validTokens()
207 NumberFormatter::forSkeleton(skeletonString, status); in stemsRequiringOption()
228 UnicodeString normalized = NumberFormatter::forSkeleton( in defaultTokens()
251 UnicodeString actual = NumberFormatter::forSkeleton(skeletonString, status).locale("en") in flexibleSeparators()
266 NumberFormatter::forSkeleton(skeletonString, status); in expectedErrorSkeleton()
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DNumberFormat.java.patch7 - * {@link NumberFormatter} fits their use case. Although not deprecated, this
8 + * {@code NumberFormatter} fits their use case. Although not deprecated, this
17 - * {@link NumberFormatter} instead of NumberFormat.
27 - * {@link NumberFormatter} instead of NumberFormat.
37 - * {@link NumberFormatter} instead of NumberFormat.
47 - * {@link NumberFormatter} instead of NumberFormat.
57 - * {@link NumberFormatter} instead of NumberFormat.
67 - * {@link NumberFormatter} instead of NumberFormat.
77 - * {@link NumberFormatter} instead of NumberFormat.
87 - * {@link NumberFormatter} instead of NumberFormat.
[all …]
DCompactDecimalFormat.java.patch9 - * {@link NumberFormatter} fits their use case. Although not deprecated, this
21 - * {@link NumberFormatter} instead of NumberFormat.
31 - * {@link NumberFormatter} instead of NumberFormat.
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberFormatterSettings.java9 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
10 import com.ibm.icu.number.NumberFormatter.GroupingStrategy;
11 import com.ibm.icu.number.NumberFormatter.SignDisplay;
12 import com.ibm.icu.number.NumberFormatter.UnitWidth;
DNumberFormatter.java66 public final class NumberFormatter { class
412 private NumberFormatter() { in NumberFormatter() method in NumberFormatter
DNumberPropertyMapper.java18 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
19 import com.ibm.icu.number.NumberFormatter.SignDisplay;
42 return NumberFormatter.with().macros(macros); in create()
51 return NumberFormatter.with().macros(macros); in create()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterSettings.java10 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
11 import android.icu.number.NumberFormatter.GroupingStrategy;
12 import android.icu.number.NumberFormatter.SignDisplay;
13 import android.icu.number.NumberFormatter.UnitWidth;
DNumberFormatter.java67 public final class NumberFormatter { class
394 private NumberFormatter() { in NumberFormatter() method in NumberFormatter
DNumberPropertyMapper.java19 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
20 import android.icu.number.NumberFormatter.SignDisplay;
43 return NumberFormatter.with().macros(macros); in create()
52 return NumberFormatter.with().macros(macros); in create()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMicroProps.java7 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
8 import android.icu.number.NumberFormatter.SignDisplay;
DMacroProps.java11 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
12 import android.icu.number.NumberFormatter.SignDisplay;
13 import android.icu.number.NumberFormatter.UnitWidth;
DLocalizedNumberFormatterAsFormat.java18 import android.icu.number.NumberFormatter;
145 return NumberFormatter.forSkeleton(skeleton) in readResolve()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMicroProps.java6 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
7 import com.ibm.icu.number.NumberFormatter.SignDisplay;
DMacroProps.java10 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
11 import com.ibm.icu.number.NumberFormatter.SignDisplay;
12 import com.ibm.icu.number.NumberFormatter.UnitWidth;
DLocalizedNumberFormatterAsFormat.java17 import com.ibm.icu.number.NumberFormatter;
143 return NumberFormatter.forSkeleton(skeleton) in readResolve()

1234