Home
last modified time | relevance | path

Searched refs:mChunkSize (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/util/proto/
DEncodedBuffer.java42 private final int mChunkSize; field in EncodedBuffer
108 mChunkSize = chunkSize; in EncodedBuffer()
109 mWriteBuffer = new byte[mChunkSize]; in EncodedBuffer()
122 mReadableSize = ((mWriteBufIndex) * mChunkSize) + mWriteIndex; in startEditing()
155 return ((mBufferCount - 1) * mChunkSize) + mWriteIndex; in getSize()
166 return ((mReadBufIndex) * mChunkSize) + mReadIndex; in getReadPos()
179 if (amount <= mChunkSize - mReadIndex) { in skipRead()
182 amount -= mChunkSize - mReadIndex; in skipRead()
183 mReadIndex = amount % mChunkSize; in skipRead()
185 mReadIndex = mChunkSize; in skipRead()
[all …]
/frameworks/base/libs/protoutil/src/
DEncodedBuffer.cpp37 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in Pointer()
43 return mIndex * mChunkSize + mOffset; in pos()
62 mIndex += newOffset / mChunkSize; in move()
63 mOffset = newOffset % mChunkSize; in move()
78 Pointer p = Pointer(mChunkSize); in copy()
92 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in EncodedBuffer()
93 mWp = Pointer(mChunkSize); in EncodedBuffer()
94 mEp = Pointer(mChunkSize); in EncodedBuffer()
138 buf = (uint8_t*)malloc(mChunkSize); in writeBuffer()
150 return mChunkSize - mWp.offset(); in currentToWrite()
[all …]
DProtoFileReader.cpp59 mChunkSize(sizeof(mBuffer)) { in ProtoFileReader()
150 ssize_t amt = TEMP_FAILURE_RETRY(read(mFd, mBuffer, mChunkSize)); in ensure_data()
/frameworks/base/libs/protoutil/include/android/util/
DEncodedBuffer.h65 size_t mChunkSize;
210 size_t mChunkSize; variable
DProtoFileReader.h61 const int mChunkSize; // Size of mBuffer. variable
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt77374 Landroid/util/proto/EncodedBuffer;->mChunkSize:I