Home
last modified time | relevance | path

Searched refs:readBuf (Results 1 – 9 of 9) sorted by relevance

/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
DSourceChannelTest.java90 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_LByteBuffer_SinkClosed() local
93 long count = source.read(readBuf); in test_read_LByteBuffer_SinkClosed()
96 count = source.read(readBuf); in test_read_LByteBuffer_SinkClosed()
99 readBuf.position(0); in test_read_LByteBuffer_SinkClosed()
100 count = source.read(readBuf); in test_read_LByteBuffer_SinkClosed()
108 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_LByteBuffer_SourceClosed() local
111 source.read(readBuf); in test_read_LByteBuffer_SourceClosed()
116 readBuf.position(BUFFER_SIZE); in test_read_LByteBuffer_SourceClosed()
119 source.read(readBuf); in test_read_LByteBuffer_SourceClosed()
187 for (ByteBuffer readBuf : readBufArray) { in test_read_$LByteBuffer()
[all …]
DSinkChannelTest.java86 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_write_LByteBuffer() local
89 int count = source.read(readBuf); in test_write_LByteBuffer()
96 assertEquals("bytes", new String(readBuf.array(), ISO8859_1)); in test_write_LByteBuffer()
127 ByteBuffer readBuf = ByteBuffer.allocate(THREAD_NUM * BUFFER_SIZE); in test_write_LByteBuffer_mutliThread() local
131 long count = source.read(readBuf); in test_write_LByteBuffer_mutliThread()
143 assertEquals(readString, new String(readBuf.array(), ISO8859_1)); in test_write_LByteBuffer_mutliThread()
195 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_write_$LByteBuffer() local
198 int count = source.read(readBuf); in test_write_$LByteBuffer()
204 assertEquals("bytes", new String(readBuf.array(), ISO8859_1)); in test_write_$LByteBuffer()
292 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_write_$LByteBufferII() local
[all …]
DDatagramChannelTest.java159 ByteBuffer[] readBuf = null; in testReadByteBufferArray() local
161 this.channel1.read(readBuf); in testReadByteBufferArray()
167 readres = testMock.read(readBuf); in testReadByteBufferArray()
172 readBuf = new ByteBuffer[bufSize]; in testReadByteBufferArray()
174 readres = this.channel1.read(readBuf); in testReadByteBufferArray()
179 readres = testMock.read(readBuf); in testReadByteBufferArray()
181 readres = testMocknull.read(readBuf); in testReadByteBufferArray()
193 ByteBuffer[] readBuf = null; in testReadByteBufferArray_BufNull() local
195 this.channel1.read(readBuf); in testReadByteBufferArray_BufNull()
201 testMock.read(readBuf); in testReadByteBufferArray_BufNull()
[all …]
DSocketChannelTest.java2043 java.nio.ByteBuffer readBuf = java.nio.ByteBuffer in testReadByteBuffer() local
2053 channel1.read(readBuf); in testReadByteBuffer()
2065 assertEquals(0, this.channel1.read(readBuf)); in testReadByteBuffer()
2070 channel1.read(readBuf); in testReadByteBuffer()
2079 java.nio.ByteBuffer readBuf = java.nio.ByteBuffer in testReadByteBuffer_Direct() local
2089 channel1.read(readBuf); in testReadByteBuffer_Direct()
2101 assertEquals(0, this.channel1.read(readBuf)); in testReadByteBuffer_Direct()
2106 channel1.read(readBuf); in testReadByteBuffer_Direct()
2151 java.nio.ByteBuffer readBuf = java.nio.ByteBuffer.allocate(0); in testReadByteBuffer_BufNull() local
2168 assertEquals(0, this.channel1.read(readBuf)); in testReadByteBuffer_BufNull()
[all …]
/external/opencv/otherlibs/highgui/
Dcvcap_socket.cpp78 readBuf = 0; in CVCapture_Socket()
99 char *readBuf; // the read buffer member in CVCapture_Socket
142 readBuf = (char*)malloc(readBufSize); in open()
143 if (!readBuf) in open()
170 if (readBuf) in close()
172 free(readBuf); in close()
173 readBuf = 0; in close()
211 if (pAddrInfo == 0 || readBuf == 0) in grabFrame()
250 read_count = read(sockd, &readBuf[total_read], readBufSize); in grabFrame()
264 frame = loadPixels(readBuf, width, height); in grabFrame()
/external/icu4c/test/iotest/
Dfiletst.c982 char readBuf[512] = ""; in TestFilePrintCompatibility() local
1024 fscanf(myCFile, "%s", readBuf); in TestFilePrintCompatibility()
1026 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1027 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1030 fscanf(myCFile, "%s", readBuf); in TestFilePrintCompatibility()
1032 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1033 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1036 fscanf(myCFile, "%s", readBuf); in TestFilePrintCompatibility()
1038 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1039 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
[all …]
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/renderer/lwjgl/
DLwjglRenderer.java1286 String readBuf = getTargetBufferName(glGetInteger(GL_READ_BUFFER)); in printRealFrameBufferInfo() local
1299 System.out.println("Read buffer: " + readBuf); in printRealFrameBufferInfo()
/external/sqlite/dist/
Dsqlite3.c31185 char readBuf[PROXY_MAXCONCHLEN];
31208 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
31215 readBuf[0]!=(char)PROXY_CONCHVERSION ){
31228 hostIdMatch = !memcmp(&readBuf[PROXY_HEADERLEN], myHostID,
31241 memcpy(lockPath, &readBuf[PROXY_PATHINDEX], pathLen);
31249 && !strncmp(pCtx->lockProxyPath, &readBuf[PROXY_PATHINDEX],
/external/sqlite/dist/orig/
Dsqlite3.c31157 char readBuf[PROXY_MAXCONCHLEN];
31180 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
31187 readBuf[0]!=(char)PROXY_CONCHVERSION ){
31200 hostIdMatch = !memcmp(&readBuf[PROXY_HEADERLEN], myHostID,
31213 memcpy(lockPath, &readBuf[PROXY_PATHINDEX], pathLen);
31221 && !strncmp(pCtx->lockProxyPath, &readBuf[PROXY_PATHINDEX],