/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/include/flatbuffers/ |
D | util.h | 190 inline std::string StripExtension(const std::string &filepath) { in StripExtension() argument 191 size_t i = filepath.find_last_of("."); in StripExtension() 192 return i != std::string::npos ? filepath.substr(0, i) : filepath; in StripExtension() 196 inline std::string GetExtension(const std::string &filepath) { in GetExtension() argument 197 size_t i = filepath.find_last_of("."); in GetExtension() 198 return i != std::string::npos ? filepath.substr(i + 1) : ""; in GetExtension() 202 inline std::string StripPath(const std::string &filepath) { in StripPath() argument 203 size_t i = filepath.find_last_of(PathSeparatorSet); in StripPath() 204 return i != std::string::npos ? filepath.substr(i + 1) : filepath; in StripPath() 208 inline 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/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/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/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/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 !…
|
D | make_errors.go | 48 lib := filepath.Base(dirName) 49 headerPath := filepath.Join(topLevelPath, "include", "openssl", lib+".h") 50 errDir := filepath.Join(topLevelPath, "crypto", "err") 51 dataPath := filepath.Join(errDir, lib+".errordata") 93 if filepath.Base(filepath.Dir(dirName)) == "fipsmodule" { 95 extraPath := filepath.Join(topLevelPath, "crypto", lib+"_extra") 107 filenames = append(filenames, filepath.Join(extraPath, extraFilename)) 159 buildingPath := filepath.Join(path, "BUILDING.md") 163 path = filepath.Join("..", path) 164 buildingPath = filepath.Join(path, "BUILDING.md")
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
D | gtest_premature_exit_test.cc | 54 static bool FileExists(const char* filepath) { in FileExists() argument 56 return Stat(filepath, &stat) == 0; in FileExists() 104 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in TEST_F() local 105 ASSERT_TRUE(filepath != NULL); in TEST_F() 106 ASSERT_NE(*filepath, '\0'); in TEST_F() 130 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 131 if (filepath != NULL && *filepath != '\0') { in main() 132 if (PrematureExitTest::FileExists(filepath)) { in main() 135 filepath); in main()
|
/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 …]
|
D | bwe_test_fileutils.cc | 56 std::string filepath = webrtc::test::ResourcePath(filename, extension); in Create() local 57 FILE* file = fopen(filepath.c_str(), "rb"); in Create() 60 BWE_TEST_LOGGING_LOG1("Create", "Can't read file: %s", filepath.c_str()); in Create() 84 std::string filepath = webrtc::test::OutputPath() + filename + "." + in Create() local 86 FILE* file = fopen(filepath.c_str(), "wb"); in Create() 89 BWE_TEST_LOGGING_LOG1("Create", "Can't write file: %s", filepath.c_str()); in Create()
|
/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/tensorflow/tensorflow/python/keras/_impl/keras/ |
D | callbacks_test.py | 66 filepath = os.path.join(temp_dir, 'checkpoint.h5') 91 filepath, 104 assert os.path.exists(filepath) 105 os.remove(filepath) 111 filepath, 124 assert os.path.exists(filepath) 125 os.remove(filepath) 132 filepath, 145 assert os.path.exists(filepath) 146 os.remove(filepath) [all …]
|
/external/skqp/infra/bots/recipe_modules/isolate/resources/ |
D | find_isolated_tests.py | 25 def hash_file(filepath): argument 28 with open(filepath, 'rb') as f: 70 for filepath in sorted(glob.glob(pattern)): 71 os.remove(filepath) 75 for filepath in sorted(glob.glob(pattern)): 76 test_name = os.path.splitext(os.path.basename(filepath))[0] 85 os.remove(filepath) 87 sha1_hash = hash_file(filepath)
|
/external/skia/infra/bots/recipe_modules/isolate/resources/ |
D | find_isolated_tests.py | 25 def hash_file(filepath): argument 28 with open(filepath, 'rb') as f: 70 for filepath in sorted(glob.glob(pattern)): 71 os.remove(filepath) 75 for filepath in sorted(glob.glob(pattern)): 76 test_name = os.path.splitext(os.path.basename(filepath))[0] 85 os.remove(filepath) 87 sha1_hash = hash_file(filepath)
|
/external/v8/testing/gtest/test/ |
D | gtest_premature_exit_test.cc | 50 static bool FileExists(const char* filepath) { in FileExists() argument 52 return Stat(filepath, &stat) == 0; in FileExists() 116 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 117 if (filepath != NULL && *filepath != '\0') { in main() 118 if (PrematureExitTest::FileExists(filepath)) { in main() 121 filepath); in main()
|
/external/googletest/googletest/test/ |
D | gtest_premature_exit_test.cc | 50 static bool FileExists(const char* filepath) { in FileExists() argument 52 return Stat(filepath, &stat) == 0; in FileExists() 116 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 117 if (filepath != NULL && *filepath != '\0') { in main() 118 if (PrematureExitTest::FileExists(filepath)) { in main() 121 filepath); in main()
|
/external/skia/tools/viewer/ |
D | BisectSlide.cpp | 16 sk_sp<BisectSlide> BisectSlide::Create(const char filepath[]) { in Create() argument 17 SkFILEStream stream(filepath); in Create() 19 SkDebugf("BISECT: invalid input file at \"%s\"\n", filepath); in Create() 23 sk_sp<BisectSlide> bisect(new BisectSlide(filepath)); in Create() 27 SkDebugf("BISECT: XML parsing failed: \"%s\"\n", filepath); in Create() 32 SkDebugf("BISECT: couldn't load svg at \"%s\"\n", filepath); in Create() 40 SkDebugf("BISECT: couldn't load skp at \"%s\"\n", filepath); in Create() 49 BisectSlide::BisectSlide(const char filepath[]) in BisectSlide() argument 51 , fFilePath(filepath) { in BisectSlide()
|
/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/v8/ |
D | WATCHLISTS | 31 # IMPORTANT: The regular expression filepath is tested against each path using 37 'filepath': 'include/', 40 'filepath': 'src/snapshot/', 43 'filepath': 'src/debug/', 46 'filepath': 'src/interpreter/' \ 52 'filepath': 'src/flag-definitions.h', 55 'filepath': 'src/heap/', 58 'filepath': '/arm/', 61 'filepath': '/ia32/', 64 'filepath': '.',
|
/external/autotest/client/site_tests/platform_InputScreenshot/ |
D | platform_InputScreenshot.py | 42 def confirm_file_exist(self, filepath): argument 50 if not os.path.isdir(filepath): 51 raise error.TestNAError("%s folder is not found" % filepath) 54 % (filepath, self._SCREENSHOT))): 55 self._ERROR.append('Screenshot was not found under:%s' % filepath) 58 % (filepath, self._SCREENSHOT)) 61 % (filesize, filepath))
|
/external/lisa/libs/utils/ |
D | conf.py | 28 def setup(self, filepath='logging.conf', level=logging.INFO): argument 43 filepath = os.path.join(basepath, filepath) 44 if not os.path.exists(filepath): 46 .format(filepath)) 47 logging.config.fileConfig(filepath) 51 logging.info(' %s', filepath)
|
/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()
|
/external/tensorflow/tensorflow/tools/ci_build/ |
D | update_version.py | 225 filepath = "%s/docs_src/install/install_%s.md" % (TF_SRC_DIR, 230 "tensorflow-%s" % new_pep_version, filepath) 232 "tensorflow_gpu-%s" % new_pep_version, filepath) 235 "tensorflow-%s" % new_pep_version, filepath) 237 "tensorflow_gpu-%s" % new_pep_version, filepath) 239 "TensorFlow %s" % new_pep_version, filepath) 242 filepath = "%s/docs_src/install/install_%s.md" % (TF_SRC_DIR, 245 "x86_64-%s" % new_version, filepath) 247 "libtensorflow-%s.jar" % new_version, filepath) 249 "<version>%s</version>" % new_version, filepath)
|
/external/autotest/client/site_tests/ui_SystemTray/ |
D | ui_SystemTray.py | 39 def capture_screenshot(self, filepath): argument 62 graphics_utils.take_screenshot_crop(filepath, box) 67 image_name = os.path.splitext(filepath)[0] 79 graphics_utils.take_screenshot_crop(filepath, box) 81 diff = comparer.compare(filepath, temp_file_path) 92 self.draw_image_mask(filepath, self.mask_points)
|