Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 8 of 8) sorted by relevance

/system/extras/libfec/test/
Dtest_read.cpp24 const unsigned bufsize = 2 * 1024 * FEC_BLOCKSIZE; variable
33 unique_ptr<uint8_t[]> buffer(new (nothrow) uint8_t[bufsize]); in main()
56 count = input.read(buffer.get(), bufsize); in main()
/system/vold/bench/
Dbenchgen.py107 bufsize = 1048576 variable
172 print >>bench, "char* buf = (char*) malloc(%d);" % (bufsize)
221 count = min(int(e.args[2]), bufsize)
230 count = min(int(e.args[2]), bufsize)
239 count = min(int(e.args[2]), bufsize)
247 count = min(int(e.args[2]), bufsize)
266 count = min(int(e.args[1]), bufsize)
/system/core/fs_mgr/
Dfs_mgr_verity.cpp193 typedef bool (*format_verity_table_func)(char *buf, const size_t bufsize,
196 static bool format_verity_table(char *buf, const size_t bufsize, in format_verity_table() argument
210 res = snprintf(buf, bufsize, in format_verity_table()
215 res = snprintf(buf, bufsize, in format_verity_table()
221 res = snprintf(buf, bufsize, "%s 2 " VERITY_TABLE_OPT_IGNZERO " %s", params->table, in format_verity_table()
224 res = snprintf(buf, bufsize, "%s 1 " VERITY_TABLE_OPT_IGNZERO, params->table); in format_verity_table()
227 if (res < 0 || (size_t)res >= bufsize) { in format_verity_table()
235 static bool format_legacy_verity_table(char *buf, const size_t bufsize, in format_legacy_verity_table() argument
241 res = strlcpy(buf, params->table, bufsize); in format_legacy_verity_table()
243 res = snprintf(buf, bufsize, "%s %d", params->table, params->mode); in format_legacy_verity_table()
[all …]
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp57 size_t bufsize = 0; in runCommand() local
59 while ((linelen = getline(&line, &bufsize, f)) >= 0) { in runCommand()
/system/core/libsysutils/src/
DNetlinkEvent.cpp484 const size_t bufsize = kTagLength + numaddrs * kMaxSingleAddressLength; in parseNdUserOptMessage() local
485 char *buf = (char *) malloc(bufsize); in parseNdUserOptMessage()
498 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos); in parseNdUserOptMessage()
502 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
/system/core/fastboot/
Dusb_linux.cpp278 char* buf, int bufsize) in read_sysfs_string() argument
291 n = read(fd, buf, bufsize - 1); in read_sysfs_string()
/system/connectivity/wificond/net/kernel-header-latest/
Dnl80211.h4327 __u32 min_len, max_len, bufsize; member
/system/netd/tests/
Dbinder_test.cpp200 size_t bufsize = 0; in runCommand() local
202 while ((linelen = getline(&line, &bufsize, f)) >= 0) { in runCommand()