Home
last modified time | relevance | path

Searched refs:measures (Results 1 – 25 of 170) sorted by relevance

1234567

/external/icu/icu4c/source/test/intltest/
Dunits_test.cpp456 MaybeStackVector<Measure> measures = converter.convert(1.9999, nullptr, status); in testComplexUnitsConverter() local
457 assertEquals("measures length", 2, measures.length()); in testComplexUnitsConverter()
458 if (2 == measures.length()) { in testComplexUnitsConverter()
459 assertEquals("1.9999: measures[0] value", 1.0, measures[0]->getNumber().getDouble(status)); in testComplexUnitsConverter()
461 measures[0]->getUnit().getIdentifier()); in testComplexUnitsConverter()
463 measures[1]->getNumber().getDouble(status), 0.0001); in testComplexUnitsConverter()
465 measures[1]->getUnit().getIdentifier()); in testComplexUnitsConverter()
472 measures = converter.convert((2.0 - DBL_EPSILON), nullptr, status); in testComplexUnitsConverter()
473 assertEquals("measures length", 2, measures.length()); in testComplexUnitsConverter()
474 if (2 == measures.length()) { in testComplexUnitsConverter()
[all …]
Dmeasfmttest.cpp35 const Measure *measures; member
97 const Measure *measures,
104 const Measure *measures,
136 const Measure *measures,
148 const Measure *measures,
3112 Measure measures[] = { in helperTestMultiples() local
3120 fmt.formatMeasures(measures, UPRV_LENGTHOF(measures), buffer, pos, status); in helperTestMultiples()
3129 Measure measures[] = { in TestManyLocaleDurations() local
3135 …helperTestManyLocaleDurations("da", UMEASFMT_WIDTH_NARROW, measures, UPRV_LENGTHOF(measures), "5 … in TestManyLocaleDurations()
3136 …helperTestManyLocaleDurations("da", UMEASFMT_WIDTH_NUMERIC, measures, UPRV_LENGTHOF(measures), "5.… in TestManyLocaleDurations()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DUsagePrefsHandler.java37 … mixedMeasuresToMicros(List<Measure> measures, DecimalQuantity outQuantity, MicroProps outMicros) { in mixedMeasuresToMicros() argument
39 if (measures.size() > 1) { in mixedMeasuresToMicros()
44 assert measures.size() == outMicros.outputUnit.splitToSingleUnits().size(); in mixedMeasuresToMicros()
48 for (int i = 0, n = measures.size() - 1; i < n; i++) { in mixedMeasuresToMicros()
49 outMicros.mixedMeasures.add(measures.get(i)); in mixedMeasuresToMicros()
54 outQuantity.setToBigDecimal((BigDecimal) measures.get(measures.size()- 1).getNumber()); in mixedMeasuresToMicros()
82 final List<Measure> routedMeasures = routed.measures; in processQuantity()
DUnitConversionHandler.java53 …List<Measure> measures = this.fComplexUnitConverter.convert(quantity.toBigDecimal(), result.rounde… in processQuantity() local
56 UsagePrefsHandler.mixedMeasuresToMicros(measures, quantity, result); in processQuantity()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DUsagePrefsHandler.java33 … mixedMeasuresToMicros(List<Measure> measures, DecimalQuantity outQuantity, MicroProps outMicros) { in mixedMeasuresToMicros() argument
35 if (measures.size() > 1) { in mixedMeasuresToMicros()
40 assert measures.size() == outMicros.outputUnit.splitToSingleUnits().size(); in mixedMeasuresToMicros()
44 for (int i = 0, n = measures.size() - 1; i < n; i++) { in mixedMeasuresToMicros()
45 outMicros.mixedMeasures.add(measures.get(i)); in mixedMeasuresToMicros()
50 outQuantity.setToBigDecimal((BigDecimal) measures.get(measures.size()- 1).getNumber()); in mixedMeasuresToMicros()
78 final List<Measure> routedMeasures = routed.measures; in processQuantity()
DUnitConversionHandler.java51 …List<Measure> measures = this.fComplexUnitConverter.convert(quantity.toBigDecimal(), result.rounde… in processQuantity() local
54 UsagePrefsHandler.mixedMeasuresToMicros(measures, quantity, result); in processQuantity()
/external/icu/icu4c/source/i18n/
Dnumber_usageprefs.cpp109 void mixedMeasuresToMicros(const MaybeStackVector<Measure> &measures, DecimalQuantity *quantity, in mixedMeasuresToMicros() argument
111 micros->mixedMeasuresCount = measures.length() - 1; in mixedMeasuresToMicros()
120 U_ASSERT(measures.length() == impl.units.length()); in mixedMeasuresToMicros()
121 for (int32_t i = 0; i < measures.length(); i++) { in mixedMeasuresToMicros()
122 U_ASSERT(measures[i]->getUnit() == impl.units[i]->build(status)); in mixedMeasuresToMicros()
135 micros->mixedMeasures[i] = measures[i]->getNumber().getInt64(); in mixedMeasuresToMicros()
141 quantity->setToDouble(measures[measures.length() - 1]->getNumber().getDouble()); in mixedMeasuresToMicros()
165 const MaybeStackVector<Measure>& routedMeasures = routed.measures; in processQuantity()
199 MaybeStackVector<Measure> measures = in processQuantity() local
206 mixedMeasuresToMicros(measures, &quantity, &micros, status); in processQuantity()
Dunits_router.h35 MaybeStackVector<Measure> measures; member
42 RouteResult(MaybeStackVector<Measure> measures, MeasureUnitImpl outputUnit) in RouteResult()
43 : measures(std::move(measures)), outputUnit(std::move(outputUnit)) {} in RouteResult()
Dmeasfmt.cpp300 const Measure *measures, in toHMS() argument
315 if (isTimeUnit(measures[i].getUnit(), "hour")) { in toHMS()
320 hms[0] = measures[i].getNumber(); in toHMS()
325 } else if (isTimeUnit(measures[i].getUnit(), "minute")) { in toHMS()
330 hms[1] = measures[i].getNumber(); in toHMS()
335 } else if (isTimeUnit(measures[i].getUnit(), "second")) { in toHMS()
340 hms[2] = measures[i].getNumber(); in toHMS()
524 const Measure *measures, in formatMeasures() argument
536 return formatMeasure(measures[0], **numberFormat, appendTo, pos, status); in formatMeasures()
540 int32_t bitMap = toHMS(measures, measureCount, hms, status); in formatMeasures()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DUnitsTest.java54 List<Measure> measures = converter.convert(BigDecimal.valueOf(1.9999), null);
55 assertEquals("measures length", 2, measures.size());
56 … assertEquals("1.9999: measures[0] value", BigDecimal.valueOf(1), measures.get(0).getNumber());
58 measures.get(0).getUnit().getIdentifier());
61 … BigDecimal.valueOf(measures.get(1).getNumber().doubleValue()), BigDecimal.valueOf(0.0001)));
63 measures.get(1).getUnit().getIdentifier());
141 List<Measure> measures = complexConverter.convert(BigDecimal.valueOf(10.0), null);
143 assertEquals(measures.size(), 2);
144 assertEquals("inch-and-foot unit 0", "inch", measures.get(0).getUnit().getIdentifier());
145 assertEquals("inch-and-foot unit 1", "foot", measures.get(1).getUnit().getIdentifier());
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DUnitsTest.java51 List<Measure> measures = converter.convert(BigDecimal.valueOf(1.9999), null);
52 assertEquals("measures length", 2, measures.size());
53 … assertEquals("1.9999: measures[0] value", BigDecimal.valueOf(1), measures.get(0).getNumber());
55 measures.get(0).getUnit().getIdentifier());
58 … BigDecimal.valueOf(measures.get(1).getNumber().doubleValue()), BigDecimal.valueOf(0.0001)));
60 measures.get(1).getUnit().getIdentifier());
138 List<Measure> measures = complexConverter.convert(BigDecimal.valueOf(10.0), null);
140 assertEquals(measures.size(), 2);
141 assertEquals("inch-and-foot unit 0", "inch", measures.get(0).getUnit().getIdentifier());
142 assertEquals("inch-and-foot unit 1", "foot", measures.get(1).getUnit().getIdentifier());
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMeasureFormat.java314 Measure[] measures = new Measure[coll.size()]; in format() local
320 measures[idx++] = (Measure) o; in format()
322 formatMeasuresInternal(toAppendTo, fpos, measures); in format()
366 public final String formatMeasures(Measure... measures) { in formatMeasures() argument
367 … return formatMeasures(new StringBuilder(), DontCareFieldPosition.INSTANCE, measures).toString(); in formatMeasures()
423 Measure... measures) { in formatMeasures() argument
425 formatMeasuresInternal(appendTo, fpos, measures); in formatMeasures()
436 Measure... measures) { in formatMeasuresInternal() argument
438 if (measures.length == 0) { in formatMeasuresInternal()
441 if (measures.length == 1) { in formatMeasuresInternal()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMeasureFormat.java292 Measure[] measures = new Measure[coll.size()]; in format() local
298 measures[idx++] = (Measure) o; in format()
300 formatMeasuresInternal(toAppendTo, fpos, measures); in format()
342 public final String formatMeasures(Measure... measures) { in formatMeasures() argument
343 … return formatMeasures(new StringBuilder(), DontCareFieldPosition.INSTANCE, measures).toString(); in formatMeasures()
397 Measure... measures) { in formatMeasures() argument
399 formatMeasuresInternal(appendTo, fpos, measures); in formatMeasures()
410 Measure... measures) { in formatMeasuresInternal() argument
412 if (measures.length == 0) { in formatMeasuresInternal()
415 if (measures.length == 1) { in formatMeasuresInternal()
[all …]
/external/icu/libicu/cts_headers/
Dunits_router.h35 MaybeStackVector<Measure> measures; member
42 RouteResult(MaybeStackVector<Measure> measures, MeasureUnitImpl outputUnit) in RouteResult()
43 : measures(std::move(measures)), outputUnit(std::move(outputUnit)) {} in RouteResult()
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DUnitsRouter.java189 public final List<Measure> measures; field in UnitsRouter.RouteResult
196 RouteResult(List<Measure> measures, MeasureUnitImpl outputUnit) { in RouteResult() argument
197 this.measures = measures; in RouteResult()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitsRouter.java183 public final List<Measure> measures; field in UnitsRouter.RouteResult
190 RouteResult(List<Measure> measures, MeasureUnitImpl outputUnit) { in RouteResult() argument
191 this.measures = measures; in RouteResult()
/external/autotest/client/site_tests/platform_LogoutPerf/
Dcontrol14 This test measures the time elapsed for signing out from a logged on
20 out and measures the time elasped between the uptime metric 'logout-started'
/external/libchrome/base/i18n/
Dtime_formatting.cc191 const icu::Measure measures[] = { in TimeDurationFormat() local
210 measure_format.formatMeasures(measures, 2, formatted, ignore, status); in TimeDurationFormat()
231 const icu::Measure measures[] = { in TimeDurationFormatWithSeconds() local
238 measure_format.formatMeasures(measures, 3, formatted, ignore, status); in TimeDurationFormatWithSeconds()
/external/ltp/testcases/open_posix_testsuite/stress/threads/fork/
Ds-c1.c100 int parse_measure(mes_t * measures);
411 int parse_measure(mes_t * measures) in parse_measure() argument
454 cur = measures; in parse_measure()
502 cur = measures; in parse_measure()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DStatszZPageHandler.java82 private final Map<String, Measure> measures = Maps.newTreeMap(); field in StatszZPageHandler
158 viewManager.getAllExportedViews(), root, measures, cachedViews); in emitHtmlBody() local
178 emitMeasureTable(measures, out, formatter); in emitHtmlBody()
186 Set<View> views, TreeNode root, Map<String, Measure> measures, Set<View> cachedViews) { in groupViewsByDirectoriesAndGetMeasures() argument
213 measures.putIfAbsent(measure.getName(), measure); in groupViewsByDirectoriesAndGetMeasures()
557 Map<String, Measure> measures, PrintWriter out, Formatter formatter) { in emitMeasureTable() argument
564 for (Entry<String, Measure> entry : measures.entrySet()) { in emitMeasureTable()
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DMeasureTest.java99 List<Measure> measures = in testMatch() local
104 for (Measure measure : measures) { in testMatch()
/external/icu/icu4c/source/i18n/unicode/
Dmeasfmt.h198 const Measure *measures,
377 const Measure *measures,
/external/icu/libicu/cts_headers/unicode/
Dmeasfmt.h198 const Measure *measures,
377 const Measure *measures,
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
DPeriodFormatterData.java325 String measure = dr.measures == null ? null : dr.measures[index]; in appendCount()
370 if (!omitCount && dr.measures != null && index < dr.measures.length) { in appendCount()
371 String measure = dr.measures[index]; in appendCount()
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/
DPeriodFormatterData.java327 String measure = dr.measures == null ? null : dr.measures[index]; in appendCount()
372 if (!omitCount && dr.measures != null && index < dr.measures.length) { in appendCount()
373 String measure = dr.measures[index]; in appendCount()

1234567