HomeSort by relevance Sort by last modified time
    Searched refs:readBuf (Results 1 - 25 of 46) sorted by null

1 2

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
SourceChannelTest.java 90 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
93 long count = source.read(readBuf);
95 // readBuf is full, read 0 byte expected
96 count = source.read(readBuf);
98 // readBuf is not null, -1 is expected
99 readBuf.position(0);
100 count = source.read(readBuf);
108 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
111 source.read(readBuf);
116 readBuf.position(BUFFER_SIZE)
    [all...]
SinkChannelTest.java 86 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
89 int count = source.read(readBuf);
96 assertEquals("bytes", new String(readBuf.array(), ISO8859_1));
127 ByteBuffer readBuf = ByteBuffer.allocate(THREAD_NUM * BUFFER_SIZE);
131 long count = source.read(readBuf);
143 assertEquals(readString, new String(readBuf.array(), ISO8859_1));
195 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
198 int count = source.read(readBuf);
204 assertEquals("bytes", new String(readBuf.array(), ISO8859_1));
292 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE)
    [all...]
DatagramChannelTest.java 136 ByteBuffer[] readBuf = null;
138 this.channel1.read(readBuf);
146 readres = testMock.read(readBuf);
151 readBuf = new ByteBuffer[bufSize];
153 readres = this.channel1.read(readBuf);
158 readres = testMock.read(readBuf);
160 readres = testMocknull.read(readBuf);
172 ByteBuffer[] readBuf = null;
174 this.channel1.read(readBuf);
179 testMock.read(readBuf);
    [all...]
SocketChannelTest.java     [all...]
  /external/opencv/otherlibs/highgui/
cvcap_socket.cpp 78 readBuf = 0;
99 char *readBuf; // the read buffer
142 readBuf = (char*)malloc(readBufSize);
143 if (!readBuf)
170 if (readBuf)
172 free(readBuf);
173 readBuf = 0;
211 if (pAddrInfo == 0 || readBuf == 0)
250 read_count = read(sockd, &readBuf[total_read], readBufSize);
264 frame = loadPixels(readBuf, width, height)
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldPushbackInputStreamTest.java 205 byte[] readBuf = new byte[10];
216 tobj.read(readBuf);
217 assertEquals("Incorrect bytes read", str2, new String(readBuf));
245 byte[] readBuf = new byte[10];
256 tobj.read(readBuf);
257 assertEquals("Incorrect bytes read", "5678901234", new String(readBuf));
OldPushbackReaderTest.java 249 char[] readBuf = new char[10];
259 tobj.read(readBuf);
260 assertEquals("Incorrect bytes read", str2, new String(readBuf));
309 char[] readBuf = new char[10];
319 tobj.read(readBuf);
320 assertEquals("Incorrect bytes read", "5678901234", new String(readBuf));
  /packages/apps/Messaging/src/android/support/v7/mms/
SendRequest.java 111 final byte[] readBuf = new byte[maxSize+1];
112 final int bytesRead = inStream.read(readBuf, 0, maxSize+1);
123 System.arraycopy(readBuf, 0, result, 0, bytesRead);
  /external/icu/icu4c/source/test/iotest/
filetst.c     [all...]
  /external/libdrm/tests/ttmtest/src/
ttmtest.c 158 readBuf(void *buf, unsigned long size)
205 readBuf(virtual, buf.size);
243 readBuf(virtual, buf.size);
294 readBuf(virtual, buf.size);
  /external/mesa3d/src/mesa/main/
framebuffer.c 798 const struct gl_renderbuffer *readBuf = fb->_ColorReadBuffer;
799 if (!readBuf) {
802 ASSERT(_mesa_get_format_bits(readBuf->Format, GL_RED_BITS) > 0 ||
803 _mesa_get_format_bits(readBuf->Format, GL_ALPHA_BITS) > 0 ||
804 _mesa_get_format_bits(readBuf->Format, GL_TEXTURE_LUMINANCE_SIZE) > 0 ||
805 _mesa_get_format_bits(readBuf->Format, GL_TEXTURE_INTENSITY_SIZE) > 0 ||
806 _mesa_get_format_bits(readBuf->Format, GL_INDEX_BITS) > 0);
  /build/tools/zipalign/
ZipFile.h 197 status_t readBuf(const unsigned char* buf, int len);
ZipFile.cpp 269 result = mEOCD.readBuf(buf + i, readAmount - i);
1131 unsigned char readBuf[32768];
1136 size_t getSize = sizeof(readBuf);
    [all...]
  /frameworks/base/tools/aapt/
ZipFile.h 188 status_t readBuf(const unsigned char* buf, int len);
ZipFile.cpp 267 result = mEOCD.readBuf(buf + i, readAmount - i);
1052 unsigned char readBuf[32768];
1057 size_t getSize = sizeof(readBuf);
1066 if (fread(readBuf, 1, getSize, fp) != getSize) {
1077 if (fwrite(readBuf, 1, getSize, fp) != getSize) {
    [all...]
  /frameworks/base/tools/aapt2/
ZipFile.h 196 status_t readBuf(const unsigned char* buf, int len);
ZipFile.cpp 270 result = mEOCD.readBuf(buf + i, readAmount - i);
1062 unsigned char readBuf[32768];
1067 size_t getSize = sizeof(readBuf);
1076 if (fread(readBuf, 1, getSize, fp) != getSize) {
1087 if (fwrite(readBuf, 1, getSize, fp) != getSize) {
    [all...]
  /developers/build/prebuilts/gradle/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/
BluetoothChatFragment.java 305 byte[] readBuf = (byte[]) msg.obj;
307 String readMessage = new String(readBuf, 0, msg.arg1);
  /developers/samples/android/connectivity/bluetooth/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/
BluetoothChatFragment.java 305 byte[] readBuf = (byte[]) msg.obj;
307 String readMessage = new String(readBuf, 0, msg.arg1);
  /development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
BluetoothChat.java 271 byte[] readBuf = (byte[]) msg.obj;
273 String readMessage = new String(readBuf, 0, msg.arg1);
  /development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
WiFiServiceDiscoveryActivity.java 281 byte[] readBuf = (byte[]) msg.obj;
283 String readMessage = new String(readBuf, 0, msg.arg1);
  /development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
BluetoothChatFragment.java 305 byte[] readBuf = (byte[]) msg.obj;
307 String readMessage = new String(readBuf, 0, msg.arg1);
  /external/deqp/modules/glshared/
glsRandomShaderCase.cpp 556 tcu::TextureLevel readBuf(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), rendered.getWidth(), rendered.getHeight());
557 glu::readPixels(m_renderCtx, viewportX, viewportY, readBuf.getAccess());
559 tcu::copy(rendered, readBuf);
  /system/netd/server/
MDnsSdListener.cpp 623 char readBuf[2];
624 read(mCtrlSocketPair[0], &readBuf, 1);
625 if (DBG) ALOGD("MDnsSdListener::Monitor got %c", readBuf[0]);
626 if (memcmp(RESCAN, readBuf, 1) == 0) {
  /cts/tests/tests/media/src/android/media/cts/
AdaptivePlaybackTest.java     [all...]

Completed in 1098 milliseconds

1 2