Home
last modified time | relevance | path

Searched refs:headerSize (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/jni/
Dandroid_backup_BackupHelperDispatcher.cpp34 int headerSize; member
53 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize)); in readHeader_native()
54 if (amt != sizeof(flattenedHeader.headerSize)) { in readHeader_native()
58 int remainingHeader = flattenedHeader.headerSize - sizeof(flattenedHeader.headerSize); in readHeader_native()
60 if (flattenedHeader.headerSize < (int)sizeof(chunk_header_v1)) { in readHeader_native()
61 ALOGW("Skipping unknown header: %d bytes", flattenedHeader.headerSize); in readHeader_native()
70 sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize)); in readHeader_native()
75 remainingHeader -= sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize); in readHeader_native()
79 flattenedHeader.headerSize); in readHeader_native()
89 ALOGD(" headerSize=%d", flattenedHeader.headerSize); in readHeader_native()
[all …]
/frameworks/ex/framesequence/jni/
DRegistry.cpp37 int headerSize = gHeaderBytesRequired; in Find() local
38 char header[headerSize]; in Find()
39 headerSize = stream->peek(header, headerSize); in Find()
41 if (headerSize >= registry->mImpl.requiredHeaderBytes in Find()
42 && registry->mImpl.checkHeader(header, headerSize)) { in Find()
/frameworks/rs/
DrsFileA3D.cpp117 uint64_t headerSize = 0; in load() local
118 if (lengthRemaining < sizeof(headerSize)) { in load()
122 memcpy(&headerSize, localData, sizeof(headerSize)); in load()
123 localData += sizeof(headerSize); in load()
124 lengthRemaining -= sizeof(headerSize); in load()
126 if (lengthRemaining < headerSize) { in load()
134 localData += headerSize; in load()
135 lengthRemaining -= headerSize; in load()
169 uint64_t headerSize = 0; in load() local
170 len = fread(&headerSize, 1, sizeof(headerSize), f); in load()
[all …]
/frameworks/native/opengl/libs/EGL/
Degl_cache.cpp220 size_t headerSize = cacheFileHeaderSize; in saveBlobCacheLocked() local
245 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked()
256 status_t err = mBlobCache->flatten(buf + headerSize, cacheSize); in saveBlobCacheLocked()
269 *crc = crc32c(buf + headerSize, cacheSize); in saveBlobCacheLocked()
288 size_t headerSize = cacheFileHeaderSize; in loadBlobCacheLocked() local
324 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked()
331 if (crc32c(buf + headerSize, cacheSize) != *crc) { in loadBlobCacheLocked()
337 status_t err = mBlobCache->unflatten(buf + headerSize, cacheSize); in loadBlobCacheLocked()
/frameworks/av/media/libstagefright/
DAACExtractor.cpp95 static size_t getAdtsFrameLength(const sp<DataSource> &source, off64_t offset, size_t* headerSize) { in getAdtsFrameLength() argument
128 if (headerSize != NULL) { in getAdtsFrameLength()
129 *headerSize = headSize; in getAdtsFrameLength()
301 size_t frameSize, frameSizeWithoutHeader, headerSize; in read() local
302 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read()
312 frameSizeWithoutHeader = frameSize - headerSize; in read()
313 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp106 const uint16_t headerSize = dtohs(chunk->headerSize); in validate_chunk() local
109 if (headerSize >= minSize) { in validate_chunk()
110 if (headerSize <= size) { in validate_chunk()
111 if (((headerSize|size)&0x3) == 0) { in validate_chunk()
120 name, (int)size, (int)headerSize); in validate_chunk()
124 name, size, headerSize); in validate_chunk()
128 name, headerSize); in validate_chunk()
470 h->header.headerSize = dtohs(mHeader->header.headerSize); in setTo()
480 if (mHeader->header.headerSize > mHeader->header.size in setTo()
483 (int)mHeader->header.headerSize, (int)mHeader->header.size, (int)size); in setTo()
[all …]
DTypeWrappers.cpp39 reinterpret_cast<uintptr_t>(type) + dtohs(type->header.headerSize)); in operator *()
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp29 t.header.headerSize = sizeof(t); in createTypeData()
34 t.entriesStart = t.header.headerSize + sizeof(offsets); in createTypeData()
/frameworks/compile/libbcc/lib/Renderscript/
DRSInfoReader.cpp203 if ((header->headerSize != sizeof(rsinfo::Header)) || in ReadFromFile()
216 if (((header->headerSize + header->strPoolSize) > filesize) || in ReadFromFile()
248 ::memcpy(result->mStringPool, data + result->mHeader.headerSize, in ReadFromFile()
DRSInfo.cpp97 mHeader.headerSize = sizeof(mHeader); in RSInfo()
125 mHeader.headerSize + in layout()
153 ALOGV("\tHeader size: %u", mHeader.headerSize); in dump()
/frameworks/compile/libbcc/include/bcc/Renderscript/
DRSInfo.h74 uint16_t headerSize; member
/frameworks/base/tools/aapt/
DXMLNode.cpp1089 header.header.headerSize = htods(sizeof(header)); in flatten()
1103 idsHeader->headerSize = htods(sizeof(*idsHeader)); in flatten()
1454 node.header.headerSize = htods(sizeof(node)); in flatten_node()
DStringPool.cpp548 header->header.headerSize = htods(sizeof(*header)); in writeStringBlock()
DResourceTable.cpp2909 header->header.headerSize = htods(sizeof(*header)); in flatten()
2979 tsHeader->header.headerSize = htods(sizeof(*tsHeader)); in flatten()
3071 tHeader->header.headerSize = htods(sizeof(*tHeader)); in flatten()
3175 header.header.headerSize = htods(sizeof(header)); in flatten()
3233 libHeader->header.headerSize = htods(sizeof(*libHeader)); in flattenLibraryTable()
/frameworks/base/core/java/android/os/
DParcel.java1519 int headerSize = readInt(); in readExceptionCode() local
1520 if (headerSize == 0) { in readExceptionCode()
/frameworks/base/include/androidfw/
DResourceTypes.h200 uint16_t headerSize; member
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp686 size_t headerSize = protection_absent ? 7 : 9; in dequeueAccessUnitAAC() local