Home
last modified time | relevance | path

Searched refs:maxUnsignedValue (Results 1 – 7 of 7) sorted by relevance

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/util/
DBitwiseUtilsTest.java29 public void maxUnsignedValue() { in maxUnsignedValue() method in BitwiseUtilsTest
30 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.maxUnsignedValue(0)); in maxUnsignedValue()
31 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.maxUnsignedValue(64)); in maxUnsignedValue()
33 assertEquals(1, BitwiseUtils.maxUnsignedValue(1)); in maxUnsignedValue()
34 assertEquals(3, BitwiseUtils.maxUnsignedValue(2)); in maxUnsignedValue()
35 assertEquals(7, BitwiseUtils.maxUnsignedValue(3)); in maxUnsignedValue()
36 assertEquals(15, BitwiseUtils.maxUnsignedValue(4)); in maxUnsignedValue()
37 assertEquals(Long.MAX_VALUE, BitwiseUtils.maxUnsignedValue(63)); in maxUnsignedValue()
94 assertCheckValueInRangeThrowsException(1, BitwiseUtils.maxUnsignedValue(2) + 1, false); in checkValueInRange()
107 assertCheckValueInRangeThrowsException(2, BitwiseUtils.maxUnsignedValue(2) + 1, false); in checkValueInRange()
[all …]
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/util/
DBitwiseUtils.java179 long maxUnsignedValue = maxUnsignedValue(bitCount); in checkUnsignedValueInRange() local
180 if (value < 0 || value > maxUnsignedValue) { in checkUnsignedValueInRange()
213 return maxUnsignedValue(bitCount); in maxValue()
245 public static long maxUnsignedValue(int bitCount) { in maxUnsignedValue() method in BitwiseUtils
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/
DTzS2RangeFileFormat.java161 | BitwiseUtils.maxUnsignedValue(cellIdIndexBitCount)); in TzS2RangeFileFormat()
164 mMaxSuffixValue = (int) BitwiseUtils.maxUnsignedValue(suffixBitCount); in TzS2RangeFileFormat()
175 (int) BitwiseUtils.maxUnsignedValue(entryRangeLengthBitCount); in TzS2RangeFileFormat()
182 (int) BitwiseUtils.maxUnsignedValue(mTableEntryTzIdSetIdBitCount); in TzS2RangeFileFormat()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/s2/
DS2SupportTest.java222 assertEquals(S2Support.cellId(1, 5, BitwiseUtils.maxUnsignedValue(2)), in getMaxCellId()
224 assertEquals(S2Support.cellId(2, 5, BitwiseUtils.maxUnsignedValue(4)), in getMaxCellId()
226 assertEquals(S2Support.cellId(29, 5, BitwiseUtils.maxUnsignedValue(29 * 2)), in getMaxCellId()
228 assertEquals(S2Support.cellId(30, 5, BitwiseUtils.maxUnsignedValue(30 * 2)), in getMaxCellId()
/packages/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/
DSatS2RangeFileFormat.java185 | BitwiseUtils.maxUnsignedValue(cellIdIndexBitCount)); in SatS2RangeFileFormat()
188 mMaxSuffixValue = (int) BitwiseUtils.maxUnsignedValue(suffixBitCount); in SatS2RangeFileFormat()
199 (int) BitwiseUtils.maxUnsignedValue(entryRangeLengthBitCount); in SatS2RangeFileFormat()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/table/packed/
DIntValuePackedTableTest.java60 long maxUnsignedInt = BitwiseUtils.maxUnsignedValue(31); in valueSizeMax_unsigned()
238 int keyTooBig = (int) BitwiseUtils.maxUnsignedValue(keyBits) + 1; in getEntry_badKey()
DPackedTableReaderWriterTest.java149 int maxUnsignedInt = (int) BitwiseUtils.maxUnsignedValue(31); in valueSizeMax_unsigned()
307 int keyTooBig = (int) BitwiseUtils.maxUnsignedValue(keyBits) + 1; in getEntry_badKey()