Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 28) sorted by relevance

12

/libcore/luni/src/test/java/tests/security/spec/
DEllipticCurveTest.java87 } catch (NullPointerException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
98 } catch (NullPointerException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
109 } catch (NullPointerException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
134 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
146 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
158 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
170 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
195 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04()
207 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04()
219 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04()
[all …]
DECPointTest.java66 } catch (NullPointerException ok) { in testECPoint02()
74 } catch (NullPointerException ok) { in testECPoint02()
82 } catch (NullPointerException ok) { in testECPoint02()
DECGenParameterSpecTest.java59 } catch (NullPointerException ok) {} in testECGenParameterSpec02()
DMGF1ParameterSpecTest.java67 } catch (NullPointerException ok) { in testMGF1ParameterSpec02()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DEncryptedPrivateKeyInfoTest.java256 } catch (NullPointerException ok) { in testEncryptedPrivateKeyInfobyteArray2()
271 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray3()
287 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray4()
310 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
321 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
332 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
353 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
364 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
375 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
437 } catch (NoSuchAlgorithmException ok) { in testEncryptedPrivateKeyInfoStringbyteArray2()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DGuardedObjectTest.java65 } catch (Exception ok) { in testGuard()
66 assertEquals(message, ok.getMessage()); in testGuard()
/libcore/luni/src/test/java/tests/security/cert/
DTrustAnchorTest.java138 } catch (NullPointerException ok) { in testTrustAnchorStringPublicKeybyteArray04()
145 } catch (NullPointerException ok) { in testTrustAnchorStringPublicKeybyteArray04()
152 } catch (NullPointerException ok) { in testTrustAnchorStringPublicKeybyteArray04()
159 } catch (IllegalArgumentException ok) { in testTrustAnchorStringPublicKeybyteArray04()
166 } catch (IllegalArgumentException ok) { in testTrustAnchorStringPublicKeybyteArray04()
253 } catch (NullPointerException ok) { in testTrustAnchorX500PrincipalPublicKeybyteArray04()
260 } catch (NullPointerException ok) { in testTrustAnchorX500PrincipalPublicKeybyteArray04()
268 } catch (NullPointerException ok) { in testTrustAnchorX500PrincipalPublicKeybyteArray04()
/libcore/ojluni/src/main/java/java/net/
DInetAddress.java663 boolean ok = false; in getHostFromNameService()
666 for(int i = 0; !ok && i < arr.length; i++) { in getHostFromNameService()
667 ok = addr.equals(arr[i]); in getHostFromNameService()
672 if (!ok) { in getHostFromNameService()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java639 } catch (ClassNotFoundException ok) { in test_forName_arrays()
644 } catch (ClassNotFoundException ok) { in test_forName_arrays()
649 } catch (ClassNotFoundException ok) { in test_forName_arrays()
654 } catch (ClassNotFoundException ok) { in test_forName_arrays()
659 } catch (ClassNotFoundException ok) { in test_forName_arrays()
664 } catch (ClassNotFoundException ok) { in test_forName_arrays()
/libcore/luni/src/test/java/tests/java/security/
DIdentityTest.java134 } catch (KeyManagementException ok) {} in testAddCertificate1()
158 } catch (KeyManagementException ok) { in testAddCertificate4()
159 } catch (NullPointerException ok) {} in testAddCertificate4()
273 } catch (KeyManagementException ok) {} in testSetPublicKey2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineResultTest.java207 boolean ok = false; in findEl()
210 ok = true; in findEl()
214 return ok; in findEl()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java921 } catch (SecurityException ok) {
1579 } catch (InterruptedException ok) {}
1607 } catch (InterruptedException ok) {}
1615 } catch (InterruptedException ok) {}
1623 } catch (InterruptedException ok) {}
1648 } catch (InterruptedException ok) {}
1659 } catch (InterruptedException ok) {}
1669 } catch (InterruptedException ok) {}
1679 } catch (InterruptedException ok) {}
1689 } catch (InterruptedException ok) {}
[all …]
DScheduledExecutorSubclassTest.java323 } catch (SecurityException ok) {} in testSchedule1_RejectedExecutionException()
339 } catch (SecurityException ok) {} in testSchedule2_RejectedExecutionException()
355 } catch (SecurityException ok) {} in testSchedule3_RejectedExecutionException()
371 } catch (SecurityException ok) {} in testScheduleAtFixedRate1_RejectedExecutionException()
387 } catch (SecurityException ok) {} in testScheduleWithFixedDelay1_RejectedExecutionException()
577 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsShutdown()
600 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminated()
624 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminating()
740 } catch (SecurityException ok) { in testShutdownNow()
770 } catch (SecurityException ok) { in testShutdownNow_delayedTasks()
[all …]
DScheduledExecutorTest.java267 } catch (SecurityException ok) {} in testSchedule1_RejectedExecutionException()
283 } catch (SecurityException ok) {} in testSchedule2_RejectedExecutionException()
299 } catch (SecurityException ok) {} in testSchedule3_RejectedExecutionException()
315 } catch (SecurityException ok) {} in testScheduleAtFixedRate1_RejectedExecutionException()
331 } catch (SecurityException ok) {} in testScheduleWithFixedDelay1_RejectedExecutionException()
525 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsShutdown()
548 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminated()
572 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminating()
689 } catch (SecurityException ok) { in testShutdownNow()
719 } catch (SecurityException ok) { in testShutdownNow_delayedTasks()
[all …]
DThreadTest.java72 } catch (SecurityException ok) { in testGetAndSetDefaultUncaughtExceptionHandler()
DThreadPoolExecutorTest.java447 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsShutdown()
478 try { p.shutdown(); } catch (SecurityException ok) { return; } in testAwaitTermination_timesOut()
505 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminated()
533 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminating()
673 } catch (SecurityException ok) { in testShutdownNow()
1224 try { p.shutdown(); } catch (SecurityException ok) { return; } in testRejectedExecutionExceptionOnShutdown()
1243 try { p.shutdown(); } catch (SecurityException ok) { return; } in testCallerRunsOnShutdown()
1261 try { p.shutdown(); } catch (SecurityException ok) { return; } in testDiscardOnShutdown()
1279 try { p.shutdown(); } catch (SecurityException ok) { return; } in testDiscardOldestOnShutdown()
1410 try { p.shutdown(); } catch (SecurityException ok) { return; } in testTerminated()
[all …]
DThreadPoolExecutorSubclassTest.java594 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsShutdown()
620 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminated()
648 try { p.shutdown(); } catch (SecurityException ok) { return; } in testIsTerminating()
788 } catch (SecurityException ok) { in testShutdownNow()
1253 try { p.shutdown(); } catch (SecurityException ok) { return; } in testRejectedExecutionExceptionOnShutdown()
1271 try { p.shutdown(); } catch (SecurityException ok) { return; } in testCallerRunsOnShutdown()
1288 try { p.shutdown(); } catch (SecurityException ok) { return; } in testDiscardOnShutdown()
1306 try { p.shutdown(); } catch (SecurityException ok) { return; } in testDiscardOldestOnShutdown()
1403 try { p.shutdown(); } catch (SecurityException ok) { return; } in testTerminated()
1885 catch (InterruptedException ok) {}
DCompletableFutureTest.java2178 } catch (CompletionException ok) { in testApplyToEither_exceptionalCompletion()
2185 } catch (CompletionException ok) { in testApplyToEither_exceptionalCompletion()
2222 } catch (CompletionException ok) { in testApplyToEither_exceptionalCompletion2()
2229 } catch (CompletionException ok) { in testApplyToEither_exceptionalCompletion2()
2236 } catch (CompletionException ok) { in testApplyToEither_exceptionalCompletion2()
2243 } catch (CompletionException ok) { in testApplyToEither_exceptionalCompletion2()
2286 } catch (CompletionException ok) { in testApplyToEither_sourceCancelled()
2293 } catch (CompletionException ok) { in testApplyToEither_sourceCancelled()
2329 } catch (CompletionException ok) { in testApplyToEither_sourceCancelled2()
2336 } catch (CompletionException ok) { in testApplyToEither_sourceCancelled2()
[all …]
DCyclicBarrierTest.java317 catch (BrokenBarrierException ok) {} in testReset_Leakage()
318 catch (InterruptedException ok) {} in testReset_Leakage()
DExecutorsTest.java324 } catch (SecurityException ok) { in testDefaultThreadFactory()
/libcore/ojluni/src/main/java/sun/security/util/
DSignatureFileVerifier.java490 boolean ok = false; in verifySection()
511 ok = true; in verifySection()
523 ok = true; in verifySection()
527 if (!ok){ in verifySection()
/libcore/luni/src/main/native/
Djava_math_NativeBN.cpp403 int ok; in NativeBN_BN_shift() local
405 ok = BN_lshift(toBigNum(r), toBigNum(a), n); in NativeBN_BN_shift()
407 ok = BN_rshift(toBigNum(r), toBigNum(a), -n); in NativeBN_BN_shift()
409 if (!ok) { in NativeBN_BN_shift()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest2.java1776 boolean ok = true; in test_18_71_writeObject()
1781 ok = false; in test_18_71_writeObject()
1786 assertTrue(MSG_TEST_FAILED + objToSave, ok); in test_18_71_writeObject()
1821 boolean ok = true; in test_18_72_writeObject()
1826 ok = false; in test_18_72_writeObject()
1831 assertTrue(MSG_TEST_FAILED + objToSave, ok); in test_18_72_writeObject()
1867 boolean ok = true; in test_18_73_writeObject()
1872 ok = false; in test_18_73_writeObject()
1877 assertTrue(MSG_TEST_FAILED + objToSave, ok); in test_18_73_writeObject()
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringTest.java419 } catch (NullPointerException ok){} in test_format()
446 } catch (NullPointerException ok){} in test_format_Locale()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java3346 boolean ok = (targetType.parameterCount() >= afterInsertPos + foldArgs); in foldArgumentChecks()
3347 if (ok && !(combinerType.parameterList() in foldArgumentChecks()
3350 ok = false; in foldArgumentChecks()
3351 if (ok && foldVals != 0 && combinerType.returnType() != targetType.parameterType(0)) in foldArgumentChecks()
3352 ok = false; in foldArgumentChecks()
3353 if (!ok) in foldArgumentChecks()

12