Home
last modified time | relevance | path

Searched refs:preamble (Results 1 – 14 of 14) sorted by relevance

/system/bt/stack/test/hci/
Dstack_hci_test.cc53 HciDataPreamble preamble; in TEST_F() local
55 ASSERT_EQ(sizeof(preamble), HCI_DATA_PREAMBLE_SIZE); in TEST_F()
57 preamble.bits.handle = 0xfff; in TEST_F()
58 preamble.bits.boundary = 0x3; in TEST_F()
59 preamble.bits.broadcast = 0x1; in TEST_F()
60 preamble.bits.unused15 = 0x0; in TEST_F()
61 preamble.bits.length = 0xffff; in TEST_F()
63 ASSERT_EQ(0x7fff, preamble.raw.word0); in TEST_F()
64 ASSERT_EQ(0xffff, preamble.raw.word1); in TEST_F()
67 uint8_t act[sizeof(preamble)]; in TEST_F()
[all …]
/system/chre/platform/shared/include/chre/platform/shared/
Dmemory_debug.h75 auto *preamble = static_cast<MemoryDebugPreamble *>(mem); in debugAlloc() local
76 preamble->allocSize = size; in debugAlloc()
77 preamble->guard = kPreambleGuard; in debugAlloc()
78 mem = static_cast<void *>(preamble + 1); in debugAlloc()
98 auto *preamble = static_cast<MemoryDebugPreamble *>(pointer) - 1; in debugFree() local
99 if (preamble->allocSize > kMaxAllocSize) { in debugFree()
100 FATAL_ERROR("Invalid allocation size %zu", preamble->allocSize); in debugFree()
101 } else if (preamble->guard != kPreambleGuard) { in debugFree()
105 uint8_t *trailer = static_cast<uint8_t *>(pointer) + preamble->allocSize; in debugFree()
114 freeFunc(preamble); in debugFree()
/system/bt/vendor_libs/linux/interface/
Dhci_packetizer.cc35 size_t HciGetPacketLengthForType(HciPacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType() argument
37 if (type != HCI_PACKET_TYPE_ACL_DATA) return preamble[offset]; in HciGetPacketLengthForType()
38 return (((preamble[offset + 1]) << 8) | preamble[offset]); in HciGetPacketLengthForType()
/system/media/audio_utils/spdif/
DSPDIFEncoder.cpp218 uint16_t preamble[4]; in startDataBurst() local
226 preamble[0] = kSPDIFSync1; in startDataBurst()
227 preamble[1] = kSPDIFSync2; in startDataBurst()
228 preamble[2] = burstInfo; in startDataBurst()
229 preamble[3] = 0; // lengthCode - This will get set after the buffer is full. in startDataBurst()
230 writeBurstBufferShorts(preamble, 4); in startDataBurst()
/system/extras/memory_replay/
DNativeInfo.cpp103 void NativePrintInfo(const char* preamble) { in NativePrintInfo() argument
117 NativePrintf("%sNative RSS: %zu bytes %sMB\n", preamble, rss_bytes, buffer); in NativePrintInfo()
119 NativePrintf("%sNative VA Space: %zu bytes %sMB\n", preamble, va_bytes, buffer); in NativePrintInfo()
DNativeInfo.h21 void NativePrintInfo(const char* preamble);
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dh4_packetizer.cc30 const uint8_t* preamble) const { in HciGetPacketLengthForType()
42 size_t size = preamble[offset]; in HciGetPacketLengthForType()
44 size |= ((size_t)preamble[offset + 1]) << 8u; in HciGetPacketLengthForType()
47 size |= ((size_t)preamble[offset + 1] & 0x0fu) << 8u; in HciGetPacketLengthForType()
Dh4_packetizer.h85 const uint8_t* preamble) const;
/system/bt/btif/src/
Dbtif_debug_btsnoop.cc193 btsnooz_preamble_t preamble; in btif_debug_btsnoop_dump() local
194 preamble.version = BTSNOOZ_CURRENT_VERSION; in btif_debug_btsnoop_dump()
195 preamble.last_timestamp_ms = last_timestamp_ms; in btif_debug_btsnoop_dump()
196 ringbuffer_insert(ringbuffer, (uint8_t*)&preamble, in btif_debug_btsnoop_dump()
/system/bt/main/shim/
Dhelpers.h119 const std::vector<uint8_t>& preamble) { in MakeLegacyBtHdrPacket() argument
122 osi_calloc(packet_vector.size() + preamble.size() + sizeof(BT_HDR))); in MakeLegacyBtHdrPacket()
123 std::copy(preamble.begin(), preamble.end(), buffer->data); in MakeLegacyBtHdrPacket()
125 buffer->data + preamble.size()); in MakeLegacyBtHdrPacket()
126 buffer->len = preamble.size() + packet_vector.size(); in MakeLegacyBtHdrPacket()
Dacl.cc295 std::vector<uint8_t> preamble; in data_ready_callback() local
296 preamble.push_back(LowByte(handle_)); in data_ready_callback()
297 preamble.push_back(HighByte(handle_)); in data_ready_callback()
298 preamble.push_back(LowByte(length)); in data_ready_callback()
299 preamble.push_back(HighByte(length)); in data_ready_callback()
300 BT_HDR* p_buf = MakeLegacyBtHdrPacket(std::move(packet), preamble); in data_ready_callback()
/system/nfc/src/adaptation/
Ddebug_nfcsnoop.cc172 nfcsnooz_preamble_t preamble; in debug_nfcsnoop_dump() local
173 preamble.version = NFCSNOOZ_CURRENT_VERSION; in debug_nfcsnoop_dump()
174 preamble.last_timestamp_ms = last_timestamp_ms; in debug_nfcsnoop_dump()
175 ringbuffer_insert(ringbuffer, (uint8_t*)&preamble, in debug_nfcsnoop_dump()
/system/chre/chpp/
DREADME.md33 CHPP packets consist of a 2-byte preamble (packet start delimiter) and 8 bytes of header informatio…
37 - uint16_t preamble;
50preamble as the packet start delimiter. If the receiving side is not actively within a packet, it …
108 …e that is run over of the entire CHPP packet, i.e. anything between the preamble and the checksum …
DRELEASE_NOTES.md30 - Over-the-wire preamble has been corrected (byte shifting error)