Home
last modified time | relevance | path

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

12

/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 …]
Dfileparser.py11 def CreateParser(filepath): argument
14 if (filepath.endswith('.cpp') or
15 filepath.endswith('.h') or
16 filepath.endswith('.c')):
/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/gtest/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/pdfium/core/src/fpdfdoc/
Ddoc_basic.cpp285 static CFX_WideString FILESPEC_DecodeFileName(FX_WSTR filepath) in FILESPEC_DecodeFileName() argument
287 if (filepath.GetLength() <= 1) { in FILESPEC_DecodeFileName()
291 if (filepath.Left(sizeof("/Mac") - 1) == CFX_WideStringC(L"/Mac")) { in FILESPEC_DecodeFileName()
292 return ChangeSlashToPlatform(filepath.GetPtr() + 1); in FILESPEC_DecodeFileName()
294 return ChangeSlashToPlatform(filepath.GetPtr()); in FILESPEC_DecodeFileName()
296 if (filepath.GetAt(0) != '/') { in FILESPEC_DecodeFileName()
297 return ChangeSlashToPlatform(filepath.GetPtr()); in FILESPEC_DecodeFileName()
299 if (filepath.GetAt(1) == '/') { in FILESPEC_DecodeFileName()
300 return ChangeSlashToPlatform(filepath.GetPtr() + 1); in FILESPEC_DecodeFileName()
302 if (filepath.GetAt(2) == '/') { in FILESPEC_DecodeFileName()
[all …]
/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/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_fdf.cpp131 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec, const CFX_WideString& filepath) in FPDF_FileSpec_SetWin32Path() argument
134 if (filepath.GetLength() > 1 && filepath[1] == ':') { in FPDF_FileSpec_SetWin32Path()
136 result += filepath[0]; in FPDF_FileSpec_SetWin32Path()
137 if (filepath[2] != '\\') { in FPDF_FileSpec_SetWin32Path()
140 result += ChangeSlash(filepath.c_str() + 2); in FPDF_FileSpec_SetWin32Path()
141 } else if (filepath.GetLength() > 1 && filepath[0] == '\\' && filepath[1] == '\\') { in FPDF_FileSpec_SetWin32Path()
142 result = ChangeSlash(filepath.c_str() + 1); in FPDF_FileSpec_SetWin32Path()
144 result = ChangeSlash(filepath.c_str()); in FPDF_FileSpec_SetWin32Path()
/external/protobuf/python/
Dsetup.py108 filepath = os.path.join(dirpath, filename)
109 if filepath.endswith("_pb2.py") or filepath.endswith(".pyc") or \
110 filepath.endswith(".so") or filepath.endswith(".o") or \
111 filepath.endswith('google/protobuf/compiler/__init__.py'):
112 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()
Dretrieve_from_googlesource.py18 def get(repo_url, filepath): argument
28 base64_url = '/'.join((repo_url, '+', 'master', filepath)) + '?format=TEXT'
Dsk_tool_utils_font.cpp86 SkString filepath(GetResourcePath(file)); in resource_font() local
87 if (sk_exists(filepath.c_str())) { in resource_font()
88 return SkTypeface::CreateFromFile(filepath.c_str()); in resource_font()
/external/llvm/utils/lit/lit/formats/
Dgoogletest.py79 filepath = os.path.join(source_path, filename)
80 if os.path.isdir(filepath):
85 for subfilename in os.listdir(filepath):
86 execpath = os.path.join(filepath, subfilename)
93 testSuite, path_in_suite, filepath,
Dbase.py23 filepath = os.path.join(source_path, filename)
24 if not os.path.isdir(filepath):
/external/boringssl/src/util/
Dmake_errors.go49 lib := filepath.Base(dirName)
50 headerPath := filepath.Join(topLevelPath, "include", "openssl", lib+".h")
51 errDir := filepath.Join(topLevelPath, "crypto", "err")
52 dataPath := filepath.Join(errDir, lib+".errordata")
139 buildingPath := filepath.Join(path, "BUILDING")
143 path = filepath.Join("..", path)
144 buildingPath = filepath.Join(path, "BUILDING")
Ddoc.go247 headerPath := filepath.Join(config.BaseDirectory, path)
287 Name: filepath.Base(path),
546 filename := filepath.Join(outPath, header.Name+".html")
564 "baseName": filepath.Base,
595 …file, err := os.OpenFile(filepath.Join(outPath, "headers.html"), os.O_CREATE|os.O_TRUNC|os.O_WRONL…
/external/llvm/tools/llvm-go/
Dllvm-go.go151 path := filepath.Join(tmpgopath, "src", p.pkgpath)
152 err := os.MkdirAll(filepath.Dir(path), os.ModePerm)
157 err = os.Symlink(filepath.Join(srcdir, p.llvmpath), path)
166 newgopathlist = append(newgopathlist, filepath.SplitList(os.Getenv("GOPATH"))...)
167 newgopath := strings.Join(newgopathlist, string(filepath.ListSeparator))
/external/skia/platform_tools/android/bin/
Ddownload_toolchains.py12 filepath = sys.argv[2] variable
15 download_utils.SyncURL(url, filepath)
/external/chromium-trace/trace-viewer/third_party/Paste/paste/
Dfileapp.py313 def __init__(self, filepath): argument
314 if zipfile.is_zipfile(filepath):
315 self.archive = zipfile.ZipFile(filepath,"r")
316 elif tarfile.is_tarfile(filepath):
317 self.archive = tarfile.TarFileCompat(filepath,"r")
319 raise AssertionError("filepath '%s' is not a zip or tar " % filepath)
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.cc205 const char *StripPathPrefix(const char *filepath, in StripPathPrefix() argument
207 if (filepath == 0) return 0; in StripPathPrefix()
208 if (strip_path_prefix == 0) return filepath; in StripPathPrefix()
209 const char *res = filepath; in StripPathPrefix()
210 if (const char *pos = internal_strstr(filepath, strip_path_prefix)) in StripPathPrefix()
Dsanitizer_win.cc218 const char *filepath; member
240 module_infos[i].filepath = modules[i].full_name(); in DumpProcessMap()
251 mi.filepath[0] ? mi.filepath : "[no name]"); in DumpProcessMap()
252 } else if (mi.filepath[0]) { in DumpProcessMap()
253 Printf("\t??\?-??? %s\n", mi.filepath); in DumpProcessMap()
/external/e2fsprogs/e2fsck/
Dprofile_helpers.c261 profile_init_path(const char * filepath, in profile_init_path() argument
271 for(s = filepath, n_entries = 1; *s; s++) { in profile_init_path()
282 for(s = filepath, i=0; (t = strchr(s, ':')) || (t=s+strlen(s)); s=t+1, i++) { in profile_init_path()
/external/google-breakpad/src/tools/mac/upload_system_symbols/
Dupload_system_symbols.go183 func (uq *UploadQueue) Upload(filepath string) {
184 uq.queue <- filepath
243 func (dq *DumpQueue) DumpSymbols(filepath string, arch string) {
245 path: filepath,
/external/webrtc/src/modules/audio_processing/test/
Dapmtest.m1 function apmtest(task, testname, filepath, casenumber, legacy)
35 if nargin < 3 || isempty(filepath)
36 filepath = 'data/'; variable
55 inpath = [filepath 'input/'];
56 outpath = [filepath 'output/'];
57 refpath = [filepath 'reference/'];
/external/v8/
DWATCHLISTS31 # IMPORTANT: The regular expression filepath is tested against each path using
37 'filepath': 'include/',
/external/libcxx/test/libcxx/test/
Dformat.py40 filepath = os.path.join(source_path, filename)
41 if not os.path.isdir(filepath):

12