Searched refs:file_path (Results 1 - 25 of 198) sorted by relevance

12345678

/external/chromium-trace/catapult/telemetry/telemetry/internal/testing/
H A Dsystem_stub_test_module.py6 def TestOpen(file_path):
7 return open(file_path)
/external/chromium-trace/catapult/third_party/vinn/vinn/test_data/
H A Dprint_file_content.js9 file_path = sys.argv[1];
10 file_content = read(file_path);
11 print('Content of file ' + file_path + ' is ' + file_content);
/external/chromium-trace/catapult/telemetry/
H A Djson_format11 def GetFormattedJSONString(file_path):
12 with open(file_path, 'r') as f:
19 def ValidateJSONFormat(file_path):
20 with open(file_path, 'r') as f:
22 if file_content != GetFormattedJSONString(file_path):
25 (__file__, file_path))
26 print >> sys.stdout, ('%s passes the JSON format validation' % file_path)
29 def Format(file_path):
30 formatted_JSON_string = GetFormattedJSONString(file_path)
31 with open(file_path, '
[all...]
H A Dcloud_storage27 file_path = root
30 file_path = path
32 return file_path, hash_path
48 file_path, hash_path = _GetPaths(path)
50 if file_path in file_buckets:
58 file_buckets[file_path] = []
61 file_buckets[file_path].append(bucket)
103 for file_path, buckets in sorted(files.iteritems()):
106 print '%-11s %s' % (','.join(buckets), file_path)
108 print '%-11s %s' % ('not found', file_path)
[all...]
/external/skia/tools/
H A Dsanitize_source_files.py85 def TrailingWhitespaceRemover(line, file_path, line_number):
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number):
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number):
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path):
122 print 'Added exactly one newline to %s' % file_path
126 def SvnEOLChecker(file_content, file_path):
129 'svn propget svn:eol-style %s' % file_path)
[all...]
/external/v8/build/
H A Dgyp_helper.py14 def apply_gyp_environment_from_file(file_path):
16 if not os.path.exists(file_path):
18 with open(file_path, 'rU') as f:
23 e.filename = os.path.abspath(file_path)
54 var, behavior, os.path.abspath(file_path)
56 string_padding = max(len(var), len(file_path), len('result'))
58 print ' %s: %s' % (file_path.rjust(string_padding), file_val)
/external/libbrillo/brillo/
H A Dtest_helpers.h13 #include <base/files/file_path.h>
19 inline void ExpectFileEquals(const char* golden, const char* file_path) { argument
21 EXPECT_TRUE(base::ReadFileToString(base::FilePath(file_path), &contents));
H A Dfile_utils.h10 #include <base/files/file_path.h>
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
H A Dexceptions.py23 def __init__(self, file_path):
24 super(EmptyConfigError, self).__init__('Empty config at %s.' % file_path)
28 def __init__(self, file_path):
29 super(FileNotFoundError, self).__init__('No file found at %s' % file_path)
/external/libchrome/base/mac/
H A Dmach_logging.cc33 MachLogMessage::MachLogMessage(const char* file_path, argument
37 : LogMessage(file_path, line, severity),
49 BootstrapLogMessage::BootstrapLogMessage(const char* file_path, argument
53 : LogMessage(file_path, line, severity),
H A Dbundle_locations.h9 #include "base/files/file_path.h"
61 BASE_EXPORT void SetOverrideOuterBundlePath(const FilePath& file_path);
62 BASE_EXPORT void SetOverrideFrameworkBundlePath(const FilePath& file_path);
/external/autotest/client/bin/
H A Dsite_sysinfo_unittest.py46 def append_text_to_file(self, text, file_path):
50 @param file_path: path to the file.
53 dir_name = os.path.dirname(file_path)
56 with open(file_path, 'a') as f:
69 for file_name, file_path in zip(self.new_files,
71 self.append_text_to_file(file_name, file_path)
80 for file_name, file_path in zip(self.existing_files,
82 self.append_text_to_file(file_name, file_path)
91 for file_name, file_path in zip(self.existing_files+self.new_files,
93 file_path
[all...]
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
H A D__init__.py19 def _TransformFile(transform, file_path):
20 module = Module(file_path)
H A Dmodule.py10 def __init__(self, file_path):
11 self._file_path = file_path
17 def file_path(self): member in class:Module
/external/v8/gypfiles/
H A Dgyp_environment.py19 def apply_gyp_environment(file_path=None):
23 if not file_path or not os.path.exists(file_path):
25 file_contents = open(file_path).read()
29 e.filename = os.path.abspath(file_path)
42 var, os.path.abspath(file_path)
/external/webrtc/webrtc/base/objc/
H A DRTCLogging.mm39 NSString* RTCFileName(const char* file_path) {
41 [[NSString alloc] initWithBytesNoCopy:const_cast<char*>(file_path)
42 length:strlen(file_path)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/ec2/
H A Dkeypair.py81 file_path = os.path.join(directory_path, '%s.pem' % self.name)
82 if os.path.exists(file_path):
83 raise BotoClientError('%s already exists, it will not be overwritten' % file_path)
84 fp = open(file_path, 'wb')
87 os.chmod(file_path, 0o600)
/external/v8/build/android/
H A Demma_coverage_stats.py201 def _FindElements(self, file_path, xpath_selector):
205 file_path: String representing the path to the HTML file.
212 with open(file_path) as f:
260 for file_path, line_numbers in lines_for_coverage.iteritems():
261 file_coverage_dict = self.GetCoverageDictForFile(file_path, line_numbers)
263 file_coverage[file_path] = file_coverage_dict
266 'No code coverage data for %s, skipping.', file_path)
281 def GetCoverageDictForFile(self, file_path, line_numbers):
285 file_path: The path to the Java source file that we want to create the
294 if file_path no
[all...]
/external/chromium-trace/catapult/devil/devil/utils/
H A Dzip_utils.py24 file_path = os.path.join(dir_path, f)
26 logging.debug('file: %s -> %s', file_path, file_arc_path)
27 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED)
/external/chromium-trace/catapult/telemetry/telemetry/internal/results/
H A Dhtml2_output_formatter.py27 file_path = os.path.abspath(self._output_stream.name)
33 cloud_storage.PUBLIC_BUCKET, remote_path, file_path)
39 print 'View result at file://' + file_path
/external/autotest/site_utils/presubmit_hooks/
H A Dcheck_suite_scheduler.py25 return any (pattern.search(file_path)
26 for file_path in file_list.split('\n'))
/external/chromium-trace/catapult/third_party/vinn/vinn/
H A Dvinn_unittest.py81 file_path = self.GetTestFilePath('simple.js')
86 vinn.ExecuteFile(file_path, stdout=f)
93 file_path = self.GetTestFilePath('simple.js')
98 vinn.RunFile(file_path, stdout=f)
105 file_path = self.GetTestFilePath('print_file_content.js')
107 output = vinn.ExecuteFile(file_path, source_paths=[self.test_data_dir],
120 file_path = self.GetTestFilePath('load_simple_html.js')
121 output = vinn.ExecuteFile(file_path, source_paths=[self.test_data_dir])
130 file_path = self.GetTestFilePath('load_simple_js.js')
131 output = vinn.ExecuteFile(file_path, source_path
[all...]
/external/libchrome/base/files/
H A Dfile_unittest.cc23 FilePath file_path = temp_dir.path().AppendASCII("create_file_1"); local
38 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ);
45 File file(file_path, base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_READ);
53 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ);
66 file.Initialize(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ);
78 File file(file_path, base::File::FLAG_CREATE | base::File::FLAG_READ);
86 File file(file_path,
95 file_path = temp_dir.path().AppendASCII("create_file_2");
96 File file(file_path,
104 EXPECT_FALSE(base::PathExists(file_path));
110 FilePath file_path = temp_dir.path().AppendASCII("create_file"); local
128 FilePath file_path = temp_dir.path().AppendASCII("create_file_1"); local
155 FilePath file_path = temp_dir.path().AppendASCII("read_write_file"); local
227 FilePath file_path = temp_dir.path().AppendASCII("append_file"); local
275 FilePath file_path = temp_dir.path().AppendASCII("truncate_file"); local
390 FilePath file_path = temp_dir.path().AppendASCII("read_at_current_position"); local
414 FilePath file_path = temp_dir.path().AppendASCII("write_at_current_position"); local
437 FilePath file_path = temp_dir.path().AppendASCII("seek_file"); local
454 FilePath file_path = temp_dir.path().AppendASCII("file"); local
481 FilePath file_path = temp_dir.path().AppendASCII("file"); local
[all...]
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
H A Dfake_filesystem_test.py115 file_path = 'some_file1'
116 filesystem.CreateFile(file_path, contents='contents here1', inode=42)
117 self.assertEqual(42, fake_os.stat(file_path)[stat.ST_INO])
119 file_obj = filesystem.GetObject(file_path)
121 self.assertEqual(43, fake_os.stat(file_path)[stat.ST_INO])
590 file_path = 'foo/bar/baz'
591 self.filesystem.CreateFile(file_path)
592 self.assertRaises(OSError, self.os.listdir, file_path)
660 file_path = 'file1'
662 fileno = self.os.open(file_path, sel
[all...]
/external/chromium-trace/catapult/common/py_utils/py_utils/
H A Dcloud_storage_unittest.py151 file_path = 'test-file-path.wpr'
152 hash_path = file_path + '.sha1'
156 self.assertFalse(cloud_storage.GetIfChanged(file_path,
158 # hash_path exists, but file_path doesn't.
160 self.assertTrue(cloud_storage.GetIfChanged(file_path,
162 # hash_path and file_path exist, and have same hash.
163 self.CreateFiles([file_path])
164 self.assertFalse(cloud_storage.GetIfChanged(file_path,
166 # hash_path and file_path exist, and have different hashes.
168 self.assertTrue(cloud_storage.GetIfChanged(file_path,
[all...]

Completed in 1472 milliseconds

12345678