Home
last modified time | relevance | path

Searched refs:conversionRates (Results 1 – 19 of 19) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitConverter.java28 …ic UnitConverter(MeasureUnitImpl source, MeasureUnitImpl target, ConversionRates conversionRates) { in UnitConverter() argument
29 Convertibility convertibility = extractConvertibility(source, target, conversionRates); in UnitConverter()
32 Factor sourceToBase = conversionRates.getFactorToBase(source); in UnitConverter()
33 Factor targetToBase = conversionRates.getFactorToBase(target); in UnitConverter()
42 …this.offset = conversionRates.getOffset(source, target, sourceToBase, targetToBase, convertibility… in UnitConverter()
45 …ctConvertibility(MeasureUnitImpl source, MeasureUnitImpl target, ConversionRates conversionRates) { in extractConvertibility() argument
46 ArrayList<SingleUnitImpl> sourceSingleUnits = conversionRates.extractBaseUnits(source); in extractConvertibility()
47 ArrayList<SingleUnitImpl> targetSingleUnits = conversionRates.extractBaseUnits(target); in extractConvertibility()
DUnitsRouter.java163 String precision, ConversionRates conversionRates) { in ConverterPreference() argument
165 conversionRates); in ConverterPreference()
169 … BigDecimal limit, String precision, ConversionRates conversionRates) { in ConverterPreference() argument
170 this.converter = new ComplexUnitsConverter(source, targetUnit, conversionRates); in ConverterPreference()
DComplexUnitsConverter.java45 ConversionRates conversionRates) { in ComplexUnitsConverter() argument
56 … Collections.reverseOrder(new MeasureUnitImpl.MeasureUnitImplComparator(conversionRates))); in ComplexUnitsConverter()
76 unitConverters_.add(new UnitConverter(inputUnit, units_.get(i), conversionRates)); in ComplexUnitsConverter()
78 … unitConverters_.add(new UnitConverter(units_.get(i - 1), units_.get(i), conversionRates)); in ComplexUnitsConverter()
DUnitsData.java21 private ConversionRates conversionRates; field in UnitsData
29 this.conversionRates = new ConversionRates(); in UnitsData()
50 return conversionRates; in getConversionRates()
DMeasureUnitImpl.java740 private final ConversionRates conversionRates; field in MeasureUnitImpl.MeasureUnitImplComparator
742 public MeasureUnitImplComparator(ConversionRates conversionRates) { in MeasureUnitImplComparator() argument
743 this.conversionRates = conversionRates; in MeasureUnitImplComparator()
748 UnitConverter fromO1toO2 = new UnitConverter(o1, o2, conversionRates); in compare()
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DUnitConverter.java32 …ic UnitConverter(MeasureUnitImpl source, MeasureUnitImpl target, ConversionRates conversionRates) { in UnitConverter() argument
33 Convertibility convertibility = extractConvertibility(source, target, conversionRates); in UnitConverter()
36 Factor sourceToBase = conversionRates.getFactorToBase(source); in UnitConverter()
37 Factor targetToBase = conversionRates.getFactorToBase(target); in UnitConverter()
46 …this.offset = conversionRates.getOffset(source, target, sourceToBase, targetToBase, convertibility… in UnitConverter()
49 …ctConvertibility(MeasureUnitImpl source, MeasureUnitImpl target, ConversionRates conversionRates) { in extractConvertibility() argument
50 ArrayList<SingleUnitImpl> sourceSingleUnits = conversionRates.extractBaseUnits(source); in extractConvertibility()
51 ArrayList<SingleUnitImpl> targetSingleUnits = conversionRates.extractBaseUnits(target); in extractConvertibility()
DUnitsRouter.java166 String precision, ConversionRates conversionRates) { in ConverterPreference() argument
168 conversionRates); in ConverterPreference()
172 … BigDecimal limit, String precision, ConversionRates conversionRates) { in ConverterPreference() argument
173 this.converter = new ComplexUnitsConverter(source, targetUnit, conversionRates); in ConverterPreference()
DComplexUnitsConverter.java47 ConversionRates conversionRates) { in ComplexUnitsConverter() argument
58 … Collections.reverseOrder(new MeasureUnitImpl.MeasureUnitImplComparator(conversionRates))); in ComplexUnitsConverter()
78 unitConverters_.add(new UnitConverter(inputUnit, units_.get(i), conversionRates)); in ComplexUnitsConverter()
80 … unitConverters_.add(new UnitConverter(units_.get(i - 1), units_.get(i), conversionRates)); in ComplexUnitsConverter()
DUnitsData.java23 private ConversionRates conversionRates; field in UnitsData
31 this.conversionRates = new ConversionRates(); in UnitsData()
52 return conversionRates; in getConversionRates()
DMeasureUnitImpl.java756 private final ConversionRates conversionRates; field in MeasureUnitImpl.MeasureUnitImplComparator
758 public MeasureUnitImplComparator(ConversionRates conversionRates) { in MeasureUnitImplComparator() argument
759 this.conversionRates = conversionRates; in MeasureUnitImplComparator()
764 UnitConverter fromO1toO2 = new UnitConverter(o1, o2, conversionRates); in compare()
/external/icu/icu4c/source/test/intltest/
Dunits_test.cpp148 ConversionRates conversionRates(status); in testConversionCapability() local
149 auto convertibility = extractConvertibility(source, target, conversionRates, status); in testConversionCapability()
183 ConversionRates conversionRates(status); in testSiPrefixes() local
184 UnitConverter converter(source, target, conversionRates, status); in testSiPrefixes()
218 ConversionRates conversionRates(status); in testMass() local
219 UnitConverter converter(source, target, conversionRates, status); in testMass()
252 ConversionRates conversionRates(status); in testTemperature() local
253 UnitConverter converter(source, target, conversionRates, status); in testTemperature()
290 ConversionRates conversionRates(status); in testArea() local
291 UnitConverter converter(source, target, conversionRates, status); in testArea()
[all …]
/external/icu/icu4c/source/i18n/
Dunits_router.cpp50 ConversionRates conversionRates(status); in UnitsRouter() local
55 (extractCompoundBaseUnit(inputUnitImpl, conversionRates, status)).build(status); in UnitsRouter()
87 conversionRates, status); in UnitsRouter()
Dunits_converter.h104 const ConversionRates &conversionRates,
120 const ConversionRates &conversionRates,
Dunits_converter.cpp400 const ConversionRates &conversionRates, in extractCompoundBaseUnit() argument
412 conversionRates.extractConversionInfo(singleUnit.getSimpleUnitID(), status); in extractCompoundBaseUnit()
452 const ConversionRates &conversionRates, in extractConvertibility() argument
461 MeasureUnitImpl sourceBaseUnit = extractCompoundBaseUnit(source, conversionRates, status); in extractConvertibility()
462 MeasureUnitImpl targetBaseUnit = extractCompoundBaseUnit(target, conversionRates, status); in extractConvertibility()
Dnumber_usageprefs.cpp184 ConversionRates conversionRates(status); in UnitConversionHandler() local
189 new ComplexUnitsConverter(inputUnitImpl, outputUnitImpl, conversionRates, status), status); in UnitConversionHandler()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DUnitsTest.java135 ConversionRates conversionRates = new ConversionRates();
137 …omplexUnitsConverter complexConverter = new ComplexUnitsConverter(source, target, conversionRates);
175 ConversionRates conversionRates = new ConversionRates();
179 …als(test.expected, UnitConverter.extractConvertibility(test.source, test.target, conversionRates));
205 ConversionRates conversionRates = new ConversionRates();
209 UnitConverter converter = new UnitConverter(test.source, test.target, conversionRates);
254 ConversionRates conversionRates = new ConversionRates();
258 … UnitConverter converter = new UnitConverter(testCase.source, testCase.target, conversionRates);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DUnitsTest.java138 ConversionRates conversionRates = new ConversionRates();
140 …omplexUnitsConverter complexConverter = new ComplexUnitsConverter(source, target, conversionRates);
178 ConversionRates conversionRates = new ConversionRates();
182 …als(test.expected, UnitConverter.extractConvertibility(test.source, test.target, conversionRates));
208 ConversionRates conversionRates = new ConversionRates();
212 UnitConverter converter = new UnitConverter(test.source, test.target, conversionRates);
257 ConversionRates conversionRates = new ConversionRates();
261 … UnitConverter converter = new UnitConverter(testCase.source, testCase.target, conversionRates);
/external/icu/libicu/cts_headers/
Dunits_converter.h104 const ConversionRates &conversionRates,
120 const ConversionRates &conversionRates,
/external/cldr/tools/java/libs/
Dicu4j.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/ibm/ com/ ...