/frameworks/av/media/utils/ |
D | LimitProcessMemory.cpp | 36 size_t maxMem = SIZE_MAX; in limitProcessMemory() 39 if (size_t(numPages) < SIZE_MAX / size_t(pageSize)) { in limitProcessMemory() 57 if (propVal > 0 && uint64_t(propVal) <= SIZE_MAX) { in limitProcessMemory() 62 if (maxMem != SIZE_MAX && &__scudo_set_rss_limit != 0) { in limitProcessMemory()
|
/frameworks/av/media/libstagefright/ |
D | DataConverter.cpp | 69 if (numSamples > SIZE_MAX / mSourceSampleSize) { in sourceSize() 72 return SIZE_MAX; in sourceSize() 80 if (numSamples > SIZE_MAX / mTargetSampleSize) { in targetSize() 83 return SIZE_MAX; in targetSize()
|
/frameworks/av/media/utils/include/mediautils/ |
D | TimerThread.h | 164 SnapshotAnalysis getSnapshotAnalysis(size_t retiredCount = SIZE_MAX) const; 183 std::string retiredToString(size_t n = SIZE_MAX) const; 195 std::string timeoutToString(size_t n = SIZE_MAX) const; 292 size_t n = SIZE_MAX) const;
|
/frameworks/base/libs/hwui/ |
D | SafeMath.h | 65 return tmp.ok() ? sum : SIZE_MAX; in Add() 71 return tmp.ok() ? prod : SIZE_MAX; in Mul()
|
/frameworks/av/services/mediaextractor/ |
D | main_extractorservice.cpp | 55 SIZE_MAX, /* upper limit in bytes */ in main()
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamLegacy.cpp | 80 const size_t SIZE_STOP_CALLBACKS = SIZE_MAX; in onMoreData() 145 const size_t SIZE_STOP_CALLBACKS = SIZE_MAX; in onMoreData()
|
/frameworks/native/libs/binder/ |
D | BufferedTextOutput.cpp | 51 if (len > SIZE_MAX - bufferPos) return NO_MEMORY; // overflow in append() 53 if ((len + bufferPos) > SIZE_MAX / 3) return NO_MEMORY; // overflow in append()
|
D | ParcelableHolder.cpp | 79 if (dataStartPos > SIZE_MAX - dataSize) { in readFromParcel()
|
D | Parcel.cpp | 578 if ((size_t)numObjects > SIZE_MAX - kernelFields->mObjectsSize) in appendFrom() 580 if (kernelFields->mObjectsSize + numObjects > SIZE_MAX / 3) in appendFrom() 583 if (newSize > SIZE_MAX / sizeof(binder_size_t)) return NO_MEMORY; // overflow in appendFrom() 1821 if (kernelFields->mObjectsSize > SIZE_MAX - 2) return NO_MEMORY; // overflow in writeObject() 1822 if ((kernelFields->mObjectsSize + 2) > SIZE_MAX / 3) return NO_MEMORY; // overflow in writeObject() 1824 if (newSize > SIZE_MAX / sizeof(binder_size_t)) return NO_MEMORY; // overflow in writeObject() 2944 if (len > SIZE_MAX - mDataSize) return NO_MEMORY; // overflow in growData() 2945 if (mDataSize + len > SIZE_MAX / 3) return NO_MEMORY; // overflow in growData() 3309 return SIZE_MAX; in getOpenAshmemSize()
|
/frameworks/av/media/module/id3/ |
D | ID3.cpp | 267 if (extendedHeaderSize > SIZE_MAX - 4) { in parseV2() 291 if (paddingSize > SIZE_MAX - mFirstFrameOffset) { in parseV2() 786 if (SIZE_MAX - mOffset <= mFrameSize) { in findFrame() 834 if (SIZE_MAX - 10 <= baseSize) { in findFrame() 841 if (SIZE_MAX - mOffset <= mFrameSize) { in findFrame()
|
/frameworks/av/media/module/codecs/m4v_h263/dec/src/ |
D | pvdec_api.cpp | 28 #ifndef SIZE_MAX 29 #define SIZE_MAX ((size_t) -1) macro 108 if ((size_t)nLayers > SIZE_MAX / sizeof(Vol *)) { in PVInitVideoDecoder() 148 if ((size_t)nLayers > SIZE_MAX / sizeof(Vop *)) { in PVInitVideoDecoder() 451 if ((size_t)nTotalMB > SIZE_MAX / sizeof(typeDCStore)) { in PVAllocVideoData() 460 || (size_t)(nMBPerRow + 1) > SIZE_MAX / sizeof(typeDCACStore)) { in PVAllocVideoData() 482 if ((size_t)nTotalMB > SIZE_MAX / sizeof(int16)) { in PVAllocVideoData() 503 if ((size_t)nTotalMB > SIZE_MAX / (sizeof(MOT) * 4)) { in PVAllocVideoData()
|
/frameworks/av/services/mediametrics/include/mediametricsservice/ |
D | StringUtils.h | 170 inline std::string bytesToString(const std::vector<uint8_t>& bytes, size_t maxSize = SIZE_MAX) {
|
/frameworks/av/media/codec2/vndk/util/ |
D | C2InterfaceHelper.cpp | 510 return it == _mDependencyIndex.end() ? SIZE_MAX : it->second; in getDependencyIndex() 620 size_t paramDepIx = SIZE_MAX; in config() 638 if (paramDepIx == SIZE_MAX) { in config() 653 if (paramDepIx == SIZE_MAX) { in config()
|
/frameworks/av/media/module/foundation/ |
D | MediaBufferGroup.cpp | 193 requestedSize < SIZE_MAX / 3 * 2 /* NB: ordering */ ? in acquire_buffer()
|
/frameworks/av/media/module/extractors/mkv/ |
D | MatroskaExtractor.cpp | 797 if (SIZE_MAX - len < trackInfo->mHeaderLen) { in readBlock() 1571 if (len1 > (SIZE_MAX - 0xff)) { in addVorbisCodecInfo() 1580 if (len1 > (SIZE_MAX - codecPrivate[offset])) { in addVorbisCodecInfo() 1587 if (len2 > (SIZE_MAX - 0xff)) { in addVorbisCodecInfo() 1596 if (len2 > (SIZE_MAX - codecPrivate[offset])) { in addVorbisCodecInfo() 1601 if (len1 > SIZE_MAX - len2 || offset > SIZE_MAX - (len1 + len2) || in addVorbisCodecInfo()
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | mp4enc_api.cpp | 28 #ifndef SIZE_MAX 29 #define SIZE_MAX ((size_t) -1) macro 673 if ((size_t)nTotalMB > SIZE_MAX / sizeof(MOT *)) { in PVInitVideoEncoder() 698 if ((size_t)nTotalMB > SIZE_MAX / sizeof(typeDCStore)) { in PVInitVideoEncoder() 706 if ((size_t)((max_width >> 4) + 1) > SIZE_MAX / sizeof(typeDCACStore)) { in PVInitVideoEncoder() 716 if ((size_t)nTotalMB > SIZE_MAX / sizeof(Int)) { in PVInitVideoEncoder() 778 || (size_t)(size + (size >> 1)) > SIZE_MAX / sizeof(PIXEL)) { in PVInitVideoEncoder() 879 if ((size_t)nLayers > SIZE_MAX / sizeof(Vol *)) { in PVInitVideoEncoder()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorIon.cpp | 393 if (sPadding > SIZE_MAX - size) { in Alloc() 401 if (align - 1 > SIZE_MAX - allocSize) { in Alloc()
|
D | C2DmaBufAllocator.cpp | 398 if (sPadding > SIZE_MAX - capacity) { in newLinearAllocation()
|
/frameworks/av/services/audioflinger/ |
D | TrackBase.h | 275 size_t framesReady() const override { return SIZE_MAX; } // MmapTrack doesn't implement. in framesReady()
|
/frameworks/av/media/module/codecs/flac/dec/ |
D | FLACDecoder.cpp | 420 if (inBufferLen > SIZE_MAX - (mBufferDataSize - mBufferPos)) { in addDataToBuffer()
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrackShared.cpp | 34 return sizeof(T) > sizeof(size_t) && x > (T) SIZE_MAX ? SIZE_MAX : x < 0 ? 0 : (size_t) x; in clampToSize() 1208 buffer->mNonContig = mFramesReady == INT64_MAX ? SIZE_MAX : clampToSize(mFramesReady - avail); in obtainBuffer()
|
/frameworks/av/drm/libmediadrm/ |
D | CryptoHalHidl.cpp | 267 if (heapSize < buffer.offset + buffer.size || SIZE_MAX - buffer.offset < buffer.size) { in checkSharedBuffer()
|
D | CryptoHalAidl.cpp | 84 if (heapSize < buffer.offset + buffer.size || SIZE_MAX - buffer.offset < buffer.size) { in checkSharedBuffer()
|
/frameworks/av/media/module/extractors/mp4/ |
D | MPEG4Extractor.cpp | 2227 if (max_size > SIZE_MAX - 10 * 2) { in parseChunk() 3006 if (chunk_data_size < 0 || static_cast<uint64_t>(chunk_data_size) >= SIZE_MAX - 1) { in parseChunk() 3982 if (size < 4 || size == SIZE_MAX) { in parseITunesMetaData() 4186 if (size < 4 || size == SIZE_MAX || mLastTrack == NULL) { in parseColorInfo() 4239 if (size < 8 || size == SIZE_MAX || mLastTrack == NULL) { in parsePaspBox() 4259 if (size < 4 || size == SIZE_MAX) { in parse3GPPMetaData() 6569 if (dstOffset > SIZE_MAX - 4 || in read() 6570 dstOffset + 4 > SIZE_MAX - nalLength || in read() 6926 if (dstOffset > SIZE_MAX - 4 || in fragmentedRead() 6927 dstOffset + 4 > SIZE_MAX - nalLength || in fragmentedRead()
|
/frameworks/av/media/ndk/ |
D | NdkMediaExtractor.cpp | 50 if (numSubSamples > SIZE_MAX / sizeof(size_t)) { in U32ArrayToSizeBuf()
|