/system/core/libcutils/ |
H A D | debugger.c | 75 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 D | uevent.c | 32 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 D | diskutils.c | 37 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/toolbox/ |
H A D | insmod.c | 18 void *buffer = NULL; local 31 buffer = malloc(size); 32 if (!buffer) 35 /* slurp it into our buffer */ 36 ret = read(fd, buffer, size); 45 return buffer; 92 /* free the file buffer */
|
H A D | uptime.c | 41 static void format_time(int time, char* buffer) { argument 52 sprintf(buffer, "%d days, %02d:%02d:%02d", days, hours, minutes, seconds); 54 sprintf(buffer, "%02d:%02d:%02d", hours, minutes, seconds);
|
/system/core/adb/ |
H A D | file_sync_service.c | 101 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 D | jdwp_service.c | 122 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 D | adb.c | 1150 ** 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...] |
/system/netd/ |
H A D | ndc.c | 107 char *buffer = malloc(4096); local 125 free(buffer); 132 memset(buffer, 0, 4096); 133 if ((rc = read(sock, buffer, 4096)) <= 0) { 138 free(buffer); 148 if (buffer[i] == '\0') { 152 strncpy(tmp, buffer + offset, 3); 156 printf("%s\n", buffer + offset); 166 free(buffer);
|
H A D | ThrottleController.cpp | 44 char *buffer; local 54 asprintf(&buffer, "%s %s", TC_PATH, cmd); 55 res = system_nosh(buffer); 56 free(buffer);
|
/system/media/audio_utils/include/audio_utils/ |
H A D | resampler.h | 45 * get a new buffer of data: 46 * as input: buffer->frame_count is the number of frames requested 47 * as output: buffer->frame_count is the number of frames returned 48 * buffer->raw points to data returned 51 struct resampler_buffer *buffer); 53 * release a consumed buffer of data: 54 * as input: buffer->frame_count is the number of frames released 55 * buffer->raw points to data released 58 struct resampler_buffer *buffer); 68 * resample input from buffer provide [all...] |
/system/extras/ext4_utils/ |
H A D | sha1.h | 33 u_char buffer[64]; member in struct:__anon498
|
/system/vold/ |
H A D | Loop.h | 29 static int lookupActive(const char *id, char *buffer, size_t len);
|
H A D | Process.cpp | 66 void Process::getProcessName(int pid, char *buffer, size_t max) { argument 68 snprintf(buffer, max, "/proc/%d/cmdline", pid); 69 fd = open(buffer, O_RDONLY); 71 strcpy(buffer, "???"); 73 int length = read(fd, buffer, max - 1); 74 buffer[length] = 0; 130 char buffer[PATH_MAX + 100]; local 132 sprintf(buffer, "/proc/%d/maps", pid); 133 file = fopen(buffer, "r"); 137 while (fgets(buffer, sizeo [all...] |
H A D | Process.h | 29 static void getProcessName(int pid, char *buffer, size_t max);
|
H A D | VolumeManager.h | 111 int getAsecMountPath(const char *id, char *buffer, int maxlen); 112 int getAsecFilesystemPath(const char *id, char *buffer, int maxlen); 118 int getObbMountPath(const char *id, char *buffer, int maxlen); 136 static char *asecHash(const char *id, char *buffer, size_t len);
|
H A D | Loop.cpp | 81 int Loop::lookupActive(const char *id, char *buffer, size_t len) { argument 86 memset(buffer, 0, len); 123 strncpy(buffer, filename, len -1); 254 struct asec_superblock buffer; local 272 memset(&buffer, 0, sizeof(struct asec_superblock)); 279 if (read(fd, &buffer, sizeof(struct asec_superblock)) != sizeof(struct asec_superblock)) { 290 memcpy(sb, &buffer, sizeof(struct asec_superblock));
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 75 bool NetlinkEvent::parseBinaryNetlinkMessage(char *buffer, int size) { argument 77 const struct nlmsghdr *nh = (struct nlmsghdr *) buffer; 102 char buffer[16 + IFNAMSIZ]; local 103 snprintf(buffer, sizeof(buffer), "INTERFACE=%s", 105 mParams[0] = strdup(buffer); 163 bool NetlinkEvent::parseAsciiNetlinkMessage(char *buffer, int size) { argument 164 const char *s = buffer; 173 /* Ensure the buffer is zero-terminated, the code below depends on this */ 174 buffer[siz 210 decode(char *buffer, int size, int format) argument [all...] |
H A D | FrameworkListener.cpp | 46 char buffer[255]; local 49 len = TEMP_FAILURE_RETRY(read(c->getSocket(), buffer, sizeof(buffer))); 60 if (buffer[i] == '\0') { 62 dispatchCommand(c, buffer + offset);
|
/system/bluetooth/brcm_patchram_plus/ |
H A D | brcm_patchram_plus.c | 170 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/core/toolbox/grep/ |
H A D | file.c | 70 static unsigned char buffer[MAXBUFSIZ]; variable 83 bufpos = buffer; 88 nr = gzread(gzbufdesc, buffer, MAXBUFSIZ); 90 nr = BZ2_bzRead(&bzerr, bzbufdesc, buffer, MAXBUFSIZ); 109 nr = read(f->fd, buffer, MAXBUFSIZ); 117 nr = read(f->fd, buffer, MAXBUFSIZ); 147 /* Fill the buffer, if necessary */ 157 /* Look for a newline in the remaining part of the buffer */ 168 /* We have to copy the current buffered data to the line buffer */ 215 /* Fill read buffer, als [all...] |
/system/core/include/usbhost/ |
H A D | usbhost.h | 45 void* buffer; member in struct:usb_request 185 void* buffer, 194 void* buffer,
|
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 70 // Read a C-string from a file. If the buffer is too short, an error 74 // @param size The size of the buffer pointed by str. Must be >= 1. 203 char buffer[16] = {0,}; local 204 sprintf(buffer, "%ld", value); 205 return writeStringToFile(filename, buffer); 209 // message is in a shared buffer, not thread safe, erased by 213 static char buffer[80]; local 217 snprintf(buffer, sizeof(buffer), "ok (%d)", WEXITSTATUS(status)); 221 snprintf(buffer, sizeo [all...] |
/system/core/include/system/ |
H A D | window.h | 127 /* 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/libctest/ |
H A D | ctest.c | 78 char buffer[512]; local 80 while ((read = fread(buffer, sizeof(char), 512, suite->out)) > 0) { 82 fwrite(buffer, sizeof(char), read, stderr);
|