Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 11 of 11) 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/core/fs_mgr/
Dfs_mgr_verity.cpp194 typedef bool (*format_verity_table_func)(char *buf, const size_t bufsize,
197 static bool format_verity_table(char *buf, const size_t bufsize, in format_verity_table() argument
211 res = snprintf(buf, bufsize, in format_verity_table()
216 res = snprintf(buf, bufsize, in format_verity_table()
222 res = snprintf(buf, bufsize, "%s 2 " VERITY_TABLE_OPT_IGNZERO " %s", params->table, in format_verity_table()
225 res = snprintf(buf, bufsize, "%s 1 " VERITY_TABLE_OPT_IGNZERO, params->table); in format_verity_table()
228 if (res < 0 || (size_t)res >= bufsize) { in format_verity_table()
236 static bool format_legacy_verity_table(char *buf, const size_t bufsize, in format_legacy_verity_table() argument
242 res = strlcpy(buf, params->table, bufsize); in format_legacy_verity_table()
244 res = snprintf(buf, bufsize, "%s %d", params->table, params->mode); in format_legacy_verity_table()
[all …]
/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/netd/tests/
Dtest_utils.cpp49 size_t bufsize = 0; in runCommand() local
51 while ((linelen = getline(&line, &bufsize, f)) >= 0) { in runCommand()
/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.cpp507 const size_t bufsize = numaddrs * kMaxSingleAddressLength; in parseNdUserOptMessage() local
508 char *buf = (char *) malloc(bufsize); in parseNdUserOptMessage()
520 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos); in parseNdUserOptMessage()
524 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
/system/core/adb/
Dsysdeps.h113 extern int adb_getlogin_r(char* buf, size_t bufsize);
482 static inline int adb_getlogin_r(char* buf, size_t bufsize) { in adb_getlogin_r() argument
483 return getlogin_r(buf, bufsize); in adb_getlogin_r()
Dsysdeps_win32.cpp1045 int adb_getlogin_r(char* buf, size_t bufsize) { in adb_getlogin_r() argument
1057 strncpy(buf, login.c_str(), bufsize); in adb_getlogin_r()
1058 buf[bufsize - 1] = '\0'; in adb_getlogin_r()
/system/core/fastboot/
Dusb_linux.cpp287 char* buf, int bufsize) in read_sysfs_string() argument
300 n = read(fd, buf, bufsize - 1); in read_sysfs_string()
/system/netd/client/
DNetdClient.cpp234 int netdClientSendto(int sockfd, const void* buf, size_t bufsize, int flags, const sockaddr* addr, in netdClientSendto() argument
243 return libcSendto(sockfd, buf, bufsize, flags, addr, addrlen); in netdClientSendto()
/system/connectivity/wificond/net/kernel-header-latest/
Dnl80211.h4327 __u32 min_len, max_len, bufsize; member