/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_os.py | 29 f = os.open(test_support.TESTFN, os.O_CREAT|os.O_RDWR) 34 first = os.open(test_support.TESTFN, os.O_CREAT|os.O_RDWR) 50 # close a fd that is open, and one that isn't 78 open(name, "w") 122 fp = open(name, 'w') 124 # open() failed, assert tmpfile() fails in the same way. 125 # Although open() raises an IOError and os.tmpfile() raises an 136 # open() worked, therefore, tmpfile() should work. Close our 172 # may not even be able to open a file in the root directory. 183 f = open(self.fname, 'wb' [all...] |
test_tempfile.py | 230 with support.swap_attr(io, "open", raise_OSError): 231 # test again with failing io.open() 237 open = io.open 239 fp = open(*args, **kwargs) 243 with support.swap_attr(io, "open", bad_writer): 413 fd = os.open(p, os.O_RDWR | os.O_CREAT) 415 self.failOnException("os.open") 588 os.close(os.open(self.name, self._bflags, 0600))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
trace.py | 242 pickle.load(open(self.infile, 'rb')) 353 open(self.outfile, 'wb'), 1) 361 outfile = open(path, "w") 363 print >> sys.stderr, ("trace: Could not open %r for writing: %s" 426 f = open(filename) 441 prog = open(filename, "rU").read() 798 with open(progname) as fp:
|
zipfile.py | 152 with open(filename, "rb") as fp: 503 Is returned by ZipFile.open(). 706 """ Class with methods to open, read, write, close, list zip files. 723 """Open the ZIP file with mode read "r", write "w" or append "a".""" 752 self.fp = open(file, modeDict[mode]) 756 self.fp = open(file, modeDict[mode]) 894 with self.open(zinfo.filename, "r") as f: 933 def open(self, name, mode="r", pwd=None): member in class:ZipFile [all...] |
imaplib.py | 161 # Open socket to server. 163 self.open(host, port) 221 def open(self, host = '', port = IMAP4_PORT): member in class:IMAP4 249 """Close I/O established in "open".""" 1151 def open(self, host = '', port = IMAP4_SSL_PORT): member in class:IMAP4.IMAP4_SSL 1226 def open(self, host = None, port = None): member in class:IMAP4_stream [all...] |
platform.py | 161 # able to open symlinks for reading 163 f = open(executable,'rb') 205 info = open('/var/adm/inst-log/info').readlines() 222 info = open('/etc/.installed').readlines() 332 f = open('/etc/'+file, 'r') 388 self.pipe = open(tmpfile,'rb') 690 # Open the registry key [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
ClientRulesEngine.java | 2 * Copyright (C) 2011 The Android Open Source Project 211 int result = d.open(); 350 if (dlg.open() == Window.OK) { 384 if (dialog.open() == Window.OK) { 443 int answer = dialog.open(); 529 if (dialog.open() == IDialogConstants.CANCEL_ID) { 621 if (dialog.open() == IDialogConstants.CANCEL_ID) {
|
/system/core/init/ |
devices.c | 2 * Copyright (C) 2007 The Android Open Source Project 747 loading_fd = open(loading, O_WRONLY); 751 data_fd = open(data, O_WRONLY); 756 fw_fd = open(file1, O_RDONLY); 758 fw_fd = open(file2, O_RDONLY); 760 fw_fd = open(file3, O_RDONLY); 770 INFO("firmware: could not open '%s' %d\n", uevent->firmware, errno); 915 fd = open(coldboot_done, O_WRONLY|O_CREAT, 0000);
|
/external/chromium_org/tools/stats_viewer/ |
stats_viewer.cs | 42 /// Attempt to open the stats file.
47 if (table.Open(kStatsTableName)) {
55 /// Close the open stats file.
124 // If the table isn't open, try to open it again.
349 bool rv = table.Open(dialog.FileName);
352 MessageBox.Show("Could not open statsfile: " + dialog.FileName);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
zipfile.py | 152 with open(filename, "rb") as fp: 503 Is returned by ZipFile.open(). 706 """ Class with methods to open, read, write, close, list zip files. 723 """Open the ZIP file with mode read "r", write "w" or append "a".""" 752 self.fp = open(file, modeDict[mode]) 756 self.fp = open(file, modeDict[mode]) 894 with self.open(zinfo.filename, "r") as f: 933 def open(self, name, mode="r", pwd=None): member in class:ZipFile [all...] |
imaplib.py | 161 # Open socket to server. 163 self.open(host, port) 221 def open(self, host = '', port = IMAP4_PORT): member in class:IMAP4 249 """Close I/O established in "open".""" 1151 def open(self, host = '', port = IMAP4_SSL_PORT): member in class:IMAP4.IMAP4_SSL 1226 def open(self, host = None, port = None): member in class:IMAP4_stream [all...] |
platform.py | 161 # able to open symlinks for reading 163 f = open(executable,'rb') 205 info = open('/var/adm/inst-log/info').readlines() 222 info = open('/etc/.installed').readlines() 332 f = open('/etc/'+file, 'r') 388 self.pipe = open(tmpfile,'rb') 690 # Open the registry key [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
pprof | 746 # OS X: open will use standard preference for SVG files. 747 system("/usr/bin/open", $fname); [all...] |
/external/chromium/net/tools/testserver/ |
testserver.py | 77 s = open(cert_path).read() 81 s = open(cert_path).read() 86 s = open(ca_file).read() 773 f = open(file_path, "rb") 783 f = open(headers_path, "r") 803 # Note this doesn't handle all valid byte range values (i.e. open ended 911 f = open(gif_path, "rb") [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
CameraTest.java | 2 * Copyright (C) 2008 The Android Open Source Project 145 mCamera = Camera.open(cameraId); 148 Log.e(TAG, "Fail to open camera." + e); 151 startDone.open(); 162 assertNotNull("Fail to open camera.", mCamera); 224 mPreviewDone.open(); 235 mPreviewDone.open(); 241 mPreviewDone.open(); 281 mSnapshotDone.open(); 303 mFocusDone.open(); [all...] |
/external/libppp/src/ |
bundle.c | 229 bundle->phys_type.open |= dl->physical->type; 232 if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL)) 233 != bundle->phys_type.open && bundle->session.timer.state == TIMER_STOPPED) 238 if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL)) 239 != bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED) 249 bundle->phys_type.all = bundle->phys_type.open = 0; 256 if ((bundle->phys_type.open & (PHYS_DEDICATED|PHYS_DDIAL)) 257 == bundle->phys_type.open) { 271 * If it's an LCP, adjust our phys_mode.open value and check the 310 * If it's an LCP, adjust our phys_type.open value and any timers [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
DatagramChannelTest.java | 76 this.channel1 = DatagramChannel.open(); 77 this.channel2 = DatagramChannel.open(); 137 * Test method for 'java.nio.channels.DatagramChannel.open()' 614 // checking open is before checking status. 854 // checking buffer before checking open [all...] |
/bionic/libc/bionic/ |
fts.c | 163 if (!ISSET(FTS_NOCHDIR) && (sp->fts_rfd = open(".", O_RDONLY, 0)) < 0) 288 if ((p->fts_symfd = open(".", O_RDONLY, 0)) < 0) { 378 open(".", O_RDONLY, 0)) < 0) { 517 if ((fd = open(".", O_RDONLY, 0)) < 0) 559 * Open the directory for reading. If this fails, we're done. 1023 if (fd < 0 && (newfd = open(path, O_RDONLY, 0)) < 0)
|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/tree/ |
wizard.rb | 136 [ :open, /\(/ ], 202 when :open then return parse_tree 211 CONTINUE_TYPES = [ :open, :identifier, :percent, :dot ] 214 @token_type != :open and return nil 220 when :open
|
/external/chromium_org/third_party/gtk+/gtk/ |
compose-parse.py | 245 gdkkeysymsh = open(filename_gdkkeysymsh, 'r') 312 keysymstxt = open(filename_keysymstxt, 'r') 435 """ Grab and open the compose file from upstream """ 438 composefile = open(filename_compose, 'r') 447 directory, and if so, open, then merge with upstream Compose file. 454 composefile_lookaside = open(FILENAME_COMPOSE_SUPPLEMENTARY, 'r') 859 unicodedatatxt = open(filename_unicodedatatxt, 'r') [all...] |
/external/chromium_org/third_party/lcov/bin/ |
genhtml | 874 open($handle, "|-", "gzip -c >'$filename'") 875 or die("ERROR: cannot open $filename for writing ". 880 open($handle, ">", $filename) 881 or die("ERROR: cannot open $filename for writing!\n"); [all...] |
/external/llvm/utils/llvm-build/llvmbuild/ |
main.py | 265 f = open(infos[0]._source_path) 279 f = open(file_path, "w") 291 ; This file is distributed under the University of Illinois Open Source 384 f = open(output_path, 'w') 507 f = open(output_path, 'w') 520 # This file is distributed under the University of Illinois Open Source 585 f = open(output_path, 'w') 598 # This file is distributed under the University of Illinois Open Source [all...] |
/external/sonivox/jet_tools/JetCreator/ |
JetFile.py | 8 Copyright (c) 2008 Android Open Source Project
383 # open the output file and write the header
384 output_file = open(self.config.filename, 'wb')
421 with open(self.config.app_data, 'rb') as f:
431 # open SMF file and read it
455 with open(segment.dump_file, 'w') as f:
484 # open SMF file and get size
485 lib_file = (open(library,'rb'))
723 cfgfile = open(configFile,'w')
[all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_tempfile.py | 230 with support.swap_attr(io, "open", raise_OSError): 231 # test again with failing io.open() 237 open = io.open 239 fp = open(*args, **kwargs) 243 with support.swap_attr(io, "open", bad_writer): 413 fd = os.open(p, os.O_RDWR | os.O_CREAT) 415 self.failOnException("os.open") 588 os.close(os.open(self.name, self._bflags, 0600))
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
PhotoCaptureActivity.java | 2 * Copyright (C) 2013 The Android Open Source Project 199 Camera camera = Camera.open(cameraId); 358 Camera camera = Camera.open(cameraId); 440 mCamera = Camera.open(cameraId);
|