Home
last modified time | relevance | path

Searched refs:headerSize (Results 1 – 25 of 32) 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.cpp60 size_t headerSize = cacheFileHeaderSize; in FileBlobCache() local
97 size_t cacheSize = fileSize - headerSize; in FileBlobCache()
104 if (crc32c(buf + headerSize, cacheSize) != *crc) { in FileBlobCache()
110 int err = unflatten(buf + headerSize, cacheSize); in FileBlobCache()
129 size_t headerSize = cacheFileHeaderSize; in writeToFile() local
154 size_t fileSize = headerSize + cacheSize; in writeToFile()
165 int err = flatten(buf + headerSize, cacheSize); in writeToFile()
178 *crc = crc32c(buf + headerSize, cacheSize); in writeToFile()
/frameworks/base/tools/aapt2/format/binary/
DResChunkPullParser.cpp37 android::util::DeviceToHost16(header->headerSize), in ChunkHeaderDump()
66 if (android::util::DeviceToHost16(current_chunk_->headerSize) < sizeof(ResChunk_header)) { in Next()
71 android::util::DeviceToHost16(current_chunk_->headerSize)) { in Next()
DResChunkPullParser.h72 if (android::util::DeviceToHost16(chunk->headerSize) < MinSize) { in ConvertTo()
79 return reinterpret_cast<const uint8_t*>(chunk) + android::util::DeviceToHost16(chunk->headerSize); in GetChunkData()
84 android::util::DeviceToHost16(chunk->headerSize); in GetChunkDataLen()
DChunkWriter.h40 header_->headerSize = android::util::HostToDevice16(sizeof(T)); in StartChunk()
80 header_->headerSize = android::util::HostToDevice16(sizeof(android::ResChunk_header)); in StartChunk()
DBinaryResourceParser.cpp325 android::util::DeviceToHost16(type_spec->header.headerSize); in ParseTypeSpec()
335 android::util::DeviceToHost16(type_spec->header.headerSize)); in ParseTypeSpec()
484 android::util::DeviceToHost32(policy_header->header.headerSize)); in ParseOverlayable()
525 ((uint8_t*)header) + android::util::DeviceToHost32(header->header.headerSize)); in ParseStagedAliases()
/frameworks/av/media/module/extractors/aac/
DAACExtractor.cpp94 static size_t getAdtsFrameLength(DataSourceHelper *source, off64_t offset, size_t* headerSize) { in getAdtsFrameLength() argument
127 if (headerSize != NULL) { in getAdtsFrameLength()
128 *headerSize = headSize; in getAdtsFrameLength()
308 size_t frameSize, frameSizeWithoutHeader, headerSize; in read() local
309 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read()
319 frameSizeWithoutHeader = frameSize - headerSize; in read()
320 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
/frameworks/av/media/module/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/base/media/java/android/media/
DMediaMetrics.java667 final int headerSize = buffer.getInt(); in toBundle() local
671 if (totalSize < 0 || headerSize < 0) { in toBundle()
688 if (headerRead != headerSize) { in toBundle()
691 + " headerRead:" + headerRead + " != headerSize:" + headerSize); in toBundle()
696 if (headerRead > headerSize) { in toBundle()
699 + " headerRead:" + headerRead + " > headerSize:" + headerSize); in toBundle()
700 } else if (headerRead < headerSize) { in toBundle()
701 buffer.position(headerSize); in toBundle()
712 bundle.putInt(BUNDLE_HEADER_SIZE, headerSize); in toBundle()
/frameworks/av/media/module/foundation/
DOpusHeader.cpp222 int headerSize = WriteOpusHeader(header, inputSampleRate, output + headerLen, in WriteOpusHeaders() local
224 if (headerSize < 0) { in WriteOpusHeaders()
228 headerLen += headerSize; in WriteOpusHeaders()
231 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.cpp121 const uint16_t headerSize = dtohs(chunk->headerSize); in validate_chunk() local
124 if (headerSize >= minSize) { in validate_chunk()
125 if (headerSize <= size) { in validate_chunk()
126 if (((headerSize|size)&0x3) == 0) { in validate_chunk()
135 name, (int)size, (int)headerSize); in validate_chunk()
139 name, size, headerSize); in validate_chunk()
143 name, headerSize); in validate_chunk()
532 h->header.headerSize = dtohs(mHeader->header.headerSize); in setTo()
542 if (mHeader->header.headerSize > mHeader->header.size in setTo()
545 (int)mHeader->header.headerSize, (int)mHeader->header.size, (int)size); in setTo()
[all …]
DChunkIterator.cpp87 const size_t header_size = dtohs(next_chunk_->headerSize); in VerifyNextChunk()
DLoadedArsc.cpp89 const size_t offsets_offset = dtohs(header->header.headerSize); in VerifyResTableType()
252 const auto offsets = type_chunk.offset(dtohs(type_chunk->header.headerSize)); in GetEntryOffset()
396 const auto entry_offsets = type.offset(dtohs(type->header.headerSize)); in FindEntryByName()
485 if (header->header.headerSize >= sizeof(ResTable_package)) { in Load()
/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/base/libs/androidfw/tests/
DTypeWrappers_test.cpp33 t.header.headerSize = sizeof(t); in createTypeTable()
50 uint8_t* p_offsets = data + t.header.headerSize; in createTypeTable()
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DInitDataParser.cpp89 size_t headerSize = sizeof(expectedSize) + sizeof(psshIdentifier) + sizeof(psshVersion1) + in parsePssh() local
91 if (initData.size() < headerSize) { in parsePssh()
/frameworks/base/libs/androidfw/include/androidfw/
DChunk.h49 inline size_t header_size() const { return dtohs(device_chunk_->headerSize); } in header_size()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp168 int headerSize = WriteOpusHeader(header, samplerate, (uint8_t*)header_data, in audioTrack() local
171 if (headerSize < 0) { in audioTrack()
178 codecPrivateSize += headerSize; in audioTrack()
184 memcpy(codecPrivateData + off, (uint8_t*)header_data, headerSize); in audioTrack()
/frameworks/av/media/module/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()
1773 size_t headerSize; in dequeueAccessUnitAAC() member
1853 size_t headerSize = protection_absent ? 7 : 9; in dequeueAccessUnitAAC() local
1859 .headerSize = headerSize, in dequeueAccessUnitAAC()
1875 mSampleDecryptor->processAAC(frame.headerSize, in dequeueAccessUnitAAC()
/frameworks/base/services/core/java/com/android/server/am/
DStackTracesDumpHelper.java552 int headerSize = writeUptimeStartHeaderForPid(pid, fileName); in dumpJavaTracesTombstoned() local
560 if ((size - headerSize) < JAVA_DUMP_MINIMUM_SIZE) { in dumpJavaTracesTombstoned()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp2208 size_t headerSize = protection_absent ? 7 : 9; in extractAndQueueAccessUnits() local
2211 mSeqNumber, protection_absent, adtsHeader[1], headerSize); in extractAndQueueAccessUnits()
2214 sampleDecryptor->processAAC(headerSize, adtsFrame, aac_frame_length); in extractAndQueueAccessUnits()
/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()

12