Home
last modified time | relevance | path

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

12

/dalvik/vm/alloc/TEST/HeapBitmapTest/
Dmain.c26 bool ok; in test_init() local
30 ok = dvmHeapBitmapInit(&hb, HEAP_BASE, HEAP_SIZE, "test"); in test_init()
31 assert(ok); in test_init()
108 bool ok; in test_bits() local
110 ok = dvmHeapBitmapInit(&hb, HEAP_BASE, HEAP_SIZE, "test"); in test_bits()
111 assert(ok); in test_bits()
185 bool ok; in test_clear() local
187 ok = dvmHeapBitmapInit(&hb, HEAP_BASE, HEAP_SIZE, "test"); in test_clear()
188 assert(ok); in test_clear()
210 bool ok; in test_modify() local
[all …]
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyRepTest.java86 } catch (NullPointerException ok) { in testKeyRep02()
92 } catch (NullPointerException ok) { in testKeyRep02()
98 } catch (NullPointerException ok) { in testKeyRep02()
104 } catch (NullPointerException ok) { in testKeyRep02()
121 } catch (NotSerializableException ok) { in testReadResolve01()
129 } catch (NotSerializableException ok) { in testReadResolve01()
137 } catch (NotSerializableException ok) { in testReadResolve01()
154 } catch (NotSerializableException ok) { in testReadResolve02()
162 } catch (NotSerializableException ok) { in testReadResolve02()
171 } catch (NotSerializableException ok) { in testReadResolve02()
[all …]
DSecurityPermissionTest.java77 catch (NullPointerException ok){} in testCtor()
83 catch (NullPointerException ok){} in testCtor()
89 catch (IllegalArgumentException ok){} in testCtor()
94 catch (IllegalArgumentException ok){} in testCtor()
DGuardedObjectTest.java103 } catch (Exception ok) { in testGuard()
104 assertEquals(message, ok.getMessage()); in testGuard()
DSignerTest.java199 } catch (SecurityException ok) { in testGetPrivateKey_denied()
237 } catch (SecurityException ok) { in test_setKeyPairLjava_security_KeyPair()
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
DAtomicLongFieldUpdaterTest.java95 } catch (RuntimeException ok) { in testGetSet()
113 } catch (RuntimeException ok) { in testCompareAndSet()
136 } catch (RuntimeException ok) { in testCompareAndSetInMultipleThreads()
164 } catch (RuntimeException ok) { in testWeakCompareAndSet()
182 } catch (RuntimeException ok) { in testGetAndSet()
198 } catch (RuntimeException ok) { in testGetAndAdd()
215 } catch (RuntimeException ok) { in testGetAndDecrement()
231 } catch (RuntimeException ok) { in testGetAndIncrement()
251 } catch (RuntimeException ok) { in testAddAndGet()
268 } catch (RuntimeException ok) { in testDecrementAndGet()
[all …]
DAtomicIntegerFieldUpdaterTest.java93 } catch (RuntimeException ok) { in testGetSet()
112 } catch (RuntimeException ok) { in testCompareAndSet()
135 } catch (RuntimeException ok) { in testCompareAndSetInMultipleThreads()
163 } catch (RuntimeException ok) { in testWeakCompareAndSet()
181 } catch (RuntimeException ok) { in testGetAndSet()
197 } catch (RuntimeException ok) { in testGetAndAdd()
214 } catch (RuntimeException ok) { in testGetAndDecrement()
230 } catch (RuntimeException ok) { in testGetAndIncrement()
250 } catch (RuntimeException ok) { in testAddAndGet()
267 } catch (RuntimeException ok) { in testDecrementAndGet()
[all …]
DAtomicReferenceFieldUpdaterTest.java95 } catch (RuntimeException ok) { in testGetSet()
112 } catch (RuntimeException ok) { in testCompareAndSet()
134 } catch (RuntimeException ok) { in testCompareAndSetInMultipleThreads()
162 } catch (RuntimeException ok) { in testWeakCompareAndSet()
180 } catch (RuntimeException ok) { in testGetAndSet()
DExecutorsTest.java350 } catch (SecurityException ok) {
360 } catch(SecurityException ok) {
385 } catch (AccessControlException ok) {
407 } catch(SecurityException ok) {
418 } catch(SecurityException ok) {
452 } catch (AccessControlException ok) {
462 } catch(AccessControlException ok) {
489 } catch (AccessControlException ok) {
519 } catch (AccessControlException ok) {
532 } catch(AccessControlException ok) {
[all …]
DScheduledExecutorTest.java35 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testExecute()
42 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testExecute()
64 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testSchedule1()
85 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testSchedule3()
220 } catch (SecurityException ok) { in testSchedule1_RejectedExecutionException()
238 } catch (SecurityException ok) { in testSchedule2_RejectedExecutionException()
254 } catch (SecurityException ok) { in testSchedule3_RejectedExecutionException()
270 } catch (SecurityException ok) { in testScheduleAtFixedRate1_RejectedExecutionException()
286 } catch (SecurityException ok) { in testScheduleWithFixedDelay1_RejectedExecutionException()
427 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testIsShutdown()
[all …]
DCyclicBarrierTest.java484 catch(InterruptedException ok) {} in testResetAfterInterrupt()
496 catch(BrokenBarrierException ok) {} in testResetAfterInterrupt()
535 catch(TimeoutException ok) {} in testResetAfterTimeout()
547 catch(BrokenBarrierException ok) {} in testResetAfterTimeout()
589 catch(BrokenBarrierException ok) {} in testResetAfterCommandException()
601 catch(BrokenBarrierException ok) {} in testResetAfterCommandException()
612 catch (Exception ok) { } in testResetAfterCommandException()
DThreadPoolExecutorTest.java132 try { p2.shutdown(); } catch(SecurityException ok) { return; } in testGetCompletedTaskCount()
292 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testIsShutdown()
307 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testIsTerminated()
327 try { p1.shutdown(); } catch(SecurityException ok) { return; } in testIsTerminating()
425 } catch (SecurityException ok) { return; } in testShutDownNow()
787 try { p.shutdownNow(); } catch(SecurityException ok) { return; } in testSaturatedExecute2()
814 try { p.shutdownNow(); } catch(SecurityException ok) { return; } in testSaturatedExecute3()
837 try { p.shutdownNow(); } catch(SecurityException ok) { return; } in testSaturatedExecute4()
851 try { tpe.shutdown(); } catch(SecurityException ok) { return; } in testRejectedExecutionExceptionOnShutdown()
867 try { p.shutdown(); } catch(SecurityException ok) { return; } in testCallerRunsOnShutdown()
[all …]
DThreadTest.java68 catch(SecurityException ok) { in testGetAndSetDefaultUncaughtExceptionHandler()
/dalvik/libcore/security/src/test/java/tests/security/spec/
DEllipticCurveTest.java105 } catch (NullPointerException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
116 } catch (NullPointerException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
127 } catch (NullPointerException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
158 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
170 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
182 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
194 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
225 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04()
237 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04()
249 } catch (IllegalArgumentException ok) {} in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04()
[all …]
DECGenParameterSpecTest.java77 } catch (NullPointerException ok) {} in testECGenParameterSpec02()
DECPointTest.java84 } catch (NullPointerException ok) { in testECPoint02()
92 } catch (NullPointerException ok) { in testECPoint02()
100 } catch (NullPointerException ok) { in testECPoint02()
DMGF1ParameterSpecTest.java85 } catch (NullPointerException ok) { in testMGF1ParameterSpec02()
/dalvik/vm/alloc/
DHeapBitmap.c107 bool ok; in dvmHeapBitmapInitListFromTemplates() local
114 ok = dvmHeapBitmapInitFromTemplate(&out[i], &templates[i], fullName); in dvmHeapBitmapInitListFromTemplates()
115 if (!ok) { in dvmHeapBitmapInitListFromTemplates()
357 bool ok; in dvmHeapBitmapXorWalkLists() local
359 ok = dvmHeapBitmapXorWalk(&hbs1[indexList[i]], &hbs2[indexList[i]], in dvmHeapBitmapXorWalkLists()
361 if (!ok) { in dvmHeapBitmapXorWalkLists()
410 bool ok; in dvmHeapBitmapWalkList() local
412 ok = dvmHeapBitmapWalk(&hbs[indexList[i]], callback, callbackArg); in dvmHeapBitmapWalkList()
413 if (!ok) { in dvmHeapBitmapWalkList()
/dalvik/libcore/security/src/test/java/tests/java/security/
DBasicPermissionTest.java79 catch (NullPointerException ok){} in testCtor()
85 catch (NullPointerException ok){} in testCtor()
91 catch (IllegalArgumentException ok){} in testCtor()
96 catch (IllegalArgumentException ok){} in testCtor()
DIdentityTest.java116 } catch (SecurityException ok) { in testToString1()
206 } catch (KeyManagementException ok) {} in testAddCertificate1()
245 } catch (SecurityException ok) { in testAddCertificate3()
264 } catch (KeyManagementException ok) { in testAddCertificate4()
265 } catch (NullPointerException ok) {} in testAddCertificate4()
312 } catch (SecurityException ok) { in testRemoveCertificate2()
431 } catch (SecurityException ok) { in testSetPublicKey1()
454 } catch (KeyManagementException ok) {} in testSetPublicKey2()
537 } catch (SecurityException ok) { in testSetInfo()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DEncryptedPrivateKeyInfoTest.java276 } catch (NullPointerException ok) { in testEncryptedPrivateKeyInfobyteArray2()
297 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray3()
319 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray4()
348 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
359 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
370 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
391 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
402 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
413 } catch (IOException ok) { in testEncryptedPrivateKeyInfobyteArray5()
493 } catch (NoSuchAlgorithmException ok) { in testEncryptedPrivateKeyInfoStringbyteArray2()
[all …]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DPackageTest.java330 } catch (NumberFormatException ok) { in test_isCompatibleWithLjava_lang_String()
340 } catch (NumberFormatException ok) {} in test_isCompatibleWithLjava_lang_String()
344 } catch (NumberFormatException ok) {} in test_isCompatibleWithLjava_lang_String()
348 } catch (NumberFormatException ok) {} in test_isCompatibleWithLjava_lang_String()
352 } catch (NumberFormatException ok) {} in test_isCompatibleWithLjava_lang_String()
356 } catch (NumberFormatException ok) {} in test_isCompatibleWithLjava_lang_String()
360 } catch (NumberFormatException ok) {} in test_isCompatibleWithLjava_lang_String()
DThreadGroupTest.java1671 boolean ok = true; in wipeAllThreads()
1674 ok = ok && wipeThread(t); in wipeAllThreads()
1680 ok = ok && wipeAllThreads(element); in wipeAllThreads()
1682 return ok; in wipeAllThreads()
1686 boolean ok = true; in wipeSideEffectThreads()
1700 ok = ok && wipeThread(t); in wipeSideEffectThreads()
1708 ok = ok && wipeSideEffectThreads(element); in wipeSideEffectThreads()
1722 return ok; in wipeSideEffectThreads()
/dalvik/libcore/security/src/test/java/tests/security/cert/
DTrustAnchorTest.java161 } catch (NullPointerException ok) { in testTrustAnchorStringPublicKeybyteArray04()
168 } catch (NullPointerException ok) { in testTrustAnchorStringPublicKeybyteArray04()
175 } catch (NullPointerException ok) { in testTrustAnchorStringPublicKeybyteArray04()
182 } catch (IllegalArgumentException ok) { in testTrustAnchorStringPublicKeybyteArray04()
189 } catch (IllegalArgumentException ok) { in testTrustAnchorStringPublicKeybyteArray04()
300 } catch (NullPointerException ok) { in testTrustAnchorX500PrincipalPublicKeybyteArray04()
307 } catch (NullPointerException ok) { in testTrustAnchorX500PrincipalPublicKeybyteArray04()
315 } catch (NullPointerException ok) { in testTrustAnchorX500PrincipalPublicKeybyteArray04()
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
DSSLEngineResultTest.java249 boolean ok = false; in findEl()
252 ok = true; in findEl()
256 return ok; in findEl()

12