Lines Matching refs:script
573 def WriteMountOemScript(self, script): argument
576 script.Mount("/oem", recovery_mount_options)
578 def WriteDeviceAssertions(self, script, oem_no_mount): argument
581 script.AssertDevice(self.device)
597 script.AssertOemProperty(prop, values, oem_no_mount)
2738 def WriteScript(self, script, output_zip, progress=None, argument
2742 script.Print("Patching %s image unconditionally..." % (self.partition,))
2744 script.Print("Patching %s image after verification." % (self.partition,))
2747 script.ShowProgress(progress, 0)
2748 self._WriteUpdate(script, output_zip)
2751 self.WritePostInstallVerifyScript(script)
2753 def WriteStrictVerifyScript(self, script): argument
2761 script.Print("Verifying %s..." % (partition,))
2764 script.AppendExtra(
2770 script.AppendExtra("")
2772 def WriteVerifyScript(self, script, touched_blocks_only=False): argument
2777 script.Print("Image %s will be patched unconditionally." % (partition,))
2793 script.AppendExtra(
2799 script.Print('Verified %s image...' % (partition,))
2800 script.AppendExtra('else')
2811 script.AppendExtra('check_first_block(%s);' % (self.device,))
2818 script.AppendExtra((
2838 script.AppendExtra((
2842 def WritePostInstallVerifyScript(self, script): argument
2844 script.Print('Verifying the updated %s image...' % (partition,))
2848 script.AppendExtra(
2857 script.AppendExtra(
2861 script.Print('Verified the updated %s image.' % (partition,))
2866 script.AppendExtra(
2872 script.Print('Verified the updated %s image.' % (partition,))
2879 script.AppendExtra(
2885 def _WriteUpdate(self, script, output_zip): argument
2930 script.AppendExtra(script.WordWrap(call))
3312 def WriteScript(self, script, output_zip, write_verify_script=False): argument
3313 script.Comment('--- Start patching dynamic partitions ---')
3316 script.Comment('Patch partition %s' % p)
3317 u.block_difference.WriteScript(script, output_zip, progress=u.progress,
3327 script.Comment('Update dynamic partition metadata')
3328 script.AppendExtra('assert(update_dynamic_partitions('
3334 u.block_difference.WritePostInstallVerifyScript(script)
3335 script.AppendExtra('unmap_partition("%s");' % p) # ignore errors
3339 script.Comment('Patch partition %s' % p)
3340 u.block_difference.WriteScript(script, output_zip, progress=u.progress,
3343 script.AppendExtra('unmap_partition("%s");' % p) # ignore errors
3345 script.Comment('--- End patching dynamic partitions ---')