Home
last modified time | relevance | path

Searched refs:_file (Results 1 – 25 of 80) sorted by relevance

1234

/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dtrace_test.py21 self._file = None
29 self._file = open(filename, 'a+')
30 trace_enable(self._file)
35 e = ParsedTraceEvents(trace_filename=self._file.name)
36 self._file.close()
37 self._file = None
42 return self._file.name
47 if self._file:
48 self._file.close()
/external/python/cpython3/Lib/
Daifc.py306 _file = None # Set here since __del__ checks it variable in Aifc_read
313 self._file = file
329 chunk = Chunk(self._file)
370 return self._file
377 file = self._file
379 self._file = None
557 _file = None # Set here since __del__ checks it variable in Aifc_write
576 self._file = file
731 self._file.write(data)
742 if self._file is None:
[all …]
Dsunau.py169 if self._file:
179 self._file = file
225 return self._file
273 data = self._file.read()
275 data = self._file.read(nframes * self._framesize)
286 self._file.seek(self._data_pos)
297 self._file.seek(self._data_pos + pos * self._framesize)
301 file = self._file
303 self._file = None
319 if self._file:
[all …]
Dmailbox.py592 self._file = f
640 _lock_file(self._file)
646 _unlock_file(self._file)
655 _sync_flush(self._file)
666 self._file.seek(0, 2)
667 cur_len = self._file.tell()
679 self._file.seek(start)
683 buffer = self._file.read(min(4096,
684 stop - self._file.tell()))
697 self._file.close()
[all …]
Dwave.py129 self._file = Chunk(file, bigendian = 0)
130 if self._file.getname() != b'RIFF':
132 if self._file.read(4) != b'WAVE':
139 chunk = Chunk(self._file, bigendian = 0)
183 return self._file
190 self._file = None
315 self._file = file
433 self._file.write(data)
444 if self._file:
448 self._file.flush()
[all …]
Dfileinput.py91 if _state and _state._file:
208 self._file = None
252 if not self._file:
284 file = self._file
285 self._file = None
308 if not self._file:
323 self._file = None
329 self._file = getattr(sys.stdin, 'buffer', sys.stdin)
331 self._file = sys.stdin
343 self._file = open(self._backupfilename, self._mode)
[all …]
Dtempfile.py634 self._file = _io.BytesIO()
636 self._file = _io.TextIOWrapper(_io.BytesIO(),
654 file = self._file
655 newfile = self._file = TemporaryFile(**self._TemporaryFileArgs)
674 if self._file.closed:
679 self._file.close()
683 return self._file.__iter__()
686 self._file.close()
690 return self._file.closed
694 return self._file.encoding
[all …]
/external/python/cpython2/Lib/
Daifc.py291 _file = None # Set here since __del__ checks it variable in Aifc_read
299 self._file = file
315 chunk = Chunk(self._file)
362 return self._file
375 self._file.close()
574 _file = None # Set here since __del__ checks it variable in Aifc_write
590 self._file = file
608 if self._file:
737 self._file.write(data)
748 if self._file is None:
[all …]
Dsunau.py161 if self._file:
165 self._file = file
212 return self._file
260 data = self._file.read()
262 data = self._file.read(nframes * self._framesize)
273 self._file.seek(self._data_pos)
284 self._file.seek(self._data_pos + pos * self._framesize)
288 self._file = None
299 if self._file:
303 self._file = file
[all …]
Dmailbox.py582 self._file = f
631 _lock_file(self._file)
637 _unlock_file(self._file)
646 _sync_flush(self._file)
657 self._file.seek(0, 2)
658 cur_len = self._file.tell()
670 self._file.seek(start)
674 buffer = self._file.read(min(4096,
675 stop - self._file.tell()))
688 self._file.close()
[all …]
Dtempfile.py528 self._file = _StringIO()
541 file = self._file
542 newfile = self._file = TemporaryFile(*self._TemporaryFileArgs)
557 if self._file.closed:
562 self._file.close()
566 return self._file.__iter__()
569 self._file.close()
573 return self._file.closed
577 return self._file.fileno()
580 self._file.flush()
[all …]
Dwave.py129 self._file = Chunk(file, bigendian = 0)
130 if self._file.getname() != 'RIFF':
132 if self._file.read(4) != 'WAVE':
139 chunk = Chunk(self._file, bigendian = 0)
176 return self._file
183 self._file = None
318 self._file = file
433 data.tofile(self._file)
438 self._file.write(data)
449 if self._file:
[all …]
Dfileinput.py94 if _state and _state._file:
209 self._file = None
241 if not self._file:
266 file = self._file
267 self._file = None
290 if not self._file:
302 self._file = None
307 self._file = sys.stdin
317 self._file = open(self._backupfilename, self._mode)
319 perm = os.fstat(self._file.fileno()).st_mode
[all …]
/external/python/oauth2client/oauth2client/contrib/
Dmultistore_file.py215 self._file = locked_file.LockedFile(filename, 'r+', 'r')
292 if not os.path.exists(self._file.filename()):
295 open(self._file.filename(), 'a+b').close()
303 self._file.open_and_lock()
318 if not self._file.is_locked():
324 'valid for this run.', self._file.filename())
326 if os.path.getsize(self._file.filename()) == 0:
341 self._file.unlock_and_close()
353 self._file.file_handle().seek(0)
354 return json.load(self._file.file_handle())
[all …]
Dmultiprocess_file_storage.py198 self._file = None
208 if not self._file:
211 loaded_credentials = _load_credentials_file(self._file)
221 _write_credentials_file(self._file, self._credentials)
230 self._file = open(self._filename, 'r+')
239 self._file = open(self._filename, 'r')
241 self._file = None
247 if self._file is not None:
248 self._file.close()
249 self._file = None
/external/curl/docs/libcurl/
DCMakeLists.txt6 foreach(_file IN LISTS ${_listname})
7 if(_file STREQUAL "libcurl-symbols.3")
9 set(_srcfile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
11 set(_srcfile "${CMAKE_CURRENT_SOURCE_DIR}/${_file}")
14 string(REPLACE ".3" ".html" _htmlfile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
21 string(REPLACE ".3" ".pdf" _pdffile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
22 string(REPLACE ".3" ".ps" _psfile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
/external/lzma/CPP/7zip/UI/Console/
DBenchCon.cpp12 FILE *_file; member
21 fputs(s, _file); in Print()
26 fputc('\n', _file); in NewLine()
38 callback._file = f; in BenchCon()
/external/autotest/client/cros/power/
Dpower_rapl.py284 self._file = open(root + '/energy_uj', 'r')
293 self._file.close()
299 self._file.seek(0)
300 return int(self._file.read().rstrip())
336 self._file = open(file, 'r')
342 self._file.close()
350 self._file.seek(0)
351 return int(self._file.read().rstrip()) / 1000000.
/external/python/setuptools/setuptools/
Dsandbox.py22 _file = file variable
24 _file = None variable
274 if _file:
275 builtins.file = self._file
281 if _file:
282 builtins.file = _file
315 if _file:
316 _file = _mk_single_path_wrapper('file', _file) variable in AbstractSandbox
409 if _file:
411 def _file(self, path, mode='r', *args, **kw): member in DirectorySandbox
[all …]
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/
DANTLRFileStream.as8 protected var _file:File;
15 _file = file;
33 return _file.name;
/external/python/google-api-python-client/googleapiclient/discovery_cache/
Dfile_cache.py87 self._file = os.path.join(tempfile.gettempdir(), FILENAME)
88 f = LockedFile(self._file, 'a+', 'r')
101 f = LockedFile(self._file, 'r+', 'r')
120 f = LockedFile(self._file, 'r+', 'r')
/external/emma/core/java12/com/vladium/emma/instr/
DInstrProcessor.java92 final File _file = new File (fileName); in setMetaOutFile() local
94 if (_file.exists () && ! _file.isFile ()) in setMetaOutFile()
95 … throw new IllegalArgumentException ("not a file: [" + _file.getAbsolutePath () + "]"); in setMetaOutFile()
97 m_mdataOutFile = _file; in setMetaOutFile()
/external/protobuf/cmake/
Dprotobuf-config.cmake.in58 foreach(_file ${_source_list})
59 if(_file MATCHES "proto$")
60 list(APPEND protobuf_generate_PROTOS ${_file})
72 foreach(_file ${protobuf_generate_PROTOS})
73 get_filename_component(_abs_file ${_file} ABSOLUTE)
/external/toolchain-utils/
Dfile_lock_machine.py105 self._file = None
162 self._file = open(self._filepath, 'a+')
163 self._file.seek(0, os.SEEK_SET)
165 if fcntl.flock(self._file.fileno(), fcntl.LOCK_EX) == -1:
169 desc = json.load(self._file)
196 self._file.truncate(0)
197 self._file.write(json.dumps(self._description.__dict__, skipkeys=True))
198 self._file.close()
/external/webrtc/webrtc/voice_engine/test/auto_test/
Dvoe_standard_test.h66 _file(false), in SubAPIManager()
84 _file = true; in SubAPIManager()
111 bool _externalMedia, _file, _hardware; variable

1234