Home
last modified time | relevance | path

Searched refs:BlePacketFactory (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DBlePacketFactoryTest.java54 assertThat(BlePacketFactory.getPacketHeaderSize(totalPackets, messageId, payloadSize)) in testGetHeaderSize()
70 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize1_returnsCorrectPackets()
86 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize2_returnsCorrectPackets()
102 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize3_returnsCorrectPackets()
118 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize4_returnsCorrectPackets()
129 BlePacketFactory.makeBlePackets(payload, /* mesageId= */ 1, maxSize); in testMakePackets_correctlyChunksPayload()
150 BlePacketFactory.makeBlePackets(payload, /* mesageId= */ 1, maxSize); in testMakePackets_correctlyChunksSplitPayload()
DBleDeviceMessageStreamTest.java174 return BlePacketFactory.makeBlePackets(message.toByteArray(), in createPackets()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/
DBlePacketFactory.java31 class BlePacketFactory { class
154 private BlePacketFactory() {} in BlePacketFactory() method in BlePacketFactory
DBleDeviceMessageStream.java150 blePackets = BlePacketFactory.makeBlePackets(rawBytes, mMessageIdGenerator.next(), in writeMessage()