Searched defs:buffer (Results 1 - 25 of 51) sorted by relevance

123

/development/ndk/platforms/android-3/include/
H A Dsha1.h21 u_char buffer[64]; member in struct:__anon329
/development/host/windows/usb/api/
H A Dadb_interface.cpp34 bool AdbInterfaceObject::GetInterfaceName(void* buffer, argument
42 // Lets see if buffer is big enough
44 if ((NULL == buffer) || (*buffer_char_size < name_len)) {
52 wcscpy(reinterpret_cast<wchar_t*>(buffer), interface_name().c_str());
61 reinterpret_cast<PSTR>(buffer),
H A Dadb_endpoint_object.cpp50 ADBAPIHANDLE AdbEndpointObject::AsyncRead(void* buffer, argument
56 buffer,
63 ADBAPIHANDLE AdbEndpointObject::AsyncWrite(void* buffer, argument
69 buffer,
76 bool AdbEndpointObject::SyncRead(void* buffer, argument
81 buffer,
87 bool AdbEndpointObject::SyncWrite(void* buffer, argument
92 buffer,
H A Dadb_api_legacy.h105 // structure and output buffer is just ULONG that receives number of bytes
142 /// size is defined by the output buffer size.
163 void SetWriteBuffer(void* buffer) { argument
167 write_buffer = buffer;
171 /// Pointer to the actual buffer for ADB_CTL_BULK_WRITE request. This field
177 /// the write buffer. Same is true for 32-bit app talking to 32-bit driver.
H A Dadb_legacy_endpoint_object.cpp45 void* buffer,
83 buffer,
88 buffer,
97 transfer_param.SetWriteBuffer(is_read ? NULL : buffer);
102 is_read ? buffer : adb_io_completion->transferred_bytes_ptr(),
129 void* buffer,
155 ReadFile(usb_handle(), buffer, bytes_to_transfer, bytes_transferred, &overlapped) :
156 WriteFile(usb_handle(), buffer, bytes_to_transfer, bytes_transferred, &overlapped);
162 transfer_param.SetWriteBuffer(is_read ? NULL : buffer);
168 is_read ? buffer
43 CommonAsyncReadWrite( bool is_read, void* buffer, ULONG bytes_to_transfer, ULONG* bytes_transferred, HANDLE event_handle, ULONG time_out) argument
128 CommonSyncReadWrite(bool is_read, void* buffer, ULONG bytes_to_transfer, ULONG* bytes_transferred, ULONG time_out) argument
[all...]
H A Dadb_legacy_interface.cpp103 bool AdbLegacyInterfaceObject::GetSerialNumber(void* buffer, argument
147 if ((NULL == buffer) || (*buffer_char_size < str_len)) {
155 wcscpy(reinterpret_cast<wchar_t*>(buffer), serial_number);
164 reinterpret_cast<PSTR>(buffer),
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
H A DChatManager.java36 byte[] buffer = new byte[1024];
44 bytes = iStream.read(buffer);
50 Log.d(TAG, "Rec:" + String.valueOf(buffer));
52 bytes, -1, buffer).sendToTarget();
68 public void write(byte[] buffer) { argument
70 oStream.write(buffer);
/development/tools/emulator/system/camera/fake-pipeline2/
H A DBase.h36 // Zero is an auxillary buffer
41 buffer_handle_t *buffer; member in struct:android::StreamBuffer
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DGLFace.java76 public void putIndices(ShortBuffer buffer) { argument
82 // push triangles into the buffer
85 buffer.put(v0.index);
86 buffer.put(v1.index);
87 buffer.put(vn.index);
H A DGLShape.java37 public void putIndices(ShortBuffer buffer) { argument
41 face.putIndices(buffer);
/development/host/windows/usb/winusb/
H A Dadb_winusb_endpoint_object.cpp49 void* buffer,
78 reinterpret_cast<PUCHAR>(buffer),
84 reinterpret_cast<PUCHAR>(buffer),
109 void* buffer,
129 reinterpret_cast<PUCHAR>(buffer),
135 reinterpret_cast<PUCHAR>(buffer),
47 CommonAsyncReadWrite( bool is_read, void* buffer, ULONG bytes_to_transfer, ULONG* bytes_transferred, HANDLE event_handle, ULONG time_out) argument
108 CommonSyncReadWrite(bool is_read, void* buffer, ULONG bytes_to_transfer, ULONG* bytes_transferred, ULONG time_out) argument
H A Dadb_winusb_interface.cpp142 bool AdbWinUsbInterfaceObject::GetSerialNumber(void* buffer, argument
158 // buffer and then loop through WinUsb_GetDescriptor calls, doubling up
159 // string buffer size every time ERROR_INSUFFICIENT_BUFFER is returned.
161 // Preallocate reasonably sized buffer on the stack.
183 // Double up buffer size and reallocate string buffer
201 // Lets see if requested buffer is big enough to fit the string
202 if ((NULL == buffer) || (*buffer_char_size < (str_len + 1))) {
203 // Requested buffer is too small.
216 reinterpret_cast<PSTR>(buffer),
[all...]
/development/samples/training/threadsample/src/com/example/android/threadsample/
H A DPhotoDownloadRunnable.java69 * Returns the current contents of the download buffer
75 * Sets the current contents of the download buffer
76 * @param buffer The bytes that were just read
78 void setByteBuffer(byte[] buffer); argument
120 * Gets the image cache buffer object from the PhotoTask instance. This makes the
138 // If there's no cache buffer for this image
184 // Allocates a temporary buffer
192 * byte in the buffer, and the initial result of
201 * until the temporary buffer is full, and then
202 * allocates more buffer spac
[all...]
/development/tools/emulator/opengl/shared/OpenglCodecCommon/
H A DSocketStream.cpp91 int SocketStream::writeFully(const void* buffer, size_t size) argument
99 ssize_t stat = ::send(m_sock, (const char *)buffer + (size - res), res, 0);
/development/tools/emulator/system/camera/
H A DEmulatedQemuCameraDevice.cpp158 /* Allocate preview frame buffer. */
219 status_t EmulatedQemuCameraDevice::getCurrentPreviewFrame(void* buffer) argument
223 memcpy(buffer, mPreviewFrame, mTotalPixels * 4);
226 return EmulatedCameraDevice::getCurrentPreviewFrame(buffer);
H A DPreviewWindow.cpp63 /* The CPU will write each frame to the preview window buffer.
64 * Note that we delay setting preview window buffer geometry until
117 /* Need to set / adjust buffer geometry for the preview window.
138 /* Dequeue preview window buffer for the frame. */
139 buffer_handle_t* buffer = NULL; local
141 res = mPreviewWindow->dequeue_buffer(mPreviewWindow, &buffer, &stride);
142 if (res != NO_ERROR || buffer == NULL) {
143 ALOGE("%s: Unable to dequeue preview window buffer: %d -> %s",
148 /* Let the preview window to lock the buffer. */
149 res = mPreviewWindow->lock_buffer(mPreviewWindow, buffer);
[all...]
/development/tools/emulator/system/lights/
H A Dlights_qemu.c85 char buffer[64]; local
86 snprintf( buffer, sizeof(buffer), "power:light:brightness:lcd_backlight:%d", brightness );
87 D( "%s: lcd_backlight command: %s", __FUNCTION__, buffer );
90 if (qemud_channel_send( fd, buffer, -1 ) < 0) {
/development/ndk/samples/hello-neon/jni/
H A Dhelloneon.c85 char buffer[512]; local
110 strlcpy(buffer, str, sizeof buffer);
113 strlcat(buffer, "Neon version : ", sizeof buffer);
116 strlcat(buffer, "Not an ARM CPU !\n", sizeof buffer);
122 strlcat(buffer, "Not an ARMv7 CPU !\n", sizeof buffer);
129 strlcat(buffer, "CP
[all...]
/development/samples/USB/AdbTest/src/com/android/adb/
H A DAdbMessage.java87 // returns command's data buffer
140 private static String extractString(ByteBuffer buffer, int offset, int length) { argument
143 bytes[i] = buffer.get(offset++);
/development/tools/emulator/system/libqemu/
H A Dtest_guest_2.c58 uint8_t* buffer; local
152 buffer = malloc(bufferSize);
156 buffer[nn] = (uint8_t)nn;
163 int ret = pipe_send(pipe, buffer, bufferSize);
189 if (memcmp(buffer, buffer2, bufferSize) != 0) {
200 if (memcmp(buffer+nn, buffer2+nn, avail) != 0) {
208 printf(" %02x", buffer[nn+mm]);
/development/ide/emacs/
H A Dandroid-common.el64 (defconst android-output-buffer-name "*Android Output*"
65 "Name of the default buffer for the output of the commands.
66 There is only one instance of such a buffer.")
111 (product (with-current-buffer (find-file-noselect buildspec)
114 (buffer-substring-no-properties (point)
164 (when (get-buffer android-output-buffer-name)
165 (with-current-buffer android-output-buffer-name
166 (erase-buffer)))
[all...]
/development/ndk/platforms/android-3/include/linux/nfsd/
H A Dxdr.h68 char * buffer; member in struct:nfsd_readlinkargs
91 u32 * buffer; member in struct:nfsd_readdirargs
118 u32 * buffer; member in struct:nfsd_readdirres
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
H A DBluetoothChatService.java447 byte[] buffer = new byte[1024];
454 bytes = mmInStream.read(buffer);
457 mHandler.obtainMessage(BluetoothChat.MESSAGE_READ, bytes, -1, buffer)
471 * @param buffer The bytes to write
473 public void write(byte[] buffer) { argument
475 mmOutStream.write(buffer);
478 mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)
/development/samples/BrowserPlugin/jni/audio/
H A DAudioPlugin.cpp67 static void audioCallback(ANPAudioEvent evt, void* user, ANPAudioBuffer* buffer) { argument
71 size_t amount = fread(buffer->bufferData, 1, buffer->size, play->file);
72 buffer->size = amount;
/development/tools/emulator/opengl/system/renderControl_enc/
H A DrenderControl_entry.cpp11 EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize);
12 EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize);
14 EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer);
55 EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize) argument
58 return ctx->rcQueryEGLString(ctx, name, buffer, bufferSize);
61 EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize) argument
64 return ctx->rcGetGLString(ctx, name, buffer, bufferSize);
73 EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer) argument
76 return ctx->rcGetConfigs(ctx, bufSize, buffer);

Completed in 2950 milliseconds

123