/external/chromium-trace/catapult/telemetry/telemetry/internal/testing/ |
H A D | system_stub_test_module.py | 6 def TestOpen(file_path): 7 return open(file_path)
|
/external/chromium-trace/catapult/third_party/vinn/vinn/test_data/ |
H A D | print_file_content.js | 9 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 D | json_format | 11 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 D | cloud_storage | 27 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 D | sanitize_source_files.py | 85 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 D | gyp_helper.py | 14 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 D | test_helpers.h | 13 #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 D | file_utils.h | 10 #include <base/files/file_path.h>
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
H A D | exceptions.py | 23 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 D | mach_logging.cc | 33 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 D | bundle_locations.h | 9 #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 D | site_sysinfo_unittest.py | 46 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__.py | 19 def _TransformFile(transform, file_path): 20 module = Module(file_path)
|
H A D | module.py | 10 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 D | gyp_environment.py | 19 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 D | RTCLogging.mm | 39 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 D | keypair.py | 81 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 D | emma_coverage_stats.py | 201 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 D | zip_utils.py | 24 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 D | html2_output_formatter.py | 27 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 D | check_suite_scheduler.py | 25 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 D | vinn_unittest.py | 81 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 D | file_unittest.cc | 23 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 D | fake_filesystem_test.py | 115 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 D | cloud_storage_unittest.py | 151 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...] |