Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 25 of 142) sorted by relevance

123456

/external/pdfium/core/fpdfdoc/
Dcpdf_filespec.cpp53 CFX_WideString CPDF_FileSpec::DecodeFileName(const CFX_WideStringC& filepath) { in DecodeFileName() argument
54 if (filepath.GetLength() <= 1) in DecodeFileName()
58 if (filepath.Left(sizeof("/Mac") - 1) == CFX_WideStringC(L"/Mac")) in DecodeFileName()
59 return ChangeSlashToPlatform(filepath.c_str() + 1); in DecodeFileName()
60 return ChangeSlashToPlatform(filepath.c_str()); in DecodeFileName()
63 if (filepath.GetAt(0) != '/') in DecodeFileName()
64 return ChangeSlashToPlatform(filepath.c_str()); in DecodeFileName()
65 if (filepath.GetAt(1) == '/') in DecodeFileName()
66 return ChangeSlashToPlatform(filepath.c_str() + 1); in DecodeFileName()
67 if (filepath.GetAt(2) == '/') { in DecodeFileName()
[all …]
/external/flatbuffers/include/flatbuffers/
Dutil.h172 inline std::string StripExtension(const std::string &filepath) { in StripExtension() argument
173 size_t i = filepath.find_last_of("."); in StripExtension()
174 return i != std::string::npos ? filepath.substr(0, i) : filepath; in StripExtension()
178 inline std::string GetExtension(const std::string &filepath) { in GetExtension() argument
179 size_t i = filepath.find_last_of("."); in GetExtension()
180 return i != std::string::npos ? filepath.substr(i + 1) : ""; in GetExtension()
184 inline std::string StripPath(const std::string &filepath) { in StripPath() argument
185 size_t i = filepath.find_last_of(PathSeparatorSet); in StripPath()
186 return i != std::string::npos ? filepath.substr(i + 1) : filepath; in StripPath()
190 inline std::string StripFileName(const std::string &filepath) { in StripFileName() argument
[all …]
/external/skia/tools/copyright/
Dmain.py36 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/
DWATCHLISTS15 '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/
Dpy-compile114 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/vulkan-validation-layers/tests/gtest-1.7.0/test/
Dgtest_premature_exit_test.cc54 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/boringssl/src/util/
Ddiff_asm.go29 …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 !…
Dmake_errors.go48 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))
154 buildingPath := filepath.Join(path, "BUILDING.md")
158 path = filepath.Join("..", path)
159 buildingPath = filepath.Join(path, "BUILDING.md")
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_baselinefile.cc44 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 …]
Dbwe_test_fileutils.cc56 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/
Dlibcontrollers.c120 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/v8/testing/gtest/test/
Dgtest_premature_exit_test.cc50 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/
Dgtest_premature_exit_test.cc50 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/brotli/appveyor/
Dinstall.ps125 $filepath = $basedir + $filename in Download() variable
27 Write-Host "Reusing" $filepath in Download() variable
28 return $filepath in Download() variable
36 $webclient.DownloadFile($url, $filepath) in Download()
43 if (Test-Path $filepath) { in Download() variable
44 Write-Host "File saved at" $filepath in Download() variable
47 $webclient.DownloadFile($url, $filepath) in Download()
49 return $filepath in Download() variable
99 $filepath = Download $filename $url in DownloadPython() variable
100 return $filepath in DownloadPython() variable
/external/skia/infra/bots/recipe_modules/isolate/resources/
Dfind_isolated_tests.py25 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/junit-params/src/main/java/junitparams/custom/
DFileParametersProvider.java43 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/e2fsprogs/util/
Dlibecho.c43 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/lisa/libs/utils/
Dconf.py28 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/autotest/client/site_tests/platform_InputScreenshot/
Dplatform_InputScreenshot.py42 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/v8/
DWATCHLISTS31 # 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/linux-kselftest/tools/testing/selftests/cpufreq/
Dspecial-tests.sh87 local filepath="$CPUROOT/$1/cpufreq"
97 local freqs=$(cat $filepath/scaling_available_frequencies)
98 local oldfreq=$(cat $filepath/scaling_min_freq)
104 echo $freq > $filepath/scaling_min_freq
109 echo $oldfreq > $filepath/scaling_min_freq
Dgovernor.sh86 local filepath=$CPUFREQROOT/$1/scaling_available_governors
89 local found=$(cat $filepath | grep $2 | wc -l)
125 local filepath=$CPUFREQROOT/$2/scaling_available_governors
128 if [ ! -f $filepath ]; then
134 local governors=$(cat $filepath)
/external/autotest/client/site_tests/ui_SystemTray/
Dui_SystemTray.py39 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)
/external/protobuf/python/
Dsetup.py114 filepath = os.path.join(dirpath, filename)
115 if filepath.endswith("_pb2.py") or filepath.endswith(".pyc") or \
116 filepath.endswith(".so") or filepath.endswith(".o") or \
117 filepath.endswith('google/protobuf/compiler/__init__.py') or \
118 filepath.endswith('google/protobuf/util/__init__.py'):
119 os.remove(filepath)
/external/skia/tools/
Djsondiff.py49 def _GetFileContentsAsString(self, filepath): argument
53 if filepath is None:
55 elif filepath.startswith('http:') or filepath.startswith('https:'):
56 return urllib2.urlopen(filepath).read()
58 return open(filepath, 'r').read()

123456