/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_urllib2.py | 228 def open(self, req, data=None,timeout=socket._GLOBAL_DEFAULT_TIMEOUT): member in class:MockOpener 472 self.assertRaises(URLError, o.open, scheme+"://example.com/") 486 r = o.open(req) 513 r = o.open("http://example.com/") 528 self.assertRaises(urllib2.URLError, o.open, req) 552 r = o.open(req) 574 r = o.open(req) 592 # response from opener.open is None, because there's no 687 f = open(TESTFN, "wb") 720 f = open(TESTFN, "wb" [all...] |
test_fileio.py | 119 self.assertRaises(ValueError, f.read, 10) # Open for reading 157 fd = os.open('.', os.O_RDONLY) 336 with open(TESTFN, "rb") as f: 362 # no obvious way to discover why open() failed. 410 f = open(TESTFN, 'wb') 413 f = open(TESTFN, 'ab') 416 f = open(TESTFN, 'rb') 438 # Issue #8438: try to open a filename containing surrogates. 465 fd = os.open(__file__, os.O_RDONLY)
|
test_zipimport.py | 81 f = open(TEMP_ZIP, "rb") 85 f = open(TEMP_ZIP, "wb") 410 open(TESTMOD, 'w+').close() 415 fd = os.open(TESTMOD, os.O_CREAT, 000) 427 fp = open(TESTMOD, 'w+') 435 fp = open(TESTMOD, 'w+')
|
/external/clang/www/demo/ |
index.cgi | 15 open( STDERR, ">&STDOUT" ) or die "can't redirect stderr to stdout"; 61 open( FILE, ">$name" ) or barf("Can't write to $name: $!"); 69 open( LOG, ">>$LOGFILE" ); 80 open( FILE, "$file" ) or barf("Can't read $file: $!"); 111 my $fh = $msg->open();
|
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/ |
SDL_gsevents.c | 237 /* Open only if not already opened */ 246 tty0_fd = open(tty0[i], O_WRONLY, 0); 258 keyboard_fd = open(vtpath, O_RDWR, 0); 268 tty0_fd = open("/dev/tty", O_RDWR, 0); 279 keyboard_fd = open("/dev/tty", O_RDWR); 291 SDL_SetError("Unable to open a console terminal"); 368 cmdline = open(path, O_RDONLY, 0); 501 mouse_fd = open(GPM_NODE_FIFO, O_RDONLY, 0); 512 mouse_fd = open(ps2mice[i], O_RDWR, 0); 514 mouse_fd = open(ps2mice[i], O_RDONLY, 0) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
mhlib.py | 25 f = mh.openfolder(name) # new open folder object 48 m = f.openmessage(n) # new open message object (costs a file descriptor) 140 f = open(fn, "w") 302 f = open(fullname, 'r') 324 if not f: f = open(fullname, 'w') 462 """Open a message -- returns a Message object.""" 492 'tofolder' is an open folder object.""" 550 # Open it to check that it exists 551 f = open(path) 582 # Open it to check that it exist [all...] |
urllib.py | 0 """Open an arbitrary URL. 16 The object returned by URLopener().open(file) will differ per 19 and close() methods work like those of open files. 87 return opener.open(url) 89 return opener.open(url, data) 117 """Class to open URLs. 178 def open(self, fullurl, data=None): member in class:URLopener 179 """Use URLopener().open(file) instead of open(file, 'r').""" 186 fp = open(filename, 'rb' [all...] |
gzip.py | 13 __all__ = ["GzipFile","open"] 27 def open(filename, mode="rb", compresslevel=9): function 94 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') 498 f = open(arg, "rb") 499 g = __builtin__.open(arg[:-3], "wb") 505 f = __builtin__.open(arg, "rb") 506 g = open(arg + ".gz", "wb")
|
mailbox.py | 347 f = open(os.path.join(self._path, subpath), 'r') 364 f = open(os.path.join(self._path, self._lookup(key)), 'r') 372 f = open(os.path.join(self._path, self._lookup(key)), 'rb') 434 os.close(os.open(maildirfolder_path, os.O_CREAT | os.O_WRONLY, 468 """Create a file in the tmp subdirectory and open and return it.""" 491 # Fall through to here if stat succeeded or open raised EEXIST. 565 f = open(self._path, 'rb+') 569 f = open(self._path, 'wb+') 573 f = open(self._path, 'rb') 695 self._file = open(self._path, 'rb+' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
mhlib.py | 25 f = mh.openfolder(name) # new open folder object 48 m = f.openmessage(n) # new open message object (costs a file descriptor) 140 f = open(fn, "w") 302 f = open(fullname, 'r') 324 if not f: f = open(fullname, 'w') 462 """Open a message -- returns a Message object.""" 492 'tofolder' is an open folder object.""" 550 # Open it to check that it exists 551 f = open(path) 582 # Open it to check that it exist [all...] |
urllib.py | 0 """Open an arbitrary URL. 16 The object returned by URLopener().open(file) will differ per 19 and close() methods work like those of open files. 87 return opener.open(url) 89 return opener.open(url, data) 117 """Class to open URLs. 178 def open(self, fullurl, data=None): member in class:URLopener 179 """Use URLopener().open(file) instead of open(file, 'r').""" 186 fp = open(filename, 'rb' [all...] |
gzip.py | 13 __all__ = ["GzipFile","open"] 27 def open(filename, mode="rb", compresslevel=9): function 94 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') 498 f = open(arg, "rb") 499 g = __builtin__.open(arg[:-3], "wb") 505 f = __builtin__.open(arg, "rb") 506 g = open(arg + ".gz", "wb")
|
mailbox.py | 347 f = open(os.path.join(self._path, subpath), 'r') 364 f = open(os.path.join(self._path, self._lookup(key)), 'r') 372 f = open(os.path.join(self._path, self._lookup(key)), 'rb') 434 os.close(os.open(maildirfolder_path, os.O_CREAT | os.O_WRONLY, 468 """Create a file in the tmp subdirectory and open and return it.""" 491 # Fall through to here if stat succeeded or open raised EEXIST. 565 f = open(self._path, 'rb+') 569 f = open(self._path, 'wb+') 573 f = open(self._path, 'rb') 695 self._file = open(self._path, 'rb+' [all...] |
/external/chromium/chrome/browser/resources/bookmark_manager/js/ |
main.js | 182 // Activate is handled by the open-in-same-window-command. 185 $('open-in-same-window-command').execute(); 914 * Helper function that updates the canExecute and labels for the open like 943 case 'open-in-new-tab-command': 948 case 'open-in-new-window-command': 952 case 'open-incognito-window-command': 1033 case 'open-in-new-tab-command': 1034 case 'open-in-background-tab-command': 1035 case 'open-in-new-window-command': 1036 case 'open-incognito-window-command' [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_pan.c | 359 /* open the clone device */ 362 if( (fd = open(clonedev, O_RDWR)) < 0 ) { 364 BTIF_TRACE_DEBUG2("could not open %s, err:%d", clonedev, errno); 549 /* debug("BTA_PAN_OPEN_EVT, open status:%d, bd_addr = [%02X:%02X:%02X:%02X:%02X:%02X]", */ 550 /* p_data->open.status, */ 551 /* p_data->open.bd_addr[0], p_data->open.bd_addr[1], p_data->open.bd_addr[2], */ 552 /* p_data->open.bd_addr[3], p_data->open.bd_addr[4], p_data->open.bd_addr[5]); * [all...] |
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/media/ |
player_testapi.js | 10 * To test the Video Player open a tab with the URL: 13 * To test the Audio Player open a tab with the URL: 73 * To test the video player open a tab with the url:
|
/external/chromium_org/third_party/libxml/src/ |
gentest.py | 453 input = open("testapi.c", "r") 455 input = open(srcPref + "testapi.c", "r") 456 test = open('testapi.c.new', 'w') 463 input = open("testapi.c", "r").read() 466 test = open('testapi.c.new', "r").read() 501 # Open the input API description 942 lst = open("missing.lst", "w")
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
Filter.java | 2 * Copyright (C) 2011 The Android Open Source Project 149 port.open(); 180 public void open(FilterContext context) { method in class:Filter 453 open(context); 512 outputPort.open(); 538 port.open(); 623 port.open();
|
/hardware/libhardware_legacy/wifi/ |
wifi.c | 2 * Copyright 2008, The Android Open Source Project 194 ALOGW("Could not open %s: %s", MODULE_FILE, strerror(errno)); 291 destfd = TEMP_FAILURE_RETRY(open(SUPP_ENTROPY_FILE, O_CREAT|O_RDWR, 0660)); 304 /* chmod is needed because open() didn't set permisions properly */ 337 srcfd = TEMP_FAILURE_RETRY(open(config_file, O_RDONLY)); 339 ALOGE("Cannot open \"%s\": %s", config_file, strerror(errno)); 384 destfd = TEMP_FAILURE_RETRY(open(config_file, O_RDWR, 0660)); 427 srcfd = TEMP_FAILURE_RETRY(open(SUPP_CONFIG_TEMPLATE, O_RDONLY)); 429 ALOGE("Cannot open \"%s\": %s", SUPP_CONFIG_TEMPLATE, strerror(errno)); 433 destfd = TEMP_FAILURE_RETRY(open(config_file, O_CREAT|O_RDWR, 0660)) [all...] |
/hardware/ti/wlan/mac80211/ti-utils/ |
nvs.c | 256 curr_nvs = open(nvs_file, O_RDONLY, S_IRUSR | S_IWUSR); 258 fprintf(stderr, "%s> Unable to open NVS file for reference " 551 new_nvs = open(NEW_NVS_NAME, 554 fprintf(stderr, "%s> Unable to open new NVS file\n", __func__); 655 new_nvs = open(NEW_NVS_NAME, 658 fprintf(stderr, "%s> Unable to open new NVS file\n", __func__); 693 new_nvs = open(NEW_NVS_NAME, 696 fprintf(stderr, "%s> Unable to open new NVS file\n", __func__); 763 new_nvs = open(NEW_NVS_NAME, 766 fprintf(stderr, "%s> Unable to open new NVS file\n", __func__) [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
Pop3StoreUnitTests.java | 2 * Copyright (C) 2008 The Android Open Source Project 182 // try to open it 184 mFolder.open(OpenMode.READ_ONLY); 196 * Test the operation of checkSettings(), which requires (a) a good open and (b) UIDL support. 226 * Test a strange case that causes open to proceed without mCapabilities 227 * open - fail with "-" error code 234 // First, preload an open that fails for some reason 240 folder.open(OpenMode.READ_WRITE); 358 mFolder.open(OpenMode.READ_WRITE); 380 * Test the scenario where the transport is "open" but not really (e.g. server closed). Tw [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/ |
dbobj.py | 44 def open(self, *args, **kwargs): member in class:DBEnv 45 return self._cobj.open(*args, **kwargs) 180 def open(self, *args, **kwargs): member in class:DB 181 return self._cobj.open(*args, **kwargs) 249 def open(self, *args, **kwargs): member in class:DBSequence 250 return self._cobj.open(*args, **kwargs)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_fileio.py | 119 self.assertRaises(ValueError, f.read, 10) # Open for reading 157 fd = os.open('.', os.O_RDONLY) 336 with open(TESTFN, "rb") as f: 362 # no obvious way to discover why open() failed. 410 f = open(TESTFN, 'wb') 413 f = open(TESTFN, 'ab') 416 f = open(TESTFN, 'rb') 438 # Issue #8438: try to open a filename containing surrogates. 465 fd = os.open(__file__, os.O_RDONLY)
|
test_zipimport.py | 81 f = open(TEMP_ZIP, "rb") 85 f = open(TEMP_ZIP, "wb") 410 open(TESTMOD, 'w+').close() 415 fd = os.open(TESTMOD, os.O_CREAT, 000) 427 fp = open(TESTMOD, 'w+') 435 fp = open(TESTMOD, 'w+')
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/ |
dbobj.py | 44 def open(self, *args, **kwargs): member in class:DBEnv 45 return self._cobj.open(*args, **kwargs) 180 def open(self, *args, **kwargs): member in class:DB 181 return self._cobj.open(*args, **kwargs) 249 def open(self, *args, **kwargs): member in class:DBSequence 250 return self._cobj.open(*args, **kwargs)
|