Home
last modified time | relevance | path

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

/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/
DBlePacketFactory.java92 + getEncodedSize(totalPackets) + FIELD_NUMBER_ENCODING_SIZE in getPacketHeaderSize()
93 + getEncodedSize(messageId) + FIELD_NUMBER_ENCODING_SIZE in getPacketHeaderSize()
94 + getEncodedSize(payloadSize) + FIELD_NUMBER_ENCODING_SIZE; in getPacketHeaderSize()
104 + getEncodedSize(messageId) + FIELD_NUMBER_ENCODING_SIZE in getTotalPacketNumber()
105 + getEncodedSize(Math.min(payloadSize, maxSize)) + FIELD_NUMBER_ENCODING_SIZE; in getTotalPacketNumber()
115 if (getEncodedSize(totalPackets) == value) { in getTotalPacketNumber()
135 private static int getEncodedSize(int value) { in getEncodedSize() method in BlePacketFactory
/packages/services/Car/service/src/com/android/car/trust/
DBLEMessageV1Factory.java64 private static final int VERSION_SIZE = getEncodedSize(PROTOCOL_VERSION)
175 int operationSize = getEncodedSize(operation.getNumber()) + FIELD_NUMBER_ENCODING_SIZE; in getProtoHeaderSize()
178 int payloadEncodingSize = FIELD_NUMBER_ENCODING_SIZE + getEncodedSize(payloadSize); in getProtoHeaderSize()
195 private static int getEncodedSize(int value) { in getEncodedSize() method in BLEMessageV1Factory