/external/python/cpython3/Lib/test/ |
D | test_dbm_dumb.py | 35 f = dumbdbm.open(_fname, 'c') 47 f = dumbdbm.open(_fname, 'c', 0o637) 65 f = dumbdbm.open(_fname) 73 f = dumbdbm.open(_fname, 'w') 83 f = dumbdbm.open(_fname, 'r') 101 f = dumbdbm.open(_fname) 106 f = dumbdbm.open(_fname) 113 f = dumbdbm.open(_fname) 117 f = dumbdbm.open(_fname) 123 f = dumbdbm.open(_fname, 'r') [all …]
|
D | make_ssl_certs.py | 120 with open(req_file, 'w') as f: 149 with open(cert_file, 'r') as f: 151 with open(key_file, 'r') as f: 165 with open(os.path.join('cadir','index.txt'),'a+') as f: 167 with open(os.path.join('cadir','crl.txt'),'a+') as f: 169 with open(os.path.join('cadir','index.txt.attr'),'w+') as f: 204 with open('ssl_cert.pem', 'w') as f: 206 with open('ssl_key.pem', 'w') as f: 212 with open('keycert.pem', 'w') as f: 216 with open('keycert.passwd.pem', 'a+') as f: [all …]
|
D | test_file.py | 18 self.f = self.open(TESTFN, 'wb') 46 self.f = self.open(TESTFN, 'rb') 54 self.f = self.open(TESTFN, 'r') 63 self.f = self.open(TESTFN, 'rb') 133 open = io.open variable in CAutoFileTests 136 open = staticmethod(pyio.open) variable in PyAutoFileTests 146 self.open(TESTFN, 'wb').close() 149 f = self.open(TESTFN, mode) 160 f = self.open(TESTFN, bad_mode) 177 f = self.open(TESTFN, 'wb', s) [all …]
|
D | test_tarfile.py | 49 open = io.FileIO variable in TarTest 60 open = gzip.GzipFile if gzip else None variable in GzipTest 67 open = bz2.BZ2File if bz2 else None variable in Bz2Test 74 open = lzma.LZMAFile if lzma else None variable in LzmaTest 83 self.tar = tarfile.open(self.tarname, mode=self.mode, 104 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1: 122 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1: 131 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj: 230 self.tar = tarfile.open(self.tarname, mode=self.mode) 325 with tarfile.open(tmpname, self.mode.replace("r", "w")): [all …]
|
D | audiotests.py | 67 f = self.fout = self.module.open(testfile, 'wb') 75 with self.module.open(testfile, 'rb') as f: 94 with self.module.open(TESTFN, 'wb'): 97 with open(TESTFN, 'wb') as testfile: 98 with self.module.open(testfile): 102 with open(TESTFN, 'wb') as testfile: 103 with self.module.open(testfile) as f: 109 with open(TESTFN, 'rb') as testfile: 110 with self.module.open(testfile) as f: 123 with self.module.open(TESTFN, 'wb') as f: [all …]
|
D | test_gzip.py | 322 with open(self.filename, 'rb') as fRead: 387 with open(self.filename, "ab") as f: 437 fd = os.open(self.filename, os.O_WRONLY | os.O_CREAT) 444 with open(self.filename, "r+b") as f: 456 with open(self.filename, mode) as f: 462 with open(self.filename, mode) as f: 536 with gzip.open(self.filename, "wb") as f: 538 with gzip.open(self.filename, "rb") as f: 545 with gzip.open(self.filename, "wb") as f: 547 with open(self.filename, "rb") as f: [all …]
|
D | test_dbm_gnu.py | 20 self.g = gdbm.open(filename, 'c') 47 self.assertRaises(gdbm.error, gdbm.open, filename, 'r') 49 self.g = gdbm.open(filename, 'c') 53 self.assertRaises(gdbm.error, lambda: gdbm.open(filename, 'rx').close()) 61 self.g = gdbm.open(filename, mode) 68 self.g = gdbm.open(filename, mode + flag) 72 self.g = gdbm.open(filename, 'c') 93 with gdbm.open(filename, 'c') as db: 96 with gdbm.open(filename, 'r') as db: 105 with gdbm.open(filename, 'c') as db: [all …]
|
D | test_aifc.py | 154 self.f = aifc.open(findfile('Sine-1000Hz-300ms.aif')) 162 self.f = aifc.open(non_aifc_file, 'rb') 169 self.fout = aifc.open(TESTFN, 'wb') 172 f = self.f = aifc.open(TESTFN, 'wb') 177 f = self.f = aifc.open(TESTFN, 'rb') 188 fout = aifc.open(io.BytesIO(), 'wb') 197 fout = aifc.open(io.BytesIO(), 'wb') 206 fout = self.fout = aifc.open(TESTFN, 'wb') 213 f = self.f = aifc.open(TESTFN, 'rb') 257 aifc.open(TESTFN, 'wrong_mode') [all …]
|
D | test_pipes.py | 26 f = t.open(TESTFN, 'w') 29 with open(TESTFN) as f: 35 with open(TESTFN, 'w') as f: 40 with open(TESTFN2) as f: 46 with open(TESTFN, 'w') as f: 50 f = t.open(TESTFN, 'r') 59 with open(TESTFN, 'w') as f: 61 with open(TESTFN2, 'w') as f: 65 with open(TESTFN2) as f: 71 with open(TESTFN, 'w') as f: [all …]
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 182 HttpURLConnection conn = client.open(url); in assertCached() 223 HttpURLConnection urlConnection = client.open(server.getUrl("/")); in testResponseCaching() 233 urlConnection = client.open(server.getUrl("/")); // cached! in testResponseCaching() 254 HttpsURLConnection c1 = (HttpsURLConnection) client.open(server.getUrl("/")); in secureResponseCaching() 266 HttpsURLConnection c2 = (HttpsURLConnection) client.open(server.getUrl("/")); // cached! in secureResponseCaching() 292 HttpURLConnection connection = client.open(server.getUrl("/")); in responseCachingAndRedirects() 295 connection = client.open(server.getUrl("/")); // cached! in responseCachingAndRedirects() 309 assertEquals("ABC", readAscii(client.open(server.getUrl("/foo")))); in redirectToCachedResult() 314 assertEquals("ABC", readAscii(client.open(server.getUrl("/bar")))); in redirectToCachedResult() 320 assertEquals("DEF", readAscii(client.open(server.getUrl("/baz")))); in redirectToCachedResult() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_tarfile.py | 46 self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1") 64 fobj1 = open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") 65 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") as fobj1: 81 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") as fobj1: 90 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj: 166 self.tar = tarfile.open(self.tarname, mode=self.mode) 243 with tarfile.open(tmpname, self.mode.replace("r", "w")): 246 tar = tarfile.open(tmpname, self.mode) 259 with open(tmpname, "wb"): 261 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode) [all …]
|
D | test_file.py | 23 self.f = self.open(TESTFN, 'wb') 51 self.f = self.open(TESTFN, 'rb') 59 self.f = self.open(TESTFN, 'r') 68 self.f = self.open(TESTFN, 'rb') 139 open = io.open variable in CAutoFileTests 142 open = staticmethod(pyio.open) variable in PyAutoFileTests 152 self.open(TESTFN, 'wb').close() 155 f = self.open(TESTFN, mode) 166 f = self.open(TESTFN, bad_mode) 183 f = self.open(TESTFN, 'wb', s) [all …]
|
D | test_dumbdbm.py | 34 f = dumbdbm.open(_fname, 'c') 46 f = dumbdbm.open(_fname, 'c', 0637) 64 f = dumbdbm.open(_fname) 72 f = dumbdbm.open(_fname, 'w') 79 f = dumbdbm.open(_fname, 'r') 85 f = dumbdbm.open(_fname) 91 f = dumbdbm.open(_fname) 95 f = dumbdbm.open(_fname) 102 f = dumbdbm.open(_fname) 108 data = open(_fname + '.dir').read() [all …]
|
D | make_ssl_certs.py | 100 with open(req_file, 'w') as f: 121 with open(cert_file, 'r') as f: 123 with open(key_file, 'r') as f: 137 with open(os.path.join('cadir','index.txt'),'a+') as f: 139 with open(os.path.join('cadir','crl.txt'),'a+') as f: 141 with open(os.path.join('cadir','index.txt.attr'),'w+') as f: 164 with open('ssl_cert.pem', 'w') as f: 166 with open('ssl_key.pem', 'w') as f: 172 with open('keycert.pem', 'w') as f: 176 with open('keycert.passwd.pem', 'a+') as f: [all …]
|
/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_new_test.c | 50 result = open("/etc/fstab", O_RDONLY); in test_read_etc_fstab() 55 result = open("/dev/null", O_WRONLY); in test_write_dev_null() 141 int fd = open("/dev/null", O_RDWR); in test_ioctl_dev_null() 200 result = open("/tmp/testfile0", O_RDONLY, 0600); in test_file_open_0() 205 result = open("/tmp/testfile1", O_CREAT | O_RDONLY, 0600); in test_file_open_1() 210 result = open("/tmp/testfile2", O_TRUNC | O_RDONLY, 0600); in test_file_open_2() 215 result = open("/tmp/testfile3", O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_3() 220 result = open("/tmp/testfile4", O_APPEND | O_RDONLY, 0600); in test_file_open_4() 225 result = open("/tmp/testfile5", O_APPEND | O_CREAT | O_RDONLY, 0600); in test_file_open_5() 230 result = open("/tmp/testfile6", O_APPEND | O_TRUNC | O_RDONLY, 0600); in test_file_open_6() [all …]
|
D | tomoyo_rewrite_test.c | 71 close(open(REWRITE_PATH, O_WRONLY | O_APPEND | O_CREAT, 0600)); in stage_rewrite_test() 77 fd = open(REWRITE_PATH, O_RDONLY); in stage_rewrite_test() 82 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 88 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test() 93 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC); in stage_rewrite_test() 98 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC | O_APPEND); in stage_rewrite_test() 105 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 122 fd = open(REWRITE_PATH, O_RDONLY); in stage_rewrite_test() 127 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 132 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test() [all …]
|
D | tomoyo_new_file_test.c | 190 fd = open("/dev/null", O_RDONLY); in stage_file_test() 195 fd = open("/dev/null", O_RDONLY); in stage_file_test() 202 fd = open("/dev/null", O_RDONLY); in stage_file_test() 207 fd = open("/dev/null", O_RDONLY); in stage_file_test() 214 fd = open("/dev/null", O_RDONLY); in stage_file_test() 219 fd = open("/dev/null", O_RDONLY); in stage_file_test() 226 fd = open("/dev/null", O_RDONLY); in stage_file_test() 231 fd = open("/dev/null", O_RDONLY); in stage_file_test() 252 fd = open(filename, O_WRONLY); in stage_file_test() 257 fd = open(filename, O_WRONLY); in stage_file_test() [all …]
|
/external/bcc/tools/ |
D | funcslower_example.txt | 6 failed. For example, trace the open() function in libc when it is slower than 9 # ./funcslower c:open -u 1 12 less 27074 33.77 3 c:open 13 less 27074 9.96 ffffffffffffffff c:open 14 less 27074 5.92 ffffffffffffffff c:open 15 less 27074 15.88 ffffffffffffffff c:open 16 less 27074 8.89 3 c:open 17 less 27074 15.89 3 c:open 18 sh 27075 20.97 4 c:open 19 bash 27075 20.14 4 c:open [all …]
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | lock_unittest.py | 16 with open(file_name, 'a') as f: 28 with open(read_file, 'r') as f: 31 with open(write_file, 'a') as f2: 37 with open(target_file, 'r') as f: 40 with open(status_file, 'w') as f2: 43 with open(status_file, 'w') as f2: 70 with open(self.temp_file_path, 'r') as f: 80 with open(self.temp_file_path, 'w') as f: 82 with open(self.temp_file_path, 'r') as f: 99 with open(temp_write_file, 'r') as f: [all …]
|
/external/clang/test/Analysis/ |
D | unix-api.c | 11 int open(const char *, int, ...); 16 fd = open(path, O_RDONLY); // no-warning in open_1() 24 …fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than three ar… in open_2() 31 fd = open(path, O_RDONLY, NULL); // expected-warning{{Third argument to 'open' is not an integer}} in open_3() 38 fd = open(path, O_RDONLY, ""); // expected-warning{{Third argument to 'open' is not an integer}} in open_4() 48 fd = open(path, O_RDONLY, st); // expected-warning{{Third argument to 'open' is not an integer}} in open_5() 58 fd = open(path, O_RDONLY, st.val); // no-warning in open_6() 65 …fd = open(path, O_RDONLY, &open); // expected-warning{{Third argument to 'open' is not an integer}} in open_7() 72 fd = open(path, O_RDONLY, 0.0f); // expected-warning{{Third argument to 'open' is not an integer}} in open_8()
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/ |
D | tDomain_creation_deletion.py | 94 f_Domains_Backup = open("f_Domains_Backup", "w") 97 f_Domains_Backup = open("f_Domains_Backup", "r") 120 f_Domains = open("f_Domains", "w") 124 f_Domains = open("f_Domains", "r") 133 f_Domains = open("f_Domains", "r") 134 f_Domains_Backup = open("f_Domains_Backup", "r") 172 f_Domains_Backup = open("f_Domains_Backup", "w") 175 f_Domains_Backup = open("f_Domains_Backup", "r") 198 f_Domains = open("f_Domains", "w") 202 f_Domains = open("f_Domains", "r") [all …]
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Functions/ |
D | tFunction_Sync.py | 136 init_filesystem_01 = open(self.filesystem_01).read()[:-1] 137 init_filesystem_02 = open(self.filesystem_02).read()[:-1] 138 init_filesystem_03 = open(self.filesystem_03).read()[:-1] 158 …assert open(self.filesystem_01).read()[:-1] != init_filesystem_01, log.F("FILESYSTEM : parameter %… 160 …assert open(self.filesystem_02).read()[:-1] != init_filesystem_02, log.F("FILESYSTEM : parameter %… 162 …assert open(self.filesystem_03).read()[:-1] != init_filesystem_03, log.F("FILESYSTEM : parameter %… 176 …assert open(self.filesystem_01).read()[:-1] != init_filesystem_01, log.F("FILESYSTEM : parameter %… 178 …assert open(self.filesystem_02).read()[:-1] != init_filesystem_02, log.F("FILESYSTEM : parameter %… 180 …assert open(self.filesystem_03).read()[:-1] != init_filesystem_03, log.F("FILESYSTEM : parameter %… 211 init_filesystem_01 = open(self.filesystem_01).read()[:-1] [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | URLConnectionTest.java | 135 connection = client.open(server.getUrl("/")); in requestHeaders() 194 connection = client.open(server.getUrl("/")); in getRequestPropertyReturnsLastValue() 207 connection = client.open(server.getUrl("/")); in responseHeaders() 237 connection = client.open(server.getUrl("/")); in serverSendsInvalidResponseHeaders() 248 connection = client.open(server.getUrl("/")); in serverSendsInvalidCodeTooLarge() 259 connection = client.open(server.getUrl("/")); in serverSendsInvalidCodeNotANumber() 270 connection = client.open(server.getUrl("/")); in serverSendsUnnecessaryWhitespace() 282 connection = client.open(url); in connectRetriesUntilConnectedOrFailed() 311 connection = client.open(server.getUrl("/def")); in testRequestBodySurvivesRetries() 322 connection = client.open(server.getUrl("/")); in getErrorStreamOnSuccessfulRequest() [all …]
|
/external/fonttools/Tests/ufoLib/ |
D | UFOConversion_test.py | 7 from io import open 73 with open(metainfoPath1, "rb") as f: 75 with open(metainfoPath2, "rb") as f: 78 with open(fontinfoPath1, "rb") as f: 81 with open(kerningPath1, "rb") as f: 83 with open(kerningPath2, "rb") as f: 86 with open(groupsPath1, "rb") as f: 88 with open(groupsPath2, "rb") as f: 91 with open(libPath1, "rb") as f: 93 with open(libPath2, "rb") as f: [all …]
|
/external/u-boot/tools/dtoc/ |
D | test_dtoc.py | 124 with open(output) as infile: 129 with open(output) as infile: 138 with open(output) as infile: 162 with open(output) as infile: 240 with open(output) as infile: 252 with open(output) as infile: 302 with open(output) as infile: 313 with open(output) as infile: 332 with open(output) as infile: 347 with open(output) as infile: [all …]
|