Searched refs:buffer (Results 1 - 25 of 87) sorted by path

1234

/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 Dsysdeps_win32.c808 * each buffer is implemented as two regions:
813 * an empty buffer has: a_start = a_end = b_end = 0
819 * the buffer is full when b_end == a_start && a_end == BUFFER_SIZE
868 HANDLE evt_write; /* event signaled when one can write to a buffer */
870 HANDLE evt_read; /* event signaled when one can read from a buffer */
877 bip_buffer_init( BipBuffer buffer )
879 D( "bit_buffer_init %p\n", buffer );
880 buffer->a_start = 0;
881 buffer->a_end = 0;
882 buffer
[all...]
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/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);

Completed in 105 milliseconds

1234