/external/tensorflow/tensorflow/python/debug/cli/ |
D | command_parser_test.py | 107 args, output_path = command_parser.extract_output_file_path(["pt", "a:0"]) 109 self.assertIsNone(output_path) 112 args, output_path = command_parser.extract_output_file_path( 115 self.assertEqual(output_path, "/tmp/foo.txt") 118 args, output_path = command_parser.extract_output_file_path( 121 self.assertEqual(output_path, "/tmp/foo.txt") 129 args, output_path = command_parser.extract_output_file_path( 132 self.assertEqual(output_path, "/tmp/foo.txt") 135 args, output_path = command_parser.extract_output_file_path( 138 self.assertEqual(output_path, "/tmp/foo.txt") [all …]
|
/external/pdfium/testing/tools/ |
D | safetynet_image.py | 35 def __init__(self, build_dir, output_path, two_labels, num_workers, argument 50 self.output_path = output_path 72 html_path = os.path.join(self.output_path, 'compare.html') 74 self.diff_path = os.path.join(self.output_path, 'diff') 78 self.image_locations = ImageLocations(self.output_path, self.diff_path, 177 return os.path.relpath(absolute_path, start=self.output_path) 246 def __init__(self, output_path, diff_path, two_labels): argument 255 self.output_path = output_path 283 image_path_matcher = os.path.join(self.output_path, label, '*.*.png')
|
D | fixup_pdf_template.py | 118 def expand_file(infile, output_path): argument 121 with open(output_path, 'wb') as outfile: 168 output_path = os.path.join(output_dir, testcase_root + '.pdf') 169 expand_file(intermediate_stream, output_path)
|
D | safetynet_measure.py | 80 output_path = self.args.output_path or '/dev/null' 85 '--callgrind-out-file=%s' % output_path
|
/external/llvm/utils/llvm-build/llvmbuild/ |
D | main.py | 203 def write_components(self, output_path): argument 257 directory_path = os.path.join(output_path, subpath[1:]) 319 def write_library_table(self, output_path, enabled_optional_components): argument 385 make_install_dir(os.path.dirname(output_path)) 386 f = open(output_path+'.new', 'w') 428 if not os.path.isfile(output_path): 429 os.rename(output_path+'.new', output_path) 430 elif filecmp.cmp(output_path, output_path+'.new'): 431 os.remove(output_path+'.new') 433 os.remove(output_path) [all …]
|
D | configutil.py | 8 def configure_file(input_path, output_path, substitutions): argument 39 output_parent_path = os.path.dirname(os.path.abspath(output_path)) 44 if os.path.exists(output_path): 47 f = open(output_path, "rb") 60 f = open(output_path, "wb")
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/llvm-build/llvmbuild/ |
D | main.py | 191 def write_components(self, output_path): argument 245 directory_path = os.path.join(output_path, subpath[1:]) 307 def write_library_table(self, output_path, enabled_optional_components): argument 373 make_install_dir(os.path.dirname(output_path)) 374 f = open(output_path+'.new', 'w') 416 if not os.path.isfile(output_path): 417 os.rename(output_path+'.new', output_path) 418 elif filecmp.cmp(output_path, output_path+'.new'): 419 os.remove(output_path+'.new') 421 os.remove(output_path) [all …]
|
/external/harfbuzz_ng/src/ |
D | test-ot-color.cc | 64 char output_path[255]; in svg_dump() local 65 sprintf (output_path, "out/svg-%u-%u.svg%s", in svg_dump() 71 FILE *f = fopen (output_path, "wb"); in svg_dump() 118 char output_path[255]; in png_dump() local 119 sprintf (output_path, "out/png-%u-%u-%u.png", glyph_id, strike, face_index); in png_dump() 121 FILE *f = fopen (output_path, "wb"); in png_dump() 188 char output_path[255]; in layered_glyph_dump() local 189 sprintf (output_path, "out/colr-%u-%u-%u.svg", gid, palette, face_index); in layered_glyph_dump() 191 cairo_surface_t *surface = cairo_svg_surface_create (output_path, extents.width, extents.height); in layered_glyph_dump() 255 char output_path[255]; in dump_glyphs() local [all …]
|
/external/oss-fuzz/projects/pffft/ |
D | generate_seed_corpus.py | 31 output_path = sys.argv[1] 32 if not os.path.exists(output_path): 46 z.tofile(os.path.join(output_path, 'zeros_%d' % n)) 49 m.tofile(os.path.join(output_path, 'max_%d' % n)) 53 rnd_s16.tofile(os.path.join(output_path, 'rnd_s16_%d' % n))
|
/external/icu/icu4c/source/python/icutools/databuilder/renderers/ |
D | common_exec.py | 41 output_path = "{DIRNAME}/{FILENAME}".format( 46 print("Printing to file: %s" % output_path) 47 with open(output_path, "w") as f: 55 output_path = "{DIRNAME}/{FILENAME}".format( 60 print("Copying file to: %s" % output_path) 61 shutil.copyfile(input_path, output_path)
|
/external/brotli/c/tools/ |
D | brotli.c | 97 const char* output_path; member 320 params->output_path = argv[i]; in ParseParams() 477 params->output_path = value; in ParseParams() 511 if (params->output_path) return COMMAND_INVALID; in ParseParams() 588 static BROTLI_BOOL OpenOutputFile(const char* output_path, FILE** f, in OpenOutputFile() argument 592 if (!output_path) { in OpenOutputFile() 596 fd = open(output_path, O_CREAT | (force ? 0 : O_EXCL) | O_WRONLY | O_TRUNC, in OpenOutputFile() 600 PrintablePath(output_path), strerror(errno)); in OpenOutputFile() 606 PrintablePath(output_path), strerror(errno)); in OpenOutputFile() 632 static void CopyStat(const char* input_path, const char* output_path) { in CopyStat() argument [all …]
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | gen_vk_internal_shaders.py | 277 def __init__(self, shader_file, preprocessor_args, output_path): argument 282 self.output_path = output_path 296 with open(self.output_path, 'ab') as incfile: 305 def __init__(self, shader_file, shader_basename, variation_string, output_path, argument 312 self.output_path = output_path 324 self.output_path)) 328 description = self.output_path + ': ' + self.shader_basename + self.variation_string 367 def add_job(self, shader_file, shader_basename, variation_string, output_path, compile_args, argument 380 output_path, compile_args, preprocessor_args)) 436 output_path = get_output_path(output_name) [all …]
|
/external/avb/test/ |
D | avbtool_unittest.cc | 731 base::FilePath output_path = testdir_.Append("max_size.txt"); in TEST_F() local 738 output_path.value().c_str()); in TEST_F() 740 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F() 1502 base::FilePath output_path = testdir_.Append("max_size.txt"); in TEST_F() local 1509 output_path.value().c_str()); in TEST_F() 1511 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F() 1538 base::FilePath output_path = testdir_.Append("max_size.txt"); in TEST_F() local 1544 output_path.value().c_str()); in TEST_F() 1546 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F() 1572 base::FilePath output_path = testdir_.Append("max_size.txt"); in TEST_F() local [all …]
|
/external/doclava/src/com/google/doclava/ |
D | AtLinksNavTree.java | 62 String output_path; in writeAtLinksNavTree() local 64 output_path = dir + Doclava.libraryRoot + "at_links_navtree.json"; in writeAtLinksNavTree() 66 output_path = "at_links_navtree.json"; in writeAtLinksNavTree() 69 ClearPage.write(data, "at_links_navtree.cs", output_path); in writeAtLinksNavTree()
|
/external/tensorflow/tensorflow/tools/test/ |
D | run_and_gather_logs.py | 93 output_path = os.path.join(tmpdir, FLAGS.test_log_output_dir, file_name) 95 output_path = os.path.join( 98 gfile.GFile(six.ensure_str(output_path) + ".json", 100 tf_logging.info("Test results written to: %s" % output_path)
|
/external/libchrome/libchrome_tools/ |
D | include_generator.py | 64 def _generate(input_path, output_path): argument 79 with open(output_path, 'w') as f:
|
/external/fonttools/Snippets/ |
D | edit_raw_table_data.py | 5 output_path = "myfont_patched.ttf" variable 31 font.save(output_path)
|
/external/flatbuffers/src/ |
D | flatc.cpp | 166 std::string output_path; in Compile() local 188 output_path = flatbuffers::ConCatPathFileName( in Compile() 439 flatbuffers::EnsureDirExists(output_path); in Compile() 442 !params_.generators[i].generate(*parser.get(), output_path, in Compile() 449 *parser.get(), output_path, filename); in Compile() 456 if (!params_.generators[i].generateGRPC(*parser.get(), output_path, in Compile() 476 if (opts.proto_mode) GenerateFBS(*parser.get(), output_path, filebase); in Compile()
|
/external/fonttools/MetaTools/ |
D | buildUCD.py | 158 def build_ranges(filename, local_ucd=None, output_path=None, argument 174 if not output_path: 175 output_path = UNIDATA_PATH + modname 194 with open(output_path, "w", encoding="utf-8") as f: 233 log.info("saved new file: '%s'", os.path.normpath(output_path))
|
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | quantization_wrapper.cc | 24 const std::string& output_path) { in CreateModelForCalibration() argument 33 return WriteFile(output_path, builder.GetBufferPointer(), builder.GetSize()); in CreateModelForCalibration()
|
/external/swiftshader/third_party/llvm-7.0/llvm/cmake/platforms/ |
D | WinMsvc.cmake | 104 function(generate_winsdk_vfs_overlay winsdk_include_dir output_path) 113 file(WRITE "${output_path}" "version: 0\n") 114 file(APPEND "${output_path}" "case-sensitive: false\n") 115 file(APPEND "${output_path}" "roots:\n") 123 file(APPEND "${output_path}" " - name: \"${dir}\"\n") 124 file(APPEND "${output_path}" " type: directory\n") 125 file(APPEND "${output_path}" " contents:\n") 128 file(APPEND "${output_path}" " - name: \"${header}\"\n") 129 file(APPEND "${output_path}" " type: file\n") 130 file(APPEND "${output_path}" " external-contents: \"${dir}/${header}\"\n")
|
/external/harfbuzz_ng/test/subset/ |
D | generate-expected-outputs.py | 20 def generate_expected_output(input_file, unicodes, profile_flags, output_path): argument 28 "--output-file=%s" % output_path])
|
/external/tensorflow/tensorflow/tools/api/tests/ |
D | convert_from_multiline.cc | 42 string output_path = io::JoinPath(output_dir, io::Basename(path)); in ConvertFilesFromMultiline() local 45 tensorflow::WriteStringToFile(env, output_path, contents)); in ConvertFilesFromMultiline()
|
/external/perfetto/tools/ |
D | gen_merged_protos | 119 def merge_protos(root_paths, output_path): argument 126 out_path = os.path.join(root_dir, output_path) 138 print('Updating {}'.format(output_path))
|
/external/autotest/client/site_tests/graphics_dEQP/scripts/ |
D | process_logs.py | 248 output_path = os.path.join(_EXPECTATIONS_DIR, gpu) 249 if not os.access(output_path, os.R_OK): 250 os.makedirs(output_path) 251 expectation_path = os.path.join(output_path, filter) 253 expectation_path = os.path.join(output_path, filter + '.hasty')
|