/system/extras/ext4_utils/ |
H A D | contents.c | 47 /* 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 D | ext4_utils.c | 252 * 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 D | indirect.c | 437 u64 size; local 477 size = (u64)last_block * info.block_size; 483 inode->i_size_lo = size; 484 inode->i_size_high = size >> 32;
|
/system/extras/fatblock/ |
H A D | import.c | 91 uint32_t size; member in struct:imported 125 f->size = st.st_size; 132 f->size, EXTENT_TYPE_FILE, &out->first_cluster); 138 out->size = f->size; 294 d->size = sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2)); 295 ret = fs_alloc_extent(fs, &d->extent, d->size, EXTENT_TYPE_DIR, &out->first_cluster); 317 item->imp.first_cluster, item->imp.size); 340 out->size = 0;
|
H A D | fat.h | 100 uint32_t size; member in struct:fat_dirent 122 cluster_t first_cluster, uint32_t size);
|
/system/extras/libublock/ |
H A D | ublock.c | 33 uint64_t size; member in struct:ublock_ctx 89 out_h->size = ub_ctx->size; 344 size_t size; local 358 size = ublock_init_buf_size(); 359 in_buf = malloc(size); 360 out_buf = malloc(size); 367 ub_ctx->size = dev_size; 377 result = ublock_do_request(ub_ctx, in_buf, size, out_buf, size); [all...] |
/system/extras/showmap/ |
H A D | showmap.c | 18 unsigned size; member in struct:mapinfo 89 int size; local 91 if (sscanf(line, "%63s %d kB", field, &size) != 2) { 96 mi->size = size; 98 mi->rss = size; 100 mi->pss = size; 102 mi->shared_clean = size; 104 mi->shared_dirty = size; 106 mi->private_clean = size; 252 unsigned size = 0; local [all...] |
/system/extras/tests/directiotest/ |
H A D | directiotest.c | 51 static void *pagealign_alloc(size_t size) argument 53 void *ret = mmap(NULL, size, PROT_READ | PROT_WRITE, 63 static void pagealign_free(void *addr, size_t size) argument 65 int ret = munmap(addr, size); 120 * test area size.
|
/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 310 * pointed to by buf, for the number of bytes given by size. 319 testXDump(const void *buf, size_t size) argument 325 size_t num = size;
|
/system/extras/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 69 // For read/write tests, size is the number of Kbytes to use. 74 // adb shell /system/bin/sdcard_perf_test --test=read --size=1000 --chunk-size=100 --procnb=1 --iterations=10 --dump > /tmp/data.txt 75 // adb shell /system/bin/sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 --dump > /tmp/data.txt 111 {"size", required_argument, 0, 's'}, 112 {"chunk-size", required_argument, 0, 'S'}, 132 " -s --size: Size in kbytes of the data.\n" 133 " -S --chunk-size: Size of a chunk. Default to size i 354 const size_t size = testCase->dataSize(); local 491 const size_t size = testCase->dataSize(); local [all...] |
H A D | sysutil.cpp | 74 // @param size The size of the buffer pointed by str. Must be >= 1. 77 int readStringFromFile(const char *filename, char *const start, size_t size, bool must_exist=true) argument 79 if (NULL == start || size == 0) 99 --size; // reserve space for trailing '\0' 101 while (size > 0 && !error && !eof && attempts < kMaxAttempts) 105 s = read(fd, end, size); 122 size -= s; 161 size_t size = len; local 165 while (size > 235 kernelVersion(char *str, size_t size) argument 285 schedFeatures(char *str, size_t size) argument 447 size_t size = sizeof(pid); local 525 size_t size; local [all...] |
/system/core/adb/ |
H A D | jdwp_service.c | 243 int size = 4 - proc->in_len; local 245 while (size > 0) { 246 int len = recv( socket, p, size, 0 ); 264 size -= len;
|
H A D | file_sync_client.c | 75 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie); 106 ltohl(msg.dent.size), 120 unsigned size; member in struct:syncsendbuf 168 unsigned int *mode, unsigned int *size) 180 *size = ltohl(msg.stat.size); 235 sbuf->size = htoll(ret); 247 static int write_data_buffer(int fd, char* file_buffer, int size, syncsendbuf *sbuf) argument 253 while (total < size) { 254 int count = size 167 sync_finish_readtime(int fd, unsigned int *timestamp, unsigned int *mode, unsigned int *size) argument 304 int size = 0; local 535 do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 566 unsigned int size; member in struct:copyinfo 708 unsigned int timestamp, mode, size; local 810 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument [all...] |
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 176 static char *getline(char *buf, int size, FILE *file) argument 183 if (size < 1) { 187 while (cnt < (size - 1)) { 293 /* If a non-comment entry is greater than the size we allocated, give an 603 int fs_mgr_get_crypt_info(char *fstab_file, char *key_loc, char *real_blk_dev, int size) argument 627 strlcpy(key_loc, fstab[i].key_loc, size); 630 strlcpy(real_blk_dev, fstab[i].blk_dev, size);
|
/system/core/include/pixelflinger/ |
H A D | format.h | 105 uint8_t size; // bytes per pixel member in struct:__anon313
|
/system/core/include/sysutils/ |
H A D | List.h | 185 size_t size() const { function in class:android::sysutils::List
|
/system/core/init/ |
H A D | property_service.c | 116 size_t size; member in struct:__anon374 120 static int init_workspace(workspace *w, size_t size) argument 132 if (ftruncate(fd, size) < 0) 135 data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 148 w->size = size; 434 ERROR("sys_prop: mis-match msg size recieved: %d expected: %d errno: %d\n", 487 *sz = pa_workspace.size;
|
H A D | builtins.c | 140 unsigned size; local 143 module = read_file(filename, &size); 147 ret = init_module(module, size, options); 284 int size = 0; local 288 size += strlen(args[i]) + 1; 291 return do_insmod_inner(nargs, args, size);
|
H A D | devices.c | 421 unsigned int size; local
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 342 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) argument 345 dump_dhcp_msg(msg, size); 347 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST, 354 if (verbose) ALOGD("netcfg: Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE); 394 int s, r, size; local 442 size = 0; 447 size = init_dhcp_discover_msg(msg, hwaddr, xid); 451 size = init_dhcp_request_msg(msg, hwaddr, xid, info.ipaddr, info.serveraddr); 456 if (size != 0) { 457 r = send_message(s, if_index, msg, size); [all...] |
/system/extras/atrace/ |
H A D | atrace.c | 246 // 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/tests/memtest/ |
H A D | memtest.cpp | 134 int validate_memcpy(char* s, char* d, size_t size); 135 int validate_memset(char* s, char c, size_t size); 162 struct result_t { int size; float res; }; member in struct:result_t 165 int size = 0; local 168 if (size<128) size += 8; 169 else if (size<1024) size += 128; 170 else if (size<16384) size 238 validate_memcpy(char* s, char* d, size_t size) argument 288 struct result_t { int size; float res; }; member in struct:result_t 291 int size = 0; local 345 validate_memset(char* d, char c, size_t size) argument 389 validate_memcmp(const char* s, const char* d, size_t size) argument 426 struct result_t { int size; float res; }; member in struct:result_t 429 int size = 0; local 538 struct result_t { int size; float res; }; member in struct:result_t 541 int size = 0; local 597 size_t size = 0x40000000; local 627 size_t size = i==0 ? 4096 : 48*1024*1024; // 48 MB local [all...] |
/system/netd/ |
H A D | List.h | 185 size_t size() const { function in class:android::netd::List
|
/system/core/fastboot/ |
H A D | engine.c | 93 unsigned size; member in struct:Action 107 long long image_size; // real size of image file 132 * size of the buffer returned as image->image_size. 134 * image->partition_size specifies what is the size of the 207 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd)); 232 static void *load_buffer(int fd, off_t size) argument 241 buffer = malloc(size); 248 while(count < size) { 249 ssize_t actually_read = read(fd, (char*)buffer+count, size-count); 266 buffer = mmap(NULL, size, PROT_REA 580 fb_queue_download(const char *name, void *data, unsigned size) argument [all...] |
H A D | fastboot.c | 301 " -n <page size> specify the nand page size. default: 2048\n" 302 " -S <size>[K|M|G] automatically sparse files greater than\n" 303 " size. 0 to disable\n" 529 int status = fb_getvar(usb, response, "max-download-size"); 534 fprintf(stderr, "target reported max download size of %lld bytes\n", 542 static int64_t get_sparse_limit(struct usb_handle *usb, int64_t size) argument 561 if (size > limit) { 836 if (!page_size) die("invalid page size");
|