Lines Matching refs:TimeUnit

121           for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR;   in testBasic()
122 j < TimeUnit::UTIMEUNIT_FIELD_COUNT; in testBasic()
123 j = (TimeUnit::UTimeUnitFields)(j+1)) { in testBasic()
171 TimeUnit* tmunit = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status); in testAPI()
174 TimeUnit* another = tmunit->clone(); in testAPI()
175 TimeUnit third(*tmunit); in testAPI()
176 TimeUnit fourth = third; in testAPI()
181 TimeUnit* tmunit_m = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_MONTH, status); in testAPI()
184 TimeUnit::UTimeUnitFields field = tmunit_m->getTimeUnitField(); in testAPI()
185 assertTrue("field of month time unit is month", (field == TimeUnit::UTIMEUNIT_MONTH)); in testAPI()
188 MeasureUnit **ptrs = new MeasureUnit *[TimeUnit::UTIMEUNIT_FIELD_COUNT]; in testAPI()
190 ptrs[TimeUnit::UTIMEUNIT_YEAR] = MeasureUnit::createYear(status); in testAPI()
191 ptrs[TimeUnit::UTIMEUNIT_MONTH] = MeasureUnit::createMonth(status); in testAPI()
192 ptrs[TimeUnit::UTIMEUNIT_DAY] = MeasureUnit::createDay(status); in testAPI()
193 ptrs[TimeUnit::UTIMEUNIT_WEEK] = MeasureUnit::createWeek(status); in testAPI()
194 ptrs[TimeUnit::UTIMEUNIT_HOUR] = MeasureUnit::createHour(status); in testAPI()
195 ptrs[TimeUnit::UTIMEUNIT_MINUTE] = MeasureUnit::createMinute(status); in testAPI()
196 ptrs[TimeUnit::UTIMEUNIT_SECOND] = MeasureUnit::createSecond(status); in testAPI()
199 for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR; in testAPI()
200 j < TimeUnit::UTIMEUNIT_FIELD_COUNT; in testAPI()
201 j = (TimeUnit::UTimeUnitFields)(j+1)) { in testAPI()
202 MeasureUnit *ptr = TimeUnit::createInstance(j, status); in testAPI()
214 for (int i = 0; i < TimeUnit::UTIMEUNIT_FIELD_COUNT; ++i) { in testAPI()
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()
251 assertTrue("getTimeUnitField", (tma.getTimeUnitField() == TimeUnit::UTIMEUNIT_DAY)); in testAPI()
311TimeUnit::UTimeUnitFields tunits[] = {TimeUnit::UTIMEUNIT_SECOND, TimeUnit::UTIMEUNIT_MINUTE, Time… in testGreekWithFallback()
488 new TimeUnitAmount(values[j], TimeUnit::UTIMEUNIT_MINUTE, status), status); in test10219Plurals()
518 Formattable oneHour(new TimeUnitAmount(1, TimeUnit::UTIMEUNIT_HOUR, status)); in TestBritishShortHourFallback()