/external/libffi/ |
D | generate-darwin-source-and-headers.py | 21 src_dir = 'x86' variable in simulator_platform 34 src_dir = 'x86' variable in simulator64_platform 47 src_dir = 'arm' variable in device_platform 60 src_dir = 'aarch64' variable in device64_platform 70 src_dir = 'x86' variable in desktop32_platform 86 src_dir = 'x86' variable in desktop64_platform 98 def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''): argument 109 with open(os.path.join(src_dir, filename)) as in_file: 120 def list_files(src_dir, pattern=None, filelist=None): argument 121 if pattern: filelist = glob.iglob(os.path.join(src_dir, pattern)) [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/ |
D | generate-darwin-source-and-headers.py | 21 src_dir = 'x86' variable in simulator_platform 34 src_dir = 'x86' variable in simulator64_platform 47 src_dir = 'arm' variable in device_platform 60 src_dir = 'aarch64' variable in device64_platform 70 src_dir = 'x86' variable in desktop32_platform 86 src_dir = 'x86' variable in desktop64_platform 100 def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''): argument 108 with open(os.path.join(src_dir, filename)) as in_file: 119 def list_files(src_dir, pattern=None, filelist=None): argument 120 if pattern: filelist = glob.iglob(os.path.join(src_dir, pattern)) [all …]
|
/external/llvm-project/lldb/test/API/functionalities/source-map/ |
D | TestTargetSourceMap.py | 30 src_dir = self.getSourceDir() 31 src_path = os.path.join(src_dir, "main.c") 32 yaml_path = os.path.join(src_dir, "a.yaml") 45 valid_path = os.path.dirname(src_dir) 47 invalid_path = src_dir + "invalid_path" 48 invalid_path2 = src_dir + "invalid_path2" 53 % (invalid_path, src_dir, invalid_path2, valid_path), 63 '[0] "." -> "%s"' % (src_dir), 81 '[0] "." -> "%s"' % (src_dir), 96 % (invalid_path, invalid_path2, src_dir), [all …]
|
/external/zlib/google/ |
D | zip.cc | 53 explicit DirectFileAccessor(base::FilePath src_dir) : src_dir_(src_dir) {} in DirectFileAccessor() argument 103 ZipParams::ZipParams(const base::FilePath& src_dir, in ZipParams() argument 105 : src_dir_(src_dir), in ZipParams() 107 file_accessor_(new DirectFileAccessor(src_dir)) {} in ZipParams() 111 ZipParams::ZipParams(const base::FilePath& src_dir, int dest_fd) in ZipParams() argument 112 : src_dir_(src_dir), in ZipParams() 114 file_accessor_(new DirectFileAccessor(src_dir)) {} in ZipParams() 129 params.src_dir(), true /* is directory*/)); in Zip() 143 params.src_dir().AppendRelativePath(entry_path, &relative_path); in Zip() 161 params.dest_fd(), params.src_dir(), params.file_accessor()); in Zip() [all …]
|
D | zip_unittest.cc | 253 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local 256 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp() 259 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp() 278 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp() 413 base::FilePath src_dir; in TEST_F() local 414 ASSERT_TRUE(GetTestDataDirectory(&src_dir)); in TEST_F() 415 src_dir = src_dir.AppendASCII("test"); in TEST_F() 421 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F() 426 base::FilePath src_dir; in TEST_F() local 427 ASSERT_TRUE(GetTestDataDirectory(&src_dir)); in TEST_F() [all …]
|
/external/libchrome/build/ |
D | landmines.py | 39 def get_build_dir(src_dir): argument 55 return os.path.abspath(os.path.join(src_dir, output_dir)) 58 def clobber_if_necessary(new_landmines, src_dir): argument 60 out_dir = get_build_dir(src_dir) 61 landmines_path = os.path.normpath(os.path.join(src_dir, '.landmines')) 112 if options.src_dir: 113 if not os.path.isdir(options.src_dir): 114 parser.error('Cannot find source root dir at %s' % options.src_dir) 115 logging.debug('Overriding source root dir. Using: %s', options.src_dir) 117 options.src_dir = \ [all …]
|
/external/angle/third_party/zlib/google/ |
D | zip_unittest.cc | 284 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local 287 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp() 290 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp() 309 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp() 444 base::FilePath src_dir; in TEST_F() local 445 ASSERT_TRUE(GetTestDataDirectory(&src_dir)); in TEST_F() 446 src_dir = src_dir.AppendASCII("test"); in TEST_F() 452 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F() 457 base::FilePath src_dir; in TEST_F() local 458 ASSERT_TRUE(GetTestDataDirectory(&src_dir)); in TEST_F() [all …]
|
D | zip.cc | 48 explicit DirectFileAccessor(base::FilePath src_dir) in DirectFileAccessor() argument 49 : src_dir_(std::move(src_dir)) {} in DirectFileAccessor() 122 DirectFileAccessor default_accessor(params.src_dir); in Zip() 152 params->filter_callback.Run(params->src_dir.Append(path))); in Zip() 236 bool ZipWithFilterCallback(const base::FilePath& src_dir, in ZipWithFilterCallback() argument 239 DCHECK(base::DirectoryExists(src_dir)); in ZipWithFilterCallback() 240 return Zip({.src_dir = src_dir, in ZipWithFilterCallback() 245 bool Zip(const base::FilePath& src_dir, in Zip() argument 248 return Zip({.src_dir = src_dir, in Zip() 254 bool ZipFiles(const base::FilePath& src_dir, in ZipFiles() argument [all …]
|
/external/rust/crates/grpcio-sys/grpc/ |
D | gRPC-RxLibrary.podspec | 47 src_dir = 'src/objective-c/RxLibrary' 49 ss.header_mappings_dir = "#{src_dir}" 50 ss.source_files = "#{src_dir}/*.h" 51 ss.public_header_files = "#{src_dir}/*.h" 55 ss.header_mappings_dir = "#{src_dir}" 56 ss.source_files = "#{src_dir}/*.m", "#{src_dir}/**/*.{h,m}" 57 ss.private_header_files = "#{src_dir}/**/*.h" 62 src_dir = 'src/objective-c/RxLibrary' 63 s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" 64 s.private_header_files = "#{src_dir}/private/*.h" [all …]
|
/external/clang/tools/scan-build-py/libear/ |
D | __init__.py | 24 src_dir = os.path.dirname(os.path.realpath(__file__)) 25 toolset = make_toolset(src_dir) 45 os.path.join(src_dir, 'config.h.in'), 82 def __init__(self, src_dir): argument 83 self.src_dir = src_dir 114 def __init__(self, src_dir): argument 115 Toolset.__init__(self, src_dir) 129 def __init__(self, src_dir): argument 130 Toolset.__init__(self, src_dir) 144 def __init__(self, src_dir): argument [all …]
|
/external/llvm-project/clang/tools/scan-build-py/libear/ |
D | __init__.py | 23 src_dir = os.path.dirname(os.path.realpath(__file__)) 24 toolset = make_toolset(src_dir) 44 os.path.join(src_dir, 'config.h.in'), 81 def __init__(self, src_dir): argument 82 self.src_dir = src_dir 113 def __init__(self, src_dir): argument 114 Toolset.__init__(self, src_dir) 128 def __init__(self, src_dir): argument 129 Toolset.__init__(self, src_dir) 143 def __init__(self, src_dir): argument [all …]
|
/external/llvm-project/lldb/test/API/commands/trace/ |
D | TestTraceLoad.py | 18 src_dir = self.getSourceDir() 19 trace_definition_file = os.path.join(src_dir, "intelpt-trace", "trace.json") 32 self.assertEqual(path.fullpath, os.path.join(src_dir, "intelpt-trace", "a.out")) 44 src_dir = self.getSourceDir() 46 …self.expect("trace load -v " + os.path.join(src_dir, "intelpt-trace", "trace_bad.json"), error=Tru… 71 …self.expect("trace load -v " + os.path.join(src_dir, "intelpt-trace", "trace_bad2.json"), error=Tr… 75 …self.expect("trace load -v " + os.path.join(src_dir, "intelpt-trace", "trace_bad4.json"), error=Tr… 92 …self.expect("trace load -v " + os.path.join(src_dir, "intelpt-trace", "trace_bad5.json"), error=Tr… 99 …self.expect("trace load -v " + os.path.join(src_dir, "intelpt-trace", "trace_bad3.json"), error=Tr…
|
/external/oss-fuzz/infra/base-images/base-builder/ |
D | detect_repo.py | 55 if args.src_dir: 56 src_dir = args.src_dir 58 src_dir = os.environ.get('SRC', '/src') 60 for single_dir in get_dirs_to_search(src_dir, args.repo_name): 61 full_path = os.path.join(src_dir, single_dir) 71 args.example_commit, src_dir) 74 def get_dirs_to_search(src_dir, repo_name): argument 84 dirs_to_search = os.listdir(src_dir)
|
/external/perfetto/infra/luci/recipes/ |
D | perfetto.py | 41 src_dir = builder_cache_dir.join('perfetto') 45 api.file.ensure_directory('ensure source dir', src_dir) 46 api.step('init', ['git', 'init', src_dir]) 47 with api.context(cwd=src_dir): 59 with api.context(cwd=src_dir, infra_steps=True): 63 with api.context(cwd=src_dir):
|
/external/python/cpython2/Lib/test/ |
D | test_shutil.py | 156 src_dir = tempfile.mkdtemp() 159 write_data(os.path.join(src_dir, 'test.txt'), '123') 161 os.mkdir(os.path.join(src_dir, 'test_dir')) 162 write_data(os.path.join(src_dir, 'test_dir', 'test.txt'), '456') 165 shutil.copytree(src_dir, dst_dir) 176 os.path.join(src_dir, 'test.txt'), 178 os.path.join(src_dir, 'test_dir', 'test.txt'), 183 for path in (src_dir, 205 src_dir = tempfile.mkdtemp() 208 write_data(join(src_dir, 'test.txt'), '123') [all …]
|
/external/tflite-support/third_party/tensorflow/ |
D | tf_configure.bzl | 59 def _read_dir(repository_ctx, src_dir): 68 src_dir: directory to find files from. 74 src_dir = src_dir.replace("/", "\\") 77 ["cmd.exe", "/c", "dir", src_dir, "/b", "/s", "/a-d"], 87 ["find", src_dir, "-follow", "-type", "f"], 128 src_dir, 136 If src_dir is passed, files will be read from the given directory; otherwise 141 src_dir: source directory. 144 src_files: list of source files instead of src_dir. 159 if src_dir != None: [all …]
|
/external/python/setuptools/setuptools/command/ |
D | build_py.py | 87 src_dir = self.get_package_dir(package) 94 os.path.relpath(file, src_dir) 95 for file in self.find_data_files(package, src_dir) 97 return package, src_dir, build_dir, filenames 99 def find_data_files(self, package, src_dir): argument 104 src_dir, 114 return self.exclude_data_files(package, src_dir, files) 118 for package, src_dir, build_dir, filenames in self.data_files: 122 srcfile = os.path.join(src_dir, filename) 196 def exclude_data_files(self, package, src_dir, files): argument [all …]
|
/external/skqp/infra/bots/recipes/ |
D | recreate_skps.py | 51 src_dir = checkout_root.join('src') 53 out_dir = src_dir.join('out', 'Release') 55 with api.context(cwd=src_dir): 58 gn = src_dir.join('buildtools', platform, 'gn') 76 '--chrome_src_path', src_dir, 77 '--browser_executable', src_dir.join('out', 'Release', 'chrome'), 90 '--chromium_path', src_dir]
|
/external/skia/infra/bots/recipes/ |
D | recreate_skps.py | 49 src_dir = checkout_root.join('src') 51 out_dir = src_dir.join('out', 'Release') 53 with api.context(cwd=src_dir): 56 gn = src_dir.join('buildtools', platform, 'gn') 74 '--chrome_src_path', src_dir, 75 '--browser_executable', src_dir.join('out', 'Release', 'chrome'), 87 '--chromium_path', src_dir]
|
/external/python/setuptools/setuptools/tests/ |
D | namespaces.py | 7 src_dir = tmpdir / name 8 src_dir.mkdir() 9 setup_py = src_dir / 'setup.py' 21 ns_pkg_dir = src_dir / namespace 30 return src_dir
|
/external/python/cpython3/Lib/test/ |
D | test_shutil.py | 442 src_dir = self.mkdtemp() 444 self.addCleanup(shutil.rmtree, src_dir) 446 write_file((src_dir, 'test.txt'), '123') 447 os.mkdir(os.path.join(src_dir, 'test_dir')) 448 write_file((src_dir, 'test_dir', 'test.txt'), '456') 450 shutil.copytree(src_dir, dst_dir) 461 src_dir = self.mkdtemp() 463 self.addCleanup(shutil.rmtree, src_dir) 466 write_file((src_dir, 'nonexisting.txt'), '123') 467 os.mkdir(os.path.join(src_dir, 'existing_dir')) [all …]
|
/external/rust/crates/zip/examples/ |
D | write_dir.rs | 45 let src_dir = &*args[1]; in real_main() localVariable 51 match doit(src_dir, dst_file, method.unwrap()) { in real_main() 52 Ok(_) => println!("done: {} written to {}", src_dir, dst_file), in real_main() 103 src_dir: &str, in doit() 107 if !Path::new(src_dir).is_dir() { in doit() 114 let walkdir = WalkDir::new(src_dir.to_string()); in doit() 117 zip_dir(&mut it.filter_map(|e| e.ok()), src_dir, file, method)?; in doit()
|
/external/grpc-grpc/ |
D | gRPC.podspec | 42 src_dir = 'src/objective-c/GRPCClient' 57 ss.header_mappings_dir = "#{src_dir}" 59 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" 60 ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}" 61 ss.private_header_files = "#{src_dir}/private/*.h" 79 ss.header_mappings_dir = "#{src_dir}" 81 ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}"
|
/external/grpc-grpc/templates/ |
D | gRPC.podspec.template | 44 src_dir = 'src/objective-c/GRPCClient' 59 ss.header_mappings_dir = "#{src_dir}" 61 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" 62 ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}" 63 ss.private_header_files = "#{src_dir}/private/*.h" 81 ss.header_mappings_dir = "#{src_dir}" 83 ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}"
|
/external/icu/icu4c/source/python/icutools/databuilder/ |
D | __main__.py | 244 def __init__(self, src_dir): argument 245 self.src_dir = src_dir 248 absolute_paths = pyglob.glob(os.path.join(self.src_dir, pattern)) 250 relative_paths = [v[len(self.src_dir)+1:] for v in sorted(absolute_paths)] 260 with pyio.open(os.path.join(self.src_dir, filename), "r", encoding="utf-8-sig") as f: 284 "SRC_DIR": args.src_dir, 285 "IN_DIR": args.src_dir, 296 sys.path.append(args.src_dir) 303 io = IO(args.src_dir)
|