/build/make/tools/releasetools/merge/ |
D | merge_dexopt.py | 91 dexpreopt_tools_files_temp_dir = os.path.join(temp_dir, 'tools') 92 dexpreopt_framework_config_files_temp_dir = os.path.join( 94 dexpreopt_vendor_config_files_temp_dir = os.path.join(temp_dir, 111 os.path.join(output_target_files_dir, 'SYSTEM'), 112 os.path.join(temp_dir, 'system')) 114 os.path.join(output_target_files_dir, 'VENDOR'), 115 os.path.join(temp_dir, 'vendor')) 138 apex_root = os.path.join(output_target_files_dir, 'SYSTEM', 'apex') 145 apex_extract_root_dir = os.path.join(temp_dir, 'apex') 148 for apex in (glob.glob(os.path.join(apex_root, '*.apex')) + [all …]
|
D | test_merge_meta.py | 40 os.path.join(self.testdata_dir, 'apexkeys_framework.txt'), 41 os.path.join(framework_meta_dir, 'apexkeys.txt')) 45 os.path.join(self.testdata_dir, 'apexkeys_vendor.txt'), 46 os.path.join(vendor_meta_dir, 'apexkeys.txt')) 52 merged_path = os.path.join(self.testdata_dir, 'apexkeys_merge.txt') 58 output_path = os.path.join(output_meta_dir, 'apexkeys.txt') 70 os.path.join(self.testdata_dir, 'apexkeys_framework.txt'), 71 os.path.join(framework_meta_dir, 'apexkeys.txt')) 75 os.path.join(self.testdata_dir, 'apexkeys_framework_conflict.txt'), 76 os.path.join(conflict_meta_dir, 'apexkeys.txt')) [all …]
|
D | merge_meta.py | 58 framework_meta_dir = os.path.join(temp_dir, 'framework_meta', 'META') 64 vendor_meta_dir = os.path.join(temp_dir, 'vendor_meta', 'META') 70 merged_meta_dir = os.path.join(merged_dir, 'META') 96 UpdateCareMapImageSizeProps(images_dir=os.path.join(merged_dir, 'IMAGES')) 108 path=os.path.join(merged_meta_dir, 'misc_info.txt')) 116 with open(os.path.join(framework_meta_dir, 'ab_partitions.txt')) as f: 119 with open(os.path.join(vendor_meta_dir, 'ab_partitions.txt')) as f: 124 path=os.path.join(merged_meta_dir, 'ab_partitions.txt')) 136 os.path.join(framework_meta_dir, 'misc_info.txt')) 138 os.path.join(vendor_meta_dir, 'misc_info.txt')) [all …]
|
D | test_merge_utils.py | 55 createEmptyFile(os.path.join(input_dir, 'a.cpp')), 56 createEmptyFile(os.path.join(input_dir, 'b.cpp')), 57 createEmptyFile(os.path.join(input_dir, 'subdir', 'c.txt')), 58 createEmptyFile(os.path.join(input_dir, 'subdir', 'd.txt')), 60 os.path.join(input_dir, 'subdir', 'subsubdir', 'e.txt')), 61 createSymLink('a.cpp', os.path.join(input_dir, 'a_link.cpp')), 64 createEmptyFile(os.path.join(input_dir, 'a.h')) 65 createEmptyFile(os.path.join(input_dir, 'b.h')) 66 createEmptyFile(os.path.join(input_dir, 'subdir', 'subsubdir', 'f.gif')) 67 createSymLink('a.h', os.path.join(input_dir, 'a_link.h')) [all …]
|
D | test_merge_compatibility_checks.py | 46 full_path = os.path.join(product_out_dir, path) 69 self.assertEqual(' '.join(cmd), 82 os.path.join(output_dir, partition, 'apex', os.path.basename(source))) 87 os.makedirs(os.path.join(output_dir, 'SYSTEM/apex')) 88 os.makedirs(os.path.join(output_dir, 'VENDOR/apex')) 91 os.path.join(self.testdata_dir, 'has_apk.apex'), output_dir, 'SYSTEM') 93 os.path.join(test_utils.get_current_dir(), 104 os.makedirs(os.path.join(output_dir, 'SYSTEM/apex')) 105 os.makedirs(os.path.join(output_dir, 'VENDOR/apex')) 107 same_apex_package = os.path.join(self.testdata_dir, 'has_apk.apex')
|
D | merge_target_files.py | 162 output_target_files_temp_dir = os.path.join(temp_dir, 'output') 206 if os.path.exists(os.path.join(target_files_dir, 'ODM')) or os.path.exists( 207 os.path.join(target_files_dir, 'IMAGES/odm.img')): 217 input_filename = os.path.join(target_files_dir, input_path) 226 os.path.join(target_files_dir, partition.upper(), 'etc/selinux', 241 os.remove(os.path.join(target_files_dir, 'IMAGES', partition_img)) 263 shutil.rmtree(os.path.join(vendor_target_files_dir, partition.upper())) 265 os.path.join(target_files_dir, partition.upper()), 266 os.path.join(vendor_target_files_dir, partition.upper()), 270 os.remove(os.path.join(vendor_target_files_dir, 'IMAGES', partition_img)) [all …]
|
D | merge_builds.py | 72 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")
|
/build/make/tools/releasetools/ |
D | test_validate_target_files.py | 49 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 …]
|
D | test_sign_apex.py | 34 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')
|
D | test_build_image.py | 122 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 …]
|
D | test_check_target_files_vintf.py | 70 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 …]
|
D | test_add_img_to_target_files.py | 41 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 …]
|
D | test_common.py | 742 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 …]
|
D | validate_target_files.py | 63 unpacked_name = os.path.join(input_tmp, file_path) 76 path = os.path.join(input_tmp, "IMAGES", which + ".img") 119 unpacked_name = os.path.join( 182 if not os.path.exists(os.path.join(input_tmp, script_path)): 187 with open(os.path.join(input_tmp, script_path), 'r') as script: 257 if os.path.exists(os.path.join(dst, filename)): 259 os.symlink(os.path.join(src, filename), os.path.join(dst, filename)) 270 image = os.path.join(input_tmp, "IMAGES", vbmeta_partition + ".img") 316 symlinkIfNotExists(os.path.join(input_tmp, "RADIO"), 317 os.path.join(input_tmp, "IMAGES")) [all …]
|
D | test_apex_utils.py | 36 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') [all …]
|
D | check_target_files_vintf.py | 59 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)) 258 return os.path.isdir(os.path.join(target_files, "VENDOR"))
|
D | test_ota_from_target_files.py | 52 '\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( 418 self.assertEqual('\n'.join(expected_ab_partitions), ab_partitions) 462 misc_info = '\n'.join([ 470 dynamic_partitions_info = '\n'.join([ 540 misc_info = '\n'.join([ 548 dynamic_partitions_info = '\n'.join([ [all …]
|
D | add_img_to_target_files | 103 self.name = os.path.join(input_dir, *args) 106 self._zip_name = os.path.join(*args) 124 output_file = os.path.join(OPTIONS.input_tmp, "SYSTEM", fn) 173 output_file = os.path.join(OPTIONS.input_tmp, "VENDOR", fn) 309 dtbo_prebuilt_path = os.path.join( 345 pvmfw_prebuilt_path = os.path.join( 402 custom_image_prebuilt_path = os.path.join( 414 default = os.path.join(OPTIONS.input_tmp, "IMAGES", partition_name + ".img") 431 fs_config = os.path.join( 452 os.path.join(input_dir, what.upper()), image_props, output_file.name) [all …]
|
D | add_img_to_target_files.py | 103 self.name = os.path.join(input_dir, *args) 106 self._zip_name = os.path.join(*args) 124 output_file = os.path.join(OPTIONS.input_tmp, "SYSTEM", fn) 173 output_file = os.path.join(OPTIONS.input_tmp, "VENDOR", fn) 309 dtbo_prebuilt_path = os.path.join( 345 pvmfw_prebuilt_path = os.path.join( 402 custom_image_prebuilt_path = os.path.join( 414 default = os.path.join(OPTIONS.input_tmp, "IMAGES", partition_name + ".img") 431 fs_config = os.path.join( 452 os.path.join(input_dir, what.upper()), image_props, output_file.name) [all …]
|
/build/bazel/ci/ |
D | rbc_dashboard.py | 61 while not os.path.isfile(os.path.join(path, 'build/soong/soong_ui.bash')): 64 path = os.path.join(path, '..') 84 with open(os.path.join(out_dir, 'build.log'), 'wb') as f: 156 with open(os.path.join(results_folder, name)+'.diff', 'wb') as f: 205 cleanup_empty_files(os.path.join(path, subfile)) 229 product_dashboard_folder = os.path.join(dirs.results, str(product)) 236 shutil.copy2(os.path.join(dirs.out_baseline, 'build.log'), 239 shutil.copy2(os.path.join(dirs.out_product, 'build.log'), 242 shutil.copy2(os.path.join(dirs.out_board, 'build.log'), 246 …product_files = [(os.path.join(dirs.out_baseline, x), os.path.join(dirs.out_product, x)) for x in … [all …]
|
/build/soong/scripts/ |
D | manifest_check_test.py | 130 xml = self.xml_tmpl % ('\n'.join( 133 apk = self.apk_tmpl % ('\n'.join( 140 xml = self.xml_tmpl % ('\n'.join([ 144 apk = self.apk_tmpl % ('\n'.join([ 153 xml = self.xml_tmpl % ('\n'.join( 156 apk = self.apk_tmpl % ('\n'.join( 163 xml = self.xml_tmpl % ('\n'.join([ 167 apk = self.apk_tmpl % ('\n'.join([ 176 xml = self.xml_tmpl % ('\n'.join( 179 apk = self.apk_tmpl % ('\n'.join( [all …]
|
/build/make/tools/droiddoc/templates-pdk/assets/ |
D | microtemplate.js | 24 .split("<%").join("\t") 27 .split("\t").join("');") 28 .split("%>").join("p.push('") 29 .split("\r").join("\\'")
|
/build/soong/python/tests/ |
D | py-cmd_test.py | 62 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/bazel_common_rules/dist/ |
D | dist.py | 46 os.path.join(runfiles_directory, pattern)) 62 src_relpath = os.path.join(prefix, src_relpath) 65 dst = os.path.join(dist_dir, src_relpath) 80 dst_dirname = os.path.join(dist_dir, archive_prefix) 120 args.dist_dir = os.path.join(
|
/build/make/orchestrator/core/ |
D | lunch.py | 36 yield os.path.join(path, dirent.name) 43 yield from FindDirs(os.path.join(path, subdir), name, ttl-1) 57 yield os.path.join(path, dirent.name) 65 yield from WalkPaths(os.path.join(path, subdir), matcher, ttl-1) 94 yield os.path.join(workspace_root, "build/make/orchestrator/multitree_combos") 98 yield from FindDirs(os.path.join(workspace_root, d), "multitree_combos") 224 sys.stderr.write("Can't find lunch combo file for: %s\n" % " ".join(args)) 227 sys.stderr.write("Can't find variant for: %s\n" % " ".join(args)) 322 sys.stderr.write("Unknown lunch command: %s\n" % " ".join(argv[1:]))
|