/libcore/luni/src/main/java/java/nio/channels/ |
GatheringByteChannel.java | 23 * The interface for channels that can write a set of buffers in a single 30 * Writes bytes from all the given buffers to a channel. 32 * This method is equivalent to: {@code write(buffers, 0, buffers.length);} 34 * @param buffers 35 * the buffers containing bytes to be written. 49 * {@code buffers}. 56 public long write(ByteBuffer[] buffers) throws IOException; 60 * byte buffers, in order, starting at {@code buffers[offset]}. The numbe [all...] |
ScatteringByteChannel.java | 23 * The interface for channels that can read data into a set of buffers in a 30 * Reads bytes from this channel into the specified array of buffers. 32 * This method is equivalent to {@code read(buffers, 0, buffers.length);} 34 * @param buffers 35 * the array of byte buffers to store the bytes being read. 52 public long read(ByteBuffer[] buffers) throws IOException; 56 * buffers, in order, starting at {@code buffers[offset]}. The number of 62 * @param buffers [all...] |
FileChannel.java | 58 * <li>memory-mapping files into NIO buffers to provide efficient manipulation 388 * of buffers. This method attempts to read as many bytes as can be stored 397 * {@code read(buffers, 0, buffers.length);} 399 * @param buffers 400 * the array of byte buffers into which the bytes will be copied. 416 public final long read(ByteBuffer[] buffers) throws IOException { 417 return read(buffers, 0, buffers.length); 421 * Reads bytes from this file channel into a subset of the given buffers [all...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
FileChannelTest.java | 70 // Check that both direct and non-direct buffers work. 72 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; local 73 assertEquals(8, fc.read(buffers)); 75 assertEquals(8, buffers[0].limit() + buffers[1].limit()); 77 buffers[0].flip(); 78 buffers[0].get(bytes); 80 buffers[1].flip(); 81 buffers[1].get(bytes); 88 // Check that both direct and non-direct buffers work 89 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; local [all...] |
/libcore/luni/src/main/java/java/nio/ |
PipeImpl.java | 92 public long read(ByteBuffer[] buffers) throws IOException { 93 return channel.read(buffers); 96 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { 97 return channel.read(buffers, offset, length); 127 public long write(ByteBuffer[] buffers) throws IOException { 128 return channel.write(buffers); 131 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { 132 return channel.write(buffers, offset, length);
|
FileChannelImpl.java | 336 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { 337 Arrays.checkOffsetAndCount(buffers.length, offset, length); 340 return transferIoVec(new IoVec(buffers, offset, length, IoVec.Direction.READV)); 501 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { 502 Arrays.checkOffsetAndCount(buffers.length, offset, length); 505 return transferIoVec(new IoVec(buffers, offset, length, IoVec.Direction.WRITEV)); 509 * @param copyingIn true if we're copying data into the buffers (typically 511 * copying data out of the buffers (for a file/network write operation). 513 static int calculateTotalRemaining(ByteBuffer[] buffers, int offset, int length, boolean copyingIn) { 516 count += buffers[i].remaining() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
FilterStack.java | 46 // Use two photo buffers as in and out in turns to apply filters in the stack. 47 private final Photo[] buffers = new Photo[2]; field in class:FilterStack 79 buffers[target] = Photo.create(buffers[other].width(), buffers[other].height()); 83 // In/out buffers need redrawn by re-applying filters on source photo. 84 for (int i = 0; i < buffers.length; i++) { 85 if (buffers[i] != null) { 86 buffers[i].clear(); 87 buffers[i] = null [all...] |
/external/qemu/hw/ |
goldfish_pipe.h | 82 int (*sendBuffers)( void* pipe, const GoldfishPipeBuffer* buffers, int numBuffers ); 85 int (*recvBuffers)( void* pipe, GoldfishPipeBuffer* buffers, int numBuffers );
|
goldfish_pipe.c | 240 pipeConnector_sendBuffers( void* opaque, const GoldfishPipeBuffer* buffers, int numBuffers ) 243 const GoldfishPipeBuffer* buffers_limit = buffers + numBuffers; 250 while (buffers < buffers_limit) { 254 buffers[0].size, buffers[0].size, buffers[0].data); 256 if (buffers[0].size == 0) { 257 buffers++; 262 if (avail > buffers[0].size) 263 avail = buffers[0].size [all...] |
/external/qemu/audio/ |
winaudio.c | 96 WAVEHDR buffers[ NUM_OUT_BUFFERS ];
member in struct:WinAudioOut 98 int write_count; /* available writable buffers count */
139 if ( s->buffers[i].dwUser != 0xFFFF ) {
141 s->waveout, &s->buffers[i], sizeof(s->buffers[i]) );
142 s->buffers[i].dwUser = 0xFFFF;
169 s->buffers[i].dwUser = 0xFFFF;
211 fprintf(stderr, "not enough memory for Windows audio buffers\n");
216 memset( &s->buffers[i], 0, sizeof(s->buffers[i]) ); 347 WAVEHDR buffers[ NUM_IN_BUFFERS ]; member in struct:WinAudioIn [all...] |
/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/ |
ByteArrayOutputStream.java | 42 * additional buffers. This way no buffers need to be garbage collected and
56 /** The list of buffers, which grows and never reduces. */
57 private List<byte[]> buffers = new ArrayList<byte[]>();
field in class:ByteArrayOutputStream 60 /** The total count of bytes in all the filled buffers. */
98 return buffers.get(index);
108 if (currentBufferIndex < buffers.size() - 1) {
129 buffers.add(currentBuffer);
185 * internal buffers of this streams.
251 for (int i = 0; i < buffers.size(); i++) { [all...] |
/development/tools/glesv2debugger/src/com/android/glesv2debugger/ |
GLServerVertex.java | 87 public SparseArray<GLBuffer> buffers = new SparseArray<GLBuffer>(); field in class:GLServerVertex 93 buffers.append(0, null); 112 copy.buffers = new SparseArray<GLBuffer>(buffers.size()); 113 for (int i = 0; i < buffers.size(); i++) 114 if (buffers.valueAt(i) != null) 115 copy.buffers.append(buffers.keyAt(i), buffers.valueAt(i).clone()); 117 copy.buffers.append(buffers.keyAt(i), null) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gldebugger/ |
GLServerVertex.java | 87 public SparseArray<GLBuffer> buffers = new SparseArray<GLBuffer>(); field in class:GLServerVertex 93 buffers.append(0, null); 112 copy.buffers = new SparseArray<GLBuffer>(buffers.size()); 113 for (int i = 0; i < buffers.size(); i++) 114 if (buffers.valueAt(i) != null) 115 copy.buffers.append(buffers.keyAt(i), buffers.valueAt(i).clone()); 117 copy.buffers.append(buffers.keyAt(i), null) [all...] |
/external/chromium/net/socket/ |
ssl_client_socket_win.cc | 1256 SecBuffer buffers[4]; local 1391 SecBuffer buffers[4]; local [all...] |
/frameworks/base/media/libmedia/ |
IStreamSource.cpp | 58 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { 61 data.writeInt32(static_cast<int32_t>(buffers.size())); 62 for (size_t i = 0; i < buffers.size(); ++i) { 63 data.writeStrongBinder(buffers.itemAt(i)->asBinder()); 94 Vector<sp<IMemory> > buffers; local 99 buffers.push(mem); 101 setBuffers(buffers);
|
/frameworks/base/include/media/ |
IStreamSource.h | 33 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) = 0;
|
/frameworks/base/libs/ui/ |
FramebufferNativeWindow.cpp | 74 * Currently it is pretty simple, it manages only two buffers (the front and 106 buffers[i] = new NativeBuffer( 114 GRALLOC_USAGE_HW_FB, &buffers[i]->handle, &buffers[i]->stride); 150 if (buffers[0] != NULL) 151 grDev->free(grDev, buffers[0]->handle); 152 if (buffers[1] != NULL) 153 grDev->free(grDev, buffers[1]->handle); 225 *buffer = self->buffers[index].get();
|
/frameworks/base/opengl/libagl/ |
BufferObjectManager.cpp | 85 void EGLBufferObjectManager::deleteBuffers(GLsizei n, const GLuint* buffers) 89 const GLuint t = *buffers++;
|
/system/core/libpixelflinger/ |
clear.cpp | 107 // unexsiting buffers have no effect... 108 if (c->state.buffers.color.format == 0) 111 if (c->state.buffers.depth.format == 0) 114 if (c->state.buffers.stencil.format == 0) 122 c->state.buffers.color.format, 131 memset2d(c, c->state.buffers.color, packed, l, t, w, h); 140 memset2d(c, c->state.buffers.depth, packed, l, t, w, h);
|
pixelflinger.cpp | 112 if (surface->format != c->state.buffers.color.format) 115 if (surface->width > c->state.buffers.coverageBufferSize) { 117 free(c->state.buffers.coverage); 118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2); 119 c->state.buffers.coverageBufferSize = 120 c->state.buffers.coverage ? surface->width : 0; 122 ggl_set_surface(c, &(c->state.buffers.color), surface); 123 if (c->state.buffers.read.format == 0) { 124 ggl_set_surface(c, &(c->state.buffers.read), surface); 132 ggl_set_surface(c, &(c->state.buffers.read), surface) [all...] |
/external/webkit/Source/WebCore/platform/audio/mac/ |
AudioDestinationMac.cpp | 153 AudioBuffer* buffers = ioData->mBuffers; local 154 m_renderBus.setChannelMemory(0, (float*)buffers[0].mData, numberOfFrames); 155 m_renderBus.setChannelMemory(1, (float*)buffers[1].mData, numberOfFrames);
|
/external/qemu/android/ |
hw-pipe-net.c | 239 netPipe_sendBuffers( void* opaque, const GoldfishPipeBuffer* buffers, int numBuffers ) 245 const GoldfishPipeBuffer* buff = buffers; 251 buff = buffers; 293 netPipe_recvBuffers( void* opaque, GoldfishPipeBuffer* buffers, int numBuffers ) 299 GoldfishPipeBuffer* buff = buffers; 305 buff = buffers;
|
/frameworks/base/cmds/stagefright/ |
stream.cpp | 47 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 84 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { 85 mBuffers = buffers; 127 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 193 const Vector<sp<IMemory> > &buffers) { 194 mBuffers = buffers;
|
/external/webkit/Source/WebCore/platform/network/win/ |
ResourceHandleWin.cpp | 210 INTERNET_BUFFERSA buffers; local 211 buffers.dwStructSize = sizeof(INTERNET_BUFFERSA); 212 buffers.lpvBuffer = buffer; 213 buffers.dwBufferLength = bufferSize; 216 while ((ok = InternetReadFileExA(d->m_requestHandle, &buffers, d->m_loadSynchronously ? 0 : IRF_NO_WAIT, reinterpret_cast<DWORD_PTR>(this))) && buffers.dwBufferLength) { 249 resourceHandleClient->didReceiveData(this, buffer, buffers.dwBufferLength, -1); 250 buffers.dwBufferLength = bufferSize;
|
/device/samsung/crespo/include/ |
hal_public.h | 114 int (*Post2)(framebuffer_device_t *fb, buffer_handle_t *buffers,
|