Home
last modified time | relevance | path

Searched refs:RangeSet (Results 1 – 15 of 15) 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 …]
Dtest_add_img_to_target_files.py26 from rangelib import RangeSet
180 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
183 'vendor', RangeSet("0-9").to_string_raw(),
198 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
201 'vendor', RangeSet("0-9").to_string_raw(),
232 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
235 'vendor', RangeSet("0-9").to_string_raw(),
256 expected = ['system', RangeSet("0-5 10-15").to_string_raw(), "unknown",
257 "unknown", 'vendor', RangeSet("0-9").to_string_raw(), "unknown",
287 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
[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 …]
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.py84 self.clobbered_blocks = rangelib.RangeSet(data=clobbered_blocks)
139 self.care_map = rangelib.RangeSet(care_data)
149 all_blocks = rangelib.RangeSet(data=(0, self.total_blocks))
253 raw_ranges = rangelib.RangeSet.parse(ranges_text)
259 ranges = raw_ranges.subtract(rangelib.RangeSet("0"))
347 out["__ZERO"] = rangelib.RangeSet(data=zero_blocks)
350 out["__NONZERO-%d" % i] = rangelib.RangeSet(data=blocks)
Dtest_verity_utils.py26 from rangelib import RangeSet
134 info.filesystem_range = RangeSet(data=[0, 991232 // 4096])
135 info.hashtree_range = RangeSet(
150 info.filesystem_range = RangeSet(data=[0, 991232 // 4096])
151 info.hashtree_range = RangeSet(
165 self.assertEqual(RangeSet(data=[0, 991232 // 4096]), info.filesystem_range)
166 self.assertEqual(RangeSet(data=[991232 // 4096, (991232 + 12288) // 4096]),
Dtest_validate_target_files.py26 from rangelib import RangeSet
255 image_ranges = RangeSet()
260 image_ranges = image_ranges.union(RangeSet(info[1]))
261 file_map_list[info[0]] = RangeSet(info[1])
264 mock_shared_block = RangeSet("10-20").subtract(image_ranges).first(1)
306 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)
560 all_tgt = RangeSet(data=(0, self.tgt.total_blocks))
1392 tgt_skipped = RangeSet()
1393 src_skipped = RangeSet()
1398 src_rs = RangeSet(str(src_block))
1399 tgt_rs = RangeSet(str(tgt_block))
[all …]
Dverity_utils.py26 from rangelib import RangeSet
611 self.hashtree_info.filesystem_range = RangeSet(
613 self.hashtree_info.hashtree_range = RangeSet(
621 metadata_range = RangeSet(
Dtest_common.py30 from rangelib import RangeSet
993 '__COPY': RangeSet("0"),
994 '__NONZERO-0': RangeSet("1-5 9-12"),
1072 '__COPY': RangeSet("0"),
1073 '__NONZERO-0': RangeSet("6-8 13-15"),
1074 '/system/file1': RangeSet("1-5 9-10"),
1075 '/system/file2': RangeSet("11-12"),
Dvalidate_target_files.py104 for data in image.ReadRangeSet(rangelib.RangeSet(file_range)):
Dadd_img_to_target_files.py138 rangelib.RangeSet("0-{}".format(image_blocks)))
143 care_map_ranges = rangelib.RangeSet("0-{}".format(image_blocks))
Dadd_img_to_target_files138 rangelib.RangeSet("0-{}".format(image_blocks)))
143 care_map_ranges = rangelib.RangeSet("0-{}".format(image_blocks))