Home
last modified time | relevance | path

Searched refs:RangeSet (Results 1 – 14 of 14) sorted by relevance

/build/make/tools/releasetools/
Dtest_rangelib.py17 from rangelib import RangeSet
24 self.assertEqual(RangeSet("10-19 30-34").union(RangeSet("18-29")),
25 RangeSet("10-34"))
26 self.assertEqual(RangeSet("10-19 30-34").union(RangeSet("22 32")),
27 RangeSet("10-19 22 30-34"))
30 self.assertEqual(RangeSet("10-19 30-34").intersect(RangeSet("18-32")),
31 RangeSet("18-19 30-32"))
32 self.assertEqual(RangeSet("10-19 30-34").intersect(RangeSet("22-28")),
33 RangeSet(""))
36 self.assertEqual(RangeSet("10-19 30-34").subtract(RangeSet("18-32")),
[all …]
Dtest_blockimgdiff.py23 from rangelib import RangeSet
76 t0 = Transfer("t1", "t1", RangeSet("10-15"), RangeSet("0-5"), "t1hash",
78 t1 = Transfer("t2", "t2", RangeSet("20-25"), RangeSet("0-7"), "t2hash",
80 t2 = Transfer("t3", "t3", RangeSet("30-35"), RangeSet("0-4"), "t3hash",
82 t3 = Transfer("t4", "t4", RangeSet("0-10"), RangeSet("40-50"), "t4hash",
122 Transfer("t1", "t1", RangeSet("11-15"), RangeSet("20-29"), "t1hash",
124 Transfer("t2", "t2", RangeSet("20-29"), RangeSet("11-15"), "t2hash",
156 t1 = Transfer("t1", "t1", RangeSet("11-15"), RangeSet("1-5"), "t1hash",
158 t2 = Transfer("t2", "t2", RangeSet("21-25"), RangeSet("11-15"), "t2hash",
160 t3 = Transfer("t3", "t3", RangeSet("1-5 30-39"), RangeSet("11-15 30-39"),
[all …]
Dimages.py18 from rangelib import RangeSet
42 self.care_map = RangeSet()
43 self.clobbered_blocks = RangeSet()
44 self.extended = RangeSet()
90 self.care_map = RangeSet(data=(0, self.total_blocks))
101 self.extended = RangeSet()
120 self.file_map["__ZERO"] = RangeSet(data=zero_blocks)
122 self.file_map["__NONZERO"] = RangeSet(data=nonzero_blocks)
124 self.file_map["__COPY"] = RangeSet(data=clobbered_blocks)
163 self.care_map = RangeSet(data=(0, self.total_blocks))
[all …]
Dtest_add_img_to_target_files.py28 from rangelib import RangeSet
179 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
182 'vendor', RangeSet("0-9").to_string_raw(),
197 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
200 'vendor', RangeSet("0-9").to_string_raw(),
228 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
231 'vendor', RangeSet("0-9").to_string_raw(),
249 expected = ['system', RangeSet("0-5 10-15").to_string_raw(), "unknown",
250 "unknown", 'vendor', RangeSet(
278 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
[all …]
Drangelib.py24 class RangeSet(object): class
175 return RangeSet(data=out)
193 return RangeSet(data=out)
212 return RangeSet(data=out)
277 return RangeSet(data=out)
298 out = out.union(RangeSet(str(s1) + "-" + str(e1-1)))
331 return RangeSet(data=out)
Dota_package_parser.py22 from rangelib import RangeSet
93 target_range = RangeSet.parse_raw(cmd_list[1])
99 target_range = RangeSet.parse_raw(cmd_list[2])
104 source_range = RangeSet.parse_raw(cmd_list[4])
111 target_range = RangeSet.parse_raw(cmd_list[5])
116 source_range = RangeSet.parse_raw(cmd_list[7])
122 source_range = RangeSet.parse_raw(cmd_list[2])
Dsparse_img.py81 self.clobbered_blocks = rangelib.RangeSet(data=clobbered_blocks)
126 self.care_map = rangelib.RangeSet(care_data)
136 all_blocks = rangelib.RangeSet(data=(0, self.total_blocks))
241 raw_ranges = rangelib.RangeSet.parse(ranges_text)
247 ranges = raw_ranges.subtract(rangelib.RangeSet("0"))
333 out["__ZERO"] = rangelib.RangeSet(data=zero_blocks)
336 out["__NONZERO-%d" % i] = rangelib.RangeSet(data=blocks)
Dtest_validate_target_files.py26 from rangelib import RangeSet
254 image_ranges = RangeSet()
259 image_ranges = image_ranges.union(RangeSet(info[1]))
260 file_map_list[info[0]] = RangeSet(info[1])
263 mock_shared_block = RangeSet("10-20").subtract(image_ranges).first(1)
305 ranges = RangeSet(info[1])
Dblockimgdiff.py34 from rangelib import RangeSet
105 self.src_ranges = RangeSet()
253 self.touched_src_ranges = RangeSet()
454 self.AssertPartition(RangeSet(data=(0, size)), mapped_stashes)
457 self.AssertPartition(RangeSet(data=(0, size)), mapped_stashes)
552 all_tgt = RangeSet(data=(0, self.tgt.total_blocks))
1378 tgt_skipped = RangeSet()
1379 src_skipped = RangeSet()
1384 src_rs = RangeSet(str(src_block))
1385 tgt_rs = RangeSet(str(tgt_block))
[all …]
Dtest_verity_utils.py26 from rangelib import RangeSet
Dverity_utils.py33 from rangelib import RangeSet
Dtest_common.py30 from rangelib import RangeSet
1043 '__COPY': RangeSet("0"),
1044 '__NONZERO-0': RangeSet("1-5 9-12"),
1171 '__COPY': RangeSet("0"),
1172 '__NONZERO-0': RangeSet("6-8 13-15"),
1173 '/system/file1': RangeSet("1-5 9-10"),
1174 '/system/file2': RangeSet("11-12"),
Dvalidate_target_files.py112 for data in image.ReadRangeSet(rangelib.RangeSet(file_range)):
Dadd_img_to_target_files.py152 rangelib.RangeSet("0-{}".format(image_blocks)))
157 care_map_ranges = rangelib.RangeSet("0-{}".format(image_blocks))