/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/core/include/cutils/ |
H A D | misc.h | 26 * sz is non-zero, return the size of the file via sz. 29 extern void *load_file(const char *fn, unsigned *sz);
|
/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 | fastboot.cpp | 99 int64_t sz; member in struct:fastboot_buffer 167 static void* load_fd(int fd, int64_t* sz) { argument 171 *sz = get_file_size(fd); 172 if (*sz < 0) { 176 data = (char*) malloc(*sz); 179 if(read(fd, data, *sz) != *sz) goto oops; 192 static void* load_file(const char* fn, int64_t* sz) { argument 195 return load_fd(fd, sz); 421 const char* secondstage, int64_t* sz, 420 load_bootable_image(const char* kernel, const char* ramdisk, const char* secondstage, int64_t* sz, const char* cmdline) argument 485 unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz) argument 696 setup_requirements(char* data, int64_t sz) argument 803 int64_t sz = get_file_size(fd); local 849 int64_t sz = sparse_file_len(*s, true, false); local 1041 int64_t sz; local 1081 int64_t sz; local 1088 setup_requirements(reinterpret_cast<char*>(data), sz); local 1154 int64_t sz; local 1170 int64_t sz; local 1174 setup_requirements(reinterpret_cast<char*>(data), sz); local 1237 int64_t sz; local 1403 int64_t sz; local [all...] |
H A D | fastboot.h | 53 void fb_queue_flash(const char *ptn, void *data, uint32_t sz); 54 void fb_queue_flash_sparse(const char* ptn, struct sparse_file* s, uint32_t sz, size_t current,
|
H A D | engine.cpp | 147 void fb_queue_flash(const char *ptn, void *data, unsigned sz) argument 153 a->size = sz; 154 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024); 160 void fb_queue_flash_sparse(const char* ptn, struct sparse_file* s, unsigned sz, size_t current, argument 167 a->msg = mkmsg("sending sparse '%s' %zu/%zu (%d KB)", ptn, current, total, sz / 1024);
|
/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/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/weaved/buffet/ |
H A D | webserv_client.cc | 60 size_t sz = 0; variable 61 while (stream->ReadBlocking(buffer.data(), buffer.size(), &sz, nullptr) && 62 sz > 0) { 63 request_data_->append(buffer.data(), buffer.data() + sz);
|
/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/adb/ |
H A D | commandline.cpp | 815 static int adb_download_buffer(const char *service, const char *fn, const void* data, unsigned sz, argument 819 int fd = adb_connect(android::base::StringPrintf("%s:%d", service, sz), &error); 828 unsigned total = sz; 836 while (sz > 0) { 837 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; 845 sz -= xfer; 848 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); 888 unsigned sz; local 896 uint8_t* data = reinterpret_cast<uint8_t*>(load_file(fn, &sz)); [all...] |
/system/core/logwrapper/ |
H A D | logwrap.c | 311 int sz; local 359 sz = TEMP_FAILURE_RETRY( 362 for (size_t i = 0; sz > 0 && i < opts_len; ++i) { 365 (uint8_t*)&buffer[b], sz, opts[i].opt_capture_output.user_pointer); 369 sz += b; 371 for (b = 0; b < sz; b++) {
|
/system/update_engine/payload_generator/ |
H A D | extent_ranges_unittest.cc | 36 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/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/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;
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
H A D | header.h | 157 int get_cpuid(char *buffer, size_t sz);
|