/system/security/keystore/ |
H A D | keystore.cpp | 201 static size_t readFully(int fd, uint8_t* data, size_t size) { argument 202 size_t remaining = size; 204 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, size)); 206 return size-remaining; 211 return size; 214 static size_t writeFully(int fd, uint8_t* data, size_t size) { argument 215 size_t remaining = size; 217 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, size)); 219 return size-remaining; 224 return size; 1449 socklen_t size = sizeof(cred); local [all...] |
/system/vold/ |
H A D | Fat.cpp | 170 const char *size = tmp; local 172 args[8] = size;
|
H A D | cryptfs.c | 94 SLOGE("Cannot open device to get filesystem size "); 166 SLOGE("Cannot get size of block device %s\n", fname); 230 SLOGE("Cannot set footer file size\n", fname); 265 SLOGE("Cannot get size of block device %s\n", fname); 289 SLOGE("footer file %s is not the expected size!\n", fname); 319 /* the footer size is bigger than we expected. 895 /* Update the fs_size field to be the size of the volume */ 900 SLOGE("Cannot get size of volume %s\n", real_blkdev); 984 * defaulted to 16 bytes, and the filesystem size to 0. 986 * filesystem size an 1002 cryptfs_enable_wipe(char *crypto_blkdev, off64_t size, int type) argument 1046 cryptfs_enable_inplace(char *crypto_blkdev, char *real_blkdev, off64_t size, off64_t *size_already_done, off64_t tot_size) argument [all...] |
H A D | cryptfs.h | 62 unsigned int size; member in struct:volume_info
|
/system/bluetooth/bluez-clean-headers/bluetooth/ |
H A D | hci.h | 1600 uint8_t size; member in struct:__anon159
|
/system/core/adb/ |
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...] |
H A D | file_sync_service.h | 58 unsigned size; member in struct:__anon274::__anon276 64 unsigned size; member in struct:__anon274::__anon277 70 unsigned size; member in struct:__anon274::__anon278
|
H A D | framebuffer_service.c | 42 unsigned int size; member in struct:fbinfo 91 fbinfo.size = w * h * 4; 105 fbinfo.size = w * h * 4; 119 fbinfo.size = w * h * 3; 133 fbinfo.size = w * h * 2; 147 fbinfo.size = w * h * 4; 167 for(i = 0; i < fbinfo.size; i += sizeof(buf)) { 171 if(readx(fd_screencap, buf, fbinfo.size % sizeof(buf))) goto done; 172 if(writex(fd, buf, fbinfo.size % sizeof(buf))) goto done;
|
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 | log_service.c | 89 size_t size = sizeof(struct logger_entry) + buf->len; local 91 writex(fd, buf, size);
|
H A D | remount_service.c | 38 int size; local 48 size = adb_read(fd, buf, sizeof(buf) - 1);
|
H A D | transport_usb.c | 84 unsigned size = p->msg.data_length; local 93 if(usb_write(t->usb, &p->data, size)) {
|
/system/core/cpio/ |
H A D | mkbootfs.c | 167 int size = 32; local 169 char** names = malloc(size * sizeof(char*)); 171 fprintf(stderr, "failed to allocate dir names array (size %d)\n", size); 182 if (entries >= size) { 183 size *= 2; 184 names = realloc(names, size * sizeof(char*)); 186 fprintf(stderr, "failed to reallocate dir names array (size %d)\n", 187 size); 258 int size; local [all...] |
/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");
|
H A D | protocol.c | 50 static int check_response(usb_handle *usb, unsigned int size, char *response) argument 91 if(!memcmp(status, "DATA", 4) && size > 0){ 93 if(dsize > size) { 94 strcpy(ERROR, "data size too large"); 109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, argument 130 return check_response(usb, size, response); 133 static int _command_data(usb_handle *usb, const void *data, unsigned size) argument 137 r = usb_write(usb, data, size); 143 if(r != ((int) size)) { 163 const void *data, unsigned size, 162 _command_send(usb_handle *usb, const char *cmd, const void *data, unsigned size, char *response) argument 207 fb_download_data(usb_handle *usb, const void *data, unsigned size) argument 295 int size = sparse_file_len(s, true, false); local [all...] |
H A D | usb_linux.c | 65 /* The max bulk size for linux is 16384 which is defined 86 static int check(void *_desc, int len, unsigned type, int size) argument 90 if(len < size) return -1; 91 if(desc[0] < size) return -1;
|
/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/system/ |
H A D | audio.h | 536 size_t size = 0; local 541 size = sizeof(int32_t); 544 size = sizeof(int16_t); 547 size = sizeof(uint8_t); 552 return size;
|
/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 | 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
|
H A D | keychords.c | 38 int i, size; local 42 size = sizeof(*keychord) + svc->nkeycodes * sizeof(keychord->keycodes[0]); 43 keychords = realloc(keychords, keychords_length + size); 61 keychords_length += size;
|
H A D | logo.c | 44 unsigned size; member in struct:FB
|