Home
last modified time | relevance | path

Searched refs:totalSize (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp38 int64_t voidSize(int64_t totalSize) { in voidSize() argument
39 if (totalSize < 2) { in voidSize()
42 if (totalSize < 9) { in voidSize()
43 return totalSize - 2; in voidSize()
45 return totalSize - 9; in voidSize()
52 total += (*it)->totalSize(); in childrenSum()
98 uint64_t WebmElement::totalSize() { in totalSize() function in android::WebmElement
105 size = totalSize(); in serialize()
113 size = totalSize(); in write()
214 EbmlVoid::EbmlVoid(uint64_t totalSize) in EbmlVoid() argument
[all …]
DWebmElement.h35 uint64_t totalSize();
113 EbmlVoid(uint64_t totalSize);
DWebmWriter.cpp309 uint64_t cuesSize = cues->totalSize(); in reset()
329 uint64_t totalSize = ::lseek(mFd, 0, SEEK_END); in reset() local
330 uint64_t segmentSize = totalSize - mSegmentDataStart; in reset()
/frameworks/av/media/libstagefright/rtsp/
DARTPAssembler.cpp77 size_t totalSize = 0; in MakeADTSCompoundFromAACFrames() local
81 totalSize += (*it)->size() + 7; in MakeADTSCompoundFromAACFrames()
84 sp<ABuffer> accessUnit = new ABuffer(totalSize); in MakeADTSCompoundFromAACFrames()
124 size_t totalSize = 0; in MakeCompoundFromPackets() local
127 totalSize += (*it)->size(); in MakeCompoundFromPackets()
130 sp<ABuffer> accessUnit = new ABuffer(totalSize); in MakeCompoundFromPackets()
DAAVCAssembler.cpp215 size_t totalSize = size - 2; in addFragmentedNALUnit() local
260 totalSize += size - 2; in addFragmentedNALUnit()
285 ++totalSize; in addFragmentedNALUnit()
287 sp<ABuffer> unit = new ABuffer(totalSize); in addFragmentedNALUnit()
308 unit->setRange(0, totalSize); in addFragmentedNALUnit()
322 size_t totalSize = 0; in submitAccessUnit() local
325 totalSize += 4 + (*it)->size(); in submitAccessUnit()
328 sp<ABuffer> accessUnit = new ABuffer(totalSize); in submitAccessUnit()
DAH263Assembler.cpp159 size_t totalSize = 0; in submitAccessUnit() local
164 totalSize += unit->size(); in submitAccessUnit()
168 sp<ABuffer> accessUnit = new ABuffer(totalSize); in submitAccessUnit()
DAAMRAssembler.cpp152 size_t totalSize = 0; in addPacket() local
177 totalSize += getFrameSize(mIsWide, (toc >> 3) & 0x0f); in addPacket()
186 sp<ABuffer> accessUnit = new ABuffer(totalSize); in addPacket()
/frameworks/av/media/libstagefright/
DNuCachedSource2.cpp48 size_t totalSize() const { in totalSize() function
328 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize()); in fetchInternal()
352 mCacheOffset + mCache->totalSize(), page->mData, kPageSize); in fetchInternal()
408 if (mFetching && mCache->totalSize() >= mHighwaterThresholdBytes) { in onFetch()
481 && mCacheOffset + mCache->totalSize() - mLastAccessPos in restartPrefetcherIfNecessary_l()
499 ALOGI("restarting prefetcher, totalSize = %zu", mCache->totalSize()); in restartPrefetcherIfNecessary_l()
516 && offset + size <= mCacheOffset + mCache->totalSize()) { in readAt()
556 return mCacheOffset + mCache->totalSize(); in cachedSize()
572 off64_t lastBytePosCached = mCacheOffset + mCache->totalSize(); in approxDataRemaining_l()
594 || offset >= (off64_t)(mCacheOffset + mCache->totalSize())) { in readInternal()
[all …]
DWAVExtractor.cpp149 size_t totalSize = U32_LE_AT(&header[4]); in init() local
152 size_t remainingSize = totalSize; in init()
DOggExtractor.cpp440 size_t totalSize = 0;; in readPage() local
442 totalSize += page->mLace[i]; in readPage()
457 return sizeof(header) + page->mNumSegments + totalSize; in readPage()
/frameworks/av/media/libmedia/
DICrypto.cpp122 size_t totalSize = 0; in decrypt() local
124 totalSize += subSamples[i].mNumBytesOfEncryptedData; in decrypt()
125 totalSize += subSamples[i].mNumBytesOfClearData; in decrypt()
128 data.writeInt32(totalSize); in decrypt()
129 data.write(srcPtr, totalSize); in decrypt()
247 size_t totalSize = data.readInt32(); in onTransact() local
248 void *srcData = malloc(totalSize); in onTransact()
249 data.read(srcData, totalSize); in onTransact()
264 dstPtr = malloc(totalSize); in onTransact()
287 CHECK_LE(result, static_cast<ssize_t>(totalSize)); in onTransact()
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/
DAesCtrDecryptorUnittest.cpp44 template <size_t totalSize>
50 uint8_t outputBuffer[totalSize] = {}; in attemptDecryptExpectingSuccess()
55 EXPECT_EQ(totalSize, bytesDecrypted); in attemptDecryptExpectingSuccess()
56 EXPECT_EQ(0, memcmp(outputBuffer, decrypted, totalSize)); in attemptDecryptExpectingSuccess()
/frameworks/av/media/img_utils/src/
DTiffWriter.cpp69 uint32_t totalSize = getTotalSize(); in write() local
76 if (mNamedIfds[i]->setStripOffset(totalSize) != OK) { in write()
80 totalSize += stripSize; in write()
81 WORD_ALIGN(totalSize); in write()
82 offsetVector.add(mNamedIfds.keyAt(i), totalSize); in write()
373 uint32_t totalSize = FILE_HEADER_SIZE; in getTotalSize() local
376 totalSize += ifd->getSize(); in getTotalSize()
379 return totalSize; in getTotalSize()
DDngUtils.cpp241 uint32_t totalSize = NUMBER_INT_ARGS * sizeof(uint32_t) + NUMBER_DOUBLE_ARGS * sizeof(double) + in addGainMap() local
244 err = mEndianOut.write(&totalSize, 0, 1); in addGainMap()
/frameworks/base/tools/aapt/
DStringPool.cpp452 const size_t totalSize = lenSize + encLenSize + in writeStringBlock() local
455 void* dat = (void*)pool->editData(preSize + strPos + totalSize); in writeStringBlock()
477 strPos += totalSize; in writeStringBlock()
499 const size_t totalSize = (N*sizeof(ResStringPool_span)) in writeStringBlock() local
503 uint8_t* dat = (uint8_t*)pool->editData(preSize + styPos + totalSize); in writeStringBlock()
517 styPos += totalSize; in writeStringBlock()
/frameworks/base/tests/CoreTests/android/core/
DHeapTest.java164 int totalSize = 0; in xxtestSoftRefPartialClean() local
166 while (i < junk.length && totalSize < 8 * 1024 * 1024) { in xxtestSoftRefPartialClean()
171 totalSize += r * 4; in xxtestSoftRefPartialClean()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestThreadManager.java217 int totalSize = data.length + LegacyCameraDevice.nativeGetJpegFooterSize();
218 totalSize = (totalSize + 3) & ~0x3; // round up to nearest octonibble
226 int dimen = (int) Math.ceil(Math.sqrt(totalSize));
232 LegacyCameraDevice.setSurfaceDimens(s, totalSize, /*height*/1);
233 LegacyCameraDevice.produceFrame(s, data, totalSize, /*height*/1,
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp479 size_t totalSize = 0; in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries() local
481 iterateOverNativeFiles(env, apkHandle, javaCpuAbi, sumFiles, &totalSize); in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries()
483 return totalSize; in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries()
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java456 long totalSize = rowStride * height + offset; in writeByteBuffer() local
457 if (capacity < totalSize) { in writeByteBuffer()
459 " is too small (must be larger than " + totalSize + ")"); in writeByteBuffer()
/frameworks/base/include/androidfw/
DBackupHelpers.h40 int totalSize; member
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java225 final long totalSize = stat.f_blocks * stat.f_bsize;
227 return new long[] { totalSize, availSize };
/frameworks/base/docs/html/training/articles/
Dperf-anr.jd109 long totalSize = 0;
111 totalSize += Downloader.downloadFile(urls[i]);
116 return totalSize;
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java820 int totalSize = 0; in extractRelevantValues() local
849 totalSize += INTEGER_BYTE_COUNT + keyBytes.length; in extractRelevantValues()
853 totalSize += INTEGER_BYTE_COUNT + valueBytes.length; in extractRelevantValues()
864 byte[] result = new byte[totalSize]; in extractRelevantValues()
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewController.java1082 private int calculateTranslate(int start, int startSize, int totalSize, float scale) { in calculateTranslate() argument
1096 int scaleFromEdge = Math.round((totalSize - totalSize * scale) / 2); in calculateTranslate()
1102 int blankSize = Math.round((totalSize * scale - startSize) / 2); in calculateTranslate()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp791 size_t totalSize = 0; in dequeueAccessUnitH264() local
827 size_t auSize = 4 * nals.size() + totalSize; in dequeueAccessUnitH264()
895 totalSize += nalSize; in dequeueAccessUnitH264()

12