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.cpp204 uint16_t preamble[4]; in startDataBurst() local
212 preamble[0] = kSPDIFSync1; in startDataBurst()
213 preamble[1] = kSPDIFSync2; in startDataBurst()
214 preamble[2] = burstInfo; in startDataBurst()
215 preamble[3] = 0; // lengthCode - This will get set after the buffer is full. in startDataBurst()
216 writeBurstBufferShorts(preamble, 4); in startDataBurst()
/system/extras/memory_replay/
DNativeInfo.cpp64 void PrintNativeInfo(const char* preamble) { in PrintNativeInfo() argument
74 printf("%sNative PSS: %zu bytes %0.2fMB\n", preamble, pss_bytes, pss_bytes/(1024*1024.0)); in PrintNativeInfo()
75 printf("%sNative VA Space: %zu bytes %0.2fMB\n", preamble, va_bytes, va_bytes/(1024*1024.0)); in PrintNativeInfo()
DNativeInfo.h24 void PrintNativeInfo(const char* preamble);
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dhci_packetizer.cc40 size_t HciPacketizer::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()
Dh4_packetizer.cc41 size_t H4Packetizer::HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType() argument
51 if (type != hci::PacketType::ACL) return preamble[offset]; in HciGetPacketLengthForType()
52 return (((preamble[offset + 1]) << 8) | preamble[offset]); in HciGetPacketLengthForType()
Dhci_packetizer.h55 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble);
Dh4_packetizer.h70 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* 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()