Searched refs:size_str (Results 1 – 4 of 4) sorted by relevance
/external/tensorflow/tensorflow/python/debug/cli/ |
D | command_parser.py | 409 def parse_readable_size_str(size_str): argument 426 size_str = size_str.strip() 427 if size_str.endswith("B"): 428 size_str = size_str[:-1] 430 if size_str.isdigit(): 431 return int(size_str) 432 elif size_str.endswith("k"): 433 return int(float(size_str[:-1]) * 1024) 434 elif size_str.endswith("M"): 435 return int(float(size_str[:-1]) * 1048576) [all …]
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | firmware_constants.py | 132 size_str = lambda i: GV.SIZE + str(i) function 133 GV.SIZE0 = size_str(0) 134 GV.SIZE1 = size_str(1) 135 GV.SIZE2 = size_str(2) 136 GV.SIZE3 = size_str(3) 137 GV.SIZE4 = size_str(4) 138 GV.SIZE5 = size_str(5) 139 GV.SIZE6 = size_str(6) 141 GV.SIZE_LIST = [size_str(i) for i in range(GV.NUMBER_OF_SIZES)]
|
/external/toybox/toys/posix/ |
D | df.c | 149 char *size_str = toybuf, *used_str = toybuf+64, *avail_str = toybuf+128; in show_mt() local 153 human_readable(size_str, size, hr_flags); in show_mt() 158 w, size_str, w, used_str, w, avail_str, w-1, percent, mt->dir); in show_mt()
|
/external/dtc/ |
D | flattree.c | 898 uint32_t size_str = fdt32_to_cpu(fdt->size_dt_strings); in dt_from_blob() local 899 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize)) in dt_from_blob() 901 inbuf_init(&strbuf, blob + off_str, blob + off_str + size_str); in dt_from_blob()
|