Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/libs/binder/
DStatus.cpp109 int32_t header_size; in readFromParcel() local
110 status = parcel.readInt32(&header_size); in readFromParcel()
116 if (header_size < 0 || static_cast<size_t>(header_size) > header_avail) { in readFromParcel()
122 parcel.setDataPosition(header_start + header_size); in readFromParcel()
171 int32_t header_size; in readFromParcel() local
172 status = parcel.readInt32(&header_size); in readFromParcel()
178 if (header_size < 0 || static_cast<size_t>(header_size) > header_avail) { in readFromParcel()
184 parcel.setDataPosition(header_start + header_size); in readFromParcel()
/frameworks/base/libs/androidfw/
DChunkIterator.cpp87 const size_t header_size = dtohs(next_chunk_->headerSize); in VerifyNextChunk() local
89 if (header_size < sizeof(ResChunk_header)) { in VerifyNextChunk()
94 if (header_size > size) { in VerifyNextChunk()
104 if ((size | header_size) & 0x03U) { in VerifyNextChunk()
/frameworks/base/libs/androidfw/include/androidfw/
DChunk.h49 inline size_t header_size() const { return dtohs(device_chunk_->headerSize); } in header_size() function
53 return (header_size() >= MinSize) ? device_chunk_.convert<T>() : nullptr; in header()
57 return device_chunk_.offset(header_size()); in data_ptr()
60 inline size_t data_size() const { return size() - header_size(); } in data_size()
/frameworks/av/media/libmediametrics/
DMediaMetricsItem.cpp497 const uint32_t header_size = in writeToByteString() local
499 + sizeof(header_size) // header size in writeToByteString()
508 uint32_t size = header_size in writeToByteString()
531 || insert(header_size, &filling, buildmax) != NO_ERROR in writeToByteString()
571 uint32_t header_size; in readFromByteString() local
580 || extract(&header_size, &read, readend) != NO_ERROR in readFromByteString()
589 || header_size > size) { in readFromByteString()
595 if (pos > header_size) { in readFromByteString()
597 __func__, pos, header_size); in readFromByteString()
599 } else if (pos < header_size) { in readFromByteString()
[all …]
/frameworks/base/tools/aapt2/format/
DContainer.cpp112 const size_t header_size = file.ByteSizeLong(); in AddResFileEntry() local
113 const int header_padding = CalculatePaddingForAlignment(header_size); in AddResFileEntry()
116 coded_out.WriteLittleEndian64(kResFileEntryHeaderSize + header_size + header_padding + data_size + in AddResFileEntry()
120 coded_out.WriteLittleEndian32(header_size); in AddResFileEntry()
/frameworks/base/tools/aapt2/
Dformats.md37 | `4` | `header_size` | The size of the `header` field. …
39 | `header_size` | `header` | The serialized Protobuf message [aapt.pb.internal.CompiledFi…
/frameworks/base/services/core/java/com/android/server/pdb/
DPersistentDataBlockService.java547 int header_size = DIGEST_SIZE_BYTES + HEADER_SIZE; in formatPartitionLocked() local
548 ByteBuffer buf = ByteBuffer.allocate(header_size); in formatPartitionLocked()
557 int payload_size = (int) getBlockDeviceSize() - header_size; in formatPartitionLocked()
/frameworks/compile/mclinker/lib/LD/
DELFObjectWriter.cpp305 unsigned int header_size = sizeof(ElfXX_Shdr) * sectNum; in emitSectionHeader() local
307 pOutput.request(getLastStartOffset<SIZE>(pModule), header_size); in emitSectionHeader()
/frameworks/base/cmds/incidentd/src/
DWorkDirectory.cpp860 const int headerCount = report.header_size(); in get_args_from_report()