Searched refs:copyLen (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/ |
D | CircularByteBuffer.java | 80 final int copyLen = getCopyLen(mReadPos, mWritePos, dstLen); in readBytes() local 82 System.arraycopy(mBuffer, mReadPos, dst, dstPos, copyLen); in readBytes() 84 dstPos += copyLen; in readBytes() 85 dstLen -= copyLen; in readBytes() 86 mSize -= copyLen; in readBytes() 87 mReadPos = (mReadPos + copyLen) % mCapacity; in readBytes() 107 final int copyLen = getCopyLen(tmpReadPos, mWritePos, dstLen); in peekBytes() local 108 System.arraycopy(mBuffer, tmpReadPos, dst, dstPos, copyLen); in peekBytes() 109 dstPos += copyLen; in peekBytes() 110 dstLen -= copyLen; in peekBytes() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/ |
D | CircularByteBufferTest.java | 236 int copyLen = Math.min(len, buffer.getDirectWriteSize()); in writeBytes() local 238 buffer.getDirectWritePos(), copyLen); in writeBytes() 239 buffer.accountForDirectWrite(copyLen); in writeBytes() 240 len -= copyLen; in writeBytes() 241 pos += copyLen; in writeBytes() 255 int copyLen = Math.min(len, buffer.getDirectReadSize()); in readBytes() local 257 buffer.getDirectReadBuffer(), buffer.getDirectReadPos(), dst, pos, copyLen); in readBytes() local 258 buffer.accountForDirectRead(copyLen); in readBytes() 259 len -= copyLen; in readBytes() 260 pos += copyLen; in readBytes()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/ |
D | ReadableDataAnswer.java | 69 int copyLen = Math.min(dstLen, src.length - mBufferPos); in answer() local 70 System.arraycopy(src, mBufferPos, dst, dstPos, copyLen); in answer() 71 mBufferPos += copyLen; in answer() 74 return Integer.valueOf(copyLen); in answer()
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | BearerData.java | 381 int copyLen = userData.numFields < userData.payload.length in decodeUserDataPayload() local 384 System.arraycopy(userData.payload, 0, payload, 0, copyLen); in decodeUserDataPayload()
|