/external/icu/icu4c/source/test/intltest/ |
D | units_test.cpp | 456 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 …]
|
D | measfmttest.cpp | 35 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/ |
D | UsagePrefsHandler.java | 37 … 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()
|
D | UnitConversionHandler.java | 53 …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/ |
D | UsagePrefsHandler.java | 33 … 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()
|
D | UnitConversionHandler.java | 51 …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/ |
D | number_usageprefs.cpp | 109 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, µs, status); in processQuantity()
|
D | units_router.h | 35 MaybeStackVector<Measure> measures; member 42 RouteResult(MaybeStackVector<Measure> measures, MeasureUnitImpl outputUnit) in RouteResult() 43 : measures(std::move(measures)), outputUnit(std::move(outputUnit)) {} in RouteResult()
|
D | measfmt.cpp | 300 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/ |
D | UnitsTest.java | 54 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/ |
D | UnitsTest.java | 51 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/ |
D | MeasureFormat.java | 314 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/ |
D | MeasureFormat.java | 292 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/ |
D | units_router.h | 35 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/ |
D | UnitsRouter.java | 189 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/ |
D | UnitsRouter.java | 183 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/ |
D | control | 14 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/ |
D | time_formatting.cc | 191 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/ |
D | s-c1.c | 100 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/ |
D | StatszZPageHandler.java | 82 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/ |
D | MeasureTest.java | 99 List<Measure> measures = in testMatch() local 104 for (Measure measure : measures) { in testMatch()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | measfmt.h | 198 const Measure *measures, 377 const Measure *measures,
|
/external/icu/libicu/cts_headers/unicode/ |
D | measfmt.h | 198 const Measure *measures, 377 const Measure *measures,
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | PeriodFormatterData.java | 325 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/ |
D | PeriodFormatterData.java | 327 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()
|