Home
last modified time | relevance | path

Searched refs:bestUnit (Results 1 – 2 of 2) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/tool/
DChartGrammaticalForms.java363 final BestUnitForGender bestUnit = unitToBestUnit.get(shortUnit); in writeSubcharts() local
364 if (bestUnit != null) { in writeSubcharts()
365 bestUnitForGender.put(gender, bestUnit); in writeSubcharts()
397 String bestUnit = null; in writeSubcharts() local
399 bestUnit = bestUnits.iterator().next().shortUnit; in writeSubcharts()
408 .addCell(gender + (bestUnit == null ? "" : "\n(" + bestUnit + ")")) in writeSubcharts()
415 if (bestUnit == null) { in writeSubcharts()
419 …ing localizedUnitPattern = UnitPathType.unit.getTrans(cldrFile, "long", bestUnit, plural.toString(… in writeSubcharts()
500 String bestUnit = null; in getBestBaseUnit() local
505 if (bestUnit != null && currentFactor.compareTo(inputBoundary) >= 0) { in getBestBaseUnit()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DShortDuration.java268 TimeUnit bestUnit = TimeUnit.NANOSECONDS; in toString() local
273 bestUnit = unit; in toString()
275 BigDecimal divisor = ONE_IN_PICOS.get(bestUnit); in toString()
277 return new BigDecimal(picos).divide(divisor, ROUNDER) + preferredAbbrev(bestUnit); in toString()
285 private static String preferredAbbrev(TimeUnit bestUnit) { in preferredAbbrev() argument
286 return ABBREVIATIONS.get(bestUnit).get(0); in preferredAbbrev()