Home
last modified time | relevance | path

Searched refs:mBufferSize (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/
DSingleStreamDiffScriptWriter.java38 private int mBufferSize = 0; field in SingleStreamDiffScriptWriter
55 mByteBuffer[mBufferSize++] = b; in writeByte()
56 if (mBufferSize == mMaxNewByteChunkSize) { in writeByte()
65 if (mBufferSize != 0) { in writeChunk()
80 Preconditions.checkState(!(mBufferSize != 0 && mReusableChunk != null)); in flush()
81 if (mBufferSize != 0) { in flush()
91 mOutputStream.write(Integer.toString(mBufferSize).getBytes(UTF_8)); in writeByteBuffer()
93 mOutputStream.write(mByteBuffer, 0, mBufferSize); in writeByteBuffer()
95 mBufferSize = 0; in writeByteBuffer()
/frameworks/av/media/libaudiohal/impl/
DEffectBufferHalHidl.cpp59 : mBufferSize(size), mFrameCountChanged(false), in EffectBufferHalHidl()
76 mBufferSize, in init()
95 ALOGE("Failed to allocate %d bytes from ashmem", (int)mBufferSize); in init()
125 update(mBufferSize); in update()
129 commit(mBufferSize); in commit()
135 if (size > mBufferSize) size = mBufferSize; in update()
142 if (size > mBufferSize) size = mBufferSize; in commit()
DEffectBufferHalHidl.h44 virtual size_t getSize() const override { return mBufferSize; } in getSize()
62 const size_t mBufferSize; variable
/frameworks/av/media/mtp/
DMtpPacket.cpp33 mBufferSize(bufferSize), in MtpPacket()
52 memset(mBuffer, 0, mBufferSize); in reset()
56 if (length > mBufferSize) { in allocate()
63 mBufferSize = newLength; in allocate()
DMtpResponsePacket.cpp50 request->buffer_length = mBufferSize; in read()
DMtpRequestPacket.cpp41 int ret = h->read(mBuffer, mBufferSize); in read()
DMtpEventPacket.cpp55 request->buffer_length = mBufferSize; in sendRequest()
DMtpPacket.h35 size_t mBufferSize; variable
DMtpDataPacket.cpp476 request->buffer_length = mBufferSize; in read()
/frameworks/base/core/java/android/util/proto/
DProtoInputStream.java119 private final int mBufferSize; field in ProtoInputStream
153 mBufferSize = bufferSize; in ProtoInputStream()
155 mBufferSize = DEFAULT_BUFFER_SIZE; in ProtoInputStream()
157 mBuffer = new byte[mBufferSize]; in ProtoInputStream()
175 mBufferSize = buffer.length; in ProtoInputStream()
740 } else if (n <= mBufferSize) { in readRawString()
768 if (mOffset >= mBufferSize) { in fillBuffer()
769 int skipped = (int) mStream.skip((mOffset / mBufferSize) * mBufferSize); in fillBuffer()
968 sb.append("\nmBufferSize : 0x" + Integer.toHexString(mBufferSize)); in dumpDebugData()
/frameworks/native/services/surfaceflinger/
DSurfaceTracing.cpp121 mBuffer.reset(mBufferSize); in enable()
151 mBufferSize = bufferSizeInByte; in setBufferSize()
181 mBuffer.reset(mBufferSize); in writeProtoFileLocked()
DSurfaceTracing.h106 size_t mBufferSize GUARDED_BY(mTraceLock) = kDefaultBufferCapInByte;
/frameworks/av/services/camera/libcameraservice/common/
DDepthPhotoProcessor.cpp123 size_t mBufferSize; in encodeGrayscaleJpeg() member
156 dmgr.mBufferSize = maxOutSize; in encodeGrayscaleJpeg()
166 dmgr.free_in_buffer = dmgr.mBufferSize; in encodeGrayscaleJpeg()
168 __FUNCTION__, __LINE__, dmgr.mBuffer, dmgr.mBufferSize); in encodeGrayscaleJpeg()
178 dmgr.mEncodedSize = dmgr.mBufferSize - dmgr.free_in_buffer; in encodeGrayscaleJpeg()
/frameworks/av/services/audioflinger/
DTrackBase.h90 size_t bufferSize() const { return mBufferSize; } in bufferSize()
284 size_t mBufferSize; // size of mBuffer in bytes variable
DThreads.cpp842 dprintf(fd, " HAL buffer size: %zu bytes\n", mBufferSize); in dumpBase_l()
2665 result = mOutput->stream->getBufferSize(&mBufferSize); in readOutputParameters_l()
2668 mFrameCount = mBufferSize / mFrameSize; in readOutputParameters_l()
2704 mBufferSize = mFrameSize * mFrameCount; in readOutputParameters_l()
7163 (uint8_t*)mRsmpInBuffer + rear * mFrameSize, mBufferSize, &bytesRead); in threadLoop()
8240 result = mInput->stream->getBufferSize(&mBufferSize); in readInputParameters_l()
8242 mFrameCount = mBufferSize / mFrameSize; in readInputParameters_l()
8245 this, mChannelCount, mFormat, (long long)mFrameSize, (long long)mBufferSize, in readInputParameters_l()
8793 result = mHalStream->getBufferSize(&mBufferSize); in readHalParameters_l()
8795 mFrameCount = mBufferSize / mFrameSize; in readHalParameters_l()
DThreads.h540 size_t mBufferSize; // HAL buffer size for read() or write() variable
DTracks.cpp218 mBufferSize = bufferSize; in TrackBase()
/frameworks/base/tools/aapt/
DAaptAssets.h155 , mBufferSize(0) in AaptFile()
200 size_t mBufferSize; variable
DAaptAssets.cpp446 if (size <= mBufferSize) { in editData()
457 mBufferSize = allocSize; in editData()
506 mBufferSize = 0; in clearData()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp2564 size_t mBufferSize; member
2578 mBufferSize(0) { in CallbackThread()
2595 mBufferSize = sink->bufferSize(); in threadLoop()
2596 mBuffer = malloc(mBufferSize); in threadLoop()
2600 (*mCallback)(sink.get(), mBuffer, mBufferSize, mCookie, in threadLoop()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java477 final int mBufferSize; field in NotificationManagerService.Archive
481 mBufferSize = size; in Archive()
482 mBuffer = new ArrayDeque<StatusBarNotification>(mBufferSize); in Archive()
496 if (mBuffer.size() == mBufferSize) { in record()
511 if (count == 0) count = mBufferSize; in getArray()