Searched refs:buffer (Results 51 - 75 of 87) sorted by last modified time

1234

/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/core/libsysutils/src/
H A DFrameworkClient.cpp34 char *buffer = (char *) alloca(bufflen); local
35 if (!buffer) {
39 snprintf(buffer, bufflen, "%s%s", msg, data);
40 return sendMsg(buffer);
H A DFrameworkListener.cpp46 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);
H A DNetlinkEvent.cpp75 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...]
/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/logwrapper/
H A Dlogwrapper.c50 char buffer[4096]; local
59 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
64 if (buffer[b] == '\r') {
65 buffer[b] = '\0';
66 } else if (buffer[b] == '\n') {
67 buffer[b] = '\0';
68 ALOG(LOG_INFO, btag, "%s", &buffer[a]);
73 if (a == 0 && b == sizeof(buffer) - 1) {
74 // buffer i
[all...]
/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/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/core/toolbox/
H A Ddmesg.c13 char buffer[KLOG_BUF_LEN + 1]; local
14 char *p = buffer;
24 n = klogctl(op, buffer, KLOG_BUF_LEN);
29 buffer[n] = '\0';
H A Dinsmod.c18 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 Dlog.c94 char buffer[4096]; local
130 buffer[0] = '\0';
133 strncat(buffer, argv[i], sizeof(buffer)-1);
134 strncat(buffer, " ", sizeof(buffer)-1);
137 if(buffer[0] == 0) {
141 __android_log_print(priority, tag, "%s", buffer);
H A Dlsof.c102 char buffer[PATH_MAX + 100]; local
H A Dmount.c219 char buffer[100]; local
228 length = fread(buffer, 1, 100, f);
230 fwrite(buffer, 1, length, stdout);
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 Duptime.c41 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/toolbox/grep/
H A Dfile.c70 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/extras/ext4_utils/
H A Dsha1.c126 void SHA1Transform(state, buffer)
128 const u_char buffer[64];
137 assert(buffer != 0);
142 (void)memcpy(block, buffer, 64);
144 block = (CHAR64LONG16 *)(void *)buffer;
232 (void)memcpy(&context->buffer[j], data, (i = 64-j));
233 SHA1Transform(context->state, context->buffer);
240 (void)memcpy(&context->buffer[j], &data[i], len - i);
H A Dsha1.h33 u_char buffer[64]; member in struct:__anon498
/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/extras/tests/bionic/libc/common/
H A Dbench_stdio.c42 static char buffer[1024*1024]; variable
55 int totalSize = sizeof(buffer);
57 fread(buffer, 1, chunkSize, fp);
63 int totalSize = sizeof(buffer);
65 fwrite(buffer, 1, chunkSize, fp);
74 double bandwidth = sizeof(buffer)*1000./1024./time_ms; \
/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/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.
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...]
H A Dtestcase.cpp98 char buffer[32000] = {0,}; local
99 char *str = buffer;
100 size_t size_left = sizeof(buffer);
110 write(mIpc[TestCase::WRITE_TO_PARENT], buffer, str - buffer);
131 char buffer[32000] = {0,}; local
132 while(read(mIpc[READ_FROM_CHILD], buffer, sizeof(buffer)) != 0)
134 printf("%s", buffer);
136 memset(buffer,
[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...]

Completed in 106 milliseconds

1234