Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 510) sorted by relevance

12345678910>>...21

/build/soong/python/tests/
Dpy-cmd_test.py30 assert_equal("os.path.basename(__file__)", os.path.basename(__file__), "py-cmd_test.py")
51 assert_equal("basename(sys.executable)", os.path.basename(sys.executable), 'py2-cmd')
53 assert_equal("basename(sys.executable)", os.path.basename(sys.executable), 'py3-cmd')
62 assert_equal("len(sys.path)", len(sys.path), 4)
63 assert_equal("sys.path[0]", sys.path[0], os.path.abspath(os.path.dirname(__file__)))
64 assert_equal("sys.path[1]", sys.path[1], "/extra")
65 assert_equal("sys.path[2]", sys.path[2], os.path.join(sys.executable, "internal"))
66 assert_equal("sys.path[3]", sys.path[3], os.path.join(sys.executable, "internal", "stdlib"))
68 assert_equal("len(sys.path)", len(sys.path), 5)
69 assert_equal("sys.path[0]", sys.path[0], os.path.abspath(os.path.dirname(__file__)))
[all …]
Dpar_test.py30 fileName = os.path.basename(__file__)
35 archive = os.path.dirname(__file__)
47 assert_equal("len(sys.path)", len(sys.path), 4)
48 assert_equal("sys.path[0]", sys.path[0], archive)
49 assert_equal("sys.path[1]", sys.path[1], os.path.join(archive, "internal", f"python{major}{minor}.z…
50 assert_equal("sys.path[2]", sys.path[2], os.path.join(archive, "internal", f"python{major}.{minor}"…
51 assert_equal("sys.path[3]", sys.path[3], os.path.join(archive, "internal", f"python{major}.{minor}"…
/build/make/tools/releasetools/merge/
Dtest_merge_utils.py17 import os.path
32 def createEmptyFile(path): argument
33 if not os.path.exists(os.path.dirname(path)):
34 os.makedirs(os.path.dirname(path))
35 open(path, 'a').close()
36 return path
38 def createEmptyFolder(path): argument
39 os.makedirs(path)
40 return path
48 os.path.relpath(path=filepath, start=start)
[all …]
Dmerge_dexopt.py90 dexpreopt_tools_files_temp_dir = os.path.join(temp_dir, 'tools')
91 dexpreopt_framework_config_files_temp_dir = os.path.join(
93 dexpreopt_vendor_config_files_temp_dir = os.path.join(temp_dir,
110 os.path.join(output_target_files_dir, 'SYSTEM'),
111 os.path.join(temp_dir, 'system'))
113 os.path.join(output_target_files_dir, 'VENDOR'),
114 os.path.join(temp_dir, 'vendor'))
118 apex_extract_root_dir = os.path.join(temp_dir, 'apex')
124 os.path.join(temp_dir, 'system'),
134 dexpreopt_framework_soon_config = os.path.join(
[all …]
Dtest_merge_compatibility_checks.py17 import os.path
45 def write_temp_file(path, data=''): argument
46 full_path = os.path.join(product_out_dir, path)
47 if not os.path.exists(os.path.dirname(full_path)):
48 os.makedirs(os.path.dirname(full_path))
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(),
[all …]
Dtest_merge_meta.py17 import os.path
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'),
[all …]
/build/blueprint/pathtools/
Dlists.go27 for i, path := range paths {
28 result[i] = filepath.Join(prefix, path)
35 for i, path := range paths {
36 result[i] = ReplaceExtension(path, extension)
43 func ReplaceExtension(path string, extension string) string {
44 oldExt := filepath.Ext(path)
46 path = strings.TrimSuffix(path, oldExt)
48 return path + "." + extension
/build/make/tools/releasetools/
Dtest_sign_apex.py17 import os.path
28 self.assertTrue(os.path.exists(self.testdata_dir))
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')
43 self.assertTrue(os.path.exists(signed_foo_apex))
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(
[all …]
Dtest_validate_target_files.py20 import os.path
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'))
[all …]
Dtest_check_target_files_vintf.py17 import os.path
58 def write_string_to_file(content, path, mode='w'): argument
59 if not os.path.isdir(os.path.dirname(path)):
60 os.makedirs(os.path.dirname(path))
61 with open(path, mode=mode) as f:
71 test_delta_dir = os.path.join(self.testdata_dir, test_delta_rel_path)
76 write_string_to_file(content, os.path.join(test_dir, rel_path))
80 rel_root = os.path.relpath(root, test_delta_dir)
84 output_file = os.path.join(test_dir, rel_root, f)
85 with open(os.path.join(root, f)) as inp:
[all …]
Dota_from_raw_img.py41 if not os.path.exists(search_path):
43 path = os.path.join(search_path, "bin", filename)
44 if os.path.exists(path):
45 return path
46 path = os.path.join(search_path, filename)
47 if os.path.exists(path):
48 return path
49 return path
77 args.partition_names = [os.path.os.path.splitext(os.path.basename(path))[
78 0] for path in args.images]
[all …]
/build/make/tools/atree/
Dfs.cpp21 is_dir(const string& path) in is_dir() argument
25 err = stat(path.c_str(), &st); in is_dir()
30 remove_file(const string& path) in remove_file() argument
32 int err = unlink(path.c_str()); in remove_file()
34 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(), in remove_file()
42 remove_recursively(const string& path) in remove_recursively() argument
46 if (is_dir(path)) { in remove_recursively()
47 DIR *d = opendir(path.c_str()); in remove_recursively()
50 path.c_str(), strerror(errno)); in remove_recursively()
63 string full = path; in remove_recursively()
[all …]
/build/soong/cc/
Dcompiler_test.go36 for _, path := range thirdPartyPaths {
37 if !android.IsThirdPartyPath(path) {
38 t.Errorf("Expected %s to be considered third party", path)
41 for _, path := range nonThirdPartyPaths {
42 if android.IsThirdPartyPath(path) {
43 t.Errorf("Expected %s to *not* be considered third party", path)
/build/make/tools/
Dbuild-runfiles.cc204 void ScanTreeAndPrune(const std::string &path) { in ScanTreeAndPrune() argument
210 EnsureDirReadAndWritePerms(path); in ScanTreeAndPrune()
213 DIR *dh = opendir(path.c_str()); in ScanTreeAndPrune()
215 err(2, "opendir '%s'", path.c_str()); in ScanTreeAndPrune()
219 const std::string prefix = (path == "." ? "" : path + "/"); in ScanTreeAndPrune()
245 err(2, "reading directory '%s'", path.c_str()); in ScanTreeAndPrune()
253 const std::string &path = it->first; in CreateFiles() local
256 if (mkdir(path.c_str(), 0777) != 0) { in CreateFiles()
257 err(2, "mkdir '%s'", path.c_str()); in CreateFiles()
262 int fd = open(path.c_str(), O_CREAT|O_EXCL|O_WRONLY, 0555); in CreateFiles()
[all …]
Dmk2bp_partition.py21 path = '.'
22 while not os.path.isfile(os.path.join(path, 'build/soong/soong_ui.bash')):
23 if os.path.abspath(path) == '/':
25 path = os.path.join(path, '..')
26 return os.path.abspath(path)
58 filename = os.path.join(installed_product_out, "mk2bp_remaining.csv")
59 copy_filename = os.path.join(installed_product_out, lunch_target + "_mk2bp_remaining.csv")
61 if not os.path.exists(copy_filename):
/build/make/ci/
Dtest_mapping_module_retriever.py90 for path in paths:
91 dir_names = path.split(os.path.sep)
93 [os.path.sep.join(dir_names[:i + 1]) for i in range(len(dir_names))])
100 for path in all_paths:
102 test_mapping_file = os.path.join(os.path.join(os.getcwd(), path), 'TEST_MAPPING')
106 test_mappings[path] = test_mapping
115 norm_import_path = os.path.normpath(os.path.join(path, import_path))
/build/make/tools/compliance/
Dpolicy_walk.go21 Context(lg *LicenseGraph, path TargetEdgePath, edge *TargetEdge) interface{}
28 func (ctx NoEdgeContext) Context(lg *LicenseGraph, path TargetEdgePath, edge *TargetEdge) interface…
39 func (ctx ApplicableConditionsContext) Context(lg *LicenseGraph, path TargetEdgePath, edge *TargetE…
41 if len(path) > 0 {
42 universe = path[len(path)-1].ctx.(LicenseConditionSet)
50 type VisitNode func(lg *LicenseGraph, target *TargetNode, path TargetEdgePath) bool
55 path := NewTargetEdgePath(32)
59 visitChildren := visit(lg, fnode, *path)
68 edgeContext = ctx.Context(lg, *path, edge)
70 path.Push(edge, edgeContext)
[all …]
/build/soong/finder/fs/
Dfs.go41 for path, bytes := range files {
42 dir := filepath.Dir(path)
44 fs.WriteFile(path, bytes, 0777)
53 Lstat(path string) (stats os.FileInfo, err error)
54 Stat(path string) (stats os.FileInfo, err error)
55 ReadDir(path string) (contents []DirEntryInfo, err error)
63 WriteFile(path string, data []byte, perm os.FileMode) (err error)
64 Remove(path string) (err error)
65 RemoveAll(path string) (err error)
99 func (osFs) Lstat(path string) (stats os.FileInfo, err error) {
[all …]
/build/bazel/rules/
Dstaging_dir_builder.py39 while os.path.islink(base_staging_dir):
40 …base_staging_dir = os.path.normpath(os.path.join(os.path.dirname(base_staging_dir), os.readlink(ba…
47 if line != os.path.normpath(line):
51 src = os.path.join(base_staging_dir, line)
52 dst = os.path.join(staging_dir_path, line)
53 if os.path.isdir(src):
56 os.makedirs(os.path.dirname(dst), exist_ok=True)
62 path_in_staging_dir = os.path.join(staging_dir_path, path_in_staging_dir)
92 if os.path.islink(path_in_bazel):
97 …path_in_bazel = os.path.abspath(os.path.join(os.path.dirname(path_in_bazel), os.readlink(path_in_b…
[all …]
/build/bazel/ci/
Drbc_dashboard.py66 path = '.'
67 while not os.path.isfile(os.path.join(path, 'build/soong/soong_ui.bash')):
68 if os.path.abspath(path) == '/':
70 path = os.path.join(path, '..')
71 return os.path.abspath(path)
91 with open(os.path.join(out_dir, 'build.log'), 'wb') as f:
162 …name = 'soong_build.ninja' if re.search('soong/build\.[^.]+\.ninja$', pair[0]) else os.path.basena…
163 with open(os.path.join(results_folder, name)+'.diff', 'wb') as f:
206 def cleanup_empty_files(path): argument
207 if os.path.isfile(path):
[all …]
/build/soong/cmd/release_config/release_config_lib/
Dutil.go62 func WriteMessage(path string, message proto.Message) (err error) {
63 format := filepath.Ext(path)
68 return WriteFormattedMessage(path, format, message)
85 func WriteFormattedMessage(path, format string, message proto.Message) (err error) { argument
87 if _, err := os.Stat(filepath.Dir(path)); err != nil {
88 if err = os.MkdirAll(filepath.Dir(path), 0775); err != nil {
100 return fmt.Errorf("Unknown message format for %s", path)
105 return pathtools.WriteFileIfChanged(path, data, 0644)
120 func LoadMessage(path string, message proto.Message) error {
121 data, err := os.ReadFile(path)
[all …]
/build/soong/scripts/
Dgen-kotlin-build-file.py70 path = os.path.abspath(entry)
71 f.write(' <classpath path="%s"/>\n' % path)
76 path = os.path.abspath(src)
78 f.write(' <javaSourceRoots path="%s"/>\n' % path)
80 f.write(' <sources path="%s"/>\n' % path)
86 path = os.path.abspath(src)
87 f.write(' <sources path="%s"/>\n' % path)
88 f.write(' <commonSources path="%s"/>\n' % path)
/build/bazel/rules/cc/
Dcc_library_common_test.bzl29 actual = is_external_directory(ctx.attr.path)
31 asserts.equals(env, ctx.attr.expected_value, actual, "expected {path}, to be {external}".format(
32 path = ctx.attr.path,
41 "path": attr.string(),
49 path = "path/to/package",
53 path = "external/path/to/package",
57 path = "hardware/path/to/package",
61 path = "hardware",
65 path = "hardware/google/path/to/package",
69 path = "hardware/interfaces/path/to/package",
[all …]
/build/soong/android/
Dpaths.go293 if path, ok := p.(genPathProvider); ok {
294 return path.genPathWithExt(ctx, subdir, ext)
303 if path, ok := p.(genPathProvider); ok {
304 return path.genPathWithExtAndTrimExt(ctx, subdir, ext, trimExt)
313 if path, ok := p.(objPathProvider); ok {
314 return path.objPathWithExt(ctx, subdir, ext)
324 if path, ok := p.(resPathProvider); ok {
325 return path.resPathWithName(ctx, name)
333 path Path // nil if invalid. member
338 func OptionalPathForPath(path Path) OptionalPath {
[all …]
/build/make/tools/aconfig/aconfig_device_paths/src/
Dlib.rs20 use std::path::PathBuf;
45 let mut path = PathBuf::from("/apex"); in parsed_flags_proto_paths() localVariable
46 path.push(dir.path()); in parsed_flags_proto_paths()
47 path.push("etc"); in parsed_flags_proto_paths()
48 path.push("aconfig_flags.pb"); in parsed_flags_proto_paths()
49 if path.exists() { in parsed_flags_proto_paths()
50 result.push(path); in parsed_flags_proto_paths()

12345678910>>...21