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

/system/core/fastboot/
H A Dengine.cpp148 void fb_queue_flash_fd(const char *ptn, int fd, uint32_t sz) argument
154 a->size = sz;
155 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024);
161 void fb_queue_flash(const char *ptn, void *data, uint32_t sz) argument
167 a->size = sz;
168 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024);
174 void fb_queue_flash_sparse(const char* ptn, struct sparse_file* s, uint32_t sz, size_t current, argument
181 a->msg = mkmsg("sending sparse '%s' %zu/%zu (%d KB)", ptn, current, total, sz / 1024);
338 void fb_queue_download_fd(const char *name, int fd, uint32_t sz) argument
343 a->size = sz;
[all...]
H A Dfastboot.cpp109 int64_t sz; member in struct:fastboot_buffer
162 static void* load_fd(int fd, int64_t* sz) { argument
166 *sz = get_file_size(fd);
167 if (*sz < 0) {
171 data = (char*) malloc(*sz);
174 if(read(fd, data, *sz) != *sz) goto oops;
187 static void* load_file(const std::string& path, int64_t* sz) { argument
190 return load_fd(fd, sz);
443 const std::string& second_stage, int64_t* sz,
442 load_bootable_image(const std::string& kernel, const std::string& ramdisk, const std::string& second_stage, int64_t* sz, const char* cmdline) argument
488 unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz) argument
718 setup_requirements(char* data, int64_t sz) argument
825 int64_t sz = get_file_size(fd); local
922 int64_t sz = sparse_file_len(*s, true, false); local
1113 int64_t sz; local
1153 int64_t sz; local
1160 setup_requirements(reinterpret_cast<char*>(data), sz); local
1227 int64_t sz; local
1244 int64_t sz; local
1248 setup_requirements(reinterpret_cast<char*>(data), sz); local
1309 int64_t sz; local
1502 int64_t sz; local
[all...]
/system/core/healthd/
H A Dhealthd_mode_charger.cpp201 unsigned sz = 0; local
215 buf = (char*)load_file(kmsg[i], &sz);
216 if (buf && sz) break;
219 if (!buf || !sz) {
224 len = min(sz, LAST_KMSG_MAX_SZ);
225 ptr = buf + (sz - len);
/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("Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE);
/system/core/libpixelflinger/codeflinger/
H A DGGLAssembler.h222 integer_t(int r, int sz=32, int f=0) // NOLINT, implicit 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;
/system/core/logwrapper/
H A Dlogwrap.c310 int sz; local
358 sz = TEMP_FAILURE_RETRY(
361 sz += b;
363 for (b = 0; b < sz; b++) {
/system/core/trusty/storage/tests/
H A Dmain.cpp28 static inline bool is_32bit_aligned(size_t sz) argument
30 return ((sz & 0x3) == 0);
33 static inline bool is_valid_size(size_t sz) { argument
34 return (sz > 0) && is_32bit_aligned(sz);
/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/netd/server/
H A DNetlinkManager.cpp75 int sz = 64 * 1024; local
89 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
/system/nfc/halimpl/bcm2079x/adaptation/
H A Dpatchram.cpp119 long sz; local
121 sz = ftell(fp);
124 return (sz > 0) ? sz : 0;
/system/update_engine/payload_generator/
H A Dextent_ranges_unittest.cc36 size_t sz,
39 for (size_t i = 1; i < sz; i += 2) {
46 for (size_t i = 0; i < sz; i += 2) {
34 ExpectRangeEq(const ExtentRanges& ranges, const uint64_t* expected, size_t sz, int line) argument
/system/vold/
H A DNetlinkManager.cpp53 int sz = 64 * 1024; local
69 if ((setsockopt(mSock, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) < 0) &&
70 (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0)) {

Completed in 229 milliseconds