Home
last modified time | relevance | path

Searched refs:minimumValue (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1Integer.java38 private BigInteger minimumValue = null; // null == unbounded. field in Asn1Integer
56 minimumValue = minimum == null ? null : new BigInteger(minimum); in setValueRange()
84 minimumValue == null || value.compareTo(minimumValue) >= 0, in validateValue()
114 if (maximumValue != null && minimumValue != null) { in encodePerImpl()
116 BigInteger normalizedValue = value.subtract(minimumValue); in encodePerImpl()
117 BigInteger range = maximumValue.subtract(minimumValue); in encodePerImpl()
121 } else if (minimumValue != null) { in encodePerImpl()
125 PerAlignedUtils.encodeBigNonNegativeWholeNumber(value.subtract(minimumValue))) in encodePerImpl()
127 PerUnalignedUtils.encodeBigNonNegativeWholeNumber(value.subtract(minimumValue))); in encodePerImpl()
182 if (maximumValue != null && minimumValue != null) { in decodePerImpl()
[all …]
DPerUnalignedUtils.java36 int value, int minimumValue, int maximumValue) { in encodeConstrainedWholeNumber() argument
37 int normalizedValue = value - minimumValue; in encodeConstrainedWholeNumber()
39 int range = maximumValue - minimumValue; in encodeConstrainedWholeNumber()
63 BitStreamReader reader, int minimumValue, int maximumValue) { in decodeConstrainedWholeNumber() argument
65 long range = (long) maximumValue - (long) minimumValue; in decodeConstrainedWholeNumber()
68 return (int) normalizedResult + minimumValue; in decodeConstrainedWholeNumber()
DPerAlignedUtils.java40 int minimumValue, in encodeSmallConstrainedWholeNumber() argument
42 int normalizedValue = value - minimumValue; in encodeSmallConstrainedWholeNumber()
44 int range = maximumValue - minimumValue; in encodeSmallConstrainedWholeNumber()
87 int minimumValue, in decodeSmallConstrainedWholeNumber() argument
90 int range = maximumValue - minimumValue; in decodeSmallConstrainedWholeNumber()
93 return normalizedResult + minimumValue; in decodeSmallConstrainedWholeNumber()