Home
last modified time | relevance | path

Searched refs:assertEqual (Results 1 – 23 of 23) sorted by relevance

/build/make/tools/releasetools/
Dtest_rangelib.py24 self.assertEqual(RangeSet("10-19 30-34").union(RangeSet("18-29")),
26 self.assertEqual(RangeSet("10-19 30-34").union(RangeSet("22 32")),
30 self.assertEqual(RangeSet("10-19 30-34").intersect(RangeSet("18-32")),
32 self.assertEqual(RangeSet("10-19 30-34").intersect(RangeSet("22-28")),
36 self.assertEqual(RangeSet("10-19 30-34").subtract(RangeSet("18-32")),
38 self.assertEqual(RangeSet("10-19 30-34").subtract(RangeSet("22-28")),
46 self.assertEqual(RangeSet("10-19 30-34").size(), 15)
47 self.assertEqual(RangeSet("").size(), 0)
50 self.assertEqual(RangeSet("0-9").map_within(RangeSet("3-4")),
52 self.assertEqual(RangeSet("10-19").map_within(RangeSet("13-14")),
[all …]
Dtest_common.py173 self.assertEqual('product-device', target_info.device)
174 self.assertEqual('build-fingerprint', target_info.fingerprint)
181 self.assertEqual('device1', target_info.device)
182 self.assertEqual('brand1/product-name/device1:build-thumbprint',
190 self.assertEqual('device3', target_info.device)
191 self.assertEqual('brand3/product-name/device3:build-thumbprint',
206 self.assertEqual('value1', target_info['property1'])
207 self.assertEqual(4096, target_info['property2'])
208 self.assertEqual('build-foo',
214 self.assertEqual('value1', target_info['property1'])
[all …]
Dtest_blockimgdiff.py42 self.assertEqual(item1, item3)
90 self.assertEqual(t0, elements[0])
91 self.assertEqual(t1, elements[1])
92 self.assertEqual(t2, elements[2])
106 self.assertEqual(t2, elements[0])
107 self.assertEqual(t0, elements[1])
108 self.assertEqual(t1, elements[2])
133 self.assertEqual((0, 5), block_image_diff.ReviseStashSize())
137 self.assertEqual((10, 0), block_image_diff.ReviseStashSize())
175 self.assertEqual((15, 5), block_image_diff.ReviseStashSize())
[all …]
Dtest_verity_utils.py96 self.assertEqual(
98 self.assertEqual(self.partition_size, generator.partition_size)
108 self.assertEqual(991232, generator.filesystem_size)
109 self.assertEqual(12288, generator.hashtree_size)
110 self.assertEqual(32768, generator.metadata_size)
122 self.assertEqual(
124 self.assertEqual(self.fixed_salt, generator.hashtree_info.salt)
125 self.assertEqual(self.expected_root_hash, generator.hashtree_info.root_hash)
165 self.assertEqual(RangeSet(data=[0, 991232 // 4096]), info.filesystem_range)
166 self.assertEqual(RangeSet(data=[991232 // 4096, (991232 + 12288) // 4096]),
[all …]
Dtest_ota_from_target_files.py89 self.assertEqual(1, len(oem_dicts))
90 self.assertEqual('foo', oem_dicts[0]['xyz'])
91 self.assertEqual('bar', oem_dicts[0]['a.b.c'])
103 self.assertEqual(3, len(oem_dicts))
105 self.assertEqual('2', oem_dict['def'])
106 self.assertEqual('foo', oem_dict['xyz'])
107 self.assertEqual('bar', oem_dict['a.b.c'])
108 self.assertEqual('{}'.format(i), oem_dict['ro.build.index'])
360 self.assertEqual('\n'.join(expected_ab_partitions), ab_partitions)
446 self.assertEqual(expected_misc_info, updated_misc_info)
[all …]
Dtest_build_image.py86 self.assertEqual(0, proc.returncode)
109 self.assertEqual('/path/to/in_dir', in_dir)
110 self.assertEqual('fs-config', fs_config)
111 self.assertEqual('vendor', prop_dict['mount_point'])
147 self.assertEqual('/', prop_dict['mount_point'])
181 self.assertEqual('/', prop_dict['mount_point'])
191 self.assertEqual(0, proc.returncode)
197 self.assertEqual(0, p.returncode)
200 self.assertEqual(int(fs_dict['Block size']), 4096)
Dtest_sign_target_files_apks.py51 self.assertEqual(EditTags('dev-keys'), ('release-keys'))
52 self.assertEqual(EditTags('test-keys'), ('release-keys'))
55 self.assertEqual(EditTags('abc,dev-keys,xyz'), ('abc,release-keys,xyz'))
58 self.assertEqual(EditTags('xyz,abc,dev-keys,xyz'), ('abc,release-keys,xyz'))
144 self.assertEqual(expected + '\n', RewriteProps(prop))
147 self.assertEqual(
179 self.assertEqual(BOOT_CMDLINE1, output_zip.read('BOOT/cmdline').decode())
189 self.assertEqual(BOOT_CMDLINE2, output_zip.read('BOOT/cmdline').decode())
207 self.assertEqual(BOOT_CMDLINE, output_zip.read('BOOT/cmdline').decode())
233 self.assertEqual(output_xml, ReplaceCerts(input_xml))
[all …]
Dtest_apex_utils.py55 self.assertEqual('SHA256_RSA2048', payload_info['Algorithm'])
56 self.assertEqual(self.SALT, payload_info['Salt'])
57 self.assertEqual('testkey', payload_info['apex.key'])
58 self.assertEqual('sha256', payload_info['Hash Algorithm'])
59 self.assertEqual('0 bytes', payload_info['Tree Size'])
78 self.assertEqual('4096 bytes', payload_info['Tree Size'])
89 self.assertEqual('0 bytes', payload_info['Tree Size'])
143 self.assertEqual(apex_path, processed_apex)
Dtest_merge_target_files.py80 self.assertEqual(
83 self.assertEqual(
162 return self.assertEqual(merged_entries, output_entries)
219 return self.assertEqual(merged_entries, output_entries)
231 self.assertEqual(set(['product', 'system', 'system_ext']), partition_set)
Dtest_add_img_to_target_files.py171 self.assertEqual('\n'.join(expected), plain_text)
402 self.assertEqual('system', name)
403 self.assertEqual(RangeSet("0-5 10-12").to_string_raw(), care_map)
426 self.assertEqual('system', name)
427 self.assertEqual(RangeSet("0-12").to_string_raw(), care_map)
Dtest_validate_target_files.py44 self.assertEqual(
53 self.assertEqual(
136 self.assertEqual(
259 self.assertEqual(2, len(info))
305 self.assertEqual(2, len(info))
/build/make/tools/
Dtest_post_process_props.py28 self.assertEqual("", p.name)
29 self.assertEqual("", p.value)
31 self.assertEqual("# this is comment", str(p))
36 self.assertEqual("a", p.name)
37 self.assertEqual("b", p.value)
39 self.assertEqual("a=b", str(p))
44 self.assertEqual("a", p.name)
45 self.assertEqual("b", p.value)
47 self.assertEqual("a?=b", str(p))
77 self.assertEqual(4, len(self.props.get_all_props()))
[all …]
Dtest_extract_kernel.py22 self.assertEqual("4.9.100", get_version(
24 self.assertEqual("4.9.123", get_version(
28 self.assertEqual("4.9.1", dump_version(
Dauto_gen_test_config_test.py141 self.assertEqual(config_file.read(), empty_config.read())
155 self.assertEqual(config_file.read(), EXPECTED_JUNIT_TEST_CONFIG)
169 self.assertEqual(
/build/soong/cc/ndkstubgen/
Dtest_ndkstubgen.py42 self.assertEqual('', src_file.getvalue())
43 self.assertEqual('', version_file.getvalue())
49 self.assertEqual('', src_file.getvalue())
50 self.assertEqual('', version_file.getvalue())
56 self.assertEqual('', src_file.getvalue())
57 self.assertEqual('', version_file.getvalue())
71 self.assertEqual('', src_file.getvalue())
72 self.assertEqual('', version_file.getvalue())
78 self.assertEqual('', src_file.getvalue())
79 self.assertEqual('', version_file.getvalue())
[all …]
/build/make/tools/fs_config/
Dtest_fs_config_generator.py49 self.assertEqual(aid.identifier, 'AID_FOO_BAR')
50 self.assertEqual(aid.value, '0xFF')
51 self.assertEqual(aid.found, 'myfakefile')
52 self.assertEqual(aid.normalized_value, '255')
53 self.assertEqual(aid.friendly, 'foo_bar')
54 self.assertEqual(aid.login_shell, '/system/bin/sh')
57 self.assertEqual(aid.identifier, 'AID_MEDIA_EX')
58 self.assertEqual(aid.value, '1234')
59 self.assertEqual(aid.found, 'myfakefile')
60 self.assertEqual(aid.normalized_value, '1234')
[all …]
/build/soong/scripts/
Dmanifest_fixer_test.py89 self.assertEqual(output, expected)
98 self.assertEqual(output, expected)
106 self.assertEqual(output, expected)
114 self.assertEqual(output, expected)
122 self.assertEqual(output, expected)
130 self.assertEqual(output, expected)
138 self.assertEqual(output, expected)
146 self.assertEqual(output, expected)
154 self.assertEqual(output, expected)
162 self.assertEqual(output, expected)
[all …]
Dconstruct_context_test.py54 self.assertEqual(result, expect)
66 self.assertEqual(result, expect)
78 self.assertEqual(result, expect)
Dtest_config_fixer_test.py67 self.assertEqual(expected, output.getvalue())
94 self.assertEqual(expected, output.getvalue())
Dmanifest_check_test.py153 self.assertEqual(target_sdk_version, '29')
163 self.assertEqual(target_sdk_version, '28')
/build/soong/cc/symbolfile/
Dtest_symbolfile.py28 self.assertEqual(9, symbolfile.decode_api_level('9', {}))
29 self.assertEqual(9000, symbolfile.decode_api_level('O', {'O': 9000}))
37 self.assertEqual([], symbolfile.get_tags(''))
38 self.assertEqual([], symbolfile.get_tags('foo bar baz'))
41 self.assertEqual(['foo', 'bar'], symbolfile.get_tags('# foo bar'))
42 self.assertEqual(['bar', 'baz'], symbolfile.get_tags('foo # bar baz'))
51 self.assertEqual('bar', symbolfile.get_tag_value('foo=bar'))
52 self.assertEqual('bar=baz', symbolfile.get_tag_value('foo=bar=baz'))
308 self.assertEqual('foo', parser.next_line().strip())
309 self.assertEqual('foo', parser.current_line.strip())
[all …]
/build/soong/xml/
Dxml_test.go72 func assertEqual(t *testing.T, name, expected, actual string) { func
107 assertEqual(t, "input", tc.input, rule.Input.String())
109 assertEqual(t, "schema", tc.schema, rule.Args[tc.schemaType])
115assertEqual(t, "installDir", buildDir+"/target/product/test_device/system/etc", m.InstallDirPath()…
/build/soong/android/
Dandroidmk_test.go95 assertEqual := func(expected interface{}, actual interface{}) {
100 assertEqual([]string{"bar"}, m.data.Required)
101 assertEqual([]string{"baz"}, m.data.Host_required)
102 assertEqual([]string{"qux"}, m.data.Target_required)