/build/make/tools/releasetools/ |
D | test_merge_target_files.py | 59 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 …]
|
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_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_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(
|
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 | 40 path = os.path.join(OPTIONS.input_tmp, prefix) 45 image_path = os.path.join(path, image + '.img') 49 images_path = os.path.join(OPTIONS.input_tmp, 'IMAGES') 62 radio_path = os.path.join(OPTIONS.input_tmp, 'RADIO') 65 with open(os.path.join(radio_path, 'modem.img'), 'wb') as image_fp: 80 os.path.exists(os.path.join(images_path, image + '.img'))) 89 os.path.exists(os.path.join(images_path, image + '.img'))) 113 os.path.exists(os.path.join(images_path, image + '.img'))) 144 meta_path = os.path.join(OPTIONS.input_tmp, 'META') 171 self.assertEqual('\n'.join(expected), plain_text) [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")
|
D | merge_target_files.py | 292 os.path.relpath(path=os.path.join(dirpath, filename), start=from_dir) 300 original_file_path = os.path.join(from_dir, file_path) 301 copied_file_path = os.path.join(to_dir, file_path) 387 framework_ab_partitions_txt = os.path.join(framework_target_files_temp_dir, 390 vendor_ab_partitions_txt = os.path.join(vendor_target_files_temp_dir, 'META', 401 output_ab_partitions_txt = os.path.join(output_target_files_temp_dir, 'META', 434 os.path.join(framework_target_files_temp_dir, *misc_info_path)) 439 os.path.join(vendor_target_files_temp_dir, *misc_info_path)) 470 output_misc_info_txt = os.path.join(output_target_files_temp_dir, 'META', 497 os.path.join(vendor_target_files_dir, 'META', [all …]
|
D | validate_target_files.py | 61 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: 245 if os.path.exists(os.path.join(dst, filename)): 247 os.symlink(os.path.join(src, filename), os.path.join(dst, filename)) 273 symlinkIfNotExists(os.path.join(input_tmp, "RADIO"), 274 os.path.join(input_tmp, "IMAGES")) 287 image_path = os.path.join(input_tmp, 'OTA', image) 289 image_path = os.path.join(input_tmp, 'IMAGES', image) [all …]
|
D | test_common.py | 698 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Test1'))) 699 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Test2'))) 700 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Foo3'))) 701 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Bar4'))) 702 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Dir5/Baz5'))) 709 self.assertTrue(os.path.exists(os.path.join(unzipped_dir, 'Test1'))) 710 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Test2'))) 711 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Foo3'))) 712 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Bar4'))) 713 self.assertFalse(os.path.exists(os.path.join(unzipped_dir, 'Dir5/Baz5'))) [all …]
|
D | add_img_to_target_files.py | 99 self.name = os.path.join(input_dir, prefix, name) 102 self._zip_name = os.path.join(prefix, name) 158 output_file = os.path.join(OPTIONS.input_tmp, "SYSTEM", fn) 207 ofile = open(os.path.join(OPTIONS.input_tmp, "VENDOR", fn), "w") 326 dtbo_prebuilt_path = os.path.join( 380 custom_image_prebuilt_path = os.path.join( 392 default = os.path.join(OPTIONS.input_tmp, "IMAGES", partition_name + ".img") 409 fs_config = os.path.join( 429 os.path.join(input_dir, what.upper()), image_props, output_file.name) 477 user_dir = os.path.join(OPTIONS.input_tmp, "DATA") [all …]
|
D | add_img_to_target_files | 99 self.name = os.path.join(input_dir, prefix, name) 102 self._zip_name = os.path.join(prefix, name) 158 output_file = os.path.join(OPTIONS.input_tmp, "SYSTEM", fn) 207 ofile = open(os.path.join(OPTIONS.input_tmp, "VENDOR", fn), "w") 326 dtbo_prebuilt_path = os.path.join( 380 custom_image_prebuilt_path = os.path.join( 392 default = os.path.join(OPTIONS.input_tmp, "IMAGES", partition_name + ".img") 409 fs_config = os.path.join( 429 os.path.join(input_dir, what.upper()), image_props, output_file.name) 477 user_dir = os.path.join(OPTIONS.input_tmp, "DATA") [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')
|
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') 149 logger.info("Command `%s` returns 'compatible'", ' '.join(command)) 151 logger.info("Command `%s` returns 'incompatible'", ' '.join(command)) 156 .format(' '.join(command), proc.returncode, out, err))
|
D | test_ota_from_target_files.py | 45 '\n'.join([ 62 '\n'.join([partition[1] for partition in ab_partitions])) 178 common.OPTIONS.package_key = os.path.join(self.testdata_dir, 'testkey') 360 self.assertEqual('\n'.join(expected_ab_partitions), ab_partitions) 404 misc_info = '\n'.join([ 412 dynamic_partitions_info = '\n'.join([ 850 common.OPTIONS.package_key = os.path.join(self.testdata_dir, 'testkey') 1066 common.OPTIONS.package_key = os.path.join(self.testdata_dir, 'testkey') 1083 common.OPTIONS.package_key = os.path.join( 1102 signing_key = os.path.join(self.testdata_dir, 'testkey_RSA4096.key') [all …]
|
D | test_sign_target_files_apks.py | 148 '\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 …]
|
D | test_utils.py | 54 return os.path.join(current_dir, 'testdata') 62 os.path.join(path, 'framework', 'signapk.jar')) 66 full_path = os.path.realpath(os.path.join( 78 full_path = os.path.realpath(os.path.join(current_dir, *path)) 186 return '\n'.join(self.lines)
|
D | target_files_diff.py | 162 name = os.path.join(prefix, entry) 163 name1 = os.path.join(dir1, entry) 164 name2 = os.path.join(dir2, entry) 204 name = os.path.join(prefix, entry) 205 name1 = os.path.join(dir1, entry) 206 name2 = os.path.join(dir2, entry)
|
D | edify_generator.py | 65 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/ |
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/soong/scripts/ |
D | manifest_check_test.py | 101 manifest_input = self.manifest_tmpl % ('\n'.join([uses_library('foo'), 107 manifest_input = self.manifest_tmpl % ('\n'.join([uses_library('foo', required(False)), 113 manifest_input = self.manifest_tmpl % ('\n'.join([uses_library('foo'), 119 manifest_input = self.manifest_tmpl % ('\n'.join([uses_library('foo', required(False)), 125 manifest_input = self.manifest_tmpl % ('\n'.join([uses_library('foo'), 131 manifest_input = self.manifest_tmpl % ('\n'.join([uses_library('foo', required(False)), 137 manifest_input = self.manifest_tmpl % ('\n'.join([uses_library('foo'),
|
D | manifest_check.py | 108 (', '.join(uses_libraries), ', '.join(manifest_uses_libraries))) 112 (', '.join(optional_uses_libraries), ', '.join(manifest_optional_uses_libraries))) 115 raise ManifestMismatchError('\n'.join(err))
|
/build/make/tools/ |
D | auto_gen_test_config_test.py | 109 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/ |
D | stub_template_host.txt | 22 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)
|