Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 795) sorted by relevance

12345678910>>...32

/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/
Dchecker_unittest.py287 checker = self._dispatcher.dispatch(file_path=path,
333 for file_path, expected_result in files.items():
334 …spatcher.should_check_and_strip_carriage_returns(file_path), expected_result, 'Checking: %s' % fil…
341 def dispatch(self, file_path): argument
345 checker = dispatcher.dispatch(file_path,
350 def assert_checker_none(self, file_path): argument
352 checker = self.dispatch(file_path)
353 self.assertIsNone(checker, 'Checking: "%s"' % file_path)
355 def assert_checker(self, file_path, expected_class): argument
357 checker = self.dispatch(file_path)
[all …]
Dchecker.py399 def _file_extension(self, file_path): argument
401 return os.path.splitext(file_path)[1].lstrip(".")
403 def _should_skip_file_path(self, file_path, skip_array_entry): argument
404 match = re.search("\s*png$", file_path)
408 if file_path.find(skip_array_entry) >= 0:
410 elif skip_array_entry.match(file_path):
414 def should_skip_with_warning(self, file_path): argument
417 if self._should_skip_file_path(file_path, skipped_file):
421 def should_skip_without_warning(self, file_path): argument
423 if not self._file_type(file_path): # FileType.NONE.
[all …]
Dfilereader.py70 def _read_lines(self, file_path): argument
78 if file_path == '-':
89 file = codecs.open(file_path, 'r', 'utf8', 'replace')
99 def process_file(self, file_path, **kwargs): argument
114 if not self.filesystem.exists(file_path) and file_path != "-":
115 _log.error("File does not exist: '%s'" % file_path)
118 if not self._processor.should_process(file_path):
119 _log.debug("Skipping file: '%s'" % file_path)
121 _log.debug("Processing file: '%s'" % file_path)
124 lines = self._read_lines(file_path)
[all …]
Dfilereader_unittest.py46 def should_process(self, file_path): argument
47 return not file_path.endswith('should_not_process.txt')
49 def process(self, lines, file_path, test_kwarg=None): argument
50 self.processed.append((lines, file_path, test_kwarg))
67 file_path = self.filesystem.join(self._temp_dir, rel_path)
68 self.filesystem.write_text_file(file_path, text)
69 return file_path
111 file_path = self._create_file('should_not_process.txt', 'contents')
113 self._file_reader.process_file(file_path)
117 file_path = self._create_file('foo.txt', 'line one\r\nline two\n')
[all …]
/external/chromium_org/media/tools/layout_tests/
Dlayouttest_analyzer_helpers_unittest.py37 file_path = os.path.join('test_data', 'base')
39 layouttest_analyzer_helpers.AnalyzerResultMap.Load(file_path))
46 file_path = os.path.join('test_data', 'less')
47 analyzerResultMapBase.Save(file_path)
49 file_path = os.path.join('test_data', 'base')
50 analyzerResultMapBase = AnalyzerResultMap.Load(file_path)
55 file_path = os.path.join('test_data', 'more')
56 analyzerResultMapBase.Save(file_path)
60 file_path = os.path.join('test_data', 'base')
61 analyzerResultMapBase = AnalyzerResultMap.Load(file_path)
[all …]
/external/chromium_org/tools/findit/
Dcomponent_dictionary.py17 def AddFile(self, file_path, crashed_line_range, stack_frame_index, argument
28 if file_path not in self.file_dict:
29 self.file_dict[file_path] = {}
30 self.file_dict[file_path]['line_numbers'] = []
31 self.file_dict[file_path]['stack_frame_indices'] = []
32 self.file_dict[file_path]['function'] = []
35 self.file_dict[file_path]['line_numbers'].append(
37 self.file_dict[file_path]['stack_frame_indices'].append(
39 self.file_dict[file_path]['function'].append(function)
41 def GetCrashedLineNumbers(self, file_path): argument
[all …]
/external/chromium_org/storage/browser/fileapi/
Dlocal_file_util.cc82 base::FilePath file_path; in CreateOrOpen() local
83 base::File::Error error = GetLocalFilePath(context, url, &file_path); in CreateOrOpen()
87 if (base::IsLink(file_path)) in CreateOrOpen()
90 return NativeFileUtil::CreateOrOpen(file_path, file_flags); in CreateOrOpen()
97 base::FilePath file_path; in EnsureFileExists() local
98 base::File::Error error = GetLocalFilePath(context, url, &file_path); in EnsureFileExists()
101 return NativeFileUtil::EnsureFileExists(file_path, created); in EnsureFileExists()
109 base::FilePath file_path; in CreateDirectory() local
110 base::File::Error error = GetLocalFilePath(context, url, &file_path); in CreateDirectory()
113 return NativeFileUtil::CreateDirectory(file_path, exclusive, recursive); in CreateDirectory()
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Dopen_file_operation_unittest.cc46 base::FilePath file_path; in TEST_F() local
53 &error, &file_path, &close_callback)); in TEST_F()
57 ASSERT_TRUE(base::PathExists(file_path)); in TEST_F()
59 ASSERT_TRUE(base::GetFileSize(file_path, &local_file_size)); in TEST_F()
72 base::FilePath file_path; in TEST_F() local
79 &error, &file_path, &close_callback)); in TEST_F()
92 base::FilePath file_path; in TEST_F() local
99 &error, &file_path, &close_callback)); in TEST_F()
111 base::FilePath file_path; in TEST_F() local
118 &error, &file_path, &close_callback)); in TEST_F()
[all …]
/external/chromium_org/tools/telemetry/
Dcloud_storage23 file_path = root
26 file_path = path
28 return file_path, hash_path
44 file_path, hash_path = _GetPaths(path)
46 if file_path in file_buckets:
54 file_buckets[file_path] = []
57 file_buckets[file_path].append(bucket)
100 for file_path, buckets in sorted(files.iteritems()):
103 print '%-11s %s' % (','.join(buckets), file_path)
105 print '%-11s %s' % ('not found', file_path)
[all …]
/external/chromium_org/base/files/
Dfile_util_proxy.cc29 void RunWorkForFilePath(const FilePath& file_path) { in RunWorkForFilePath() argument
30 if (!PathExists(file_path)) { in RunWorkForFilePath()
34 if (!GetFileInfo(file_path, &file_info_)) in RunWorkForFilePath()
50 File::Error DeleteAdapter(const FilePath& file_path, bool recursive) { in DeleteAdapter() argument
51 if (!PathExists(file_path)) { in DeleteAdapter()
54 if (!base::DeleteFile(file_path, recursive)) { in DeleteAdapter()
55 if (!recursive && !base::IsDirectoryEmpty(file_path)) { in DeleteAdapter()
69 const FilePath& file_path, in GetFileInfo() argument
75 Unretained(helper), file_path), in GetFileInfo()
81 const FilePath& file_path, in DeleteFile() argument
[all …]
Dfile_unittest.cc17 FilePath file_path = temp_dir.path().AppendASCII("create_file_1"); in TEST() local
32 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ); in TEST()
39 File file(file_path, base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_READ); in TEST()
47 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ); in TEST()
60 file.Initialize(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ); in TEST()
72 File file(file_path, base::File::FLAG_CREATE | base::File::FLAG_READ); in TEST()
80 File file(file_path, in TEST()
89 file_path = temp_dir.path().AppendASCII("create_file_2"); in TEST()
90 File file(file_path, in TEST()
98 EXPECT_FALSE(base::PathExists(file_path)); in TEST()
[all …]
/external/chromium_org/chrome/browser/chromeos/file_manager/
Dopen_with_browser.cc59 bool IsViewableInBrowser(const base::FilePath& file_path) { in IsViewableInBrowser() argument
61 if (file_path.MatchesExtension(kFileExtensionsViewableInBrowser[i])) in IsViewableInBrowser()
124 GURL ReadUrlFromGDocOnBlockingPool(const base::FilePath& file_path) { in ReadUrlFromGDocOnBlockingPool() argument
125 GURL url = drive::util::ReadUrlFromGDocFile(file_path); in ReadUrlFromGDocOnBlockingPool()
127 url = net::FilePathToFileURL(file_path); in ReadUrlFromGDocOnBlockingPool()
138 const base::FilePath file_path = file_system_url.path(); in OpenFileWithBrowser() local
142 if (IsViewableInBrowser(file_path) || in OpenFileWithBrowser()
143 ShouldBeOpenedWithPlugin(profile, file_path.Extension())) { in OpenFileWithBrowser()
147 page_url = net::FilePathToFileURL(file_path); in OpenFileWithBrowser()
153 if (drive::util::HasHostedDocumentExtension(file_path)) { in OpenFileWithBrowser()
[all …]
Dopen_util.cc40 const base::FilePath& file_path, in ShowWarningMessageBox() argument
48 base::UTF8ToUTF16(file_path.BaseName().AsUTF8Unsafe())), in ShowWarningMessageBox()
142 const base::FilePath& file_path, in OnContinueOpenItemCompleted() argument
146 if (file_path.Extension() == FILE_PATH_LITERAL(".dmg")) in OnContinueOpenItemCompleted()
148 else if (file_path.Extension() == FILE_PATH_LITERAL(".exe") || in OnContinueOpenItemCompleted()
149 file_path.Extension() == FILE_PATH_LITERAL(".msi")) in OnContinueOpenItemCompleted()
153 ShowWarningMessageBox(profile, file_path, message); in OnContinueOpenItemCompleted()
159 const base::FilePath& file_path, in ContinueOpenItem() argument
170 file_path, in ContinueOpenItem()
172 base::Bind(&OnContinueOpenItemCompleted, profile, file_path)); in ContinueOpenItem()
[all …]
/external/chromium_org/tools/memory_inspector/memory_inspector/data/
Dfile_storage.py40 file_path = os.path.join(self._root, Storage._SETTINGS_FILE % name)
41 if not os.path.exists(file_path):
43 with open(file_path) as f:
49 file_path = os.path.join(self._root, Storage._SETTINGS_FILE % name)
51 if os.path.exists(file_path):
52 os.unlink(file_path)
54 with open(file_path, 'w') as f:
96 file_path = os.path.join(self._path, Archive._SYM_FILE)
97 with open(file_path, 'w') as f:
105 file_path = os.path.join(self._path, Archive._SYM_FILE)
[all …]
/external/skia/tools/
Dsanitize_source_files.py85 def TrailingWhitespaceRemover(line, file_path, line_number): argument
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number): argument
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number): argument
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path): argument
122 print 'Added exactly one newline to %s' % file_path
126 def SvnEOLChecker(file_content, file_path): argument
129 'svn propget svn:eol-style %s' % file_path)
[all …]
/external/chromium_org/third_party/skia/tools/
Dsanitize_source_files.py85 def TrailingWhitespaceRemover(line, file_path, line_number): argument
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number): argument
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number): argument
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path): argument
122 print 'Added exactly one newline to %s' % file_path
126 def SvnEOLChecker(file_content, file_path): argument
129 'svn propget svn:eol-style %s' % file_path)
[all …]
/external/chromium_org/storage/browser/database/
Dvfs_backend.cc58 base::File VfsBackend::OpenFile(const base::FilePath& file_path, in OpenFile() argument
60 DCHECK(!file_path.empty()); in OpenFile()
65 !base::CreateDirectory(file_path.DirName())) { in OpenFile()
93 return base::File(file_path, flags); in OpenFile()
115 int VfsBackend::DeleteFile(const base::FilePath& file_path, bool sync_dir) { in DeleteFile() argument
116 if (!base::PathExists(file_path)) in DeleteFile()
118 if (!base::DeleteFile(file_path, false)) in DeleteFile()
124 base::File dir(file_path.DirName(), base::File::FLAG_READ); in DeleteFile()
137 uint32 VfsBackend::GetFileAttributes(const base::FilePath& file_path) { in GetFileAttributes() argument
139 uint32 attributes = ::GetFileAttributes(file_path.value().c_str()); in GetFileAttributes()
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/
Ddevtools_file_hashes.py57 def calculate_file_hash(file_path): argument
58 with open(file_path) as file:
67 for file_path in file_paths:
68 file_name = re.sub(".*/", "", file_path)
69 if calculate_file_hash(file_path) != hashes.get(file_name, ""):
70 result.append(file_path)
76 for file_path in file_paths:
77 file_name = re.sub(".*/", "", file_path)
78 hashes[file_name] = calculate_file_hash(file_path)
/external/chromium_org/chrome/browser/chromeos/drive/fileapi/
Dasync_file_util.cc138 base::FilePath file_path = util::ExtractDrivePathFromFileSystemUrl(url); in CreateOrOpen() local
139 if (file_path.empty()) { in CreateOrOpen()
149 file_path, file_flags, in CreateOrOpen()
162 base::FilePath file_path = util::ExtractDrivePathFromFileSystemUrl(url); in EnsureFileExists() local
163 if (file_path.empty()) { in EnsureFileExists()
171 file_path, true /* is_exlusive */, in EnsureFileExists()
185 base::FilePath file_path = util::ExtractDrivePathFromFileSystemUrl(url); in CreateDirectory() local
186 if (file_path.empty()) { in CreateDirectory()
194 file_path, exclusive, recursive, in CreateDirectory()
205 base::FilePath file_path = util::ExtractDrivePathFromFileSystemUrl(url); in GetFileInfo() local
[all …]
/external/chromium_org/net/base/
Dfilename_util.cc67 bool FileURLToFilePath(const GURL& url, base::FilePath* file_path) { in FileURLToFilePath() argument
68 *file_path = base::FilePath(); in FileURLToFilePath()
70 const_cast<base::FilePath::StringType&>(file_path->value()); in FileURLToFilePath()
143 base::FilePath* file_path) { in GenerateSafeFileName() argument
145 EnsureSafeExtension(mime_type, ignore_extension, file_path); in GenerateSafeFileName()
149 base::FilePath::StringType leaf_name = file_path->BaseName().value(); in GenerateSafeFileName()
153 *file_path = file_path->DirName(); in GenerateSafeFileName()
154 if (file_path->value() == base::FilePath::kCurrentDirectory) { in GenerateSafeFileName()
155 *file_path = base::FilePath(leaf_name); in GenerateSafeFileName()
157 *file_path = file_path->Append(leaf_name); in GenerateSafeFileName()
/external/chromium_org/chrome/browser/chromeos/drive/
Dfile_system_interface.h70 const base::FilePath& file_path,
106 const base::FilePath& file_path,
125 const base::FilePath& file_path)>
129 typedef base::Callback<void(FileError error, const base::FilePath& file_path)>
192 virtual void OpenFile(const base::FilePath& file_path,
250 virtual void Remove(const base::FilePath& file_path,
274 virtual void CreateFile(const base::FilePath& file_path,
286 virtual void TouchFile(const base::FilePath& file_path,
294 virtual void TruncateFile(const base::FilePath& file_path,
301 virtual void Pin(const base::FilePath& file_path,
[all …]
Ddummy_file_system.h23 virtual void OpenFile(const base::FilePath& file_path, in OpenFile() argument
34 virtual void Remove(const base::FilePath& file_path, in Remove() argument
42 virtual void CreateFile(const base::FilePath& file_path, in CreateFile() argument
46 virtual void TouchFile(const base::FilePath& file_path, in TouchFile() argument
50 virtual void TruncateFile(const base::FilePath& file_path, in TruncateFile() argument
53 virtual void Pin(const base::FilePath& file_path, in Pin() argument
55 virtual void Unpin(const base::FilePath& file_path, in Unpin() argument
57 virtual void GetFile(const base::FilePath& file_path, in GetFile() argument
59 virtual void GetFileForSaving(const base::FilePath& file_path, in GetFileForSaving() argument
62 const base::FilePath& file_path,
[all …]
/external/chromium_org/net/url_request/
Dfile_protocol_handler.cc26 base::FilePath file_path; in MaybeCreateJob() local
27 const bool is_file = FileURLToFilePath(request->url(), &file_path); in MaybeCreateJob()
31 !network_delegate->CanAccessFile(*request, file_path)) { in MaybeCreateJob()
42 file_path.EndsWithSeparator() && in MaybeCreateJob()
43 file_path.IsAbsolute()) { in MaybeCreateJob()
44 return new URLRequestFileDirJob(request, network_delegate, file_path); in MaybeCreateJob()
49 return new URLRequestFileJob(request, network_delegate, file_path, in MaybeCreateJob()
/external/chromium_org/content/browser/tracing/
Dtracing_controller_browsertest.cc63 const base::FilePath& file_path) { in DisableRecordingFileDoneCallbackTest() argument
65 EXPECT_TRUE(PathExists(file_path)); in DisableRecordingFileDoneCallbackTest()
67 base::GetFileSize(file_path, &file_size); in DisableRecordingFileDoneCallbackTest()
70 last_actual_recording_file_path_ = file_path; in DisableRecordingFileDoneCallbackTest()
84 base::Closure quit_callback, const base::FilePath& file_path) { in CaptureMonitoringSnapshotDoneCallbackTest() argument
86 EXPECT_TRUE(PathExists(file_path)); in CaptureMonitoringSnapshotDoneCallbackTest()
88 base::GetFileSize(file_path, &file_size); in CaptureMonitoringSnapshotDoneCallbackTest()
91 last_actual_monitoring_file_path_ = file_path; in CaptureMonitoringSnapshotDoneCallbackTest()
315 base::FilePath file_path; in IN_PROC_BROWSER_TEST_F() local
316 base::CreateTemporaryFile(&file_path); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/system_logs/
Ddebug_log_writer.cc43 const base::FilePath& file_path, in WriteDebugLogToFileCompleted() argument
51 base::Bind(base::IgnoreResult(&base::DeleteFile), file_path, false), in WriteDebugLogToFileCompleted()
52 base::Bind(callback, file_path, false)); in WriteDebugLogToFileCompleted()
57 callback.Run(file_path, true); in WriteDebugLogToFileCompleted()
64 const base::FilePath& file_path, in WriteDebugLogToFile() argument
69 LOG(ERROR) << "Can't create debug log file: " << file_path.AsUTF8Unsafe() in WriteDebugLogToFile()
81 file_path, in WriteDebugLogToFile()
205 const base::FilePath& file_path, in IntializeLogFile() argument
207 base::FilePath dir = file_path.DirName(); in IntializeLogFile()
215 file->Initialize(file_path, flags); in IntializeLogFile()
[all …]

12345678910>>...32