Home
last modified time | relevance | path

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

/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.cpp206 uint16_t preamble[4]; in startDataBurst() local
214 preamble[0] = kSPDIFSync1; in startDataBurst()
215 preamble[1] = kSPDIFSync2; in startDataBurst()
216 preamble[2] = burstInfo; in startDataBurst()
217 preamble[3] = 0; // lengthCode - This will get set after the buffer is full. in startDataBurst()
218 writeBurstBufferShorts(preamble, 4); in startDataBurst()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dhci_packetizer.cc39 size_t HciPacketizer::HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType() argument
49 if (type != hci::PacketType::ACL) return preamble[offset]; in HciGetPacketLengthForType()
50 return (((preamble[offset + 1]) << 8) | preamble[offset]); in HciGetPacketLengthForType()
Dh4_packetizer.cc40 size_t H4Packetizer::HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType() argument
50 if (type != hci::PacketType::ACL) return preamble[offset]; in HciGetPacketLengthForType()
51 return (((preamble[offset + 1]) << 8) | preamble[offset]); in HciGetPacketLengthForType()
Dhci_packetizer.h55 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble);
Dh4_packetizer.h73 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble);
/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/btif/src/
Dbtif_debug_btsnoop.cc188 btsnooz_preamble_t preamble; in btif_debug_btsnoop_dump() local
189 preamble.version = BTSNOOZ_CURRENT_VERSION; in btif_debug_btsnoop_dump()
190 preamble.last_timestamp_ms = last_timestamp_ms; in btif_debug_btsnoop_dump()
191 ringbuffer_insert(ringbuffer, (uint8_t*)&preamble, in btif_debug_btsnoop_dump()
/system/nfc/src/adaptation/
Ddebug_nfcsnoop.cc149 nfcsnooz_preamble_t preamble; in debug_nfcsnoop_dump() local
150 preamble.version = NFCSNOOZ_CURRENT_VERSION; in debug_nfcsnoop_dump()
151 preamble.last_timestamp_ms = last_timestamp_ms; in debug_nfcsnoop_dump()
152 ringbuffer_insert(ringbuffer, (uint8_t*)&preamble, in debug_nfcsnoop_dump()