Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 7 of 7) 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
170 print >>bench, "char* buf = (char*) malloc(%d);" % (bufsize)
208 count = min(int(e.args[2]), bufsize)
217 count = min(int(e.args[2]), bufsize)
226 count = min(int(e.args[2]), bufsize)
234 count = min(int(e.args[2]), bufsize)
253 count = min(int(e.args[1]), bufsize)
/system/core/fs_mgr/
Dfs_mgr_verity.cpp238 typedef bool (*format_verity_table_func)(char *buf, const size_t bufsize,
241 static bool format_verity_table(char *buf, const size_t bufsize, in format_verity_table() argument
255 res = snprintf(buf, bufsize, in format_verity_table()
260 res = snprintf(buf, bufsize, in format_verity_table()
266 res = snprintf(buf, bufsize, "%s 2 " VERITY_TABLE_OPT_IGNZERO " %s", params->table, in format_verity_table()
269 res = snprintf(buf, bufsize, "%s 1 " VERITY_TABLE_OPT_IGNZERO, params->table); in format_verity_table()
272 if (res < 0 || (size_t)res >= bufsize) { in format_verity_table()
280 static bool format_legacy_verity_table(char *buf, const size_t bufsize, in format_legacy_verity_table() argument
286 res = strlcpy(buf, params->table, bufsize); in format_legacy_verity_table()
288 res = snprintf(buf, bufsize, "%s %d", params->table, params->mode); in format_legacy_verity_table()
[all …]
/system/core/libsysutils/src/
DNetlinkEvent.cpp469 const size_t bufsize = kTagLength + numaddrs * kMaxSingleAddressLength; in parseNdUserOptMessage() local
470 char *buf = (char *) malloc(bufsize); in parseNdUserOptMessage()
483 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos); in parseNdUserOptMessage()
487 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
/system/core/fastboot/
Dusb_linux.cpp271 char* buf, int bufsize) in read_sysfs_string() argument
284 n = read(fd, buf, bufsize - 1); in read_sysfs_string()
/system/core/sdcard/
Dsdcard.c327 static ssize_t get_node_path_locked(struct node* node, char* buf, size_t bufsize) { in get_node_path_locked() argument
341 if (bufsize < namelen + 1) { in get_node_path_locked()
347 pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 1); in get_node_path_locked()
367 char* buf, size_t bufsize, int search) in find_file_within() argument
374 if (bufsize <= childlen) { in find_file_within()
653 char* buf, size_t bufsize) in lookup_node_and_path_by_id_locked() argument
656 if (node && get_node_path_locked(node, buf, bufsize) < 0) { in lookup_node_and_path_by_id_locked()
/system/netd/tests/
Dbinder_test.cpp137 size_t bufsize = 0; in runCommand() local
139 while ((linelen = getline(&line, &bufsize, f)) >= 0) { in runCommand()