Home
last modified time | relevance | path

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

/system/core/fastboot/
Dudp.cpp50 constexpr size_t kHeaderSize = 4; variable
79 uint8_t bytes_[kHeaderSize];
136 size_t max_data_length_ = kMinPacketSize - kHeaderSize;
199 max_data_length_ = packet_size - kHeaderSize; in InitializeProtocol()
261 if (!socket_->Send({{header->bytes(), kHeaderSize}, {tx_data, tx_length}})) { in SendSinglePacketHelper()
276 } else if (bytes < static_cast<ssize_t>(kHeaderSize)) { in SendSinglePacketHelper()
290 error->append(rx_packet_.data() + kHeaderSize, rx_packet_.data() + bytes); in SendSinglePacketHelper()
292 total_data_bytes += bytes - kHeaderSize; in SendSinglePacketHelper()
293 size_t rx_data_bytes = std::min<size_t>(bytes - kHeaderSize, rx_length); in SendSinglePacketHelper()
295 memcpy(rx_data, rx_packet_.data() + kHeaderSize, rx_data_bytes); in SendSinglePacketHelper()
/system/chre/platform/tinysys/
Dauthentication.cc33 constexpr uint32_t kHeaderSize = 0x1000; variable
159 constexpr size_t kDataSize = kHeaderSize - kDataOffset; in authenticate()
200 auto image = static_cast<const uint8_t *>(head) + kHeaderSize; in hasCorrectHash()
233 if (appBinaryLen <= kHeaderSize) { in authenticateBinary()
242 header->headerInfo.binaryLength + kHeaderSize; in authenticateBinary()
266 reinterpret_cast<uintptr_t>(binary) + kHeaderSize); in authenticateBinary()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp376 constexpr size_t kHeaderSize = sizeof(version) + sizeof(siginfo_t) + sizeof(ucontext_t); in debuggerd_dispatch_pseudothread() local
385 kHeaderSize + sizeof(thread_info->process_info), in debuggerd_dispatch_pseudothread()
389 kHeaderSize + offsetof(debugger_process_info, MEMBER2), \ in debuggerd_dispatch_pseudothread()
409 sizeof(CrashInfoHeader) + sizeof(CrashInfoDataStatic) == kHeaderSize + sizeof(uintptr_t), in debuggerd_dispatch_pseudothread()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dapp_manager.cc375 constexpr size_t kHeaderSize = 2; in GetEncodedSizeFromFilterResults() local
382 total_encoded_size += single_encoded_size + kHeaderSize; in GetEncodedSizeFromFilterResults()