Searched defs:sz (Results 1 - 24 of 24) sorted by path

/system/bluetooth/bluedroid/
H A Dbluetooth.c53 int sz; local
62 sz = read(fd, &buf, sizeof(buf));
64 if (sz >= 9 && memcmp(buf, "bluetooth", 9) == 0) {
75 int sz; local
90 sz = read(fd, &buffer, 1);
91 if (sz != 1) {
112 int sz; local
127 sz = write(fd, &buffer, 1);
128 if (sz < 0) {
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c743 int sz; local
763 sz = read(fd, bdaddr, len);
764 if (sz < 0) {
769 } else if (sz != len) {
770 fprintf(stderr, "read(%s) unexpected size %d", path, sz);
/system/core/adb/
H A Dcommandline.c374 int adb_download_buffer(const char *service, const void* data, int sz, argument
382 sprintf(buf,"%s:%d", service, sz);
392 total = sz;
400 while(sz > 0) {
401 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz;
407 sz -= xfer;
410 printf("sending: '%s' %4d%% \r", service, (int)(100LL - ((100LL * sz) / (total))));
438 unsigned sz; local
440 data = load_file(fn, &sz);
[all...]
/system/core/charger/
H A Dcharger.c204 unsigned sz = 0; local
210 buf = load_file(LAST_KMSG_PATH, &sz);
211 if (!buf || !sz) {
216 len = min(sz, LAST_KMSG_MAX_SZ);
217 ptr = buf + (sz - len);
245 static int read_file(const char *path, char *buf, size_t sz) argument
254 cnt = read(fd, buf, sz - 1);
/system/core/fastboot/
H A Dengine.c405 void fb_queue_flash(const char *ptn, void *data, unsigned sz) argument
411 a->size = sz;
412 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024);
418 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz) argument
425 a->msg = mkmsg("sending sparse '%s' (%d KB)", ptn, sz / 1024);
H A Dfastboot.c158 int sz; local
166 sz = lseek(fd, 0, SEEK_END);
167 if(sz < 0) goto oops;
171 data = (char*) malloc(sz);
174 if(read(fd, data, sz) != sz) goto oops;
177 if(_sz) *_sz = sz;
308 unsigned *sz, const char *cmdline)
335 *sz = ksize;
355 *sz
307 load_bootable_image(unsigned page_size, const char *kernel, const char *ramdisk, unsigned *sz, const char *cmdline) argument
360 unzip_file(zipfile_t zip, const char *name, unsigned *sz) argument
462 setup_requirements(char *data, unsigned sz) argument
598 unsigned int sz; local
608 unsigned sz; local
620 unsigned sz; local
679 unsigned sz; local
698 unsigned sz; local
808 unsigned sz; local
[all...]
H A Dutil_windows.c43 DWORD sz; local
56 sz = GetFileSize( file, NULL );
59 return sz;
78 DWORD sz; local
91 sz = GetFileSize( file, NULL );
94 if (sz > 0) {
95 data = (char*) malloc( sz );
97 fprintf(stderr, "load_file: could not allocate %ld bytes\n", sz );
98 sz = 0;
102 if ( !ReadFile( file, data, sz,
[all...]
/system/core/gpttool/
H A Dgpttool.c195 u64 parse_size(char *sz) argument
197 int l = strlen(sz);
198 u64 n = strtoull(sz, 0, 10);
200 switch(sz[l-1]){
221 u64 sz; local
230 sz = ptbl->header.last_lba - next_lba;
232 sz = parse_size(y);
233 if (sz & 511) {
237 sz /= 512;
240 if (sz
259 u64 sz, blk; local
[all...]
/system/core/init/
H A Dinit.c243 int fd, sz; local
262 get_property_workspace(&fd, &sz);
263 sprintf(tmp, "%d,%d", dup(fd), sz);
H A Dproperty_service.c484 void get_property_workspace(int *fd, int *sz) argument
487 *sz = pa_workspace.size;
520 unsigned sz; local
522 data = read_file(fn, &sz);
H A Dutil.c152 int sz; local
171 sz = lseek(fd, 0, SEEK_END);
172 if(sz < 0) goto oops;
176 data = (char*) malloc(sz + 2);
179 if(read(fd, data, sz) != sz) goto oops;
181 data[sz] = '\n';
182 data[sz+1] = 0;
183 if(_sz) *_sz = sz;
/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/core/libnetutils/
H A Ddhcpclient.c351 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) argument
353 if (sz < DHCP_MSG_FIXED_SIZE) {
354 if (verbose) ALOGD("netcfg: Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE);
/system/core/libpixelflinger/codeflinger/
H A DGGLAssembler.h216 integer_t(int r, int sz=32, int f=0) argument
217 : reg_t(r, f), s(sz) {
219 void setTo(int r, int sz=32, int f=0) { argument
220 reg_t::setTo(r, f); s=sz;
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp76 size_t sz = size; local
79 while (NLMSG_OK(nh, sz) && (nh->nlmsg_type != NLMSG_DONE)) {
/system/core/logwrapper/
H A Dlogwrapper.c54 int sz; local
59 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
61 sz += b;
63 for (b = 0; b < sz; b++) {
/system/core/mkbootimg/
H A Dmkbootimg.c31 int sz; local
38 sz = lseek(fd, 0, SEEK_END);
39 if(sz < 0) goto oops;
43 data = (char*) malloc(sz);
46 if(read(fd, data, sz) != sz) goto oops;
49 if(_sz) *_sz = sz;
/system/extras/micro_bench/
H A Dmicro_bench.c82 static int do_memset(int iters, int sz) { argument
87 uint8_t *b = malloc(sz);
89 int c = 1000000000/sz;
94 memset(b, 0, sz);
101 c, sz, tv2.tv_sec, tv2.tv_usec, mb_sec(c*sz, &tv2));
106 static int do_memcpy(int iters, int sz) { argument
111 uint8_t *a = malloc(sz);
113 uint8_t *b = malloc(sz);
115 int c = 1000000000/sz;
134 do_memread(int iters, int sz) argument
[all...]
/system/extras/sound/
H A Dplaywav.c37 int (*fill)(void *buf, unsigned sz, void *cookie),
42 unsigned sz, n; local
63 sz = config.buffer_size;
64 if (sz > sizeof(buf)) {
71 if (fill(buf, sz, cookie))
73 if (write(afd, buf, sz) != sz)
85 if (fill(buf, sz, cookie))
87 if (write(afd, buf, sz) != sz)
36 pcm_play(unsigned rate, unsigned channels, int (*fill)(void *buf, unsigned sz, void *cookie), void *cookie) argument
125 fill_buffer(void *buf, unsigned sz, void *cookie) argument
196 unsigned sz, n; local
[all...]
/system/extras/tests/framebuffer/
H A Dmdp_test.c73 static int get_pmem(int *fd, void **data, int sz) argument
81 sz = (sz + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1);
82 *data = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, *fd, 0);
218 printf("Got src img sz: w=%d h=%d\n", src_imgw, src_imgh);
226 printf("Got dst img sz: w=%d h=%d\n", dst_imgw, dst_imgh);
/system/netd/
H A DNetlinkManager.cpp57 int sz = 64 * 1024; local
70 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
H A Dlogwrapper.c35 int sz; local
36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
38 sz += b;
40 for (b = 0; b < sz; b++) {
/system/vold/
H A DNetlinkManager.cpp52 int sz = 64 * 1024; local
66 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
H A Dlogwrapper.c36 int sz; local
37 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
39 sz += b;
41 for (b = 0; b < sz; b++) {

Completed in 1248 milliseconds