/external/jsoncpp/test/ |
D | runjsontests.py | 98 for input_path in tests + test_jsonchecker: 99 expect_failure = os.path.basename(input_path).startswith('fail') 100 is_json_checker_test = (input_path in test_jsonchecker) or expect_failure 101 print('TESTING:', input_path, end=' ') 105 input_path) 111 failed_tests.append((input_path, 'Parsing should have failed:\n%s' % 112 safeReadFile(input_path))) 118 failed_tests.append((input_path, 'Parsing failed:\n' + process_output)) 122 base_path = os.path.splitext(input_path)[0] 128 failed_tests.append((input_path, 'Parsing failed:\n' + process_output)) [all …]
|
D | pyjsontestrunner.py | 19 input_path = sys.argv[1] variable 20 base_path = os.path.splitext(input_path)[0] 66 input = file(input_path, 'rt').read()
|
/external/crosvm/protos/ |
D | build.rs | 61 let input_path = dir.join(proto.proto_file_name); in main() localVariable 62 protoc(proto.module, input_path, &out)?; in main() 67 let input_path = format!("src/{}.proto", proto.module); in main() localVariable 68 protoc(proto.module, input_path, &out)?; in main() 77 fn protoc<P: AsRef<Path>>(module: &str, input_path: P, mut out: &File) -> Result<()> { in protoc() 78 let input_path = input_path.as_ref(); in protoc() localVariable 79 let input_dir = input_path.parent().unwrap(); in protoc() 88 .input(input_path.as_os_str().to_str().unwrap()) in protoc() 100 let file_stem = input_path.file_stem().unwrap().to_str().unwrap(); in protoc()
|
/external/openscreen/tools/ |
D | convert_to_data_file.py | 39 def Convert(namespace, input_path, output_path): argument 42 if not os.path.exists(input_path): 44 input_path) 48 with open(input_path, 'r') as f: 53 FORMAT_STRING.format(namespace, GetVariableName(input_path), 67 input_path = os.path.abspath(args.input_path) 69 Convert(args.namespace, input_path, output_path)
|
/external/fonttools/Lib/fontTools/cu2qu/ |
D | cli.py | 38 def _font_to_quadratic(input_path, output_path=None, **kwargs): argument 39 ufo = open_ufo(input_path) 40 logger.info('Converting curves for %s', input_path) 48 _copytree(input_path, output_path) 58 def _copytree(input_path, output_path): argument 59 if _samepath(input_path, output_path): 64 shutil.copytree(input_path, output_path) 170 for input_path, output_path in zip(options.infiles, output_paths): 172 _copytree(input_path, output_path) 182 for input_path, output_path in zip(options.infiles, output_paths): [all …]
|
/external/pdfium/testing/tools/ |
D | fixup_pdf_template.py | 130 print >> sys.stderr, 'failed to process %s' % input_path 133 def insert_includes(input_path, output_file, visited_set): argument 134 input_path = os.path.normpath(input_path) 135 if input_path in visited_set: 136 print >> sys.stderr, 'Circular inclusion %s, ignoring' % input_path 138 visited_set.add(input_path) 140 with open(input_path, 'rb') as infile: 145 os.path.join(os.path.dirname(input_path), match.group(1)), 150 print >> sys.stderr, 'failed to include %s' % input_path 152 visited_set.discard(input_path)
|
D | test_runner.py | 134 input_path = os.path.join(source_dir, input_root + '.in') 141 if not os.path.exists(input_path): 150 input_path 221 def HandleResult(self, input_filename, input_path, result): argument 246 self.surprises.append(input_path) 249 self.failures.append(input_path) 381 input_path = os.path.join(walk_from_dir, file_name) 382 if not os.path.isfile(input_path): 386 self.test_cases.append((os.path.basename(input_path), 387 os.path.dirname(input_path))) [all …]
|
/external/tensorflow/tensorflow/python/tools/ |
D | saved_model_cli_test.py | 459 input_path = os.path.join(test.get_temp_dir(), 'input.npz') 460 np.savez(input_path, a=x0) 461 input_str = 'x=' + input_path + '[a];y=' + input_path 504 input_path = os.path.join(test.get_temp_dir(), 'input.npz') 505 np.savez(input_path, a=x0) 507 input_str = 'x0=' + input_path + '[a]' 516 input_path = os.path.join(test.get_temp_dir(), 'input.npz') 517 np.savez(input_path, a=x0) 519 input_str = 'x0=' + input_path + '[a]' 528 input_path = os.path.join(test.get_temp_dir(), 'input.npz') [all …]
|
/external/deqp-deps/amber/tests/ |
D | run_tests.py | 194 def __init__(self, input_path, parse_only, use_dawn, use_opencl, use_dxc, argument 196 self.input_path = input_path 213 base = os.path.basename(self.input_path) 247 return self.input_path 377 input_path = os.path.join(self.options.test_dir, filename) 378 if not os.path.isfile(input_path): 382 self.test_cases.append(TestCase(input_path, self.options.parse_only, 391 input_path = os.path.join(file_dir, input_filename) 392 if os.path.isfile(input_path): 394 TestCase(input_path, self.options.parse_only,
|
/external/tensorflow/tensorflow/tools/gcs_test/python/ |
D | gcs_smoke.py | 201 input_path = FLAGS.gcs_bucket_url + "/" 202 input_path += "".join(random.choice("0123456789ABCDEF") for i in range(8)) 203 input_path += ".tfrecord" 204 print("Using input path: %s" % input_path) 209 with tf.io.TFRecordWriter(input_path) as hf: 213 print("Data written to: %s" % input_path) 217 record_iter = tf.compat.v1.python_io.tf_record_iterator(input_path) 232 filename_queue = tf.compat.v1.train.string_input_producer([input_path],
|
/external/antlr/runtime/Ruby/test/functional/main/ |
D | main-scripts.rb | 38 input_path = local_path( 'input.txt' ) 39 open( input_path, 'w' ) { |f| f.write( "yada yada" ) } 51 input = File.open( input_path ) 57 File.delete( input_path )
|
/external/ltp/android/tools/ |
D | make_install_parser.py | 41 def ParseFile(self, input_path): argument 54 with open(input_path, 'r') as f: 88 result = make_install_parser.ParseFile(args.input_path)
|
D | make_parser.py | 145 def ParseFile(self, input_path): argument 168 with open(input_path, 'r') as f: 203 result = make_parser.ParseFile(args.input_path)
|
/external/llvm/utils/lit/tests/ |
D | unittest-adaptor.py | 15 input_path = sys.argv[1] variable 16 unittest_suite = lit.discovery.load_test_suite([input_path])
|
/external/libchrome/libchrome_tools/ |
D | include_generator.py | 64 def _generate(input_path, output_path): argument 76 with open(input_path, 'r') as f:
|
/external/fonttools/Tests/cu2qu/ |
D | cli_test.py | 45 input_path = TEST_UFOS[0] 46 output_path = tmpdir / input_path.basename 47 self.run_main('-o', output_path, input_path)
|
/external/libwebm/m2ts/ |
D | vpxpes2ts_main.cc | 28 const std::string input_path = argv[1]; in main() local 31 libwebm::VpxPes2Ts converter(input_path, output_path); in main()
|
D | webm2pes_main.cc | 28 const std::string input_path = argv[1]; in main() local 31 libwebm::Webm2Pes converter(input_path, output_path); in main()
|
/external/tensorflow/tensorflow/security/fuzzing/ |
D | cleanpath_fuzz.cc | 29 std::string input_path(reinterpret_cast<const char *>(data), size); in LLVMFuzzerTestOneInput() 30 std::string clean_path = tensorflow::io::CleanPath(input_path); in LLVMFuzzerTestOneInput()
|
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | quantization_wrapper.cc | 23 bool CreateModelForCalibration(const std::string& input_path, in CreateModelForCalibration() argument 26 if (LoadModel(input_path, &model) != kTfLiteOk) { in CreateModelForCalibration()
|
/external/llvm/utils/llvm-build/llvmbuild/ |
D | configutil.py | 8 def configure_file(input_path, output_path, substitutions): argument 27 f = open(input_path, "rb")
|
/external/perfetto/tools/ftrace_proto_gen/ |
D | main.cc | 178 std::string input_path = input_dir + event.group() + "/" + in main() local 182 if (!perfetto::base::ReadFile(input_path, &contents)) { in main() 188 fprintf(stderr, "Could not parse file %s.\n", input_path.c_str()); in main() 195 input_path.c_str()); in main()
|
/external/crosvm/devices/src/ |
D | serial_device.rs | 135 let input: Option<Box<dyn io::Read + Send>> = if let Some(input_path) = &self.input { in create_serial_device() 136 let input_path = input_path.as_path(); in create_serial_device() localVariable 138 let input_file = open_file(input_path, OpenOptions::new().read(true)) in create_serial_device()
|
/external/tensorflow/tensorflow/tools/compatibility/ |
D | ast_edits.py | 1057 for input_path, output_path in files_to_process: 1062 if os.path.islink(input_path): 1063 link_target = os.readlink(input_path) 1071 input_path, link_target) 1076 _, l_report, l_errors = self.process_file(input_path, output_path) 1077 tree_errors[input_path] = l_errors 1080 for input_path, output_path in files_to_copy: 1084 shutil.copy(input_path, output_path)
|
/external/v4l2_codec2/tests/c2_e2e_test/jni/ |
D | mediacodec_encoder.cpp | 88 std::unique_ptr<MediaCodecEncoder> MediaCodecEncoder::Create(std::string input_path, in Create() argument 98 std::unique_ptr<CachedInputFileStream> input_file(new CachedInputFileStream(input_path)); in Create() 100 ALOGE("Failed to open file: %s", input_path.c_str()); in Create()
|