Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 5109) sorted by relevance

12345678910>>...205

/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java182 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/cpython3/Lib/test/
Dtest_dbm_dumb.py36 f = dumbdbm.open(_fname, 'c')
48 f = dumbdbm.open(_fname, 'c', 0o637)
66 f = dumbdbm.open(_fname)
74 f = dumbdbm.open(_fname, 'w')
81 f = dumbdbm.open(_fname, 'r')
93 f = dumbdbm.open(_fname)
98 f = dumbdbm.open(_fname)
105 f = dumbdbm.open(_fname)
109 f = dumbdbm.open(_fname)
115 f = dumbdbm.open(_fname, 'r')
[all …]
Dtest_tarfile.py48 open = io.FileIO variable in TarTest
59 open = gzip.GzipFile if gzip else None variable in GzipTest
66 open = bz2.BZ2File if bz2 else None variable in Bz2Test
73 open = lzma.LZMAFile if lzma else None variable in LzmaTest
82 self.tar = tarfile.open(self.tarname, mode=self.mode,
103 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1:
121 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1:
130 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj:
229 self.tar = tarfile.open(self.tarname, mode=self.mode)
324 with tarfile.open(tmpname, self.mode.replace("r", "w")):
[all …]
Dmake_ssl_certs.py99 with open(req_file, 'w') as f:
120 with open(cert_file, 'r') as f:
122 with open(key_file, 'r') as f:
136 with open(os.path.join('cadir','index.txt'),'a+') as f:
138 with open(os.path.join('cadir','crl.txt'),'a+') as f:
140 with open(os.path.join('cadir','index.txt.attr'),'w+') as f:
163 with open('ssl_cert.pem', 'w') as f:
165 with open('ssl_key.pem', 'w') as f:
171 with open('keycert.pem', 'w') as f:
175 with open('keycert.passwd.pem', 'a+') as f:
[all …]
Dtest_file.py17 self.f = self.open(TESTFN, 'wb')
45 self.f = self.open(TESTFN, 'rb')
53 self.f = self.open(TESTFN, 'r')
62 self.f = self.open(TESTFN, 'rb')
132 open = io.open variable in CAutoFileTests
135 open = staticmethod(pyio.open) variable in PyAutoFileTests
144 f = self.open(TESTFN, mode)
155 f = self.open(TESTFN, bad_mode)
172 f = self.open(TESTFN, 'wb', s)
176 f = self.open(TESTFN, 'rb', s)
[all …]
Dtest_gzip.py314 with open(self.filename, 'rb') as fRead:
379 with open(self.filename, "ab") as f:
429 fd = os.open(self.filename, os.O_WRONLY | os.O_CREAT)
504 with gzip.open(self.filename, "wb") as f:
506 with gzip.open(self.filename, "rb") as f:
513 with gzip.open(self.filename, "wb") as f:
515 with open(self.filename, "rb") as f:
519 with gzip.open(self.filename, "rb") as f:
522 with gzip.open(self.filename, "ab") as f:
524 with open(self.filename, "rb") as f:
[all …]
Daudiotests.py55 f = self.fout = self.module.open(testfile, 'wb')
63 with self.module.open(testfile, 'rb') as f:
82 with self.module.open(TESTFN, 'wb'):
85 with open(TESTFN, 'wb') as testfile:
86 with self.module.open(testfile):
90 with open(TESTFN, 'wb') as testfile:
91 with self.module.open(testfile) as f:
97 with open(TESTFN, 'rb') as testfile:
98 with self.module.open(testfile) as f:
111 with self.module.open(TESTFN, 'wb') as f:
[all …]
Dtest_pipes.py26 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 …]
Dtest_aifc.py151 self.f = aifc.open(findfile('Sine-1000Hz-300ms.aif'))
159 self.f = aifc.open(non_aifc_file, 'rb')
166 self.fout = aifc.open(TESTFN, 'wb')
169 f = self.f = aifc.open(TESTFN, 'wb')
174 f = self.f = aifc.open(TESTFN, 'rb')
185 fout = aifc.open(io.BytesIO(), 'wb')
194 fout = aifc.open(io.BytesIO(), 'wb')
203 fout = self.fout = aifc.open(TESTFN, 'wb')
210 f = self.f = aifc.open(TESTFN, 'rb')
254 aifc.open(TESTFN, 'wrong_mode')
[all …]
/external/python/cpython2/Lib/test/
Dtest_tarfile.py46 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 …]
Dtest_dumbdbm.py34 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 …]
Dmake_ssl_certs.py100 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 …]
Dtest_file.py22 self.f = self.open(TESTFN, 'wb')
50 self.f = self.open(TESTFN, 'rb')
58 self.f = self.open(TESTFN, 'r')
67 self.f = self.open(TESTFN, 'rb')
138 open = io.open variable in CAutoFileTests
141 open = staticmethod(pyio.open) variable in PyAutoFileTests
150 f = self.open(TESTFN, mode)
161 f = self.open(TESTFN, bad_mode)
178 f = self.open(TESTFN, 'wb', s)
182 f = self.open(TESTFN, 'rb', s)
[all …]
Daudiotests.py72 f = self.fout = self.module.open(testfile, 'wb')
80 f = self.module.open(testfile, 'rb')
107 with open(TESTFN, 'wb') as testfile:
114 with open(TESTFN, 'rb') as testfile:
119 with open(TESTFN, 'wb') as testfile:
128 with open(TESTFN, 'rb') as testfile:
133 with open(TESTFN, 'wb') as testfile:
140 with open(TESTFN, 'rb') as testfile:
177 with open(TESTFN, 'rb') as testfile:
195 with open(TESTFN, 'rb') as testfile:
[all …]
Dtest_mmap.py26 f = open(TESTFN, 'w+')
105 f = open(TESTFN)
122 open(TESTFN, "wb").write("a"*mapsize)
123 f = open(TESTFN, "rb")
172 self.assertEqual(open(TESTFN, "rb").read(), 'a'*mapsize,
177 f = open(TESTFN, "r+b")
195 f = open(TESTFN, 'r+b')
200 f = open(TESTFN, "r+b")
209 f = open(TESTFN, 'rb')
216 f = open(TESTFN, "r+b")
[all …]
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_new_test.c50 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 …]
Dtomoyo_rewrite_test.c71 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 …]
Dtomoyo_new_file_test.c190 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/chromium-trace/catapult/common/py_utils/py_utils/
Dlock_unittest.py16 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/
Dunix-api.c11 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/
DtDomain_creation_deletion.py94 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 …]
DtDomain_Elements.py87 f_DomainElements_Backup = open("f_DomainElements_Backup", "w")
91 f_DomainElements_Backup = open("f_DomainElements_Backup", "r")
121 f_DomainElements = open("f_DomainElements", "w")
125 f_DomainElements = open("f_DomainElements", "r")
134 f_DomainElements = open("f_DomainElements", "r")
135 f_DomainElements_Backup = open("f_DomainElements_Backup", "r")
180 f_DomainElements_Backup = open("f_DomainElements_Backup", "w")
184 f_DomainElements_Backup = open("f_DomainElements_Backup", "r")
208 f_DomainElements = open("f_DomainElements", "w")
212 f_DomainElements = open("f_DomainElements", "r")
[all …]
DtDomain_rename.py93 f_init_domains = open("f_init_domains", "w")
99 f_init_domains = open("f_init_domains", "r")
127 f_domains = open("f_domains", "w")
133 f_domains = open("f_domains", "r")
182 f_init_domains = open("f_init_domains", "w")
188 f_init_domains = open("f_init_domains", "r")
212 f_domains = open("f_domains", "w")
218 f_domains = open("f_domains", "r")
219 f_init_domains = open("f_init_domains", "r")
244 f_domains = open("f_domains", "w")
[all …]
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Functions/
DtFunction_Sync.py136 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/
DURLConnectionTest.java135 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 …]

12345678910>>...205