Searched refs:size (Results 76 - 100 of 134) sorted by path

123456

/system/core/libzipfile/
H A Dtest_zipfile.c12 size_t size, unsize; local
41 size = ftell(f);
44 buf = malloc(size);
45 fread(buf, 1, size, f);
47 zip = init_zipfile(buf, size);
76 size = unsize * 1.001;
77 scratch = malloc(size);
79 err = decompress_zipentry(entry, scratch, size);
H A Dzipfile.c10 init_zipfile(const void* data, size_t size) argument
18 file->bufsize = size;
/system/core/logcat/
H A Dlogcat.cpp152 size_t size = sizeof(logger_entry) + buf->len; local
156 ret = write(g_outFD, buf, size);
360 /* returns the total size of the log's ring buffer */
366 /* returns the readable size of the log's ring buffer (that is, amount of the log consumed) */
409 " -g get the size of the log's ring buffer and exit\n"
749 int size, readable; local
751 size = android::getLogSize(dev->fd);
752 if (size < 0) {
765 size / 1024, readable / 1024,
/system/core/run-as/
H A Dpackage.c47 /* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen'
70 * On exit, *filesize will be set to the file's size, or 0 on error
87 /* get its size */
102 /* Ensure that the size is not ridiculously large */
116 /* We're good, return size */
130 unmap_file(void* address, size_t size) argument
133 TEMP_FAILURE_RETRY(munmap(address, size));
/system/core/sdcard/
H A Dfuse.h88 __u64 size; member in struct:fuse_attr
334 __u64 size; member in struct:fuse_setattr_in
384 __u32 size; member in struct:fuse_read_in
396 __u32 size; member in struct:fuse_write_in
404 __u32 size; member in struct:fuse_write_out
421 __u32 size; member in struct:fuse_setxattr_in
426 __u32 size; member in struct:fuse_getxattr_in
431 __u32 size; member in struct:fuse_getxattr_out
H A Dsdcard.c79 * The request size is bounded by the maximum size of a FUSE_WRITE request because it has
277 attr->size = s->st_size;
591 if ((req->valid & FATTR_SIZE) && truncate(path, req->size) < 0) {
840 __u32 size = req->size; local
849 h, h->fd, size, offset);
850 if (size > sizeof(handler->read_buffer)) {
853 res = pread64(h->fd, handler->read_buffer, size, offset);
870 h, h->fd, req->size, re
[all...]
/system/core/sh/
H A Darith_lex.c281 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
293 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
1409 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1413 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1421 b->yy_buf_size = size;
1423 /* yy_ch_buf has to be 2 characters longer than the size given because
1595 int grow_size = 8 /* arbitrary grow size */;
1611 * @param size the size i
[all...]
H A Dmystring.c75 * truncation is performed. "Size" is the size of "to".
79 scopyn(const char *from, char *to, int size) argument
82 while (--size > 0) {
H A Doutput.c309 int size;
420 size = len;
421 if (size < prec)
422 size = prec;
423 size += sign;
424 pad = width - size;
/system/core/toolbox/cp/
H A Dutils.c98 size_t size; member in struct:finfo
104 int pcent = (int)((100.0 * written) / fi->size);
108 fi->from, fi->to, written, fi->size, pcent);
206 fi.size = (size_t)fs->st_size;
/system/core/toolbox/grep/
H A Dfastgrep.c283 size_t size; local
288 if ((size = mbstowcs(NULL, (const char *)data, 0)) ==
292 wdata = grep_malloc(size * sizeof(wint_t));
294 if (mbstowcs(wdata, (const char *)data, size) ==
298 if ((size = mbstowcs(NULL, (const char *)pat, 0)) ==
302 wpat = grep_malloc(size * sizeof(wint_t));
304 if (mbstowcs(wpat, (const char *)pat, size) == ((size_t) - 1))
H A Dgrep.h147 void *grep_malloc(size_t size);
148 void *grep_calloc(size_t nmemb, size_t size);
149 void *grep_realloc(void *ptr, size_t size);
H A Dutil.c392 grep_malloc(size_t size) argument
396 if ((ptr = malloc(size)) == NULL)
405 grep_calloc(size_t nmemb, size_t size) argument
409 if ((ptr = calloc(nmemb, size)) == NULL)
418 grep_realloc(void *ptr, size_t size) argument
421 if ((ptr = realloc(ptr, size)) == NULL)
/system/core/toolbox/
H A Dinsmod.c17 ssize_t size; local
28 size = sb.st_size;
31 buffer = malloc(size);
36 ret = read(fd, buffer, size);
37 if (ret != size)
41 *_size = size;
52 ssize_t size = 0; local
63 file = read_file(argv[1], &size);
85 ret = init_module(file, size, opts);
H A Dnandread.c12 static int test_empty(const char *buf, size_t size) argument
14 while(size--) {
79 " -s <size> Number of spare bytes in file (default 64)\n"
132 printf("size: %u\n", mtdinfo.size);
133 printf("erase size: %u\n", mtdinfo.erasesize);
134 printf("write size: %u\n", mtdinfo.writesize);
135 printf("oob size: %u\n", mtdinfo.oobsize);
140 fprintf(stderr, "failed allocate readbuffer size %u\n",
161 printf("oobavail, %d > image spare size,
[all...]
H A Dnewfs_msdos.c69 #define DEFBLK 4096 /* default block size */
70 #define DEFBLK16 2048 /* default block size FAT16 */
152 u_int8_t size[4]; /* size */ member in struct:de
287 opt_create = argtooff(optarg, "create size");
317 opt_b = argtox(optarg, 1, "block size");
354 opt_s = argto4(optarg, 1, "file system size");
460 errx(1, "block size (%u) is not a power of 2", opt_b);
462 errx(1, "block size (%u) is too small; minimum is %u",
465 errx(1, "block size (
[all...]
H A Dschedtop.c51 size_t size = table->allocated; local
53 if (size < 128)
54 size = 128;
56 size *= 2;
58 new_table = realloc(table->data, size * sizeof(*table->data));
64 table->allocated = size;
H A Dtop.c76 int size; member in struct:proc_list
/system/extras/atrace/
H A Datrace.c246 // Set the size of the kernel's trace buffer in kilobytes.
247 static bool setTraceBufferSizeKB(int size) argument
251 if (size < 1) {
252 size = 1;
254 snprintf(str, 32, "%d", size);
319 // Note that we can't reset the trace buffer size here because that would
425 " -b N use a trace buffer size of N KB\n"
603 // Reset the trace buffer size to 1.
/system/extras/bugmailer/src/com/android/commands/sendbug/
H A DSendBug.java104 if (results != null && results.size() > 0) {
/system/extras/ext4_utils/
H A Dcontents.c47 /* include size of the dentry used to pad until the end of the block */
267 size_t size, min_offs; local
286 size = EXT4_XATTR_SIZE(value_len);
287 val = (char *)entry + min_offs - size;
288 entry->e_value_offs = cpu_to_le16(min_offs - size);
289 memset(val + size - EXT4_XATTR_PAD, 0, EXT4_XATTR_PAD);
H A Dcontents.h25 unsigned long size; member in struct:dentry
H A Dext4.h101 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits)))
H A Dext4_utils.c252 * block on a system with a block size > 1K. So, we need to
383 u64 size = 0; local
387 ret = ioctl(fd, BLKGETSIZE64, &size);
389 ret = ioctl(fd, DKIOCGETBLOCKCOUNT, &size);
398 return size;
423 warn("Computed filesystem size less than 0");
H A Dindirect.c437 u64 size; local
477 size = (u64)last_block * info.block_size;
483 inode->i_size_lo = size;
484 inode->i_size_high = size >> 32;

Completed in 253 milliseconds

123456