Lines Matching refs:script
715 def WriteMountOemScript(self, script): argument
718 script.Mount("/oem", recovery_mount_options)
720 def WriteDeviceAssertions(self, script, oem_no_mount): argument
723 script.AssertDevice(self.device)
739 script.AssertOemProperty(prop, values, oem_no_mount)
3433 def WriteScript(self, script, output_zip, progress=None, argument
3437 script.Print("Patching %s image unconditionally..." % (self.partition,))
3439 script.Print("Patching %s image after verification." % (self.partition,))
3442 script.ShowProgress(progress, 0)
3443 self._WriteUpdate(script, output_zip)
3446 self.WritePostInstallVerifyScript(script)
3448 def WriteStrictVerifyScript(self, script): argument
3456 script.Print("Verifying %s..." % (partition,))
3459 script.AppendExtra(
3465 script.AppendExtra("")
3467 def WriteVerifyScript(self, script, touched_blocks_only=False): argument
3472 script.Print("Image %s will be patched unconditionally." % (partition,))
3488 script.AppendExtra(
3494 script.Print('Verified %s image...' % (partition,))
3495 script.AppendExtra('else')
3506 script.AppendExtra('check_first_block(%s);' % (self.device,))
3513 script.AppendExtra((
3533 script.AppendExtra((
3537 def WritePostInstallVerifyScript(self, script): argument
3539 script.Print('Verifying the updated %s image...' % (partition,))
3543 script.AppendExtra(
3552 script.AppendExtra(
3556 script.Print('Verified the updated %s image.' % (partition,))
3561 script.AppendExtra(
3567 script.Print('Verified the updated %s image.' % (partition,))
3574 script.AppendExtra(
3580 def _WriteUpdate(self, script, output_zip): argument
3625 script.AppendExtra(script.WordWrap(call))
4007 def WriteScript(self, script, output_zip, write_verify_script=False): argument
4008 script.Comment('--- Start patching dynamic partitions ---')
4011 script.Comment('Patch partition %s' % p)
4012 u.block_difference.WriteScript(script, output_zip, progress=u.progress,
4022 script.Comment('Update dynamic partition metadata')
4023 script.AppendExtra('assert(update_dynamic_partitions('
4029 u.block_difference.WritePostInstallVerifyScript(script)
4030 script.AppendExtra('unmap_partition("%s");' % p) # ignore errors
4034 script.Comment('Patch partition %s' % p)
4035 u.block_difference.WriteScript(script, output_zip, progress=u.progress,
4038 script.AppendExtra('unmap_partition("%s");' % p) # ignore errors
4040 script.Comment('--- End patching dynamic partitions ---')