Lines Matching refs:img
1273 img = tempfile.NamedTemporaryFile()
1332 cmd.extend(["--output", img.name])
1354 cmd.extend([path, img.name,
1356 info_dict["verity_key"] + ".x509.pem", img.name])
1374 img.name]
1388 cmd = [avbtool, "add_hash_footer", "--image", img.name,
1397 img.seek(os.SEEK_SET, 0)
1398 data = img.read()
1402 img.close()
1459 img = tempfile.NamedTemporaryFile()
1498 cmd.extend(["--vendor_boot", img.name])
1506 cmd = [avbtool, "add_hash_footer", "--image", img.name,
1514 img.seek(os.SEEK_SET, 0)
1515 data = img.read()
1518 img.close()
1647 img = GetSparseImage(which, tmpdir, input_zip, allow_shared_blocks,
1650 img.ResetFileMap()
1651 return img
3213 def _GetSparseImageSize(img): argument
3214 if not img:
3216 return img.blocksize * img.total_blocks