/external/pdfium/core/fpdfdoc/ |
D | cpdf_filespec.cpp | 62 WideString CPDF_FileSpec::DecodeFileName(const WideString& filepath) { in DecodeFileName() argument 63 if (filepath.GetLength() <= 1) in DecodeFileName() 67 if (filepath.Left(sizeof("/Mac") - 1) == WideStringView(L"/Mac")) in DecodeFileName() 68 return ChangeSlashToPlatform(filepath.c_str() + 1); in DecodeFileName() 69 return ChangeSlashToPlatform(filepath.c_str()); in DecodeFileName() 72 if (filepath[0] != L'/') in DecodeFileName() 73 return ChangeSlashToPlatform(filepath.c_str()); in DecodeFileName() 74 if (filepath[1] == L'/') in DecodeFileName() 75 return ChangeSlashToPlatform(filepath.c_str() + 1); in DecodeFileName() 76 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/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/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/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/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/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/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/syzkaller/pkg/build/ |
D | akaros.go | 21 configFile := filepath.Join(kernelDir, ".config") 28 sshkey := filepath.Join(kernelDir, "key") 54 targetKey := filepath.Join(kernelDir, "kern", "kfs", ".ssh", "authorized_keys") 63 initFile := filepath.Join(kernelDir, "kern", "kfs", "init.sh") 85 if err := osutil.WriteFile(filepath.Join(outputDir, "image"), nil); err != nil { 94 fullSrc := filepath.Join(kernelDir, filepath.FromSlash(src)) 95 fullDst := filepath.Join(outputDir, filepath.FromSlash(dst)) 120 cmd.Dir = filepath.Join(kernelDir, filepath.FromSlash(runDir)) 126 "AKAROS_XCC_ROOT=" + filepath.Join(kernelDir, "toolchain", "x86_64-ucb-akaros-gcc"), 127 "X86_64_INSTDIR=" + filepath.Join(kernelDir, "toolchain", "x86_64-ucb-akaros-gcc"), [all …]
|
D | linux.go | 39 configFile := filepath.Join(kernelDir, ".config") 58 outputConfig := filepath.Join(outputDir, "kernel.config") 72 vmlinux := filepath.Join(kernelDir, "vmlinux") 73 outputVmlinux := filepath.Join(outputDir, "obj", "vmlinux") 86 scriptFile := filepath.Join(tempDir, "create.sh") 90 bzImage := filepath.Join(kernelDir, filepath.FromSlash("arch/x86/boot/bzImage")) 103 imageFile := filepath.Join(outputDir, "image") 104 if err := osutil.CopyFile(filepath.Join(tempDir, "disk.raw"), imageFile); err != nil { 107 keyFile := filepath.Join(outputDir, "key") 108 if err := osutil.CopyFile(filepath.Join(tempDir, "key"), keyFile); err != nil {
|
/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/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/syzkaller/pkg/osutil/ |
D | osutil.go | 125 if !IsExist(filepath.Join(dir, filepath.FromSlash(f))) { 146 src := filepath.Join(srcDir, filepath.FromSlash(f)) 150 dst := filepath.Join(tmpDir, filepath.FromSlash(f)) 151 if err := MkdirAll(filepath.Dir(dst)); err != nil { 175 src := filepath.Join(srcDir, filepath.FromSlash(f)) 179 dst := filepath.Join(dstDir, filepath.FromSlash(f)) 180 if err := MkdirAll(filepath.Dir(dst)); err != nil { 240 if path == "" || filepath.IsAbs(path) { 243 return filepath.Join(wd, path)
|
/external/syzkaller/syz-ci/ |
D | syzupdater.go | 52 if !filepath.IsAbs(bin) { 53 bin = filepath.Join(wd, bin) 55 bin = filepath.Clean(bin) 56 exe := filepath.Base(bin) 57 if wd != filepath.Dir(bin) { 61 gopath := filepath.Join(wd, "gopath") 64 os.Setenv("PATH", filepath.Join(cfg.Goroot, "bin")+ 65 string(filepath.ListSeparator)+os.Getenv("PATH")) 66 syzkallerDir := filepath.Join(gopath, "src", "github.com", "google", "syzkaller") 99 latestDir: filepath.Join("syzkaller", "latest"), [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/tensorflow/tensorflow/core/util/ |
D | dump_graph.cc | 61 Status WriteToFile(const string& filepath, in WriteToFile() argument 67 return WriteStringToFile(Env::Default(), filepath, s); in WriteToFile() 70 Status WriteToFile(const string& filepath, in WriteToFile() argument 72 return WriteTextProto(Env::Default(), filepath, proto); in WriteToFile() 99 string filepath = absl::StrCat(dir, "/", MakeUniqueFilename(name)); in WriteTextProtoToUniqueFile() local 100 status = WriteToFile(filepath, proto); in WriteTextProtoToUniqueFile() 102 LOG(WARNING) << "Failed to dump " << proto_type << " to file: " << filepath in WriteTextProtoToUniqueFile() 106 LOG(INFO) << "Dumped " << proto_type << " to " << filepath; in WriteTextProtoToUniqueFile() 107 return filepath; in WriteTextProtoToUniqueFile()
|
/external/syzkaller/sys/syz-extract/ |
D | freebsd.go | 28 if err := os.Symlink(filepath.Join(arch.sourceDir, "sys", "amd64", "include"), 29 filepath.Join(arch.buildDir, "machine")); err != nil { 32 if err := os.Symlink(filepath.Join(arch.sourceDir, "sys", "x86", "include"), 33 filepath.Join(arch.buildDir, "x86")); err != nil { 45 "-I", filepath.Join(arch.sourceDir, "sys"), 46 "-I", filepath.Join(arch.sourceDir, "sys", "sys"), 47 "-I", filepath.Join(arch.sourceDir, "sys", "amd64"), 51 args = append(args, "-I"+filepath.Join(arch.sourceDir, incdir))
|
D | netbsd.go | 43 filepath.Join(arch.buildDir, dest)); err != nil { 50 return filepath.Join(arch.sourceDir, "sys", "arch", machine, "include") 59 "-I", filepath.Join(arch.sourceDir, "sys"), 60 "-I", filepath.Join(arch.sourceDir, "sys", "sys"), 61 "-I", filepath.Join(arch.sourceDir, "sys", "arch", "amd64"), 62 "-I", filepath.Join(arch.sourceDir, "common", "include"), 63 "-I", filepath.Join(arch.sourceDir, "sys", "compat", "linux", "common"), 67 args = append(args, "-I"+filepath.Join(arch.sourceDir, incdir))
|
/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/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()
|
/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/e2fsprogs/util/ |
D | libecho.c | 43 char filepath[256]; in echo_files() local 52 strcpy(filepath, f); in echo_files() 54 slash = strrchr(filepath, '\\'); in echo_files() 60 filepath[0] = '\0'; in echo_files() 70 printf("%s%s%s\n", prefix, filepath, fdt.name); in echo_files() 75 printf("%s%s%s\n", prefix, filepath, fdt.name); in echo_files()
|