Home
last modified time | relevance | path

Searched refs:keyBits (Results 1 – 5 of 5) sorted by relevance

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/table/packed/
DPackedTableReaderWriterTest.java81 int keyBits = 4; in headerFields() local
84 PackedTableWriter tableWriter = PackedTableWriter.create(baos, entrySizeBytes, keyBits, in headerFields()
91 assertEquals(keyBits, tableReader.getKeySizeBits()); in headerFields()
94 assertEquals((entrySizeBytes * Byte.SIZE) - keyBits, tableReader.getValueSizeBits()); in headerFields()
103 int keyBits = 4; in entryGetValue_int() local
105 baos, entrySizeBytes, keyBits, signedValue, null); in entryGetValue_int()
107 BitwiseUtils.maxValue((entrySizeBytes * Byte.SIZE) - keyBits, signedValue); in entryGetValue_int()
122 int keyBits = 4; in entryGetValue_long() local
124 baos, entrySizeBytes, keyBits, signedValue, null); in entryGetValue_long()
125 int valueSizeBits = (entrySizeBytes * Byte.SIZE) - keyBits; in entryGetValue_long()
[all …]
DIntValuePackedTableTest.java219 int keyBits = 4; in getEntry_badKey() local
220 PackedTableWriter writer = PackedTableWriter.create(baos, 2, keyBits, signedValue, null); in getEntry_badKey()
231 int keyTooBig = (int) BitwiseUtils.maxUnsignedValue(keyBits) + 1; in getEntry_badKey()
239 int keyBits = 4; in entryNextAndPrevious() local
240 try (PackedTableWriter writer = PackedTableWriter.create(baos, 2, keyBits, signedValue, in entryNextAndPrevious() argument
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DTemperatureColorStore.java190 int keyBits = Float.floatToIntBits(temperature); in binarySearch() local
191 if (midBits == keyBits) { // Values are equal in binarySearch()
193 } else if (midBits < keyBits) { // (-0.0, 0.0) or (!NaN, NaN) in binarySearch()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/table/packed/write/
DPackedTableWriter.java87 int keyBits, boolean signedValue, byte[] sharedData) throws IOException { in create() argument
89 new PackedTableWriter(outputStream, entrySizeBytes, keyBits, signedValue); in create()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/table/packed/read/
DPackedTableReader.java364 long keyBits = mask & entryBytes; in getKeyFromEntryBytes() local
366 return (int) (keyBits >>> valueSizeBits); in getKeyFromEntryBytes()