Home
last modified time | relevance | path

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

/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1Integer.java39 private BigInteger minimumValue = null; // null == unbounded. field in Asn1Integer
57 minimumValue = minimum == null ? null : new BigInteger(minimum); in setValueRange()
85 minimumValue == null || value.compareTo(minimumValue) >= 0, in validateValue()
115 if (maximumValue != null && minimumValue != null) { in encodePerImpl()
117 BigInteger normalizedValue = value.subtract(minimumValue); in encodePerImpl()
118 BigInteger range = maximumValue.subtract(minimumValue); in encodePerImpl()
122 } else if (minimumValue != null) { in encodePerImpl()
126 PerAlignedUtils.encodeBigNonNegativeWholeNumber(value.subtract(minimumValue))) in encodePerImpl()
128 PerUnalignedUtils.encodeBigNonNegativeWholeNumber(value.subtract(minimumValue))); in encodePerImpl()
183 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()