/system/core/libcutils/ |
H A D | load_file.c | 25 int sz; local 32 sz = lseek(fd, 0, SEEK_END); 33 if(sz < 0) goto oops; 37 data = (char*) malloc(sz + 1); 40 if(read(fd, data, sz) != sz) goto oops; 42 data[sz] = 0; 44 if(_sz) *_sz = sz;
|
/system/vold/ |
H A D | NetlinkManager.cpp | 53 int sz = 64 * 1024; local 67 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
|
/system/core/fingerprintd/ |
H A D | IFingerprintDaemonCallback.cpp | 78 int32_t sz) { 82 data.writeInt32Array(sz, fpIds); 83 data.writeInt32Array(sz, gpIds); 77 onEnumerate(int64_t devId, const int32_t* fpIds, const int32_t* gpIds, int32_t sz) argument
|
/system/netd/server/ |
H A D | NetlinkManager.cpp | 71 int sz = 64 * 1024; local 84 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
|
/system/core/mkbootimg/ |
H A D | mkbootimg.c | 32 int sz; local 39 sz = lseek(fd, 0, SEEK_END); 40 if(sz < 0) goto oops; 44 data = (char*) malloc(sz); 47 if(read(fd, data, sz) != sz) goto oops; 50 if(_sz) *_sz = sz;
|
/system/core/toolbox/upstream-netbsd/usr.bin/du/ |
H A D | du.c | 270 int64_t sz = blocks * 512; local 272 humanize_number(buf, sizeof(buf), sz, "", HN_AUTOSCALE,
|
/system/extras/sound/ |
H A D | playwav.c | 39 int (*fill)(void *buf, unsigned sz, void *cookie), 44 unsigned sz, n; local 65 sz = config.buffer_size; 66 if (sz > sizeof(buf)) { 73 if (fill(buf, sz, cookie)) 75 if (write(afd, buf, sz) != sz) 87 if (fill(buf, sz, cookie)) 89 if (write(afd, buf, sz) != sz) 38 pcm_play(unsigned rate, unsigned channels, int (*fill)(void *buf, unsigned sz, void *cookie), void *cookie) argument 127 fill_buffer(void *buf, unsigned sz, void *cookie) argument 198 unsigned sz, n; local [all...] |
/system/core/fastboot/ |
H A D | engine.c | 175 void fb_queue_flash(const char *ptn, void *data, unsigned sz) argument 181 a->size = sz; 182 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024); 188 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz) argument 195 a->msg = mkmsg("sending sparse '%s' (%d KB)", ptn, sz / 1024);
|
H A D | fastboot.cpp | 85 unsigned int sz; member in struct:fastboot_buffer 155 int sz; local 160 sz = file_size(fd); 161 if (sz < 0) { 165 data = (char*) malloc(sz); 168 if(read(fd, data, sz) != sz) goto oops; 171 if(_sz) *_sz = sz; 327 unsigned *sz, const char *cmdline) 354 *sz 326 load_bootable_image(const char *kernel, const char *ramdisk, unsigned *sz, const char *cmdline) argument 382 unzip_file(ZipArchiveHandle zip, const char* entry_name, unsigned* sz) argument 541 setup_requirements(char *data, unsigned sz) argument 671 unsigned int sz; local 727 unsigned sz; local 747 unsigned sz; local 754 setup_requirements(reinterpret_cast<char*>(data), sz); local 785 unsigned sz; local 809 unsigned sz; local 813 setup_requirements(reinterpret_cast<char*>(data), sz); local 986 unsigned sz; local [all...] |
/system/core/gpttool/ |
H A D | gpttool.c | 194 u64 parse_size(char *sz) argument 196 int l = strlen(sz); 197 u64 n = strtoull(sz, 0, 10); 199 switch(sz[l-1]){ 220 u64 sz; local 229 sz = ptbl->header.last_lba - next_lba; 231 sz = parse_size(y); 232 if (sz & 511) { 236 sz /= 512; 239 if (sz 256 u64 sz; local [all...] |
/system/core/init/ |
H A D | property_service.cpp | 354 void get_property_workspace(int *fd, int *sz) argument 357 *sz = pa_workspace.size;
|
H A D | init.cpp | 267 int fd, sz; local 271 get_property_workspace(&fd, &sz); 272 snprintf(tmp, sizeof(tmp), "%d,%d", dup(fd), sz);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 353 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) argument 355 if (sz < DHCP_MSG_FIXED_SIZE) { 356 if (verbose) ALOGD("Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE);
|
/system/core/logwrapper/ |
H A D | logwrap.c | 310 int sz; local 358 sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b); 360 sz += b; 362 for (b = 0; b < sz; b++) {
|
/system/core/adb/ |
H A D | commandline.cpp | 449 static int adb_download_buffer(const char *service, const char *fn, const void* data, unsigned sz, argument 453 int fd = adb_connect(android::base::StringPrintf("%s:%d", service, sz), &error); 462 unsigned total = sz; 470 while (sz > 0) { 471 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; 478 sz -= xfer; 481 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); 520 unsigned sz; local 528 uint8_t* data = reinterpret_cast<uint8_t*>(load_file(fn, &sz)); [all...] |
/system/core/healthd/ |
H A D | healthd_mode_charger.cpp | 198 unsigned sz = 0; local 204 buf = (char *)load_file(LAST_KMSG_PSTORE_PATH, &sz); 206 if (!buf || !sz) { 207 buf = (char *)load_file(LAST_KMSG_PATH, &sz); 208 if (!buf || !sz) { 214 len = min(sz, LAST_KMSG_MAX_SZ); 215 ptr = buf + (sz - len);
|
/system/core/libpixelflinger/codeflinger/ |
H A D | GGLAssembler.h | 222 integer_t(int r, int sz=32, int f=0) argument 223 : reg_t(r, f), s(sz) { 225 void setTo(int r, int sz=32, int f=0) { argument 226 reg_t::setTo(r, f); s=sz;
|