Searched defs:buffer (Results 1 - 25 of 69) sorted by path

123

/system/bluetooth/bluedroid/
H A Dbluetooth.c78 char buffer; local
90 sz = read(fd, &buffer, 1);
97 switch (buffer) {
115 const char buffer = (on ? '1' : '0'); local
127 sz = write(fd, &buffer, 1);
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c170 uchar buffer[1024]; variable
569 read_event(int fd, uchar *buffer) argument
575 while ((count = read(fd, &buffer[i], len)) < len) {
581 len = buffer[2];
583 while ((count = read(fd, &buffer[i], len)) < len) {
592 dump(buffer, count);
624 read_event(uart_fd, buffer);
636 read_event(uart_fd, buffer);
639 read(uart_fd, &buffer[0], 2);
646 while (read(hcdfile_fd, &buffer[
[all...]
/system/bluetooth/brfpatch/
H A Dbrfpatch.c77 static void process_line(FILE *file_out, char *buf, char *buffer) { argument
78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer);
83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer); local
85 "Could not find opcode in: %s\n", buffer);
97 "Too much data: %s\n", buffer);
99 "Error parsing (%d): %s\n", __LINE__, buffer);
108 FAILIF(*buf != 'x', "Error parsing: %s\n", buffer);
120 "Error parsing (%d): %s\n", __LINE__, buffer);
126 "Error parsing (%d): %s\n", __LINE__, buffer);
132 "Error parsing (%d): %s\n", __LINE__, buffer);
177 char buffer[1024]; local
[all...]
/system/core/adb/
H A Dadb.c1150 ** AID_GRAPHICS to access the frame buffer
1237 void connect_device(char* host, char* buffer, int buffer_size) argument
1247 snprintf(buffer, buffer_size, "bad host name %s", host);
1253 snprintf(buffer, buffer_size, "bad port number %s", portstr);
1262 snprintf(buffer, buffer_size, "already connected to %s", serial);
1268 snprintf(buffer, buffer_size, "unable to connect to %s:%d", host, port);
1276 snprintf(buffer, buffer_size, "connected to %s", serial);
1279 void connect_emulator(char* port_spec, char* buffer, int buffer_size) argument
1283 snprintf(buffer, buffer_size,
1295 snprintf(buffer, buffer_siz
1381 char buffer[4096]; local
1397 char buffer[4096]; local
1412 char buffer[4096]; local
[all...]
H A Dcommandline.c359 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_type ttype, const char* serial) argument
362 snprintf(buffer, buflen, "host-serial:%s:%s", serial, command);
370 snprintf(buffer, buflen, "%s:%s", prefix, command);
H A Dfile_sync_client.c337 fprintf(stderr, "could not allocate buffer for '%s'\n",
446 char *buffer = send_buffer.data; local
493 if(readx(fd, buffer, len)) {
498 if(writex(lfd, buffer, len)) {
517 if(readx(fd, buffer, len)) {
520 buffer[len] = 0;
522 memcpy(buffer, &id, 4);
523 buffer[4] = 0;
524 // strcpy(buffer,"unknown reason");
526 fprintf(stderr,"failed to copy '%s' to '%s': %s\n", rpath, lpath, buffer);
[all...]
H A Dfile_sync_service.c101 if it does happen, let's not buffer overrun */
151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) argument
190 if(readx(s, buffer, len))
195 if(writex(fd, buffer, len)) {
227 static int handle_send_link(int s, char *path, char *buffer) argument
246 if(readx(s, buffer, len))
249 ret = symlink(buffer, path);
252 ret = symlink(buffer, path);
276 static int do_send(int s, char *path, char *buffer) argument
304 ret = handle_send_link(s, path, buffer);
319 do_recv(int s, const char *path, char *buffer) argument
365 char *buffer = malloc(SYNC_DATA_MAX); local
[all...]
H A Djdwp_service.c122 jdwp_process_list( char* buffer, int bufferlen ) argument
124 char* end = buffer + bufferlen;
125 char* p = buffer;
141 return (p - buffer);
146 jdwp_process_list_msg( char* buffer, int bufferlen ) argument
149 int len = jdwp_process_list( buffer+4, bufferlen-4 );
151 memcpy(buffer, head, 4);
323 char buffer[sizeof(struct cmsghdr) + sizeof(int)]; local
333 msg.msg_control = buffer;
334 msg.msg_controllen = sizeof(buffer);
638 char buffer[1024]; local
[all...]
H A Dremount_service.c104 char buffer[200]; local
105 snprintf(buffer, sizeof(buffer), "remount failed: %s\n", strerror(errno));
106 write_string(fd, buffer);
H A Dtest_track_devices.c57 char buffer[1024]; local
71 len = snprintf( buffer, sizeof buffer, "%04x%s", strlen(request), request );
72 if (unix_write(s, buffer, len) < 0)
76 if (unix_read(s, buffer, 4) != 4)
79 printf( "server answer: %.*s\n", 4, buffer );
91 if (unix_read(s, buffer, len) != len)
94 printf( "received header %.*s (%d bytes):\n%.*s", 4, head, len, len, buffer );
H A Dtest_track_jdwp.c57 char buffer[1024]; local
71 len = snprintf( buffer, sizeof buffer, "%04x%s", strlen(request), request );
72 if (unix_write(s, buffer, len) < 0)
76 if (unix_read(s, buffer, 4) != 4)
79 printf( "server answer: %.*s\n", 4, buffer );
91 if (unix_read(s, buffer, len) != len)
94 printf( "received header %.*s (%d bytes):\n%.*s", 4, head, len, len, buffer );
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/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 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 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.

Completed in 254 milliseconds

123