HomeSort by relevance Sort by last modified time
    Searched refs:file_obj (Results 1 - 18 of 18) sorted by null

  /external/autotest/site_utils/
suite_preprocessor.py 42 with open(options.output_file, 'w') as file_obj:
43 file_obj.write('%r' % test_deps)
control_file_preprocessor.py 89 with open(options.output_file, 'w') as file_obj:
90 json.dump(suite_control_files, file_obj)
  /system/update_engine/scripts/update_payload/
test_utils.py 43 def _WriteInt(file_obj, size, is_unsigned, val):
51 file_obj: a file object
60 file_obj.write(struct.pack(common.IntPackingFmtStr(size, is_unsigned), val))
63 (file_obj.name, e))
212 def _WriteHeaderToFile(self, file_obj, manifest_len):
216 file_obj.write(payload.Payload._PayloadHeader._MAGIC)
217 _WriteInt(file_obj, payload.Payload._PayloadHeader._VERSION_SIZE, True,
219 _WriteInt(file_obj, payload.Payload._PayloadHeader._MANIFEST_LEN_SIZE, True,
222 def WriteToFile(self, file_obj, manifest_len=-1, data_blobs=None,
227 file_obj: a file object open for writin
    [all...]
common.py 107 def Read(file_obj, length, offset=None, hasher=None):
111 file_obj: an open file object
126 file_obj.seek(offset)
128 file_obj.seek(offset, 2)
131 data = file_obj.read(length)
133 raise PayloadError('error reading from file (%s): %s' % (file_obj.name, e))
138 (file_obj.name, len(data), length))
applier.py 34 def _VerifySha256(file_obj, expected_hash, name, length=-1):
38 file_obj: file object to read
53 data = file_obj.read(read_length)
71 def _ReadExtents(file_obj, extents, block_size, max_length=-1):
77 file_obj: file object
97 file_obj.seek(ex.start_block * block_size)
98 data.fromfile(file_obj, read_length)
105 def _WriteExtents(file_obj, data, extents, block_size, base_name):
111 file_obj: file object
129 file_obj.seek(ex.start_block * block_size
    [all...]
payload.py 23 def _ReadInt(file_obj, size, is_unsigned, hasher=None):
31 file_obj: a file object
43 common.Read(file_obj, size, hasher=hasher))[0]
  /external/autotest/server/hosts/
host_info.py 356 def json_serialize(info, file_obj, version=_CURRENT_SERIALIZATION_VERSION):
360 @param file_obj: A file like object to serialize info into.
369 return json.dump(info_json, file_obj, sort_keys=True, indent=4,
373 def json_deserialize(file_obj):
376 @param file_obj: a file like object containing a json_serialized()ed
381 deserialized_json = json.load(file_obj)
host_info_unittest.py 378 file_obj = cStringIO.StringIO()
379 host_info.json_serialize(info, file_obj)
380 file_obj.seek(0)
386 self.assertEqual(json.load(file_obj), expected_dict)
393 file_obj = cStringIO.StringIO()
394 host_info.json_serialize(info, file_obj)
395 file_obj.seek(0)
401 self.assertEqual(json.load(file_obj), expected_dict)
  /external/python/cpython3/Lib/test/test_importlib/source/
test_finder.py 184 with tempfile.NamedTemporaryFile() as file_obj:
185 finder = self.get_finder(file_obj.name)
  /external/chromium-trace/catapult/common/py_utils/py_utils/
cloud_storage_unittest.py 320 file_obj = self.fs.GetObject(hash_path)
321 file_obj.SetMTime(fetchts + 100)
  /external/python/cpython2/Lib/
subprocess.py     [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/
subprocess.py     [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/
subprocess.py     [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
subprocess.py     [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
subprocess.py     [all...]
  /external/python/cpython3/Lib/test/
test_urllib2.py     [all...]
  /external/valgrind/include/vki/
vki-solaris.h 721 #define vki_file_obj file_obj
    [all...]
  /external/valgrind/memcheck/tests/solaris/
scalar.stderr.exp     [all...]

Completed in 413 milliseconds