Searched refs:buffer (Results 26 - 50 of 87) sorted by last modified time

1234

/system/core/adb/
H A Dtransport.c44 char buffer[MAX_DUMP_HEX_LEN *2 + 1 + MAX_DUMP_HEX_LEN + 1 ], *pb = buffer; local
61 DR("%s\n", buffer);
368 static int list_transports_msg(char* buffer, size_t bufferlen) argument
373 len = list_transports(buffer+4, bufferlen-4, 0);
375 memcpy(buffer, head, 4);
439 const char* buffer,
445 memcpy(p->data, buffer, len);
459 char buffer[1024]; local
464 len = list_transports_msg(buffer, sizeo
438 device_tracker_send( device_tracker* tracker, const char* buffer, int len ) argument
494 char buffer[1024]; local
[all...]
H A Dusb_libusb.c489 uint16_t buffer[128] = {0}; local
507 memset(buffer, 0, sizeof(buffer));
512 languages[i], (uint8_t *)buffer, sizeof(buffer), 0);
519 serial[j - 1] = buffer[j];
H A Dusb_linux.c322 urb->buffer = (void*) data;
374 urb->buffer = data;
618 __u16 buffer[128]; local
640 memset(buffer, 0, sizeof(buffer));
647 ctrl.wLength = sizeof(buffer);
648 ctrl.data = buffer;
657 serial[i - 1] = __le16_to_cpu(buffer[i]);
H A Dusb_osx.c207 UInt16 buffer[256]; local
227 memset(buffer, 0, sizeof(buffer));
235 req.pData = buffer;
236 req.wLength = sizeof(buffer);
246 serial[i] = buffer[i + 1];
/system/core/fastboot/
H A Dengine.c108 void *buffer; member in struct:image_data
131 /* generate image and return it as image->buffer.
132 * size of the buffer returned as image->image_size.
139 /* it cleans the buffer allocated during image creation.
231 /* Loads file content into buffer. Returns NULL on error. */
234 void *buffer; local
240 // In this case we read whole image into memory buffer.
241 buffer = malloc(size);
242 if (!buffer) {
249 ssize_t actually_read = read(fd, (char*)buffer
[all...]
H A Dusb_linux.c140 __u16 buffer[127]; local
142 memset(buffer, 0, sizeof(buffer));
149 ctrl.wLength = sizeof(buffer);
150 ctrl.data = buffer;
159 info.serial_number[i - 1] = buffer[i];
H A Dusb_osx.c337 UInt16 buffer[256]; local
344 req.pData = buffer;
345 req.wLength = sizeof(buffer);
354 handle->info.serial_number[i] = buffer[i + 1];
/system/core/include/corkscrew/
H A Dbacktrace.h101 // A hint for how big to make the line buffer for format_backtrace_line
106 * Formats a line from a backtrace as a zero-terminated string into the specified buffer.
109 const backtrace_symbol_t* symbol, char* buffer, size_t bufferSize);
/system/core/include/cutils/
H A Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
/system/core/include/system/
H A Dwindow.h127 /* The minimum number of buffers that must remain un-dequeued after a buffer
129 * override the number of buffers and if a buffer has since been queued.
136 * Note that this value does NOT apply until a single buffer has been
140 * 2. Set the buffer count to N + M
147 /* Check whether queueBuffer operations on the ANativeWindow send the buffer
153 * This can be used to determine whether protected buffer content should be
192 * 1. Before dequeuing a buffer, the GL driver (or any other ANW client)
201 * 3. The GL driver dequeues a buffer of the new pre-rotated size.
203 * 4. The GL driver renders to the buffer such that the image is
208 * inverse transformation to the buffer i
[all...]
/system/core/include/sysutils/
H A DNetlinkEvent.h41 bool decode(char *buffer, int size, int format = NetlinkListener::NETLINK_FORMAT_ASCII);
50 bool parseBinaryNetlinkMessage(char *buffer, int size);
51 bool parseAsciiNetlinkMessage(char *buffer, int size);
/system/core/include/usbhost/
H A Dusbhost.h45 void* buffer; member in struct:usb_request
185 void* buffer,
194 void* buffer,
/system/core/init/
H A Dbuiltins.c657 char *buffer = NULL; local
676 if (!(buffer = malloc(info.st_size)))
679 p = buffer;
691 p = buffer;
708 if (buffer)
709 free(buffer);
/system/core/libcorkscrew/
H A Dbacktrace.c309 const backtrace_symbol_t* symbol, char* buffer, size_t bufferSize) {
316 snprintf(buffer, bufferSize, "#%02d pc %08x %.*s (%.*s+%u)",
320 snprintf(buffer, bufferSize, "#%02d pc %08x %.*s (%.*s)",
325 snprintf(buffer, bufferSize, "#%02d pc %08x %.*s",
308 format_backtrace_line(unsigned frameNumber, const backtrace_frame_t* frame __attribute__((unused)), const backtrace_symbol_t* symbol, char* buffer, size_t bufferSize) argument
/system/core/libctest/
H A Dctest.c78 char buffer[512]; local
80 while ((read = fread(buffer, sizeof(char), 512, suite->out)) > 0) {
82 fwrite(buffer, sizeof(char), read, stderr);
/system/core/libcutils/
H A DAndroid.mk31 buffer.c \
H A Dbuffer.c17 #define LOG_TAG "buffer"
24 #include "buffer.h"
28 Buffer* buffer = malloc(sizeof(Buffer)); local
29 if (buffer == NULL) {
32 buffer->capacity = capacity;
33 buffer->expected = 0;
34 buffer->data = malloc(capacity);
35 if (buffer->data == NULL) {
36 free(buffer);
39 return buffer;
42 bufferFree(Buffer* buffer) argument
48 Buffer* buffer = malloc(sizeof(Buffer)); local
60 bufferPrepareForRead(Buffer* buffer, size_t expected) argument
77 bufferRead(Buffer* buffer, int fd) argument
92 bufferPrepareForWrite(Buffer* buffer) argument
96 bufferWrite(Buffer* buffer, int fd) argument
[all...]
H A Dbuffer.h18 * Byte buffer utilities.
31 * Byte buffer of known size. Keeps track of how much data has been read
32 * into or written out of the buffer.
46 /** Actual # of bytes in the buffer. */
49 /** Amount of memory allocated for this buffer. */
54 * Returns true if all data has been read into the buffer.
56 #define bufferReadComplete(buffer) (buffer->expected == buffer->size)
59 * Returns true if the buffer ha
[all...]
H A Ddebugger.c75 char buffer[4096]; local
77 while ((n = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer)))) > 0) {
78 if (TEMP_FAILURE_RETRY(write(fd, buffer, n)) != n) {
H A Dmq.c37 #include "buffer.h"
278 /** Sets up the buffer for the outgoing header. */
448 * buffer is filled. Returns true when the buffer is empty.
462 Buffer* buffer = peerProxy->currentPacket->bytes; local
463 if (peerProxyWriteFromBuffer(peerProxy, buffer)) {
940 * buffer is filled. Returns true when the buffer is full.
H A Drecord_stream.c37 unsigned char *buffer; member in struct:RecordStream
55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE);
57 ret->unconsumed = ret->buffer;
58 ret->read_end = ret->buffer;
59 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE;
67 free(rs->buffer);
72 /* returns NULL; if there isn't a full record in the buffer */
102 /* one full line in the buffer */
134 /* is there one record already in the buffer? */
142 // if the buffer i
[all...]
H A Duevent.c32 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length) argument
35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &user);
47 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, argument
50 struct iovec iov = { buffer, length };
91 bzero(buffer, length);
/system/core/libdiskconfig/
H A Ddiskutils.c37 uint8_t buffer[2048]; local
62 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) {
83 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) {
/system/core/libnetutils/
H A Dpacket.c65 static uint32_t checksum(void *buffer, unsigned int count, uint32_t startsum) argument
67 uint16_t *up = (uint16_t *)buffer;
/system/core/libpixelflinger/
H A DAndroid.mk29 buffer.cpp

Completed in 3122 milliseconds

1234