Lines Matching refs:d
126 def MostPopularKey(d, default):
129 x = [(v, k) for (k, v) in d.iteritems()]
248 print "%s%s %d %d %o" % (
276 d = self.descendants
280 d[k] = d.get(k, 0) + v
283 d[k] = d.get(k, 0) + 1
291 for (uid, gid, _, _, _, _), count in d.iteritems():
301 for k, count in d.iteritems():
315 return d
884 d = common.Difference(target_boot, source_boot)
885 _, _, d = d.ComputePatch()
886 if d is None:
892 print "boot target: %d source: %d diff: %d" % (
893 target_boot.size, source_boot.size, len(d))
895 common.ZipWriteStr(output_zip, "patch/boot.img.p", d)
897 script.PatchCheck("%s:%s:%d:%s:%d:%s" %
944 script.ApplyPatch("%s:%s:%d:%s:%d:%s"
1030 tf, sf, d = diff.GetPatch()
1032 if d is None or len(d) > tf.size * OPTIONS.patch_threshold or \
1043 common.ZipWriteStr(output_zip, "patch/" + sf.name + ".p", d)
1044 patch_list.append((tf, sf, tf.size, common.sha1(d).hexdigest()))
1254 d = common.Difference(target_boot, source_boot)
1255 _, _, d = d.ComputePatch()
1256 print "boot target: %d source: %d diff: %d" % (
1257 target_boot.size, source_boot.size, len(d))
1259 common.ZipWriteStr(output_zip, "patch/boot.img.p", d)
1264 script.PatchCheck("%s:%s:%d:%s:%d:%s" %
1322 script.ApplyPatch("%s:%s:%d:%s:%d:%s"
1538 extra_opts="b:k:i:d:wne:t:a:2o:",