/frameworks/av/media/libmedia/ |
H A D | ICrypto.cpp | 121 size_t totalSize = 0; local 123 totalSize += subSamples[i].mNumBytesOfEncryptedData; 124 totalSize += subSamples[i].mNumBytesOfClearData; 127 data.writeInt32(totalSize); 128 data.write(srcPtr, totalSize); 237 size_t totalSize = data.readInt32(); local 238 void *srcData = malloc(totalSize); 239 data.read(srcData, totalSize); 254 dstPtr = malloc(totalSize); 277 CHECK_LE(result, static_cast<ssize_t>(totalSize)); [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPAssembler.cpp | 77 size_t totalSize = 0; local 81 totalSize += (*it)->size() + 7; 84 sp<ABuffer> accessUnit = new ABuffer(totalSize); 124 size_t totalSize = 0; local 127 totalSize += (*it)->size(); 130 sp<ABuffer> accessUnit = new ABuffer(totalSize);
|
H A D | AAVCAssembler.cpp | 215 size_t totalSize = size - 2; local 260 totalSize += size - 2; 283 // Leave room for the header. So far totalSize did not include the 285 ++totalSize; 287 sp<ABuffer> unit = new ABuffer(totalSize); 308 unit->setRange(0, totalSize); 322 size_t totalSize = 0; local 325 totalSize += 4 + (*it)->size(); 328 sp<ABuffer> accessUnit = new ABuffer(totalSize);
|
H A D | AH263Assembler.cpp | 159 size_t totalSize = 0; local 164 totalSize += unit->size(); 168 sp<ABuffer> accessUnit = new ABuffer(totalSize);
|
H A D | AAMRAssembler.cpp | 152 size_t totalSize = 0; local 177 totalSize += getFrameSize(mIsWide, (toc >> 3) & 0x0f); 186 sp<ABuffer> accessUnit = new ABuffer(totalSize);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 38 int64_t voidSize(int64_t totalSize) { argument 39 if (totalSize < 2) { 42 if (totalSize < 9) { 43 return totalSize - 2; 45 return totalSize - 9; 52 total += (*it)->totalSize(); 98 uint64_t WebmElement::totalSize() { function in class:android::WebmElement 105 size = totalSize(); 113 size = totalSize(); 214 EbmlVoid::EbmlVoid(uint64_t totalSize) argument [all...] |
H A D | WebmElement.h | 35 uint64_t totalSize(); 113 EbmlVoid(uint64_t totalSize);
|
H A D | WebmWriter.cpp | 309 uint64_t cuesSize = cues->totalSize(); 329 uint64_t totalSize = ::lseek(mFd, 0, SEEK_END); local 330 uint64_t segmentSize = totalSize - mSegmentDataStart;
|
/frameworks/av/media/libstagefright/ |
H A D | NuCachedSource2.cpp | 48 size_t totalSize() const { function in struct:android::PageCache 328 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize()); 352 mCacheOffset + mCache->totalSize(), page->mData, kPageSize); 408 if (mFetching && mCache->totalSize() >= mHighwaterThresholdBytes) { 481 && mCacheOffset + mCache->totalSize() - mLastAccessPos 499 ALOGI("restarting prefetcher, totalSize = %zu", mCache->totalSize()); 516 && offset + size <= mCacheOffset + mCache->totalSize()) { 556 return mCacheOffset + mCache->totalSize(); 572 off64_t lastBytePosCached = mCacheOffset + mCache->totalSize(); 647 size_t totalSize = mCache->totalSize(); local [all...] |
H A D | WAVExtractor.cpp | 149 size_t totalSize = U32_LE_AT(&header[4]); local 152 size_t remainingSize = totalSize;
|
H A D | OggExtractor.cpp | 434 size_t totalSize = 0;; local 436 totalSize += page->mLace[i]; 451 return sizeof(header) + page->mNumSegments + totalSize;
|
/frameworks/av/media/img_utils/src/ |
H A D | TiffWriter.cpp | 69 uint32_t totalSize = getTotalSize(); local 76 if (mNamedIfds[i]->setStripOffset(totalSize) != OK) { 80 totalSize += stripSize; 81 WORD_ALIGN(totalSize); 82 offsetVector.add(mNamedIfds.keyAt(i), totalSize); 373 uint32_t totalSize = FILE_HEADER_SIZE; local 376 totalSize += ifd->getSize(); 379 return totalSize;
|
H A D | DngUtils.cpp | 241 uint32_t totalSize = NUMBER_INT_ARGS * sizeof(uint32_t) + NUMBER_DOUBLE_ARGS * sizeof(double) + local 244 err = mEndianOut.write(&totalSize, 0, 1);
|
/frameworks/base/include/androidfw/ |
H A D | BackupHelpers.h | 40 int totalSize; member in struct:android::SnapshotHeader
|
/frameworks/base/tools/aapt/ |
H A D | StringPool.cpp | 440 const size_t totalSize = lenSize + encLenSize + local 443 void* dat = (void*)pool->editData(preSize + strPos + totalSize); 465 strPos += totalSize; 487 const size_t totalSize = (N*sizeof(ResStringPool_span)) local 491 uint8_t* dat = (uint8_t*)pool->editData(preSize + styPos + totalSize); 505 styPos += totalSize;
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | HeapTest.java | 164 int totalSize = 0; 166 while (i < junk.length && totalSize < 8 * 1024 * 1024) { 171 totalSize += r * 4;
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 456 long totalSize = rowStride * height + offset; 457 if (capacity < totalSize) { 459 " is too small (must be larger than " + totalSize + ")");
|
/frameworks/base/core/jni/ |
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 479 size_t totalSize = 0; local 481 iterateOverNativeFiles(env, apkHandle, javaCpuAbi, sumFiles, &totalSize); 483 return totalSize;
|
H A D | android_hardware_SoundTrigger.cpp | 690 size_t totalSize = sizeof(struct sound_trigger_recognition_config) + dataSize; local 692 new MemoryDealer(totalSize, "SoundTrigge-JNI::StartRecognition"); 696 sp<IMemory> memory = memoryDealer->allocate(totalSize);
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | RequestThreadManager.java | 212 int totalSize = data.length + LegacyCameraDevice.nativeGetJpegFooterSize(); 213 totalSize = (totalSize + 3) & ~0x3; // round up to nearest octonibble 221 int dimen = (int) Math.ceil(Math.sqrt(totalSize)); 227 LegacyCameraDevice.setSurfaceDimens(s, totalSize, /*height*/1); 228 LegacyCameraDevice.produceFrame(s, data, totalSize, /*height*/1,
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
H A D | DefaultContainerService.java | 222 final long totalSize = stat.f_blocks * stat.f_bsize; 224 return new long[] { totalSize, availSize };
|
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/ |
H A D | AesCtrDecryptorUnittest.cpp | 44 template <size_t totalSize> 50 uint8_t outputBuffer[totalSize] = {}; 55 EXPECT_EQ(totalSize, bytesDecrypted); 56 EXPECT_EQ(0, memcmp(outputBuffer, decrypted, totalSize));
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 738 int totalSize = 0; 767 totalSize += INTEGER_BYTE_COUNT + keyBytes.length; 771 totalSize += INTEGER_BYTE_COUNT + valueBytes.length; 782 byte[] result = new byte[totalSize];
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewController.java | 1031 private int calculateTranslate(int start, int startSize, int totalSize, float scale) { argument 1045 int scaleFromEdge = Math.round((totalSize - totalSize * scale) / 2); 1051 int blankSize = Math.round((totalSize * scale - startSize) / 2);
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | ESQueue.cpp | 775 size_t totalSize = 0; local 811 size_t auSize = 4 * nals.size() + totalSize; 879 totalSize += nalSize;
|