Home
last modified time | relevance | path

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

123

/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_shutil_test.py194 src_file = self.make_path('xyzzy')
196 self.create_file(src_file)
197 os.chmod(src_file, 0o750)
198 self.assertTrue(os.path.exists(src_file))
200 shutil.copy(src_file, dst_file)
202 self.assertEqual(os.stat(src_file).st_mode, os.stat(dst_file).st_mode)
205 src_file = self.make_path('xyzzy')
208 self.create_file(src_file)
210 os.chmod(src_file, 0o750)
211 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/angle/third_party/vulkan-deps/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/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/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/angle/third_party/vulkan-deps/spirv-tools/src/tools/diff/
Ddiff.cpp93 const char* src_file = nullptr; in main() local
151 if (src_file == nullptr) { in main()
152 src_file = argv[argi]; in main()
162 if (src_file == nullptr || dst_file == nullptr) { in main()
185 std::unique_ptr<spvtools::opt::IRContext> src = load_module(src_file); in main()
/external/swiftshader/third_party/SPIRV-Tools/tools/diff/
Ddiff.cpp93 const char* src_file = nullptr; in main() local
151 if (src_file == nullptr) { in main()
152 src_file = argv[argi]; in main()
162 if (src_file == nullptr || dst_file == nullptr) { in main()
185 std::unique_ptr<spvtools::opt::IRContext> src = load_module(src_file); in main()
/external/angle/include/platform/
Dgen_features.py144 for src_file, (category_prefix, header_file) in feature_files.items():
145 with open(src_file) as fin:
176 input_file_name=src_file,
177 description=description.replace(src_file, header_file),
/external/angle/third_party/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/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/python/cpython2/Tools/ssl/
Dmultissltests.py149 self.src_file = os.path.join(
203 return os.path.isfile(self.src_file)
219 src_dir = os.path.dirname(self.src_file)
227 log.info("Storing {}".format(self.src_file))
228 with open(self.src_file, "wb") as f:
238 tf = tarfile.open(self.src_file)
273 log.debug("Already has src {}".format(self.src_file))
/external/tensorflow/tensorflow/lite/tools/
Dbuild_aar.sh205 for src_file in $(echo ${FLAG_TFLITE_OPS_SRCS} | sed "s/,/ /g")
207 cp ${src_file} ${TMP_DIR}
208 TFLITE_OPS_SRCS="${TFLITE_OPS_SRCS},$(basename ${src_file})"
/external/toolchain-utils/go/chromeos/
Dsetup_chromeos_testing.py121 src_file = os.path.join(chromeos_root, 'src', 'scripts',
124 if os.path.exists(src_file):
125 cmd = 'cp %s %s' % (src_file, dest_file)
136 src_file)
/external/python/cpython3/Tools/ssl/
Dmultissltests.py171 self.src_file = os.path.join(
231 return os.path.isfile(self.src_file)
247 src_dir = os.path.dirname(self.src_file)
267 log.info("Storing {}".format(self.src_file))
268 with open(self.src_file, "wb") as f:
278 tf = tarfile.open(self.src_file)
332 log.debug("Already has src {}".format(self.src_file))
/external/toolchain-utils/llvm_tools/
Dupload_lexan_crashes_to_forcey.py127 sh_file, src_file = repro_files
128 assert not src_file.endswith('.sh'), repro_files
130 src_file, sh_file = repro_files
151 os.path.join(tempdir, 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/rust/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/python/cpython3/Lib/test/
Dtest_shutil.py1162 src_file = os.path.join(src_dir, 'foo')
1165 write_file(src_file, 'foo')
1174 copy_func(src_file, dir2) # should not raise exceptions
1257 src_file = os.path.join(src_dir, 'foo')
1258 write_file(src_file, 'foo')
1259 rv = shutil.copyfile(src_file, dst_file)
1261 self.assertEqual(read_file(src_file), read_file(dst_file))
1267 src_file = os.path.join(src_dir, 'foo')
1268 write_file(src_file, 'foo')
1269 self.assertRaises(SameFileError, shutil.copyfile, src_file, src_file)
[all …]
/external/angle/src/libANGLE/renderer/metal/shaders/
Dgen_mtl_internal_shaders.py117 for src_file in src_files:
118 include_str = '#include "' + src_file + '" \n'
/external/protobuf/objectivec/DevTools/
Dpddm.py665 src_file = SourceFile(f, _ImportResolver)
668 src_file.ProcessContent(strip_expansion=opts.collapse)
674 if src_file.processed_content != src_file.original_content:
678 f.write(src_file.processed_content)
/external/clang/tools/scan-build-py/libear/
D__init__.py171 src_file = 'check.c'
172 with open(os.path.join(work_dir, src_file), 'w') as handle:
175 execute([self.ctx.compiler, src_file] + self.ctx.c_flags,
/external/autotest/client/common_lib/cros/
Davahi_utils.py25 def avahi_config(options, src_file='/etc/avahi/avahi-daemon.conf', host=None): argument
42 existing_config = run('cat %s 2> /dev/null' % src_file).stdout
/external/toolchain-utils/cros_utils/
Dlogger.py90 src_file = '%s.%s' % (os.path.basename(suffixed_basename), extension)
94 os.symlink(src_file, dest_file)
251 src_file = '%s.%s' % (os.path.basename(suffixed_basename), extension)
253 print('MockLogger: Calling os.symlink(%s, %s)' % (src_file, dest_file))
/external/libjpeg-turbo/
Dwrjpgcom.c546 FILE *src_file; in main() local
553 src_file = (comment_file != NULL ? comment_file : stdin); in main()
554 while ((c = getc(src_file)) != EOF) { in main()
/external/bcc/examples/tracing/
Dtask_switch.py8 b = BPF(src_file="task_switch.c")

123