Home
last modified time | relevance | path

Searched refs:totalSize (Results 1 – 25 of 38) 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.cpp277 uint64_t cuesSize = cues->totalSize(); in reset()
297 uint64_t totalSize = ::lseek(mFd, 0, SEEK_END); in reset() local
298 uint64_t segmentSize = totalSize - mSegmentDataStart; in reset()
/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()
601 || 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()
/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/libmedia/
DICrypto.cpp124 size_t totalSize = 0; in decrypt() local
126 totalSize += subSamples[i].mNumBytesOfEncryptedData; in decrypt()
127 totalSize += subSamples[i].mNumBytesOfClearData; in decrypt()
130 data.writeInt32(totalSize); in decrypt()
282 size_t totalSize = data.readInt32(); in onTransact() local
300 dstPtr = malloc(totalSize); in onTransact()
306 if (offset + totalSize > sharedBuffer->size()) { in onTransact()
328 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()
372 uint32_t totalSize = FILE_HEADER_SIZE; in getTotalSize() local
375 totalSize += ifd->getSize(); in getTotalSize()
378 return totalSize; in getTotalSize()
DDngUtils.cpp245 uint32_t totalSize = NUMBER_INT_ARGS * sizeof(uint32_t) + NUMBER_DOUBLE_ARGS * sizeof(double) + in addGainMap() local
248 err = mEndianOut.write(&totalSize, 0, 1); in addGainMap()
354 uint32_t totalSize = (NUMBER_CENTER_ARGS + NUMBER_COEFFS) * sizeof(double) + sizeof(uint32_t); in addWarpRectilinear() local
356 err = mEndianOut.write(&totalSize, 0, 1); in addWarpRectilinear()
/frameworks/base/tools/aapt/
DStringPool.cpp470 const size_t totalSize = lenSize + encLenSize + in writeStringBlock() local
473 void* dat = (void*)pool->editData(preSize + strPos + totalSize); in writeStringBlock()
495 strPos += totalSize; in writeStringBlock()
517 const size_t totalSize = (N*sizeof(ResStringPool_span)) in writeStringBlock() local
521 uint8_t* dat = (uint8_t*)pool->editData(preSize + styPos + totalSize); in writeStringBlock()
535 styPos += totalSize; in writeStringBlock()
/frameworks/base/tools/aapt2/
DStringPool.cpp319 const size_t totalSize = encodedLengthUnits<char>(entry->value.size()) in flatten() local
323 char* data = out->nextBlock<char>(totalSize); in flatten()
332 const size_t totalSize = encodedLengthUnits<char16_t>(entry->value.size()) in flatten() local
335 char16_t* data = out->nextBlock<char16_t>(totalSize); in flatten()
/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.java223 int totalSize = data.length + LegacyCameraDevice.nativeGetJpegFooterSize();
224 totalSize = (totalSize + 3) & ~0x3; // round up to nearest octonibble
232 int dimen = (int) Math.ceil(Math.sqrt(totalSize));
238 LegacyCameraDevice.setSurfaceDimens(s, totalSize, /*height*/1);
239 LegacyCameraDevice.produceFrame(s, data, totalSize, /*height*/1,
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp502 size_t totalSize = 0; in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries() local
504 iterateOverNativeFiles(env, apkHandle, javaCpuAbi, sumFiles, &totalSize); in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries()
506 return totalSize; in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries()
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java471 long totalSize = ((long) rowStride) * height + offset; in writeByteBuffer() local
472 if (capacity < totalSize) { in writeByteBuffer()
474 " is too small (must be larger than " + totalSize + ")"); in writeByteBuffer()
/frameworks/base/include/androidfw/
DBackupHelpers.h42 int totalSize; member
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageMeasurement.java80 public long totalSize; field in StorageMeasurement.MeasurementDetails
398 details.totalSize = file.getTotalSpace(); in measureExactStorage()
/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/support/design/src/android/support/design/internal/
DNavigationMenuPresenter.java385 for (int i = 0, totalSize = mMenu.getVisibleItems().size(); i < totalSize; i++) { in prepareMenuItems()
/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()

12