Home | History | Annotate | Download | only in android

Lines Matching refs:paths

19 def CalculateHostMd5Sums(paths):
20 """Calculates the MD5 sum value for all items in |paths|.
26 paths: A list of host paths to md5sum.
28 A dict mapping file paths to their respective md5sum checksums.
30 if isinstance(paths, basestring):
31 paths = [paths]
37 [md5sum_bin_host_path] + [os.path.realpath(p) for p in paths])
42 def CalculateDeviceMd5Sums(paths, device):
43 """Calculates the MD5 sum value for all items in |paths|.
49 paths: A list of device paths to md5sum.
51 A dict mapping file paths to their respective md5sum checksums.
53 if not paths:
56 if isinstance(paths, basestring):
57 paths = [paths]
59 paths = list(paths)
81 if len(paths) > 1:
82 prefix = posixpath.commonprefix(paths)
85 paths = ['$p"%s"' % p[len(prefix):] for p in paths]
87 md5sum_script += ';'.join('$a %s' % p for p in paths)