Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/
Dandroid_backup_BackupHelperDispatcher.cpp35 int headerSize; member
54 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize)); in readHeader_native()
55 if (amt != sizeof(flattenedHeader.headerSize)) { in readHeader_native()
59 int remainingHeader = flattenedHeader.headerSize - sizeof(flattenedHeader.headerSize); in readHeader_native()
61 if (flattenedHeader.headerSize < (int)sizeof(chunk_header_v1)) { in readHeader_native()
62 ALOGW("Skipping unknown header: %d bytes", flattenedHeader.headerSize); in readHeader_native()
71 sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize)); in readHeader_native()
76 remainingHeader -= sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize); in readHeader_native()
80 flattenedHeader.headerSize); in readHeader_native()
90 ALOGD(" headerSize=%d", flattenedHeader.headerSize); in readHeader_native()
[all …]
/frameworks/rs/
DrsFileA3D.cpp102 uint64_t headerSize = 0; in load() local
103 if (lengthRemaining < sizeof(headerSize)) { in load()
107 memcpy(&headerSize, localData, sizeof(headerSize)); in load()
108 localData += sizeof(headerSize); in load()
109 lengthRemaining -= sizeof(headerSize); in load()
111 if (lengthRemaining < headerSize) { in load()
119 localData += headerSize; in load()
120 lengthRemaining -= headerSize; in load()
154 uint64_t headerSize = 0; in load() local
155 len = fread(&headerSize, 1, sizeof(headerSize), f); in load()
[all …]
/frameworks/ex/framesequence/jni/
DRegistry.cpp46 int headerSize = gHeaderBytesRequired; in Find() local
47 char header[headerSize]; in Find()
48 headerSize = stream->peek(header, headerSize); in Find()
50 if (headerSize >= registry->mImpl.requiredHeaderBytes in Find()
51 && registry->mImpl.checkHeader(header, headerSize)) { in Find()
/frameworks/native/opengl/libs/EGL/
DFileBlobCache.cpp55 size_t headerSize = cacheFileHeaderSize; in FileBlobCache() local
92 size_t cacheSize = fileSize - headerSize; in FileBlobCache()
99 if (crc32c(buf + headerSize, cacheSize) != *crc) { in FileBlobCache()
105 int err = unflatten(buf + headerSize, cacheSize); in FileBlobCache()
122 size_t headerSize = cacheFileHeaderSize; in writeToFile() local
147 size_t fileSize = headerSize + cacheSize; in writeToFile()
158 int err = flatten(buf + headerSize, cacheSize); in writeToFile()
171 *crc = crc32c(buf + headerSize, cacheSize); in writeToFile()
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache.cpp166 size_t headerSize = cacheFileHeaderSize; in saveBlobCacheLocked() local
189 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked()
199 int err = mBlobCache->flatten(buf + headerSize, cacheSize); in saveBlobCacheLocked()
211 *crc = crc32c(buf + headerSize, cacheSize); in saveBlobCacheLocked()
229 size_t headerSize = cacheFileHeaderSize; in loadBlobCacheLocked() local
264 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked()
271 if (crc32c(buf + headerSize, cacheSize) != *crc) { in loadBlobCacheLocked()
277 int err = mBlobCache->unflatten(buf + headerSize, cacheSize); in loadBlobCacheLocked()
/frameworks/av/media/extractors/aac/
DAACExtractor.cpp92 static size_t getAdtsFrameLength(DataSourceHelper *source, off64_t offset, size_t* headerSize) { in getAdtsFrameLength() argument
125 if (headerSize != NULL) { in getAdtsFrameLength()
126 *headerSize = headSize; in getAdtsFrameLength()
289 size_t frameSize, frameSizeWithoutHeader, headerSize; in read() local
290 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read()
300 frameSizeWithoutHeader = frameSize - headerSize; in read()
301 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
/frameworks/base/tools/aapt2/format/binary/
DResChunkPullParser.cpp35 util::DeviceToHost16(header->type), util::DeviceToHost16(header->headerSize), in ChunkHeaderDump()
64 if (util::DeviceToHost16(current_chunk_->headerSize) < sizeof(ResChunk_header)) { in Next()
69 util::DeviceToHost16(current_chunk_->headerSize)) { in Next()
DResChunkPullParser.h72 if (util::DeviceToHost16(chunk->headerSize) < MinSize) { in ConvertTo()
79 return reinterpret_cast<const uint8_t*>(chunk) + util::DeviceToHost16(chunk->headerSize); in GetChunkData()
83 return util::DeviceToHost32(chunk->size) - util::DeviceToHost16(chunk->headerSize); in GetChunkDataLen()
DChunkWriter.h41 header_->headerSize = util::HostToDevice16(sizeof(T)); in StartChunk()
81 header_->headerSize = util::HostToDevice16(sizeof(android::ResChunk_header)); in StartChunk()
DBinaryResourceParser.cpp309 util::DeviceToHost16(type_spec->header.headerSize); in ParseTypeSpec()
318 reinterpret_cast<uintptr_t>(type_spec) + util::DeviceToHost16(type_spec->header.headerSize)); in ParseTypeSpec()
488 ((uint8_t *)policy_header) + util::DeviceToHost32(policy_header->header.headerSize)); in ParseOverlayable()
/frameworks/av/media/libstagefright/foundation/tests/OpusHeader/
DOpusHeaderTest.cpp108 int32_t headerSize = WriteOpusHeaders(writtenHeader, kOpusSampleRate, headerData, in TEST_P() local
110 ASSERT_GT(headerSize, 0) << "failed to generate Opus header"; in TEST_P()
111 ASSERT_LE(headerSize, kMaxOpusHeaderSize) in TEST_P()
117 ostrm.write(reinterpret_cast<char *>(headerData), headerSize); in TEST_P()
134 ASSERT_EQ(fileSize, headerSize) in TEST_P()
146 bool status = GetOpusHeaderBuffers(headerData, headerSize, &opusHeadBuf, &opusHeadSize, in TEST_P()
187 ASSERT_EQ(headerSize, kOpusHeaderChannelMapOffset + writtenHeader.channels) in TEST_P()
/frameworks/av/media/libstagefright/foundation/
DOpusHeader.cpp218 int headerSize = WriteOpusHeader(header, inputSampleRate, output + headerLen, in WriteOpusHeaders() local
220 if (headerSize < 0) { in WriteOpusHeaders()
224 headerLen += headerSize; in WriteOpusHeaders()
227 uint64_t length = headerSize; in WriteOpusHeaders()
/frameworks/base/libs/androidfw/
DTypeWrappers.cpp28 reinterpret_cast<uintptr_t>(data) + dtohs(data->header.headerSize)); in TypeVariant()
61 reinterpret_cast<uintptr_t>(type) + dtohs(type->header.headerSize)); in operator *()
DResourceTypes.cpp113 const uint16_t headerSize = dtohs(chunk->headerSize); in validate_chunk() local
116 if (headerSize >= minSize) { in validate_chunk()
117 if (headerSize <= size) { in validate_chunk()
118 if (((headerSize|size)&0x3) == 0) { in validate_chunk()
127 name, (int)size, (int)headerSize); in validate_chunk()
131 name, size, headerSize); in validate_chunk()
135 name, headerSize); in validate_chunk()
495 h->header.headerSize = dtohs(mHeader->header.headerSize); in setTo()
505 if (mHeader->header.headerSize > mHeader->header.size in setTo()
508 (int)mHeader->header.headerSize, (int)mHeader->header.size, (int)size); in setTo()
[all …]
DChunkIterator.cpp76 const size_t header_size = dtohs(next_chunk_->headerSize); in VerifyNextChunk()
DLoadedArsc.cpp107 const size_t offsets_offset = dtohs(header->header.headerSize); in VerifyResTableType()
252 const size_t offsets_offset = dtohs(type_chunk->header.headerSize); in GetEntryOffset()
377 reinterpret_cast<const uint8_t*>(type) + dtohs(type->header.headerSize)); in FindEntryByName()
433 if (header->header.headerSize >= sizeof(ResTable_package)) { in Load()
/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/av/drm/mediadrm/plugins/clearkey/default/
DInitDataParser.cpp87 size_t headerSize = sizeof(expectedSize) + sizeof(psshIdentifier) + in parsePssh() local
89 if (initData.size() < headerSize) { in parsePssh()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp306 size_t headerSize = 0; in parseAC4SyncFrame() local
313 headerSize += 2; in parseAC4SyncFrame()
316 headerSize += 2; in parseAC4SyncFrame()
319 headerSize += 3; in parseAC4SyncFrame()
326 frameSize += headerSize; in parseAC4SyncFrame()
1167 size_t headerSize; in dequeueAccessUnitAAC() member
1247 size_t headerSize = protection_absent ? 7 : 9; in dequeueAccessUnitAAC() local
1253 .headerSize = headerSize, in dequeueAccessUnitAAC()
1269 mSampleDecryptor->processAAC(frame.headerSize, in dequeueAccessUnitAAC()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp155 int headerSize = WriteOpusHeader(header, samplerate, (uint8_t*)header_data, in audioTrack() local
158 if (headerSize < 0) { in audioTrack()
165 codecPrivateSize += headerSize; in audioTrack()
171 memcpy(codecPrivateData + off, (uint8_t*)header_data, headerSize); in audioTrack()
/frameworks/base/libs/androidfw/include/androidfw/
DChunk.h49 inline size_t header_size() const { return dtohs(device_chunk_->headerSize); } in header_size()
/frameworks/base/tools/aapt/
DXMLNode.cpp1109 header.header.headerSize = htods(sizeof(header)); in flatten()
1123 idsHeader->headerSize = htods(sizeof(*idsHeader)); in flatten()
1485 node.header.headerSize = htods(sizeof(node)); in flatten_node()
DStringPool.cpp555 header->header.headerSize = htods(sizeof(*header)); in writeStringBlock()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp2205 size_t headerSize = protection_absent ? 7 : 9; in extractAndQueueAccessUnits() local
2208 mSeqNumber, protection_absent, adtsHeader[1], headerSize); in extractAndQueueAccessUnits()
2211 sampleDecryptor->processAAC(headerSize, adtsFrame, aac_frame_length); in extractAndQueueAccessUnits()
/frameworks/base/tools/aapt2/
DStringPool.cpp440 header->header.headerSize = util::HostToDevice16(sizeof(*header)); in Flatten()

12