Home
last modified time | relevance | path

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

1234

/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/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/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/chromium-trace/catapult/third_party/coverage/ci/
Dinstall.ps128 $filepath = $basedir + $filename in Download() variable
30 Write-Host "Reusing" $filepath in Download() variable
31 return $filepath in Download() variable
39 $webclient.DownloadFile($url, $filepath) in Download()
46 if (Test-Path $filepath) { in Download() variable
47 Write-Host "File saved at" $filepath in Download() variable
50 $webclient.DownloadFile($url, $filepath) in Download()
52 return $filepath in Download() variable
102 $filepath = Download $filename $url in DownloadPython() variable
103 return $filepath in DownloadPython() variable
[all …]
/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/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome/
Dcrx_id.py68 def GetPublicKeyFromPath(filepath, is_win_path=False): argument
73 if (len(filepath) >= 2 and
74 filepath[0].islower() and
75 filepath[1] == ':'):
76 filepath = filepath[0].upper() + filepath[1:]
83 filepath = filepath.encode('utf-16le')
85 return filepath
87 def GetPublicKeyUnpacked(f, filepath): argument
92 return GetPublicKeyFromPath(filepath)
/external/pdfium/core/src/fpdfdoc/
Ddoc_basic.cpp271 static CFX_WideString FILESPEC_DecodeFileName(const CFX_WideStringC& filepath) { in FILESPEC_DecodeFileName() argument
272 if (filepath.GetLength() <= 1) { in FILESPEC_DecodeFileName()
276 if (filepath.Left(sizeof("/Mac") - 1) == CFX_WideStringC(L"/Mac")) { in FILESPEC_DecodeFileName()
277 return ChangeSlashToPlatform(filepath.GetPtr() + 1); in FILESPEC_DecodeFileName()
279 return ChangeSlashToPlatform(filepath.GetPtr()); in FILESPEC_DecodeFileName()
281 if (filepath.GetAt(0) != '/') { in FILESPEC_DecodeFileName()
282 return ChangeSlashToPlatform(filepath.GetPtr()); in FILESPEC_DecodeFileName()
284 if (filepath.GetAt(1) == '/') { in FILESPEC_DecodeFileName()
285 return ChangeSlashToPlatform(filepath.GetPtr() + 1); in FILESPEC_DecodeFileName()
287 if (filepath.GetAt(2) == '/') { in FILESPEC_DecodeFileName()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_fdf.cpp121 const CFX_WideString& filepath) { in FPDF_FileSpec_SetWin32Path() argument
123 if (filepath.GetLength() > 1 && filepath[1] == ':') { in FPDF_FileSpec_SetWin32Path()
125 result += filepath[0]; in FPDF_FileSpec_SetWin32Path()
126 if (filepath[2] != '\\') { in FPDF_FileSpec_SetWin32Path()
129 result += ChangeSlash(filepath.c_str() + 2); in FPDF_FileSpec_SetWin32Path()
130 } else if (filepath.GetLength() > 1 && filepath[0] == '\\' && in FPDF_FileSpec_SetWin32Path()
131 filepath[1] == '\\') { in FPDF_FileSpec_SetWin32Path()
132 result = ChangeSlash(filepath.c_str() + 1); in FPDF_FileSpec_SetWin32Path()
134 result = ChangeSlash(filepath.c_str()); in FPDF_FileSpec_SetWin32Path()
/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/v8/build/
Dfind_isolated_tests.py26 def hash_file(filepath): argument
29 with open(filepath, 'rb') as f:
59 for filepath in sorted(glob.glob(pattern)):
60 test_name = os.path.splitext(os.path.basename(filepath))[0]
67 sha1_hash = hash_file(filepath)
68 os.remove(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/autotest/client/site_tests/ui_SystemTray/
Dui_SystemTray.py40 def capture_screenshot(self, filepath): argument
63 graphics_utils.take_screenshot_crop(filepath, box)
68 image_name = os.path.splitext(filepath)[0]
80 graphics_utils.take_screenshot_crop(filepath, box)
82 diff = comparer.compare(filepath, temp_file_path)
93 self.draw_image_mask(filepath, self.mask_points)
/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/chromium-trace/catapult/
DWATCHLISTS8 'filepath': 'dashboard/'
11 'filepath': 'telemetry/'
14 'filepath': 'tracing/'
17 'filepath': 'perf_insights/'
/external/autotest/client/common_lib/
Dfile_utils.py37 def ensure_file_exists(filepath): argument
46 error_msg = 'File %s does not exist.' % filepath
47 if not os.path.isfile(filepath):
60 for filepath in filepaths:
61 ensure_file_exists(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()
/external/chromium-trace/catapult/third_party/gsutil/gslib/commands/
Dversion.py152 for filepath in files:
153 if filepath.endswith('.py'):
154 files_to_checksum.append(os.path.join(root, filepath))
157 for filepath in sorted(files_to_checksum):
158 f = open(filepath, 'r')
/external/autotest/client/cros/
Dtouch_playback_test_base.py86 filepath = os.path.join(gesture_dir, filename)
87 if not os.path.exists(filepath):
88 logging.info('Did not find %s!', filepath)
90 filepaths[gesture] = filepath
129 def _playback(self, filepath, touch_type='touchpad'): argument
131 self.player.playback(filepath, touch_type)
134 def _blocking_playback(self, filepath, touch_type='touchpad'): argument
136 self.player.blocking_playback(filepath, touch_type)
/external/llvm/tools/llvm-go/
Dllvm-go.go74 bin, _ := filepath.Split(os.Args[0])
75 configpath = filepath.Join(bin, "llvm-config")
167 path := filepath.Join(tmpgopath, "src", p.pkgpath)
168 err := os.MkdirAll(filepath.Dir(path), os.ModePerm)
173 err = os.Symlink(filepath.Join(srcdir, p.llvmpath), path)
182 newgopathlist = append(newgopathlist, filepath.SplitList(os.Getenv("GOPATH"))...)
183 newgopath := strings.Join(newgopathlist, string(filepath.ListSeparator))
/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,
/external/autotest/client/cros/input_playback/
Dinput_playback.py227 def _get_contents_of_file(self, filepath): argument
235 return utils.run('cat %s' % filepath).stdout.strip()
358 def playback(self, filepath, input_type='touchpad'): argument
374 filepath)
375 utils.run(self._PLAYBACK_COMMAND % (node, filepath))
378 def blocking_playback(self, filepath, input_type='touchpad'): argument
391 with open(filepath) as fh:
396 self.playback(filepath, input_type)

1234