Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 22 of 22) sorted by relevance

/system/core/libcutils/
Dload_file.cpp27 int sz; in load_file() local
34 sz = lseek(fd, 0, SEEK_END); in load_file()
35 if(sz < 0) goto oops; in load_file()
39 data = (char*) malloc(sz + 1); in load_file()
42 if(read(fd, data, sz) != sz) goto oops; in load_file()
44 data[sz] = 0; in load_file()
46 if(_sz) *_sz = sz; in load_file()
/system/extras/sound/
Dplaywav.c39 int (*fill)(void *buf, unsigned sz, void *cookie), in pcm_play() argument
46 unsigned sz, n; in pcm_play() local
67 sz = config.buffer_size; in pcm_play()
68 if (sz > sizeof(buf)) { in pcm_play()
75 if (fill(buf, sz, cookie)) in pcm_play()
77 if (write(afd, buf, sz) != (ssize_t) sz) in pcm_play()
89 if (fill(buf, sz, cookie)) in pcm_play()
91 if (write(afd, buf, sz) != (ssize_t) sz) in pcm_play()
128 int fill_buffer(void *buf, unsigned sz, void *cookie) in fill_buffer() argument
130 if (sz > avail) in fill_buffer()
[all …]
/system/core/debuggerd/
Dutil.cpp52 size_t sz = sizeof(buf), n; in get_timestamp() local
53 n = strftime(s, sz, "%F %H:%M", &tm), s += n, sz -= n; in get_timestamp()
54 n = snprintf(s, sz, ":%02d.%09ld", tm.tm_sec, ts.tv_nsec), s += n, sz -= n; in get_timestamp()
55 n = strftime(s, sz, "%z", &tm), s += n, sz -= n; in get_timestamp()
/system/vold/
DNetlinkManager.cpp49 int sz = 64 * 1024; in start() local
65 if ((setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) && in start()
66 (setsockopt(mSock, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) < 0)) { in start()
/system/netd/server/
DNetlinkManager.cpp71 int sz = 64 * 1024; in setupSocket() local
88 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0 && in setupSocket()
89 setsockopt(*sock, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) < 0) { in setupSocket()
/system/bt/embdrv/g722/
Dg722_decode.cc84 int sz; in block4() local
91 band->p[0] = __ssat16(band->sz + d); in block4()
141 sz = 0; in block4()
149 sz += (bi*wd1) >> 15; in block4()
151 band->sz = sz; in block4()
168 band->s = __ssat16(band->sp + band->sz); in block4()
Dg722_encode.cc81 int sz; in block4() local
88 band->p[0] = saturate(band->sz + d); in block4()
135 sz = 0; in block4()
143 sz += (bi*wd1) >> 15; in block4()
145 band->sz = sz; in block4()
162 band->s = saturate(band->sp + band->sz); in block4()
Dg722_enc_dec.h72 int sz; member
/system/core/libcutils/include/cutils/
Dmisc.h29 extern void *load_file(const char *fn, unsigned *sz);
/system/core/libcutils/include_vndk/cutils/
Dmisc.h29 extern void *load_file(const char *fn, unsigned *sz);
/system/chre/host/msm/daemon/generated/
Dchre_slpi_skel.c102 #define _COPY(dst, dof, src, sof, sz) \ argument
105 char ar[sz]; \
110 #define _COPYIF(dst, dof, src, sof, sz) \ argument
113 _COPY(dst, dof, src, sof, sz); \
125 #define _MEMMOVEIF(dst, src, sz) \ argument
128 _qaic_memmove(dst, src, sz);\
Dchre_slpi_stub.c102 #define _COPY(dst, dof, src, sof, sz) \ argument
105 char ar[sz]; \
110 #define _COPYIF(dst, dof, src, sof, sz) \ argument
113 _COPY(dst, dof, src, sof, sz); \
125 #define _MEMMOVEIF(dst, src, sz) \ argument
128 _qaic_memmove(dst, src, sz);\
/system/core/fastboot/
Dfastboot.cpp116 int64_t sz; member
891 int64_t sz = get_file_size(fd); in load_buf_fd() local
892 if (sz == -1) { in load_buf_fd()
900 buf->image_size = sz; in load_buf_fd()
904 int64_t limit = get_sparse_limit(sz); in load_buf_fd()
916 buf->sz = sz; in load_buf_fd()
944 if (buf->sz < 256) { in rewrite_vbmeta_buffer()
956 uint64_t footer_offset = buf->sz - AVB_FOOTER_SIZE; in rewrite_vbmeta_buffer()
1010 if (buf->sz < AVB_FOOTER_SIZE) { in copy_boot_avb_footer()
1024 if (partition_size == buf->sz) { in copy_boot_avb_footer()
[all …]
Dfastboot_driver.h87 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz,
112 RetCode FlashPartition(const std::string& partition, int fd, uint32_t sz);
113 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
/system/update_engine/payload_generator/
Dextent_ranges_unittest.cc37 size_t sz, in ExpectRangeEq() argument
40 for (size_t i = 1; i < sz; i += 2) { in ExpectRangeEq()
47 for (size_t i = 0; i < sz; i += 2) { in ExpectRangeEq()
/system/core/logwrapper/
Dlogwrap.cpp345 int sz; in parent() local
400 sz = TEMP_FAILURE_RETRY(read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)); in parent()
402 sz += b; in parent()
404 for (b = 0; b < sz; b++) { in parent()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.h222 integer_t(int r, int sz=32, int f=0) // NOLINT, implicit
223 : reg_t(r, f), s(sz) { in reg_t()
225 void setTo(int r, int sz=32, int f=0) {
226 reg_t::setTo(r, f); s=sz;
/system/core/libnetutils/
Ddhcpclient.c351 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) in is_valid_reply() argument
353 if (sz < DHCP_MSG_FIXED_SIZE) { in is_valid_reply()
354 if (verbose) ALOGD("Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE); in is_valid_reply()
/system/core/adb/client/
Dtransport_mdns.cpp654 uint32_t sz = sizeof(daemon_version); in mdns_check() local
656 auto dnserr = DNSServiceGetProperty(kDNSServiceProperty_DaemonVersion, &daemon_version, &sz); in mdns_check()
/system/core/trusty/storage/tests/
Dmain.cpp27 static inline bool is_32bit_aligned(size_t sz) in is_32bit_aligned() argument
29 return ((sz & 0x3) == 0); in is_32bit_aligned()
32 static inline bool is_valid_size(size_t sz) { in is_valid_size() argument
33 return (sz > 0) && is_32bit_aligned(sz); in is_valid_size()
/system/timezone/input_data/android/
Dcountryzones.txt3021 isoCode:"sz"
/system/extras/simpleperf/scripts/inferno/
Dinferno.b641 …3U973v8zFP3f9Ky44JHLXtfmdY3lWcr6PaqPK8fatFELYLnh2dPu/LoTX/FY/wFNXVJXVzmr4G+sz+TPHsuNSBsQXaHAL9w5wd…