Home
last modified time | relevance | path

Searched refs:src_file (Results 1 – 25 of 107) sorted by relevance

12345

/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_shutil_test.py205 src_file = self.make_path("xyzzy")
207 self.create_file(src_file)
208 os.chmod(src_file, 0o750)
209 self.assertTrue(os.path.exists(src_file))
211 shutil.copy(src_file, dst_file)
213 self.assertEqual(os.stat(src_file).st_mode, os.stat(dst_file).st_mode)
216 src_file = self.make_path("xyzzy")
219 self.create_file(src_file)
221 os.chmod(src_file, 0o750)
222 self.assertTrue(os.path.exists(src_file))
[all …]
/external/snakeyaml/
Dpatch-android-src30 src_file="$2"
42 if ! [[ $src_file == $src_file_prefix* ]]; then
43 echo "$src_file_prefix is not a valid prefix of $src_file" >&2
47 if ! [[ -f $src_file ]]; then
48 echo "Source file $src_file does not exist." >&2
53 src_file="${src_file#$src_file_prefix}"
55 patch_file_src=$(grep --files-with-matches -R "diff --git a/$src_file" "$ANDROID_PATCHES_DIR")
57 echo "Error: Could not find a corresponding .patch file for $src_file" >&2
75 if [[ $src_file != $src_file_check ]]; then
76 echo "Check-fail: $src_file was not same as found in patch file ($src_file_check)" >&2
/external/mbedtls/scripts/
Dcode_style.py110 for src_file in src_file_list:
111 uncrustify_cmd = [UNCRUSTIFY_EXE] + UNCRUSTIFY_ARGS + [src_file]
116 " correcting file " + src_file)
122 diff_cmd = ["diff", "-u", src_file, src_file + ".uncrustify"]
126 print(src_file + " changed - code style is incorrect.")
133 os.remove(src_file + ".uncrustify")
142 for src_file in src_file_list:
143 uncrustify_cmd = [UNCRUSTIFY_EXE] + code_change_args + [src_file]
148 src_file)
/external/swiftshader/third_party/SPIRV-Tools/test/diff/diff_files/
Dgenerate_tests.py172 def run_diff_tool(diff_tool, src_file, dst_file, variant): argument
187 args.append(src_file)
204 def generate_extra_test(diff_tool, src_file, dst_file, variant, test_name_camel_case, test_tag, tes… argument
205 diff = run_diff_tool(diff_tool, src_file, dst_file, variant)
213 src_file = make_src_file(test_name)
215 src_file_no_debug = remove_debug_info(src_file)
218 src_spirv = read_file(src_file)
225 diff_spirv = run_diff_tool(diff_tool, src_file, dst_file, VARIANT_NONE)
231 … extra_tests.append(generate_extra_test(diff_tool, src_file, dst_file, VARIANT_IGNORE_SET_BINDING,
235 … extra_tests.append(generate_extra_test(diff_tool, src_file, dst_file, VARIANT_IGNORE_LOCATION,
[all …]
/external/deqp-deps/SPIRV-Tools/test/diff/diff_files/
Dgenerate_tests.py172 def run_diff_tool(diff_tool, src_file, dst_file, variant): argument
187 args.append(src_file)
204 def generate_extra_test(diff_tool, src_file, dst_file, variant, test_name_camel_case, test_tag, tes… argument
205 diff = run_diff_tool(diff_tool, src_file, dst_file, variant)
213 src_file = make_src_file(test_name)
215 src_file_no_debug = remove_debug_info(src_file)
218 src_spirv = read_file(src_file)
225 diff_spirv = run_diff_tool(diff_tool, src_file, dst_file, VARIANT_NONE)
231 … extra_tests.append(generate_extra_test(diff_tool, src_file, dst_file, VARIANT_IGNORE_SET_BINDING,
235 … extra_tests.append(generate_extra_test(diff_tool, src_file, dst_file, VARIANT_IGNORE_LOCATION,
[all …]
/external/angle/third_party/spirv-tools/src/test/diff/diff_files/
Dgenerate_tests.py172 def run_diff_tool(diff_tool, src_file, dst_file, variant): argument
187 args.append(src_file)
204 def generate_extra_test(diff_tool, src_file, dst_file, variant, test_name_camel_case, test_tag, tes… argument
205 diff = run_diff_tool(diff_tool, src_file, dst_file, variant)
213 src_file = make_src_file(test_name)
215 src_file_no_debug = remove_debug_info(src_file)
218 src_spirv = read_file(src_file)
225 diff_spirv = run_diff_tool(diff_tool, src_file, dst_file, VARIANT_NONE)
231 … extra_tests.append(generate_extra_test(diff_tool, src_file, dst_file, VARIANT_IGNORE_SET_BINDING,
235 … extra_tests.append(generate_extra_test(diff_tool, src_file, dst_file, VARIANT_IGNORE_LOCATION,
[all …]
/external/openthread/third_party/mbedtls/repo/scripts/
Dcode_style.py118 for src_file in src_file_list:
119 uncrustify_cmd = [UNCRUSTIFY_EXE] + UNCRUSTIFY_ARGS + [src_file]
124 " correcting file " + src_file)
130 diff_cmd = ["diff", "-u", src_file, src_file + ".uncrustify"]
134 print(src_file + " changed - code style is incorrect.")
141 os.remove(src_file + ".uncrustify")
150 for src_file in src_file_list:
151 uncrustify_cmd = [UNCRUSTIFY_EXE] + code_change_args + [src_file]
156 src_file)
/external/vulkan-validation-layers/build-android/
Dbuild.py29 src_file = os.path.join(src_dir, file_name)
32 print('Copying {} to {}...'.format(src_file, dst_file))
33 if os.path.isdir(src_file):
34 _install_dir(src_file, dst_file)
35 elif os.path.islink(src_file):
36 _install_symlink(src_file, dst_file)
38 _install_file(src_file, dst_file)
48 def _install_symlink(src_file, dst_file): argument
52 link_target = os.readlink(src_file)
56 def _install_file(src_file, dst_file): argument
[all …]
/external/wayland-protocols/bazel/
Dgensrcs.bzl36 def _expand_out_path_template(ctx, src_file):
37 # Each src_file has a short_path that looks like:
54 # Try to obtain the path to the package that defines `src_file`. It may or
60 pkg_dirname = paths.dirname(src_file.short_path)
62 if (src_file.is_source and src_file.owner and
63 src_file.short_path.startswith(src_file.owner.package + "/")):
65 src_file.short_path,
66 src_file.owner.package,
69 base_inc_ext = src_file.basename
109 for src_file in src_files:
[all …]
/external/cronet/tot/testing/libfuzzer/
Dzip_sources.py59 src_file = os.path.abspath(os.path.join(args.workdir, compile_unit))
60 print(src_file)
61 z.write(src_file, os.path.relpath(src_file, args.srcdir))
/external/cronet/stable/testing/libfuzzer/
Dzip_sources.py59 src_file = os.path.abspath(os.path.join(args.workdir, compile_unit))
60 print(src_file)
61 z.write(src_file, os.path.relpath(src_file, args.srcdir))
/external/coreboot/util/amdfwtool/
Dhandle_file.c134 ssize_t copy_blob(void *dest, const char *src_file, size_t room) in copy_blob() argument
140 fd = open(src_file, O_RDONLY); in copy_blob()
143 src_file, strerror(errno)); in copy_blob()
154 fprintf(stderr, "Error: %s will not fit. Exiting.\n", src_file); in copy_blob()
162 fprintf(stderr, "Error while reading %s\n", src_file); in copy_blob()
/external/cronet/tot/components/cronet/tools/
Djar_src.py93 for src_file in src_files:
96 target_path = os.path.join(src_search_dir, src_file)
99 if not predicate or predicate(src_file):
103 (src_file, options.src_search_dirs))
106 (src_file, options.src_search_dirs))
/external/cronet/stable/components/cronet/tools/
Djar_src.py93 for src_file in src_files:
96 target_path = os.path.join(src_search_dir, src_file)
99 if not predicate or predicate(src_file):
103 (src_file, options.src_search_dirs))
106 (src_file, options.src_search_dirs))
/external/angle/include/platform/
Dgen_features.py171 for src_file, (category_prefix, class_name) in feature_files.items():
172 with open(src_file) as fin:
201 input_file_name=src_file,
202 description=description.replace(src_file, header_file),
/external/zlib/google/
Dzip.cc174 bool Unzip(const base::FilePath& src_file, in Unzip() argument
177 base::File file(src_file, base::File::FLAG_OPEN | base::File::FLAG_READ); in Unzip()
179 PLOG(ERROR) << "Cannot open " << Redact(src_file) << ": " in Unzip()
193 bool Unzip(const base::PlatformFile& src_file, in Unzip() argument
201 if (!reader.OpenFromPlatformFile(src_file)) { in Unzip()
202 LOG(ERROR) << "Cannot open ZIP from file handle " << src_file; in Unzip()
/external/tensorflow/tensorflow/compiler/mlir/quantization/tensorflow/
Dgen_quantized_function_library.py68 for src_file in src_files:
69 with open(src_file, 'r') as f:
80 out = re.split(file_prefix, src_file)
/external/tensorflow/tensorflow/lite/tools/
Dbuild_aar.sh206 for src_file in $(echo ${FLAG_TFLITE_OPS_SRCS} | sed "s/,/ /g")
208 cp ${src_file} ${TMP_DIR}
209 TFLITE_OPS_SRCS="${TFLITE_OPS_SRCS},$(basename ${src_file})"
/external/toolchain-utils/go/chromeos/
Dsetup_chromeos_testing.py128 src_file = os.path.join(
132 if os.path.exists(src_file):
133 cmd = "cp %s %s" % (src_file, dest_file)
148 % src_file
/external/python/cpython3/Tools/ssl/
Dmultissltests.py176 self.src_file = os.path.join(
236 return os.path.isfile(self.src_file)
252 src_dir = os.path.dirname(self.src_file)
272 log.info("Storing {}".format(self.src_file))
273 with open(self.src_file, "wb") as f:
283 tf = tarfile.open(self.src_file)
337 log.debug("Already has src {}".format(self.src_file))
/external/clang/tools/scan-build-py/tests/functional/cases/
Dtest_from_cmd.py84 src_file = os.path.join(target_dir, src_file_name)
86 create_empty_file(src_file)
87 command = ' '.join([compiler, '-c', src_file, '-o', obj_file])
/external/chromium-crossbench/crossbench/probes/v8/
Drcs.py80 src_file = result_dir / "all.rcs.txt"
81 self.host_platform.symlink_or_copy(src_file,
83 return LocalProbeResult(file=(src_file,))
/external/executorch/
Dsetup.py364 src_file: Path = ext.src_path(self)
371 self.copy_file(os.fspath(src_file), os.fspath(dst_file))
377 if not os.access(src_file, os.W_OK):
379 os.chmod(src_file, os.stat(src_file).st_mode | 0o222)
/external/rust/android-crates-io/crates/zip/tests/
Dend_to_end.rs29 let src_file = &mut Cursor::new(Vec::new()); in copy() localVariable
30 write_test_archive(src_file, method).expect("Couldn't write to test file"); in copy()
35 let mut src_archive = zip::ZipArchive::new(src_file).unwrap(); in copy()
/external/cronet/tot/third_party/llvm-libc/src/cmake/modules/
DLLVMLibCHeaderRules.cmake29 set(src_file ${CMAKE_CURRENT_SOURCE_DIR}/${ADD_HEADER_HDR}) variable
33 COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src_file} ${dest_file}
34 DEPENDS ${src_file}

12345