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.cpp38 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in Pointer()
44 return mIndex * mChunkSize + mOffset; in pos()
63 mIndex += newOffset / mChunkSize; in move()
64 mOffset = newOffset % mChunkSize; in move()
79 Pointer p = Pointer(mChunkSize); in copy()
95 mChunkSize = (chunkSize / PAGE_SIZE + ((chunkSize % PAGE_SIZE == 0) ? 0 : 1)) * PAGE_SIZE; in EncodedBuffer()
96 mWp = Pointer(mChunkSize); in EncodedBuffer()
97 mEp = Pointer(mChunkSize); in EncodedBuffer()
104 munmap(buf, mChunkSize); in ~EncodedBuffer()
143 buf = (uint8_t*)mmap(NULL, mChunkSize, PROT_READ | PROT_WRITE, in writeBuffer()
[all …]
DProtoFileReader.cpp59 mChunkSize(sizeof(mBuffer)) { in ProtoFileReader()
150 ssize_t amt = TEMP_FAILURE_RETRY(read(mFd, mBuffer, mChunkSize)); in ensure_data()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DSparseInputStream.java46 public int mChunkSize; field in SparseInputStream.SparseChunk
51 "type: %x, chunk_size: %d, total_size: %d", mChunkType, mChunkSize, mTotalSize); in toString()
74 chunk.mChunkSize = buf.getInt(); in readChunk()
131 mLeft = mCur.mChunkSize * mBlockSize; in prepareChunk()
/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