Searched refs:choiceLimits (Results 1 – 2 of 2) sorted by relevance
/libcore/ojluni/src/main/java/java/text/ |
D | ChoiceFormat.java | 250 choiceLimits = new double[count]; in applyPattern() 251 System.arraycopy(newChoiceLimits, 0, choiceLimits, 0, count); in applyPattern() 263 for (int i = 0; i < choiceLimits.length; ++i) { in toPattern() 270 double less = previousDouble(choiceLimits[i]); in toPattern() 271 double tryLessOrEqual = Math.abs(Math.IEEEremainder(choiceLimits[i], 1.0d)); in toPattern() 275 result.append(""+choiceLimits[i]); in toPattern() 278 if (choiceLimits[i] == Double.POSITIVE_INFINITY) { in toPattern() 280 } else if (choiceLimits[i] == Double.NEGATIVE_INFINITY) { in toPattern() 348 choiceLimits = Arrays.copyOf(limits, limits.length); in setChoices() 357 double[] newLimits = Arrays.copyOf(choiceLimits, choiceLimits.length); in getLimits() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ChoiceFormatTest.java | 151 double[] choiceLimits = { -1, 0, 1, ChoiceFormat.nextDouble(1) }; in test_applyPatternLjava_lang_String() local 158 choiceLimits)); in test_applyPatternLjava_lang_String() 180 choiceLimits[0] = ChoiceFormat.nextDouble(-1); in test_applyPatternLjava_lang_String() 182 choiceLimits)); in test_applyPatternLjava_lang_String()
|