Home
last modified time | relevance | path

Searched refs:finished (Results 1 – 21 of 21) sorted by relevance

/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java53 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks, boolean[] finished) in create() argument
55 SSLEngine[] engines = connect(c, hooks, finished); in create()
72 boolean finished[]) throws IOException { in connect() argument
125 if (finished != null) { in connect()
126 assertEquals(2, finished.length); in connect()
127 finished[0] = clientFinished[0]; in connect()
128 finished[1] = serverFinished[0]; in connect()
141 boolean[] finished) throws IOException { in handshakeCompleted() argument
172 assertFinishedOnce(finished, unwrapResult); in handshakeCompleted()
190 assertFinishedOnce(finished, wrapResult); in handshakeCompleted()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterTest.java74 while (!defl.finished()) { in test_deflate$B()
88 while (!infl.finished()) { in test_deflate$B()
118 while (!defl.finished()) { in test_deflate$BII()
132 while (!infl.finished()) { in test_deflate$BII()
179 while (!defl.finished()) { in test_end()
215 while (!defl.finished()) { in test_finish()
226 while (!infl.finished()) { in test_finish()
246 assertTrue("Test 1: Deflater should not be finished.", !defl.finished()); in test_finished()
248 assertTrue("Test 2: Deflater should not be finished.", !defl.finished()); in test_finished()
250 assertTrue("Test 3: Deflater should not be finished.", !defl.finished()); in test_finished()
[all …]
DInflaterTest.java71 while (!(inflate.finished())) { in test_finished()
80 inflate.finished()); in test_finished()
144 while (!(deflate.finished())) { in test_getTotalIn()
150 while (!(inflate.finished())) { in test_getTotalIn()
201 while (!(deflate.finished())) { in test_getTotalOut()
208 while (!(inflate.finished())) { in test_getTotalOut()
232 while (!(inflate.finished())) { in test_getTotalOut()
261 while (!(inflate.finished())) { in test_inflate$B()
287 while (!(defEmpty.finished())) { in test_inflate$B()
298 while (!(infEmpty.finished())) { in test_inflate$B()
[all …]
DDeflaterOutputStreamTest.java76 while (!(deflate.finished())) { in setUp()
/libcore/luni/src/test/java/libcore/java/util/
DAbstractCollectionTest.java29 final AtomicBoolean finished = new AtomicBoolean(false); in test_toArray() local
33 while (!finished.get()) { in test_toArray()
49 finished.set(true); in test_toArray()
/libcore/luni/src/main/java/java/util/zip/
DInflater.java56 private boolean finished; // Set by inflateImpl. field in Inflater
129 public synchronized boolean finished() { in finished() method in Inflater
130 return finished; in finished()
270 finished = false; in reset()
DDeflater.java141 private boolean finished; field in Deflater
300 public synchronized boolean finished() { in finished() method in Deflater
301 return finished; in finished()
357 finished = false; in reset()
DDeflaterInputStream.java126 while (count < byteCount && !def.finished()) { in read()
147 if (def.finished()) { in read()
DDeflaterOutputStream.java134 if (!def.finished()) { in close()
153 while (!def.finished()) { in finish()
DInflaterInputStream.java159 eof = inf.finished(); in read()
DZipInputStream.java302 if (inf.finished() || currentEntry == null) { in read()
341 if (read == 0 && inf.finished()) { in read()
/libcore/luni/src/main/java/java/nio/
DSocketChannelImpl.java190 boolean finished = false; in connect()
201 finished = true; in connect()
208 finished = true; in connect()
214 end(finished); in connect()
272 boolean finished = false; in finishConnect()
277 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately. in finishConnect()
281 finished = true; in finishConnect()
285 end(finished); in finishConnect()
289 status = (finished ? SOCKET_STATUS_CONNECTED : status); in finishConnect()
290 if (finished && socket != null) { in finishConnect()
[all …]
/libcore/luni/src/main/java/javax/crypto/
DCipherInputStream.java43 private boolean finished; field in CipherInputStream
87 if (finished) { in fillBuffer()
106 finished = true; in fillBuffer()
/libcore/luni/src/test/java/libcore/java/util/zip/
DInflaterTest.java98 assertFalse(inflater.finished()); in testEmptyFileAndEmptyBuffer()
100 assertTrue(inflater.finished()); in testEmptyFileAndEmptyBuffer()
112 while (!deflater.finished()) { in deflate()
DOldAndroidDeflateTest.java135 while (!deflater.finished()) { in compress()
174 while (!inflater.finished()) { in expand()
DDeflaterOutputStreamTest.java164 assertFalse(def.finished()); in testSyncFlushDeflater()
DOldAndroidZipStressTest.java166 inflater.finished(); in testZipDeflateInflateStress()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLEngineTest.java469 boolean[] finished; in test_SSLEngine_setUseClientMode()
472 finished = new boolean[2]; in test_SSLEngine_setUseClientMode()
473 assertConnected(test_SSLEngine_setUseClientMode(true, false, finished)); in test_SSLEngine_setUseClientMode()
474 assertTrue(finished[0]); in test_SSLEngine_setUseClientMode()
475 assertTrue(finished[1]); in test_SSLEngine_setUseClientMode()
478 finished = new boolean[2]; in test_SSLEngine_setUseClientMode()
479 assertConnected(test_SSLEngine_setUseClientMode(false, true, finished)); in test_SSLEngine_setUseClientMode()
480 assertTrue(finished[0]); in test_SSLEngine_setUseClientMode()
481 assertTrue(finished[1]); in test_SSLEngine_setUseClientMode()
517 final boolean[] finished) in test_SSLEngine_setUseClientMode() argument
[all …]
/libcore/luni/src/main/java/java/util/
DTimer.java175 private boolean finished; field in Timer.TimerImpl
209 if (finished) { in run()
333 impl.finished = true; in finalize()
/libcore/luni/src/main/native/
Djava_util_zip_Deflater.cpp88 static jfieldID finished = env->GetFieldID(JniConstants::deflaterClass, "finished", "Z"); in Deflater_deflateImpl() local
89 env->SetBooleanField(recv, finished, JNI_TRUE); in Deflater_deflateImpl()
Djava_util_zip_Inflater.cpp112 static jfieldID finished = env->GetFieldID(JniConstants::inflaterClass, "finished", "Z"); in Inflater_inflateImpl() local
113 env->SetBooleanField(recv, finished, JNI_TRUE); in Inflater_inflateImpl()