/external/pdfium/core/fpdfdoc/ |
D | cpdf_filespec.cpp | 68 WideString CPDF_FileSpec::DecodeFileName(const WideString& filepath) { in DecodeFileName() argument 69 if (filepath.GetLength() <= 1) in DecodeFileName() 73 if (filepath.First(sizeof("/Mac") - 1) == WideStringView(L"/Mac")) in DecodeFileName() 74 return ChangeSlashToPlatform(filepath.c_str() + 1); in DecodeFileName() 75 return ChangeSlashToPlatform(filepath.c_str()); in DecodeFileName() 78 if (filepath[0] != L'/') in DecodeFileName() 79 return ChangeSlashToPlatform(filepath.c_str()); in DecodeFileName() 80 if (filepath[1] == L'/') in DecodeFileName() 81 return ChangeSlashToPlatform(filepath.c_str() + 1); in DecodeFileName() 82 if (filepath[2] == L'/') { in DecodeFileName() [all …]
|
/external/flatbuffers/src/ |
D | util.cpp | 126 std::string StripExtension(const std::string &filepath) { in StripExtension() argument 127 size_t i = filepath.find_last_of("."); in StripExtension() 128 return i != std::string::npos ? filepath.substr(0, i) : filepath; in StripExtension() 131 std::string GetExtension(const std::string &filepath) { in GetExtension() argument 132 size_t i = filepath.find_last_of("."); in GetExtension() 133 return i != std::string::npos ? filepath.substr(i + 1) : ""; in GetExtension() 136 std::string StripPath(const std::string &filepath) { in StripPath() argument 137 size_t i = filepath.find_last_of(PathSeparatorSet); in StripPath() 138 return i != std::string::npos ? filepath.substr(i + 1) : filepath; in StripPath() 141 std::string StripFileName(const std::string &filepath) { in StripFileName() argument [all …]
|
/external/tensorflow/tensorflow/python/keras/saving/ |
D | save.py | 52 filepath, argument 118 if sys.version_info >= (3, 4) and isinstance(filepath, pathlib.Path): 119 filepath = str(filepath) 122 (h5py is not None and isinstance(filepath, h5py.File)) or 123 os.path.splitext(filepath)[1] in _HDF5_EXTENSIONS): 135 model, filepath, overwrite, include_optimizer) 137 saved_model_save.save(model, filepath, overwrite, include_optimizer, 142 def load_model(filepath, custom_objects=None, compile=True): # pylint: disable=redefined-builtin argument 183 isinstance(filepath, h5py.File) or h5py.is_hdf5(filepath))): 184 return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile) [all …]
|
/external/tensorflow/tensorflow/c/experimental/filesystem/ |
D | modular_filesystem_test.cc | 192 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local 194 Status status = env_->NewWritableFile(filepath, &new_file); in TEST_P() 199 const std::string filepath = GetURIForPath("dir_not_found/a_file"); in TEST_P() local 201 Status status = env_->NewWritableFile(filepath, &new_file); in TEST_P() 206 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local 207 Status status = env_->CreateDir(filepath); in TEST_P() 211 status = env_->NewWritableFile(filepath, &new_file); in TEST_P() 216 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local 218 Status status = env_->NewWritableFile(filepath, &file); in TEST_P() 228 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local [all …]
|
/external/skqp/tools/copyright/ |
D | main.py | 36 for filepath in filepaths: 37 parser = fileparser.CreateParser(filepath) 40 filepath) 42 old_file_contents = ReadFileIntoString(filepath) 46 filepath) 49 ReportWarning('cannot find copyright block in file %s' % filepath) 54 holder, filepath)) 62 WriteStringToFile(new_file_contents, filepath) 85 def ReadFileIntoString(filepath): argument 88 with open(filepath, 'r') as file_handle: [all …]
|
/external/skia/tools/copyright/ |
D | main.py | 36 for filepath in filepaths: 37 parser = fileparser.CreateParser(filepath) 40 filepath) 42 old_file_contents = ReadFileIntoString(filepath) 46 filepath) 49 ReportWarning('cannot find copyright block in file %s' % filepath) 54 holder, filepath)) 62 WriteStringToFile(new_file_contents, filepath) 85 def ReadFileIntoString(filepath): argument 88 with open(filepath, 'r') as file_handle: [all …]
|
/external/webrtc/ |
D | WATCHLISTS | 15 'filepath': '^WATCHLISTS$', 19 'filepath': '^webrtc/.*', 23 'filepath': '^[^/]*$|^webrtc/[^/]*$|^webrtc/build/.*', 26 'filepath': '^webrtc/[^/]*\.h$|'\ 30 'filepath': '\.gyp$|\.gypi$|Android\.mk$', 33 'filepath': '\.java$|\.xml$', 36 'filepath': 'webrtc/audio/.*', 39 'filepath': 'webrtc/call/.*', 42 'filepath': 'webrtc/video/.*', 45 'filepath': 'webrtc/voice_engine/.*', [all …]
|
/external/libcap-ng/libcap-ng-0.7/ |
D | py-compile | 114 filetrans="filepath = path" 116 filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)" 128 if not os.path.exists(filepath) or not (len(filepath) >= 3 129 and filepath[-3:] == '.py'): 133 py_compile.compile(filepath, filepath + 'c', path) 145 if not os.path.exists(filepath) or not (len(filepath) >= 3 146 and filepath[-3:] == '.py'): 150 py_compile.compile(filepath, filepath + 'o', path)
|
/external/yapf/yapftests/ |
D | yapf_test.py | 94 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath: 95 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 99 filepath, style_config='chromium') 119 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath: 120 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 142 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath: 143 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 170 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath: 171 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 186 with utils.TempFileContents(self.test_tmpdir, code) as filepath: [all …]
|
D | style_test.py | 124 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath: 125 cfg = style.CreateStyleFromConfig(filepath) 135 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath: 136 cfg = style.CreateStyleFromConfig(filepath) 146 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath: 147 cfg = style.CreateStyleFromConfig(filepath) 157 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath: 158 cfg = style.CreateStyleFromConfig(filepath) 168 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath: 169 cfg = style.CreateStyleFromConfig(filepath) [all …]
|
/external/boringssl/src/util/ |
D | diff_asm.go | 29 …opensslDir = flag.String("openssl", filepath.Join("..", "openssl"), "The path to the OpenSSL che… 33 path = strings.Replace(path, filepath.FromSlash("/fipsmodule/"), string(filepath.Separator), 1) 34 switch filepath.ToSlash(path) { 38 return filepath.FromSlash("crypto/ec/asm/ecp_nistz256-x86_64.pl") 67 err := filepath.Walk(*boringsslDir, func(path string, info os.FileInfo, err error) error { 72 path, err = filepath.Rel(*boringsslDir, path) 77 dir := filepath.Base(filepath.Dir(path)) 78 …if !info.IsDir() && (dir == "asm" || dir == "perlasm") && strings.HasSuffix(filepath.Base(path), "… 108 …if err := diff(filepath.Join(*opensslDir, opensslFile), filepath.Join(*boringsslDir, file)); err !…
|
/external/golang-protobuf/protoc-gen-go/ |
D | golden_test.go | 43 err = filepath.Walk("testdata", func(path string, info os.FileInfo, err error) error { 44 if filepath.Base(path) == "import_public" && !supportTypeAliases { 46 return filepath.SkipDir 51 dir := filepath.Dir(path) 67 filepath.Walk(workdir, func(genPath string, info os.FileInfo, _ error) error { 74 relPath, err := filepath.Rel(workdir, genPath) 79 if filepath.SplitList(relPath)[0] == ".." { 82 goldenPath := filepath.Join("testdata", relPath) 232 if err := os.MkdirAll(filepath.Join(workdir, dir), 0777); err != nil { 237 …if err := ioutil.WriteFile(filepath.Join(workdir, "alpha", "a.proto"), []byte(aProto), 0666); err … [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | bwe_test_baselinefile.cc | 44 BaseLineFileVerify(const std::string& filepath, bool allow_missing_file) in BaseLineFileVerify() argument 48 reader.reset(ResourceFileReader::Create(filepath, "bin")); in BaseLineFileVerify() 51 filepath.c_str()); in BaseLineFileVerify() 61 filepath.c_str()); in BaseLineFileVerify() 102 BaseLineFileUpdate(const std::string& filepath, in BaseLineFileUpdate() argument 106 filepath_(filepath) { in BaseLineFileUpdate() 154 std::string filepath = filename; in Create() local 155 std::replace(filepath.begin(), filepath.end(), '/', '_'); in Create() 156 filepath = std::string(kResourceSubDir) + "/" + filepath; in Create() 159 result.reset(new BaseLineFileVerify(filepath, !write_output_file)); in Create() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | dump_mlir_util_test.cc | 35 std::string filepath = DumpMlirOpToFile("module", module_ref.get()); in TEST() local 36 EXPECT_EQ(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)"); in TEST() 45 std::string filepath = DumpMlirOpToFile("module", module_ref.get()); in TEST() local 46 EXPECT_EQ(filepath, "LOG(INFO)"); in TEST() 61 std::string filepath = DumpMlirOpToFile("module", module_ref.get()); in TEST() local 62 ASSERT_NE(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)"); in TEST() 63 ASSERT_NE(filepath, "LOG(INFO)"); in TEST() 64 ASSERT_NE(filepath, "(unavailable)"); in TEST() 68 TF_ASSERT_OK(ReadFileToString(env, filepath, &file_txt_module)); in TEST()
|
/external/ltp/testcases/kernel/controllers/libcontrollers/ |
D | libcontrollers.c | 120 int read_file(char *filepath, int action, unsigned int *value) in read_file() argument 127 tmp = read_shares_file(filepath); in read_file() 134 fp = fopen(filepath, "r"); in read_file() 136 error_function("Could not open file", filepath); in read_file() 143 error_function("Could not close file", filepath); in read_file() 150 filepath); in read_file() 172 int read_shares_file(char *filepath) in read_shares_file() argument 176 fp = fopen(filepath, "r"); in read_shares_file() 178 error_function("Could not open file", filepath); in read_shares_file() 183 error_function("Could not close file", filepath); in read_shares_file()
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | tempfile_ext_unittest.py | 62 with tempfile_ext.TemporaryFileName('foo') as filepath: 63 self.assertTrue(os.path.basename(filepath), 'foo') 64 self.assertFalse(os.path.exists(filepath)) 66 with open(filepath, 'w') as f: 68 self.assertTrue(os.path.exists(filepath)) 70 shutil.copyfile(filepath, filepath + '.bak') 71 self.assertTrue(filecmp.cmp(filepath, filepath + '.bak')) 73 self.assertFalse(os.path.exists(filepath)) 74 self.assertFalse(os.path.exists(os.path.dirname(filepath)))
|
/external/tensorflow/tensorflow/core/util/ |
D | dump_graph.cc | 62 Status WriteToFile(const string& filepath, in WriteToFile() argument 68 return WriteStringToFile(Env::Default(), filepath, s); in WriteToFile() 71 Status WriteToFile(const string& filepath, in WriteToFile() argument 73 return WriteTextProto(Env::Default(), filepath, proto); in WriteToFile() 107 string filepath = "NULL"; in WriteTextProtoToUniqueFile() local 110 filepath = "LOG(INFO)"; in WriteTextProtoToUniqueFile() 118 filepath = absl::StrCat(dir, "/", MakeUniqueFilename(name)); in WriteTextProtoToUniqueFile() 119 status = WriteToFile(filepath, proto); in WriteTextProtoToUniqueFile() 122 << " to file: " << filepath << " : " << status; in WriteTextProtoToUniqueFile() 126 LOG(INFO) << "Dumped " << proto_type << " to " << filepath; in WriteTextProtoToUniqueFile() [all …]
|
/external/v8/ |
D | WATCHLISTS | 31 # IMPORTANT: The regular expression filepath is tested against each path using 37 'filepath': 'src/snapshot/', 40 'filepath': 'src/debug/' \ 49 'filepath': 'src/interpreter/' \ 55 'filepath': 'src/flags/flag-definitions.h', 58 'filepath': 'src/heap/', 61 'filepath': '/arm/', 64 'filepath': 'src/codegen/code-stub-assembler\.(cc|h)$' \ 68 'filepath': '/ia32/', 71 'filepath': '.', [all …]
|
/external/tensorflow/tensorflow/python/keras/ |
D | callbacks_test.py | 400 filepath = os.path.join(temp_dir, 'checkpoint.h5') 423 filepath, 436 assert os.path.exists(filepath) 437 os.remove(filepath) 443 filepath, 456 assert os.path.exists(filepath) 457 os.remove(filepath) 464 filepath, 477 assert os.path.exists(filepath) 478 os.remove(filepath) [all …]
|
/external/googletest/googletest/test/ |
D | gtest_premature_exit_test.cc | 49 static bool FileExists(const char* filepath) { in FileExists() argument 51 return Stat(filepath, &stat) == 0; in FileExists() 115 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 116 if (filepath != nullptr && *filepath != '\0') { in main() 117 if (PrematureExitTest::FileExists(filepath)) { in main() 120 filepath); in main()
|
/external/autotest/client/bin/ |
D | display_chart.py | 41 def display(filepath): argument 43 assert os.path.isfile(filepath), 'filepath %r not found.' % filepath 44 filepath = os.path.abspath(filepath) 57 logging.info('Display chart file of path %r.', filepath) 59 tab.Navigate('file://' + filepath) 77 display(args.filepath)
|
/external/junit-params/src/main/java/junitparams/custom/ |
D | FileParametersProvider.java | 43 String filepath = fileParameters.value(); in createProperReader() local 46 if (filepath.indexOf(':') < 0) { in createProperReader() 47 return new FileReader(filepath); in createProperReader() 50 String protocol = filepath.substring(0, filepath.indexOf(':')); in createProperReader() 51 String filename = filepath.substring(filepath.indexOf(':') + 1); in createProperReader()
|
/external/toolchain-utils/compiler_wrapper/ |
D | clang_flags.go | 20 clangDir = filepath.Dir(builder.absWrapperPath) 22 clangDir = filepath.Join(builder.rootPath, "usr/bin/") 23 if !filepath.IsAbs(builder.path) { 28 clangDir, err = filepath.Rel(env.getwd(), clangDir) 35 clangDir = filepath.Dir(clangDir) 122 resourceDir, err := getClangResourceDir(env, filepath.Join(clangDir, clangBasename)) 137 builder.path = filepath.Join(clangDir, clangBasename) 142 relLinkerPath, err := filepath.Rel(env.getwd(), linkerPath) 195 return filepath.Dir(linkerPath) 206 return filepath.Join(rootPath, "bin")
|
/external/skqp/tools/viewer/ |
D | BisectSlide.cpp | 21 sk_sp<BisectSlide> BisectSlide::Create(const char filepath[]) { in Create() argument 22 SkFILEStream stream(filepath); in Create() 24 SkDebugf("BISECT: invalid input file at \"%s\"\n", filepath); in Create() 28 sk_sp<BisectSlide> bisect(new BisectSlide(filepath)); in Create() 33 SkDebugf("BISECT: XML parsing failed: \"%s\"\n", filepath); in Create() 38 SkDebugf("BISECT: couldn't load svg at \"%s\"\n", filepath); in Create() 49 SkDebugf("BISECT: couldn't load skp at \"%s\"\n", filepath); in Create() 58 BisectSlide::BisectSlide(const char filepath[]) in BisectSlide() argument 60 , fFilePath(filepath) { in BisectSlide()
|
/external/skia/tools/viewer/ |
D | BisectSlide.cpp | 21 sk_sp<BisectSlide> BisectSlide::Create(const char filepath[]) { in Create() argument 22 SkFILEStream stream(filepath); in Create() 24 SkDebugf("BISECT: invalid input file at \"%s\"\n", filepath); in Create() 28 sk_sp<BisectSlide> bisect(new BisectSlide(filepath)); in Create() 33 SkDebugf("BISECT: XML parsing failed: \"%s\"\n", filepath); in Create() 38 SkDebugf("BISECT: couldn't load svg at \"%s\"\n", filepath); in Create() 49 SkDebugf("BISECT: couldn't load skp at \"%s\"\n", filepath); in Create() 58 BisectSlide::BisectSlide(const char filepath[]) in BisectSlide() argument 60 , fFilePath(filepath) { in BisectSlide()
|