Home
last modified time | relevance | path

Searched refs:file_obj (Results 1 – 19 of 19) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/glacier/
Dvault.py136 def create_archive_from_file(self, filename=None, file_obj=None, argument
160 if not file_obj:
167 file_obj = open(filename, "rb")
174 data = file_obj.read(part_size)
199 file_obj=None): argument
232 if not file_obj:
233 file_obj = open(filename, "rb")
236 self, upload_id, part_size, file_obj, part_hash_map)
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/
Drules_parser.py41 def __init__(self, file_obj=None, allowed_imports=None): argument
51 self._rules = [] if file_obj is None else _Load(file_obj, allowed_imports)
122 def _Load(file_obj, allowed_imports): argument
132 entries = json.load(file_obj)
Dreplay.py119 with open(options.rules_path) as file_obj:
122 rules = rules_parser.Rules(file_obj, allowed_imports)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/
Drun_pylint.py54 with open(filename, 'r') as file_obj:
55 config.readfp(file_obj)
76 with open(target_filename, 'w') as file_obj:
77 test_cfg.write(file_obj)
/external/autotest/site_utils/
Dsuite_preprocessor.py38 with open(options.output_file, 'w') as file_obj:
39 file_obj.write('%r' % test_deps)
Dcontrol_file_preprocessor.py80 with open(options.output_file, 'w') as file_obj:
81 json.dump(suite_control_files, file_obj)
/external/chromium-trace/catapult/third_party/coverage/coverage/
Ddata.py263 def read_fileobj(self, file_obj): argument
269 data = self._read_raw_data(file_obj)
307 def _read_raw_data(cls, file_obj): argument
309 go_away = file_obj.read(len(cls._GO_AWAY))
312 return json.load(file_obj)
432 def write_fileobj(self, file_obj): argument
451 file_obj.write(self._GO_AWAY)
452 json.dump(file_data, file_obj)
Dpickle2json.py10 def pickle_read_raw_data(cls_unused, file_obj): argument
12 return pickle.load(file_obj)
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_tempfile_test.py125 file_obj = self.filesystem.GetObject(obj.name)
126 self.assertEqual('foo', file_obj.contents)
130 file_obj = self.filesystem.GetObject(obj.name)
131 self.assertEqual('foo', file_obj.contents)
Dfake_filesystem.py369 def AddOpenFile(self, file_obj): argument
382 self.open_files[open_fd] = file_obj
385 self.open_files.append(file_obj)
388 def CloseOpenFile(self, file_obj): argument
396 self.open_files[file_obj.filedes] = None
397 heapq.heappush(self.free_fd_heap, file_obj.filedes)
1030 file_obj = self.filesystem.GetObject(path)
1031 return file_obj.st_size
1100 file_obj = self.filesystem.GetObject(path)
1103 return file_obj.st_mtime
Dfake_filesystem_test.py119 file_obj = filesystem.GetObject(file_path)
120 file_obj.SetIno(43)
709 file_obj = fake_open(file_path)
710 fileno = file_obj.fileno()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/glacier/
Dtest_layer2.py293 sentinel.upload_id, file_obj=sentinel.file_obj)
295 self.vault, sentinel.upload_id, part_size, sentinel.file_obj,
/external/chromium-trace/catapult/third_party/pyfakefs/pyfakefs/
Dfake_filesystem.py387 def AddOpenFile(self, file_obj): argument
400 self.open_files[open_fd] = file_obj
403 self.open_files.append(file_obj)
406 def CloseOpenFile(self, file_obj): argument
414 self.open_files[file_obj.filedes] = None
415 heapq.heappush(self.free_fd_heap, file_obj.filedes)
1048 file_obj = self.filesystem.GetObject(path)
1049 return file_obj.st_size
1118 file_obj = self.filesystem.GetObject(path)
1121 return file_obj.st_mtime
/external/autotest/client/common_lib/
Dbase_utils.py1021 for file_obj in read_ready:
1022 bg_job, is_stdout = reverse_dict[file_obj]
1025 for file_obj in write_ready:
1028 bg_job = reverse_dict[file_obj]
1029 file_obj.write(bg_job.string_stdin[:512])
1033 file_obj.close()
1034 write_list.remove(file_obj)
1035 del reverse_dict[file_obj]
/external/chromium-trace/catapult/third_party/gsutil/third_party/python-gflags/
Dgflags.py1572 file_obj = open(filename, 'r')
1576 line_list = file_obj.readlines()
1577 file_obj.close()
/external/chromium-trace/catapult/third_party/python_gflags/
Dgflags.py1572 file_obj = open(filename, 'r')
1576 line_list = file_obj.readlines()
1577 file_obj.close()
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Dclient.py1325 with open(filename) as file_obj:
1326 client_credentials = json.load(file_obj)
/external/valgrind/include/vki/
Dvki-solaris.h656 #define vki_file_obj file_obj
/external/valgrind/memcheck/tests/solaris/
Dscalar.stderr.exp2811 Syscall param port(file_obj) points to unaddressable byte(s)
2857 Syscall param port(file_obj) points to unaddressable byte(s)