Home
last modified time | relevance | path

Searched refs:join (Results 1 – 25 of 80) sorted by relevance

1234

/build/make/tools/releasetools/
Dtest_merge_target_files.py59 createEmptyFile(os.path.join(input_dir, 'a.cpp')),
60 createEmptyFile(os.path.join(input_dir, 'b.cpp')),
61 createEmptyFile(os.path.join(input_dir, 'subdir', 'c.txt')),
62 createEmptyFile(os.path.join(input_dir, 'subdir', 'd.txt')),
64 os.path.join(input_dir, 'subdir', 'subsubdir', 'e.txt')),
65 createSymLink('a.cpp', os.path.join(input_dir, 'a_link.cpp')),
68 createEmptyFile(os.path.join(input_dir, 'a.h'))
69 createEmptyFile(os.path.join(input_dir, 'b.h'))
70 createEmptyFile(os.path.join(input_dir, 'subdir', 'subsubdir', 'f.gif'))
71 createSymLink('a.h', os.path.join(input_dir, 'a_link.h'))
[all …]
Dtest_validate_target_files.py49 os.path.join(self.testdata_dir, 'testkey.pk8'),
50 os.path.join(self.testdata_dir, 'testkey.x509.pem'), output_file]
60 os.mkdir(os.path.join(input_tmp, 'IMAGES'))
61 boot_image = os.path.join(input_tmp, 'IMAGES', 'boot.img')
68 'verity_key' : os.path.join(self.testdata_dir, 'testkey.x509.pem'),
75 os.mkdir(os.path.join(input_tmp, 'IMAGES'))
76 boot_image = os.path.join(input_tmp, 'IMAGES', 'boot.img')
83 'verity_key' : os.path.join(self.testdata_dir, 'verity.x509.pem'),
92 os.mkdir(os.path.join(input_tmp, 'IMAGES'))
93 boot_image = os.path.join(input_tmp, 'IMAGES', 'boot.img')
[all …]
Dtest_sign_apex.py34 foo_apex = os.path.join(self.testdata_dir, 'foo.apex')
35 payload_key = os.path.join(self.testdata_dir, 'testkey_RSA4096.key')
36 container_key = os.path.join(self.testdata_dir, 'testkey')
47 test_apex = os.path.join(self.testdata_dir, 'has_apk.apex')
48 payload_key = os.path.join(self.testdata_dir, 'testkey_RSA4096.key')
49 container_key = os.path.join(self.testdata_dir, 'testkey')
50 apk_keys = {'wifi-service-resources.apk': os.path.join(
63 apex = os.path.join(test_utils.get_current_dir(), 'com.android.apex.compressed.v1.capex')
64 payload_key = os.path.join(self.testdata_dir, 'testkey_RSA4096.key')
65 container_key = os.path.join(self.testdata_dir, 'testkey')
Dtest_build_image.py122 with open(os.path.join(root_dir, 'init'), 'w') as init_fp:
126 with open(os.path.join(origin_in, 'file'), 'w') as in_fp:
128 os.symlink('../etc', os.path.join(origin_in, 'symlink'))
140 os.path.join(in_dir, 'init'), os.path.join(root_dir, 'init')))
142 os.path.join(in_dir, 'system', 'file'),
143 os.path.join(origin_in, 'file')))
144 self.assertTrue(os.path.islink(os.path.join(in_dir, 'system', 'symlink')))
151 with open(os.path.join(root_dir, 'init'), 'w') as init_fp:
155 with open(os.path.join(origin_in, 'file'), 'w') as in_fp:
157 os.symlink('../etc', os.path.join(origin_in, 'symlink'))
[all …]
Dtest_check_target_files_vintf.py70 test_delta_dir = os.path.join(self.testdata_dir, test_delta_rel_path)
75 write_string_to_file(content, os.path.join(test_dir, rel_path))
83 output_file = os.path.join(test_dir, rel_root, f)
84 with open(os.path.join(root, f)) as inp:
106 write_string_to_file('', os.path.join(test_dir, 'META/kernel_configs.txt'))
108 os.path.join(test_dir, 'META/kernel_version.txt'))
116 write_string_to_file('', os.path.join(test_dir, 'META/kernel_configs.txt'))
118 os.path.join(test_dir, 'META/kernel_version.txt'))
127 os.path.join(test_dir, 'META/misc_info.txt'), mode='a')
136 os.path.join(test_dir, 'META/misc_info.txt'), mode='a')
[all …]
Dmerge_builds.py72 image_path = os.path.join(OPTIONS.product_out_framework, "%s.img" % image)
73 symlink_path = os.path.join(OPTIONS.product_out_vendor, "%s.img" % image)
85 os.path.join(OPTIONS.product_out_framework, "misc_info.txt"))
87 os.path.join(OPTIONS.product_out_vendor, "misc_info.txt"))
100 output_super_empty_path = os.path.join(OPTIONS.product_out_vendor,
109 os.path.join(OPTIONS.product_out_framework, "misc_info.txt"))
111 os.path.join(OPTIONS.product_out_vendor, "misc_info.txt"))
120 partition_path = os.path.join(OPTIONS.product_out_vendor,
132 partitions[partition] = os.path.join(OPTIONS.product_out_vendor,
140 output_vbmeta_path = os.path.join(OPTIONS.product_out_vendor, "vbmeta.img")
Dtest_add_img_to_target_files.py41 path = os.path.join(OPTIONS.input_tmp, prefix)
46 image_path = os.path.join(path, image + '.img')
50 images_path = os.path.join(OPTIONS.input_tmp, 'IMAGES')
63 radio_path = os.path.join(OPTIONS.input_tmp, 'RADIO')
66 with open(os.path.join(radio_path, 'modem.img'), 'wb') as image_fp:
81 os.path.exists(os.path.join(images_path, image + '.img')))
90 os.path.exists(os.path.join(images_path, image + '.img')))
114 os.path.exists(os.path.join(images_path, image + '.img')))
145 meta_path = os.path.join(OPTIONS.input_tmp, 'META')
172 self.assertEqual('\n'.join(expected), plain_text)
[all …]
Dmerge_target_files.py295 os.path.relpath(path=os.path.join(dirpath, filename), start=from_dir)
303 original_file_path = os.path.join(from_dir, file_path)
304 copied_file_path = os.path.join(to_dir, file_path)
396 framework_ab_partitions_txt = os.path.join(framework_target_files_temp_dir,
399 vendor_ab_partitions_txt = os.path.join(vendor_target_files_temp_dir, 'META',
410 output_ab_partitions_txt = os.path.join(output_target_files_temp_dir, 'META',
443 os.path.join(framework_target_files_temp_dir, *misc_info_path))
448 os.path.join(vendor_target_files_temp_dir, *misc_info_path))
485 output_misc_info_txt = os.path.join(output_target_files_temp_dir, 'META',
512 os.path.join(vendor_target_files_dir, 'META',
[all …]
Dtest_common.py742 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Test1')))
743 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Test2')))
744 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Foo3')))
745 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Bar4')))
746 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Dir5/Baz5')))
753 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Test1')))
754 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Test2')))
755 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Foo3')))
756 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Bar4')))
757 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Dir5/Baz5')))
[all …]
Dvalidate_target_files.py61 unpacked_name = os.path.join(input_tmp, file_path)
111 unpacked_name = os.path.join(
172 if not os.path.exists(os.path.join(input_tmp, script_path)):
177 with open(os.path.join(input_tmp, script_path), 'r') as script:
246 if os.path.exists(os.path.join(dst, filename)):
248 os.symlink(os.path.join(src, filename), os.path.join(dst, filename))
275 symlinkIfNotExists(os.path.join(input_tmp, "RADIO"),
276 os.path.join(input_tmp, "IMAGES"))
289 image_path = os.path.join(input_tmp, 'OTA', image)
291 image_path = os.path.join(input_tmp, 'IMAGES', image)
[all …]
Dtest_apex_utils.py36 self.payload_key = os.path.join(self.testdata_dir, 'testkey.key')
37 self.apex_with_apk = os.path.join(self.testdata_dir, 'has_apk.apex')
94 signing_helper = os.path.join(self.testdata_dir, 'signing_helper.sh')
115 os.path.join(self.testdata_dir, 'testkey.x509.pem'),
135 os.path.join(self.testdata_dir, 'testkey_with_passwd.key'),
140 apex_path = os.path.join(self.testdata_dir, 'foo.apex')
158 apk_keys = {'wifi-service-resources.apk': os.path.join(
161 self.payload_key = os.path.join(self.testdata_dir, 'testkey_RSA4096.key')
185 apk_keys = {'wifi-service-resources.apk': os.path.join(
188 self.payload_key = os.path.join(self.testdata_dir, 'testkey_RSA4096.key')
Dcheck_target_files_vintf.py59 target_files_path = os.path.join(input_tmp, target_files_rel_path)
66 ("\n".join(target_files_rel_paths)))
95 version_path = os.path.join(input_tmp, 'META/kernel_version.txt')
96 config_path = os.path.join(input_tmp, 'META/kernel_configs.txt')
146 logger.info("Command `%s` returns 'compatible'", ' '.join(command))
148 logger.info("Command `%s` returns 'incompatible'", ' '.join(command))
153 .format(' '.join(command), proc.returncode, out, err))
250 return os.path.isdir(os.path.join(target_files, "VENDOR"))
Dtest_ota_from_target_files.py52 '\n'.join([
69 '\n'.join([partition[1] for partition in ab_partitions]))
84 apex_file = os.path.join(test_utils.get_current_dir(), apex_file_name)
175 common.OPTIONS.package_key = os.path.join(self.testdata_dir, 'testkey')
293 original_apex_filepath = os.path.join(
389 self.assertEqual('\n'.join(expected_ab_partitions), ab_partitions)
433 misc_info = '\n'.join([
441 dynamic_partitions_info = '\n'.join([
511 misc_info = '\n'.join([
519 dynamic_partitions_info = '\n'.join([
[all …]
Dadd_img_to_target_files.py102 self.name = os.path.join(input_dir, *args)
105 self._zip_name = os.path.join(*args)
122 output_file = os.path.join(OPTIONS.input_tmp, "SYSTEM", fn)
170 ofile = open(os.path.join(OPTIONS.input_tmp, "VENDOR", fn), "w")
290 dtbo_prebuilt_path = os.path.join(
326 pvmfw_prebuilt_path = os.path.join(
382 custom_image_prebuilt_path = os.path.join(
394 default = os.path.join(OPTIONS.input_tmp, "IMAGES", partition_name + ".img")
411 fs_config = os.path.join(
432 os.path.join(input_dir, what.upper()), image_props, output_file.name)
[all …]
Dadd_img_to_target_files102 self.name = os.path.join(input_dir, *args)
105 self._zip_name = os.path.join(*args)
122 output_file = os.path.join(OPTIONS.input_tmp, "SYSTEM", fn)
170 ofile = open(os.path.join(OPTIONS.input_tmp, "VENDOR", fn), "w")
290 dtbo_prebuilt_path = os.path.join(
326 pvmfw_prebuilt_path = os.path.join(
382 custom_image_prebuilt_path = os.path.join(
394 default = os.path.join(OPTIONS.input_tmp, "IMAGES", partition_name + ".img")
411 fs_config = os.path.join(
432 os.path.join(input_dir, what.upper()), image_props, output_file.name)
[all …]
Dapex_utils.py64 self.debugfs_path = os.path.join(
124 apk_path = os.path.join(payload_dir, entry)
149 'manifest': os.path.join(apex_dir, 'apex_manifest.pb'),
150 'build_info': os.path.join(apex_dir, 'apex_build_info.pb'),
158 path = os.path.join(payload_dir, name)
167 payload_img = os.path.join(apex_dir, APEX_PAYLOAD_IMAGE)
181 manifest_json = os.path.join(apex_dir, 'apex_manifest.json')
407 debugfs_path = os.path.join(OPTIONS.search_path, 'bin', 'debugfs_static')
485 debugfs_path = os.path.join(OPTIONS.search_path, 'bin', 'debugfs_static')
538 apex_subdir = os.path.join(partition.upper(), 'apex')
[all …]
Dtest_sign_target_files_apks.py148 '\n'.join([prop[1] for prop in props]) + '\n',
149 RewriteProps('\n'.join([prop[0] for prop in props])))
171 cert_file = os.path.join(self.testdata_dir, 'verity.x509.pem')
182 cert_file = os.path.join(self.testdata_dir, 'testkey.x509.pem')
210 cert1_path = os.path.join(self.testdata_dir, 'platform.x509.pem')
213 cert2_path = os.path.join(self.testdata_dir, 'media.x509.pem')
216 cert3_path = os.path.join(self.testdata_dir, 'testkey.x509.pem')
236 cert1_path = os.path.join(self.testdata_dir, 'platform.x509.pem')
239 cert2_path = os.path.join(self.testdata_dir, 'media.x509.pem')
254 cert1_path = os.path.join(self.testdata_dir, 'platform.x509.pem')
[all …]
Dtest_verity_utils.py72 'verity_key': os.path.join(self.testdata_dir, 'testkey'),
181 'verity_key': os.path.join(get_testdata_dir(), 'testkey'),
234 os.path.join(get_testdata_dir(), 'testkey_mincrypt'))
244 os.path.join(get_testdata_dir(), 'verity_mincrypt'))
252 os.path.join(get_testdata_dir(), 'testkey_mincrypt'))
269 os.path.join(get_testdata_dir(), 'testkey_mincrypt')]
304 system_image = os.path.join(image_dir, 'system.img')
312 vbmeta_image = os.path.join(image_dir, 'vbmeta.img')
401 os.mkdir(os.path.join(image_dir, 'IMAGES'))
402 system_image = os.path.join(image_dir, 'IMAGES', 'system.img')
[all …]
Dcommon.py245 tool_path = os.path.join(my_dir, tool_name)
281 logger.info(" Running: \"%s\"", " ".join(args))
688 path = os.path.join(input_file, *fn.split("/"))
705 file = os.path.join(input_file, *fn.split("/"))
779 fc_config = os.path.join(input_file, "META", fc_basename)
785 d["root_dir"] = os.path.join(input_file, "ROOT")
786 d["root_fs_config"] = os.path.join(
796 base_fs_file = os.path.join(input_file, "META", basename)
988 ','.join(duplicates)))
1127 path = os.path.join(input_file, *recovery_fstab_path.split('/'))
[all …]
Dedify_generator.py65 return "".join(out).replace("\0", " ").rstrip("\n")
93 values='\\" or \\"'.join(values))
100 cmd = (' ||\n '.join([('getprop("ro.build.fingerprint") == "%s"') % i
104 common.ErrorCode.FINGERPRINT_MISMATCH, " or ".join(fp))
111 cmd = (' ||\n '.join([('getprop("ro.build.thumbprint") == "%s"') % i
115 common.ErrorCode.THUMBPRINT_MISMATCH, " or ".join(fp))
149 " ||\0".join(['getprop("ro.bootloader") == "%s"' % (b,)
264 'tune2fs(' + "".join(['"%s", ' % (i,) for i in options]) +
428 "\n".join(self.script) + "\n")
/build/make/tools/droiddoc/templates-pdk/assets/
Dmicrotemplate.js24 .split("<%").join("\t")
27 .split("\t").join("');")
28 .split("%>").join("p.push('")
29 .split("\r").join("\\'")
/build/soong/python/tests/
Dpy-cmd_test.py62 assert_equal("sys.path[2]", sys.path[2], os.path.join(sys.executable, "internal"))
63 assert_equal("sys.path[3]", sys.path[3], os.path.join(sys.executable, "internal", "stdlib"))
68 …assert_equal("sys.path[2]", sys.path[2], os.path.join(sys.executable, 'lib', 'python' + str(sys.ve…
69 …assert_equal("sys.path[3]", sys.path[3], os.path.join(sys.executable, 'lib', 'python' + str(sys.ve…
70 …assert_equal("sys.path[4]", sys.path[4], os.path.join(sys.executable, 'lib', 'python' + str(sys.ve…
71 …assert_equal("sys.path[5]", sys.path[5], os.path.join(sys.executable, 'lib', 'python' + str(sys.ve…
72 assert_equal("sys.path[6]", sys.path[6], os.path.join(sys.executable, "internal"))
73 assert_equal("sys.path[7]", sys.path[7], os.path.join(sys.executable, "internal", "stdlib"))
/build/soong/scripts/
Dmanifest_check_test.py130 xml = self.xml_tmpl % ('\n'.join([uses_library_xml('foo'),
132 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo'),
138 xml = self.xml_tmpl % ('\n'.join([uses_library_xml('foo', required_xml(False)),
140 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo', required_apk(False)),
146 xml = self.xml_tmpl % ('\n'.join([uses_library_xml('foo'),
148 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo'),
154 xml = self.xml_tmpl % ('\n'.join([uses_library_xml('foo', required_xml(False)),
156 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo', required_apk(False)),
162 xml = self.xml_tmpl % ('\n'.join([uses_library_xml('foo'),
164 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo'),
[all …]
/build/make/tools/
Dauto_gen_test_config_test.py109 EMPTY_TEST_CONFIG = os.path.join(
111 INSTRUMENTATION_TEST_CONFIG_TEMPLATE = os.path.join(
121 self.config_file = os.path.join(self.test_dir, TEST_MODULE + '.config')
122 self.manifest_file = os.path.join(self.test_dir, 'AndroidManifest.xml')
/build/soong/python/scripts/
Dstub_template_host.txt22 path = os.path.join(directory, name)
56 top_entries = [os.path.join(runfiles_path, i) for i in os.listdir(runfiles_path)]
62 new_python_path = separator.join(python_path_entries)
70 main_filepath = os.path.join(runfiles_path, MAIN_FILE)

1234