Searched defs:sz (Results 1 - 17 of 17) sorted by relevance

/system/core/libcutils/
H A Dload_file.c25 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 DNetlinkManager.cpp53 int sz = 64 * 1024; local
67 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
/system/core/fingerprintd/
H A DIFingerprintDaemonCallback.cpp78 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 DNetlinkManager.cpp71 int sz = 64 * 1024; local
84 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
/system/core/mkbootimg/
H A Dmkbootimg.c32 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 Ddu.c270 int64_t sz = blocks * 512; local
272 humanize_number(buf, sizeof(buf), sz, "", HN_AUTOSCALE,
/system/extras/sound/
H A Dplaywav.c39 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 Dengine.c175 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 Dfastboot.cpp85 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;
332 unsigned *sz, const char *cmdline)
359 *sz
331 load_bootable_image(const char *kernel, const char *ramdisk, unsigned *sz, const char *cmdline) argument
387 unzip_file(ZipArchiveHandle zip, const char* entry_name, unsigned* sz) argument
546 setup_requirements(char *data, unsigned sz) argument
676 unsigned int sz; local
732 unsigned sz; local
752 unsigned sz; local
759 setup_requirements(reinterpret_cast<char*>(data), sz); local
790 unsigned sz; local
814 unsigned sz; local
818 setup_requirements(reinterpret_cast<char*>(data), sz); local
841 unsigned sz; local
1012 unsigned sz; local
[all...]
/system/core/gpttool/
H A Dgpttool.c194 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 Dproperty_service.cpp354 void get_property_workspace(int *fd, int *sz) argument
357 *sz = pa_workspace.size;
H A Dinit.cpp267 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 Ddhcpclient.c353 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 Dlogwrap.c310 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 Dcommandline.cpp449 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 Dhealthd_mode_charger.cpp198 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 DGGLAssembler.h222 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;

Completed in 529 milliseconds