Home
last modified time | relevance | path

Searched refs:failure (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/security/
DKeyFactory.java353 Exception failure = null; in generatePublic() local
359 if (failure == null) { in generatePublic()
360 failure = e; in generatePublic()
365 if (failure instanceof RuntimeException) { in generatePublic()
366 throw (RuntimeException)failure; in generatePublic()
368 if (failure instanceof InvalidKeySpecException) { in generatePublic()
369 throw (InvalidKeySpecException)failure; in generatePublic()
372 ("Could not generate public key", failure); in generatePublic()
391 Exception failure = null; in generatePrivate() local
397 if (failure == null) { in generatePrivate()
[all …]
DKeyPairGenerator.java250 NoSuchAlgorithmException failure = null; in getInstance() local
262 if (failure == null) { in getInstance()
263 failure = e; in getInstance()
267 throw failure; in getInstance()
674 RuntimeException failure = null; in initialize() local
685 if (failure == null) { in initialize()
686 failure = e; in initialize()
691 throw failure; in initialize()
701 Exception failure = null; in initialize() local
712 if (failure == null) { in initialize()
[all …]
DSignature.java367 NoSuchAlgorithmException failure; in getInstance() local
379 failure = e; in getInstance()
383 throw failure; in getInstance()
/libcore/ojluni/src/main/java/javax/crypto/
DSecretKeyFactory.java516 Exception failure = null; in generateSecret() local
522 if (failure == null) { in generateSecret()
523 failure = e; in generateSecret()
528 if (failure instanceof InvalidKeySpecException) { in generateSecret()
529 throw (InvalidKeySpecException)failure; in generateSecret()
532 ("Could not generate secret key", failure); in generateSecret()
560 Exception failure = null; in getKeySpec() local
566 if (failure == null) { in getKeySpec()
567 failure = e; in getKeySpec()
572 if (failure instanceof InvalidKeySpecException) { in getKeySpec()
[all …]
DKeyGenerator.java455 RuntimeException failure = null; in init() local
466 if (failure == null) { in init()
467 failure = e; in init()
472 throw failure; in init()
514 Exception failure = null; in init() local
525 if (failure == null) { in init()
526 failure = e; in init()
531 if (failure instanceof InvalidAlgorithmParameterException) { in init()
532 throw (InvalidAlgorithmParameterException)failure; in init()
534 if (failure instanceof RuntimeException) { in init()
[all …]
DJceSecurity.java126 NoSuchAlgorithmException failure = null; in getInstance() local
136 failure = e; in getInstance()
140 + " not available", failure); in getInstance()
/libcore/dalvik/test-rules/src/test/java/dalvik/system/
DCloseGuardSupportTest.java69 Failure failure = failures.get(0); in testDoesNotReleaseResource() local
70 checkResourceNotReleased(failure, "Unreleased resources found in test"); in testDoesNotReleaseResource()
87 Failure failure = failures.get(0); in testDoesNotReleaseResourceDueToFailure() local
88 checkResourceNotReleased(failure, "failure"); in testDoesNotReleaseResourceDueToFailure()
106 Failure failure = failures.get(0); in testResourceOwnerDoesNotOverrideFinalize() local
108 failure.getMessage()); in testResourceOwnerDoesNotOverrideFinalize()
125 Failure failure = failures.get(0); in testResourceOwnerOverridesFinalizeButDoesNotReportLeak() local
128 failure.getMessage()); in testResourceOwnerOverridesFinalizeButDoesNotReportLeak()
150 Failure failure = failures.get(0); in testResourceOwnerOverridesFinalizeAndReportsLeak() local
151 checkResourceNotReleased(failure, "Unreleased resources found in test"); in testResourceOwnerOverridesFinalizeAndReportsLeak()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java92 Throwable failure; in execAndGetOutput() local
97 failure = err.length() > 0 in execAndGetOutput()
101 failure = e; in execAndGetOutput()
104 if (failure != null) { in execAndGetOutput()
107 error.initCause(failure); in execAndGetOutput()
/libcore/ojluni/src/main/java/sun/security/jca/
DGetInstance.java162 NoSuchAlgorithmException failure; in getInstance() local
166 failure = e; in getInstance()
178 failure = e; in getInstance()
181 throw failure; in getInstance()
187 NoSuchAlgorithmException failure = null; in getInstance() local
192 failure = e; in getInstance()
195 if (failure != null) { in getInstance()
196 throw failure; in getInstance()
/libcore/luni/src/test/java/libcore/util/
DSerializationTester.java76 Error failure = new AssertionFailedError(); in test()
77 failure.initCause(e); in test()
78 throw failure; in test()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java70 private int failure = 0; field in TestFormatter
84 failure = 0; in test()
132 if (failure != 0) { in test()
133 System.out.println("Total " + failure + "/" + total + " tests failed"); in test()
138 assertEquals(failure, 0); in test()
168 failure++; in test()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketConcurrentCloseTest.java44 final AtomicReference<Exception> failure = new AtomicReference<>(); in testImplAccept_detectsClosedState() local
55 failure.set(e); in testImplAccept_detectsClosedState()
65 Exception e = failure.get(); in testImplAccept_detectsClosedState()
/libcore/expectations/
Dbrokentests.txt15 failure: "disable securityManager",
22 failure: "ignore compilation errors",
34 failure: "connect to the Internet",
Dicebox.txt82 failure: "should fork a dalvikvm, not a JVM",
Dknownfailures.txt1291 description: "Known failure in MathTest 1^NAN should be NAN",
1306 description: "ScannerParseLargeFileBenchmark can cause a failure due to a timeout",
1403 description: "Known failure in GregorianCalendarTest",
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java358 final AtomicReference<Throwable> failure = new AtomicReference<Throwable>();
374 failure.set(e);
390 assertNull(failure.get());
/libcore/luni/src/test/java/libcore/xml/
DDomTest.java1040 AssertionFailedError failure = new AssertionFailedError( in testAdoptionImmediatelyAfterParsing()
1043 failure.initCause(e); in testAdoptionImmediatelyAfterParsing()
1044 throw failure; in testAdoptionImmediatelyAfterParsing()
/libcore/benchmarks/libs/
Dcaliper.jar.txt162 work stoppage, computer failure or malfunction, or any and all
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2588 for (AssertionFailedError failure : failures) { in throwFailures()
2589 combined.addSuppressed(failure); in throwFailures()