Searched refs:buffer (Results 51 - 75 of 87) sorted by relevance

1234

/system/extras/tests/framebuffer/
H A Drefresh.c122 uint16_t* buffer = (uint16_t*) mmap(
128 if (buffer == MAP_FAILED)
132 memset(buffer, 0, finfo.smem_len);
133 memset(buffer, 0xff, 320*(info.yres_virtual/2)*2);
/system/core/run-as/
H A Dpackage.c47 /* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen'
48 * This function always zero-terminate the destination buffer unless
69 * Returns buffer address, or NULL on error
405 char* buffer; local
415 buffer = map_file(PACKAGES_LIST_FILE, &buffer_len);
416 if (buffer == NULL)
419 p = buffer;
420 buffer_end = buffer + buffer_len;
506 unmap_file(buffer, buffer_len);
/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/toolbox/
H A Dnandread.c32 void *buffer; local
138 buffer = malloc(mtdinfo.writesize + mtdinfo.oobsize + spare_size);
139 if (!buffer) {
146 oob_data = (uint32_t *)((uint8_t *)buffer + mtdinfo.writesize);
194 ret = read(fd, buffer, mtdinfo.writesize + rawmode);
242 ret = write(outfd, buffer, mtdinfo.writesize + spare_size);
261 if (test_empty(buffer, mtdinfo.writesize + mtdinfo.oobsize + spare_size))
H A Dmount.c219 char buffer[100]; local
228 length = fread(buffer, 1, 100, f);
230 fwrite(buffer, 1, length, stdout);
/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/extras/procrank/
H A Dprocrank.c49 char buffer[1024]; local
59 const int len = read(fd, buffer, sizeof(buffer)-1);
66 buffer[len] = 0;
88 char* p = buffer;
300 * Get the process name for a given PID. Inserts the process name into buffer
301 * buf of length len. The size of the buffer must be greater than zero to get
304 * Note that fgets(3) only declares length as an int, so our buffer size is
/system/netd/
H A DNatController.cpp49 char *buffer; local
59 asprintf(&buffer, "%s %s", path, cmd);
60 res = system_nosh(buffer);
61 ALOGV("runCmd() buffer='%s' res=%d", buffer, res);
62 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/core/libpixelflinger/tinyutils/
H A DVectorImpl.cpp224 void* buffer = editArrayImpl();
225 if (buffer)
226 return reinterpret_cast<char*>(buffer) + index*mItemSize;
236 const void* buffer = arrayImpl();
237 if (buffer)
238 return reinterpret_cast<const char*>(buffer) + index*mItemSize;
499 const void* buffer = vector.arrayImpl();
503 ssize_t err = add( reinterpret_cast<const char*>(buffer) + i*is );
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp161 char buffer[kMinKernelVersionBufferSize] = {0, }; local
162 if (kernelVersion(buffer, sizeof(buffer)) > 0)
164 printf("# Kernel: %s", buffer);
187 char buffer[kMinSchedFeaturesBufferSize] = {0, }; local
188 if (schedFeatures(buffer, sizeof(buffer)) > 0)
190 printf("# Sched features: %s", buffer);
286 // @param chunk buffer large enough where the chunk read are written.
/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_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 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 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...]
/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/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/vold/
H A DCommandListener.cpp54 char buffer[4096]; local
55 char *p = buffer;
57 memset(buffer, 0, sizeof(buffer));
64 if (((p - buffer) + len) < (sizeof(buffer)-1)) {
78 SLOGD("%s", buffer);
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...]
/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/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 1517 milliseconds

1234