Home
last modified time | relevance | path

Searched refs:BITS_IN_BYTE (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/location/src/android/location/cts/asn1/base/
DBitStream.java37 private static final int BITS_IN_BYTE = 8; field in BitStream
56 buffer[position] = (byte) (buffer[position] | (data << (BITS_IN_BYTE - setBits)) & 0xFF); in appendByte()
68 buffer[position] = (byte) (buffer[position] | 1 << (BITS_IN_BYTE - 1 - setBits)); in appendBit()
71 if (setBits == BITS_IN_BYTE) { in appendBit()
78 return BITS_IN_BYTE * position + setBits; in getBitCount()
86 Preconditions.checkArgument(howManyBits < BITS_IN_BYTE); in appendLowBits()
DBitStreamReader.java26 private static final int BITS_IN_BYTE = 8; field in BitStreamReader
42 if (bitsRead > BITS_IN_BYTE) { in readBit()
46 return ((buffer[position] >> (BITS_IN_BYTE - bitsRead)) & 1) == 1; in readBit()
54 || (bitsRead < BITS_IN_BYTE && position < buffer.length); in hasBit()