/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
Plural.java | 4 final String quantity, string; field in class:Plural 8 Plural(String quantity, String string) { 9 this.quantity = quantity; 11 if ("zero".equals(quantity)) { 14 } else if ("one".equals(quantity)) { 17 } else if ("two".equals(quantity)) { 20 } else if ("other".equals(quantity)) { 35 return quantity + "(" + num + "): " + string;
|
PluralRules.java | 10 public Plural find(int quantity) { 12 if (p.num == quantity && p.usedInEnglish) return p;
|
StaxPluralsLoader.java | 10 private String quantity; field in class:StaxPluralsLoader 21 quantity = xml.getAttributeValue(null, "quantity"); 32 plurals.add(new Plural(quantity, buf.toString()));
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
MicroPropsGenerator.java | 8 * for the quantity itself. The {@link #processQuantity} method performs the final step in the number 9 * processing pipeline: it uses the quantity to generate a finalized {@link MicroProps}, which can be 14 * <em>quantity-dependent</em>. 19 * quantity-dependent part of the MicroProps. At the top of the linked list is a base instance of 20 * {@link MicroProps} with properties that are not quantity-dependent. Each element in the linked list 35 * public MicroProps processQuantity(DecimalQuantity quantity) { 36 * MicroProps micros = this.parent.processQuantity(quantity); 37 * // Perform manipulations on micros and/or quantity 52 * @param quantity 53 * The quantity for consideration and optional mutation [all...] |
MultiplierFormatHandler.java | 22 public MicroProps processQuantity(DecimalQuantity quantity) { 23 MicroProps micros = parent.processQuantity(quantity); 24 multiplier.applyTo(quantity);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
MicroPropsGenerator.java | 7 * for the quantity itself. The {@link #processQuantity} method performs the final step in the number 8 * processing pipeline: it uses the quantity to generate a finalized {@link MicroProps}, which can be 13 * <em>quantity-dependent</em>. 18 * quantity-dependent part of the MicroProps. At the top of the linked list is a base instance of 19 * {@link MicroProps} with properties that are not quantity-dependent. Each element in the linked list 34 * public MicroProps processQuantity(DecimalQuantity quantity) { 35 * MicroProps micros = this.parent.processQuantity(quantity); 36 * // Perform manipulations on micros and/or quantity 50 * @param quantity 51 * The quantity for consideration and optional mutation [all...] |
MultiplierFormatHandler.java | 20 public MicroProps processQuantity(DecimalQuantity quantity) { 21 MicroProps micros = parent.processQuantity(quantity); 22 multiplier.applyTo(quantity);
|
/external/icu/icu4c/source/i18n/ |
numparse_parsednumber.cpp | 29 quantity.bogus = true; 42 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { 43 quantity.negate(); 52 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); 72 U_ASSERT(!quantity.bogus); 73 if (quantity.isZero() && quantity.isNegative()) { 77 if (quantity.fitsInLong()) { 78 return static_cast<double>(quantity.toLong()); 80 return quantity.toDouble() [all...] |
number_integerwidth.cpp | 42 void IntegerWidth::apply(impl::DecimalQuantity& quantity, UErrorCode& status) const { 46 quantity.setIntegerLength(fUnion.minMaxInt.fMinInt, INT32_MAX); 50 fUnion.minMaxInt.fMaxInt < quantity.getMagnitude()) { 53 quantity.setIntegerLength(fUnion.minMaxInt.fMinInt, fUnion.minMaxInt.fMaxInt);
|
number_multiplier.cpp | 127 void Scale::applyTo(impl::DecimalQuantity& quantity) const { 128 quantity.adjustMagnitude(fMagnitude); 131 quantity.multiplyBy(*fArbitrary, localStatus); 135 void Scale::applyReciprocalTo(impl::DecimalQuantity& quantity) const { 136 quantity.adjustMagnitude(-fMagnitude); 139 quantity.divideBy(*fArbitrary, localStatus); 150 void MultiplierFormatHandler::processQuantity(DecimalQuantity& quantity, MicroProps& micros, 152 fParent->processQuantity(quantity, micros, status); 153 fMultiplier.applyTo(quantity);
|
number_scientific.cpp | 122 void ScientificHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, 124 fParent->processQuantity(quantity, micros, status); 129 if (quantity.isZero()) { 132 micros.rounder.apply(quantity, fSettings.fEngineeringInterval, status); 135 micros.rounder.apply(quantity, status); 139 exponent = -micros.rounder.chooseMultiplierAndApply(quantity, *this, status);
|
numparse_validators.cpp | 75 if (!result.quantity.bogus) { 76 fMultiplier.applyReciprocalTo(result.quantity);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowNativePluralRules.java | 14 protected static int quantityForIntImpl(long address, int quantity) { 16 if (quantity == 1) return 1; 21 protected static int quantityForIntImpl(int address, int quantity) { 22 return quantityForIntImpl((long)address, quantity);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
ParsedNumber.java | 22 public DecimalQuantity_DualStorageBCD quantity; field in class:ParsedNumber 78 quantity = null; 87 quantity = other.quantity == null ? null 88 : (DecimalQuantity_DualStorageBCD) other.quantity.createCopy(); 118 if (quantity != null && 0 != (flags & FLAG_NEGATIVE)) { 119 quantity.negate(); 132 return quantity != null || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); 157 assert quantity != null; 158 if (quantity.isZero() && quantity.isNegative() && !integerOnly) [all...] |
MultiplierParseHandler.java | 22 if (result.quantity != null) { 23 multiplier.applyReciprocalTo(result.quantity);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
ParsedNumber.java | 20 public DecimalQuantity_DualStorageBCD quantity; field in class:ParsedNumber 76 quantity = null; 85 quantity = other.quantity == null ? null 86 : (DecimalQuantity_DualStorageBCD) other.quantity.createCopy(); 116 if (quantity != null && 0 != (flags & FLAG_NEGATIVE)) { 117 quantity.negate(); 130 return quantity != null || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); 155 assert quantity != null; 156 if (quantity.isZero() && quantity.isNegative() && !integerOnly) [all...] |
MultiplierParseHandler.java | 20 if (result.quantity != null) { 21 multiplier.applyReciprocalTo(result.quantity);
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
Product.java | 20 public Integer quantity; field in class:Product
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
Scale.java | 14 * A class that defines a quantity by which a number should be multiplied when formatting. 180 public void applyTo(DecimalQuantity quantity) { 181 quantity.adjustMagnitude(magnitude); 183 quantity.multiplyBy(arbitrary); 192 public void applyReciprocalTo(DecimalQuantity quantity) { 193 quantity.adjustMagnitude(-magnitude); 195 quantity.multiplyBy(reciprocal); 196 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc);
|
CompactNotation.java | 121 public MicroProps processQuantity(DecimalQuantity quantity) { 122 MicroProps micros = parent.processQuantity(quantity); 127 if (quantity.isZero()) { 129 micros.rounder.apply(quantity); 132 int multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); 133 magnitude = quantity.isZero() ? 0 : quantity.getMagnitude(); 137 StandardPlural plural = quantity.getStandardPlural(rules); 146 mod.applyToMicros(micros, quantity);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
Scale.java | 13 * A class that defines a quantity by which a number should be multiplied when formatting. 184 public void applyTo(DecimalQuantity quantity) { 185 quantity.adjustMagnitude(magnitude); 187 quantity.multiplyBy(arbitrary); 196 public void applyReciprocalTo(DecimalQuantity quantity) { 197 quantity.adjustMagnitude(-magnitude); 199 quantity.multiplyBy(reciprocal); 200 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc);
|
CompactNotation.java | 120 public MicroProps processQuantity(DecimalQuantity quantity) { 121 MicroProps micros = parent.processQuantity(quantity); 126 if (quantity.isZero()) { 128 micros.rounder.apply(quantity); 131 int multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); 132 magnitude = quantity.isZero() ? 0 : quantity.getMagnitude(); 136 StandardPlural plural = quantity.getStandardPlural(rules); 145 mod.applyToMicros(micros, quantity);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
DecimalQuantityTest.java | 417 DecimalQuantity_DualStorageBCD quantity = new DecimalQuantity_DualStorageBCD(); local 418 quantity.setToInt(0); 419 assertTrue("Zero should fit", quantity.fitsInLong()); 420 quantity.setToInt(42); 421 assertTrue("Small int should fit", quantity.fitsInLong()); 422 quantity.setToDouble(0.1); 423 assertFalse("Fraction should not fit", quantity.fitsInLong()); 424 quantity.setToDouble(42.1); 425 assertFalse("Fraction should not fit", quantity.fitsInLong()); 426 quantity.setToLong(1000000) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
DecimalQuantityTest.java | 414 DecimalQuantity_DualStorageBCD quantity = new DecimalQuantity_DualStorageBCD(); local 415 quantity.setToInt(0); 416 assertTrue("Zero should fit", quantity.fitsInLong()); 417 quantity.setToInt(42); 418 assertTrue("Small int should fit", quantity.fitsInLong()); 419 quantity.setToDouble(0.1); 420 assertFalse("Fraction should not fit", quantity.fitsInLong()); 421 quantity.setToDouble(42.1); 422 assertFalse("Fraction should not fit", quantity.fitsInLong()); 423 quantity.setToLong(1000000) [all...] |
/external/tensorflow/tensorflow/python/tpu/ |
xla.py | 75 def format_error(complaint, quantity): 76 return '%s %d argument%s' % (complaint, quantity, '' 77 if quantity == 1 else 's')
|