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
170 print >>bench, "char* buf = (char*) malloc(%d);" % (bufsize)
213 count = min(int(e.args[2]), bufsize)
222 count = min(int(e.args[2]), bufsize)
231 count = min(int(e.args[2]), bufsize)
239 count = min(int(e.args[2]), bufsize)
258 count = min(int(e.args[1]), bufsize)
/system/core/fs_mgr/
Dfs_mgr_verity.cpp192 typedef bool (*format_verity_table_func)(char *buf, const size_t bufsize,
195 static bool format_verity_table(char *buf, const size_t bufsize, in format_verity_table() argument
209 res = snprintf(buf, bufsize, in format_verity_table()
214 res = snprintf(buf, bufsize, in format_verity_table()
220 res = snprintf(buf, bufsize, "%s 2 " VERITY_TABLE_OPT_IGNZERO " %s", params->table, in format_verity_table()
223 res = snprintf(buf, bufsize, "%s 1 " VERITY_TABLE_OPT_IGNZERO, params->table); in format_verity_table()
226 if (res < 0 || (size_t)res >= bufsize) { in format_verity_table()
234 static bool format_legacy_verity_table(char *buf, const size_t bufsize, in format_legacy_verity_table() argument
240 res = strlcpy(buf, params->table, bufsize); in format_legacy_verity_table()
242 res = snprintf(buf, bufsize, "%s %d", params->table, params->mode); in format_legacy_verity_table()
[all …]
Dfs_mgr_avb.cpp302 size_t bufsize = DM_BUF_SIZE - (verity_params - buffer); in hashtree_load_verity_table() local
306 res = snprintf(verity_params, bufsize, VERITY_TABLE_FORMAT VERITY_TABLE_OPT_FEC_FORMAT, in hashtree_load_verity_table()
311 res = snprintf(verity_params, bufsize, VERITY_TABLE_FORMAT VERITY_TABLE_OPT_DEFAULT_FORMAT, in hashtree_load_verity_table()
317 if (res < 0 || (size_t)res >= bufsize) { in hashtree_load_verity_table()
/system/core/libsysutils/src/
DNetlinkEvent.cpp466 const size_t bufsize = kTagLength + numaddrs * kMaxSingleAddressLength; in parseNdUserOptMessage() local
467 char *buf = (char *) malloc(bufsize); in parseNdUserOptMessage()
480 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos); in parseNdUserOptMessage()
484 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
/system/core/fastboot/
Dusb_linux.cpp275 char* buf, int bufsize) in read_sysfs_string() argument
288 n = read(fd, buf, bufsize - 1); in read_sysfs_string()
/system/core/sdcard/
Dfuse.cpp107 static ssize_t get_node_path_locked(struct node* node, char* buf, size_t bufsize) { in get_node_path_locked() argument
121 if (bufsize < namelen + 1) { in get_node_path_locked()
127 pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 1); in get_node_path_locked()
147 char* buf, size_t bufsize, int search) in find_file_within() argument
154 if (bufsize <= childlen) { in find_file_within()
435 char* buf, size_t bufsize) in lookup_node_and_path_by_id_locked() argument
438 if (node && get_node_path_locked(node, buf, bufsize) < 0) { in lookup_node_and_path_by_id_locked()
/system/netd/tests/
Dbinder_test.cpp130 size_t bufsize = 0; in runCommand() local
132 while ((linelen = getline(&line, &bufsize, f)) >= 0) { in runCommand()