Home
last modified time | relevance | path

Searched refs:TimeUnitAmount (Results 1 – 25 of 26) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dtmutamt.cpp16 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeUnitAmount) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
19 TimeUnitAmount::TimeUnitAmount(const Formattable& number, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
26 TimeUnitAmount::TimeUnitAmount(double amount, in TimeUnitAmount() function in TimeUnitAmount
35 TimeUnitAmount::TimeUnitAmount(const TimeUnitAmount& other) in TimeUnitAmount() function in TimeUnitAmount
41 TimeUnitAmount&
42 TimeUnitAmount::operator=(const TimeUnitAmount& other) { in operator =()
49 TimeUnitAmount::operator==(const UObject& other) const { in operator ==()
54 TimeUnitAmount::clone() const { in clone()
55 return new TimeUnitAmount(*this); in clone()
59 TimeUnitAmount::~TimeUnitAmount() { in ~TimeUnitAmount()
[all …]
Dtmutfmt.cpp277 …LocalPointer<TimeUnitAmount> tmutamt(new TimeUnitAmount(resultNumber, resultTimeUnit, status), sta… in parseObject()
/external/icu/icu4c/source/i18n/unicode/
Dtmutamt.h33 class U_I18N_API TimeUnitAmount: public Measure {
47 TimeUnitAmount(const Formattable& number,
63 TimeUnitAmount(double amount, TimeUnit::UTimeUnitFields timeUnitField,
71 TimeUnitAmount(const TimeUnitAmount& other);
78 TimeUnitAmount& operator=(const TimeUnitAmount& other);
93 virtual ~TimeUnitAmount();
160 TimeUnitAmount::operator!=(const UObject& other) const {
/external/icu/icu4c/source/test/intltest/
Dtufmtts.cpp85 static UBool tmaEqual(const TimeUnitAmount& left, const TimeUnitAmount& right) { in tmaEqual()
132 TimeUnitAmount* source = new TimeUnitAmount(tests[i], j, status); in testBasic()
147 …if (!tmaEqual(*((TimeUnitAmount *)result.getObject()), *((TimeUnitAmount *) formattable.getObject(… in testBasic()
154 …if (!tmaEqual(*((TimeUnitAmount *)result_1.getObject()), *((TimeUnitAmount *) formattable.getObjec… in testBasic()
223 TimeUnitAmount tma_long(formattable, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
227 TimeUnitAmount tma_double(formattable, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
231 TimeUnitAmount tma_double_3(formattable, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
234 TimeUnitAmount tma(2, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
237 TimeUnitAmount tma_h(2, TimeUnit::UTIMEUNIT_HOUR, status); in testAPI()
240 TimeUnitAmount second(tma); in testAPI()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeUnitTest.java28 import android.icu.util.TimeUnitAmount;
48 … assertEquals("Test10219", expected[i], tuf.format(new TimeUnitAmount(1.588, TimeUnit.MINUTE))); in Test10219FractionalPlurals()
83 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in TestBasic()
90TimeUnitAmount result = (TimeUnitAmount) formats[parseStyle].parseObject(formatted); in TestBasic()
137 assertEquals("", "1 hr", tufClone.format(new TimeUnitAmount(1, TimeUnit.HOUR))); in TestClone()
245 TimeUnitAmount timeUnitAmount; in TestGreek()
253 timeUnitAmount = new TimeUnitAmount(numbers[numIndex], units[unitIndex]); in TestGreek()
292 Object oneHour = new TimeUnitAmount(1, TimeUnit.HOUR); in TestBritishShortHourFallback()
314 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in formatParsing()
319 TimeUnitAmount result = (TimeUnitAmount) format.parseObject(formatted); in formatParsing()
DMeasureUnitTest.java53 import android.icu.util.TimeUnitAmount;
1332 TimeUnitAmount[] _19m = {new TimeUnitAmount(19.0, TimeUnit.MINUTE)}; in TestFormatPeriodEn()
1333 TimeUnitAmount[] _1h_23_5s = { in TestFormatPeriodEn()
1334 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1335 new TimeUnitAmount(23.5, TimeUnit.SECOND)}; in TestFormatPeriodEn()
1336 TimeUnitAmount[] _1h_23_5m = { in TestFormatPeriodEn()
1337 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1338 new TimeUnitAmount(23.5, TimeUnit.MINUTE)}; in TestFormatPeriodEn()
1339 TimeUnitAmount[] _1h_0m_23s = { in TestFormatPeriodEn()
1340 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeUnitTest.java27 import com.ibm.icu.util.TimeUnitAmount;
45 … assertEquals("Test10219", expected[i], tuf.format(new TimeUnitAmount(1.588, TimeUnit.MINUTE))); in Test10219FractionalPlurals()
80 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in TestBasic()
87TimeUnitAmount result = (TimeUnitAmount) formats[parseStyle].parseObject(formatted); in TestBasic()
134 assertEquals("", "1 hr", tufClone.format(new TimeUnitAmount(1, TimeUnit.HOUR))); in TestClone()
242 TimeUnitAmount timeUnitAmount; in TestGreek()
250 timeUnitAmount = new TimeUnitAmount(numbers[numIndex], units[unitIndex]); in TestGreek()
289 Object oneHour = new TimeUnitAmount(1, TimeUnit.HOUR); in TestBritishShortHourFallback()
311 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in formatParsing()
316 TimeUnitAmount result = (TimeUnitAmount) format.parseObject(formatted); in formatParsing()
DMeasureUnitTest.java52 import com.ibm.icu.util.TimeUnitAmount;
1329 TimeUnitAmount[] _19m = {new TimeUnitAmount(19.0, TimeUnit.MINUTE)}; in TestFormatPeriodEn()
1330 TimeUnitAmount[] _1h_23_5s = { in TestFormatPeriodEn()
1331 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1332 new TimeUnitAmount(23.5, TimeUnit.SECOND)}; in TestFormatPeriodEn()
1333 TimeUnitAmount[] _1h_23_5m = { in TestFormatPeriodEn()
1334 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1335 new TimeUnitAmount(23.5, TimeUnit.MINUTE)}; in TestFormatPeriodEn()
1336 TimeUnitAmount[] _1h_0m_23s = { in TestFormatPeriodEn()
1337 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DTimeUnitAmount.java20 public class TimeUnitAmount extends Measure { class
25 public TimeUnitAmount(Number number, TimeUnit unit) { in TimeUnitAmount() method in TimeUnitAmount
32 public TimeUnitAmount(double number, TimeUnit unit) { in TimeUnitAmount() method in TimeUnitAmount
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeUnitAmount.java19 public class TimeUnitAmount extends Measure { class
25 public TimeUnitAmount(Number number, TimeUnit unit) { in TimeUnitAmount() method in TimeUnitAmount
33 public TimeUnitAmount(double number, TimeUnit unit) { in TimeUnitAmount() method in TimeUnitAmount
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/util/
DTimeUnit.java.patch7 - * @see TimeUnitAmount
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeUnitFormat.java28 import android.icu.util.TimeUnitAmount;
248 public TimeUnitAmount parseObject(String source, ParsePosition pos) { in parseObject()
330 return new TimeUnitAmount(resultNumber, resultTimeUnit); in parseObject()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java27 import com.ibm.icu.util.TimeUnitAmount;
246 public TimeUnitAmount parseObject(String source, ParsePosition pos) { in parseObject()
328 return new TimeUnitAmount(resultNumber, resultTimeUnit); in parseObject()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatHandler.java50 import android.icu.util.TimeUnitAmount;
2312 TimeUnitAmount amount = new TimeUnitAmount(3, TimeUnit.HOUR); in hasSameBehavior()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatHandler.java49 import com.ibm.icu.util.TimeUnitAmount;
2309 TimeUnitAmount amount = new TimeUnitAmount(3, TimeUnit.HOUR); in hasSameBehavior()
/external/icu/icu4j/
Dcoverage-exclusion.txt1087 com/ibm/icu/util/TimeUnitAmount#getTimeUnit:()Lcom/ibm/icu/util/TimeUnit;
/external/icu/icu4j/tools/build/
Dicu4j55.api3.gz
Dicu4j56.api3.gz12;ICU4J 56.1;; 2ST@3.6;PB;NS;NF;NS; ...
Dicu4j57.api3.gz
Dicu4j54.api3.gz
Dicu4j59.api3.gz
Dicu4j58.api3.gz
Dicu4j61.api3.gz12;ICU4J 61.1;; 2ST@3.6;PB;NS;NF;NS; ...
Dicu4j60.api3.gz
Dicu4j62.api3.gz

12