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

123

/system/core/adb/
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];
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 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 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 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...]
/system/extras/tests/sdcard/
H A Dsysutil.cpp70 // 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/media/audio_utils/
H A Decho_reference.c47 void *buffer; // main buffer member in struct:echo_reference
48 size_t buf_size; // main buffer size in frames
49 size_t frames_in; // number of frames in main buffer
50 void *wr_buf; // buffer for input conversions
51 size_t wr_buf_size; // size of conversion buffer in frames
52 size_t wr_frames_in; // number of frames in conversion buffer
54 void *wr_src_buf; // resampler input buf (either wr_buf or buffer used by write())
57 int32_t playback_delay; // playback buffer delay indicated by last write()
64 struct resampler_buffer_provider provider; // resampler buffer provide
68 echo_reference_get_next_buffer(struct resampler_buffer_provider *buffer_provider, struct resampler_buffer* buffer) argument
93 echo_reference_release_buffer(struct resampler_buffer_provider *buffer_provider, struct resampler_buffer* buffer) argument
129 echo_reference_write(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer) argument
291 echo_reference_read(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer) argument
[all...]
/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/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...]
/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/libusbhost/
H A Dusbhost.c392 __u16 buffer[128]; local
408 memset(buffer, 0, sizeof(buffer));
412 (USB_DT_STRING << 8) | id, languages[i], buffer, sizeof(buffer), 0);
418 string[i - 1] = buffer[i];
505 void* buffer,
521 ctrl.data = buffer;
528 void* buffer,
541 ctrl.data = buffer;
500 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
526 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
[all...]
/system/media/camera/src/
H A Dcamera_metadata.c87 void *user; // User set pointer, not copied with buffer
130 void *buffer = malloc(memory_needed); local
131 return place_camera_metadata(buffer, memory_needed,
271 // Appending onto empty buffer, keep sorted state
449 // Shift data buffer to overwrite deleted data
/system/netd/
H A DCommandListener.cpp945 char buffer[512]; local
947 fgets(buffer, sizeof(buffer), fp); // Header 1
948 fgets(buffer, sizeof(buffer), fp); // Header 2
949 while(fgets(buffer, sizeof(buffer), fp)) {
950 buffer[strlen(buffer)-1] = '\0';
954 sscanf(buffer, "
[all...]
H A DBandwidthController.cpp160 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { argument
162 memset(buffer, '\0', buffSize); // strncpy() is not filling leftover with '\0'
163 strncpy(buffer, src, buffSize);
164 return buffer[buffSize - 1];
169 char buffer[MAX_CMD_LEN]; local
172 char *next = buffer;
196 if (StrncpyAndCheck(buffer, fullCmd.c_str(), sizeof(buffer))) {
/system/core/libcutils/
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.
/system/core/sdcard/
H A Dsdcard.c132 /* To save memory, we never use the contents of the request buffer and the read
133 * buffer at the same time. This allows us to share the underlying storage. */
204 /* Gets the absolute path to a node into the provided buffer.
207 * or returns -1 if the path is too long for the provided buffer.
231 * Performs a case-insensitive search for the file and sets the buffer to the path
233 * the buffer to the path that the file would have, assuming the name were case-sensitive.
236 * or returns NULL if the path is too long for the provided buffer.
844 /* Don't access any other fields of hdr or req beyond this point, the read buffer
845 * overlaps the request buffer and will clobber data in the request. This
863 const void* buffer)
861 handle_write(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_write_in* req, const void* buffer) argument
980 char buffer[8192]; local
1103 const void* buffer = (const __u8*)data + sizeof(*req); local
[all...]
/system/vold/
H A DVolumeManager.cpp79 char *VolumeManager::asecHash(const char *id, char *buffer, size_t len) { argument
84 if (buffer == NULL) {
85 SLOGE("Destination buffer is NULL");
89 SLOGE("Source buffer is NULL");
93 SLOGE("Target hash buffer size < %d bytes (%d)",
101 char *p = buffer;
108 return buffer;
159 char *buffer; local
160 asprintf(&buffer, "%s %s %d",
163 cli->sendMsg(ResponseCode::VolumeListResult, buffer, fals
204 getAsecMountPath(const char *id, char *buffer, int maxlen) argument
222 getAsecFilesystemPath(const char *id, char *buffer, int maxlen) argument
[all...]
H A Dcryptfs.c383 char buffer[DM_CRYPT_BUF_SIZE]; local
398 io = (struct dm_ioctl *) buffer;
416 tgt = (struct dm_target_spec *) &buffer[sizeof(struct dm_ioctl)];
425 crypt_params = buffer + sizeof(struct dm_ioctl) + sizeof(struct dm_target_spec);
431 tgt->next = crypt_params - buffer;
467 char buffer[DM_CRYPT_BUF_SIZE]; local
476 io = (struct dm_ioctl *) buffer;

Completed in 1278 milliseconds

123