/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | MembershipKeyTest.java | 45 private void init(boolean withSource) throws Exception { in init() method in MembershipKeyTest 64 init(false); in test_isValid_OnChannelCloseWithJoinWithoutSource() 69 init(true); in test_isValid_OnChannelCloseWithJoinWithSource() 80 init(false); in test_isValid_OnDropJoinWithoutSource() 85 init(true); in test_isValid_OnDropJoinWithSource() 96 init(false); in test_dropWithJoinWithoutSource() 101 init(true); in test_dropWithJoinWithSource() 121 init(false); in test_networkInterface() 128 init(true); in test_sourceAddressWithJoinWithSource() 133 init(false); in test_sourceAddressWithJoinWithoutSource() [all …]
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | SSLContextSpiImpl.java | 36 private boolean init = false; field in SSLContextSpiImpl 44 init = true; in engineInit() 48 if (!init) { in engineGetSocketFactory() 55 if (!init) { in engineGetServerSocketFactory() 62 if (!init) { in engineGetServerSessionContext() 69 if (!init) { in engineGetClientSessionContext() 85 if (!init) { in engineCreateSSLEngine() 92 if (!init) { in engineCreateSSLEngine()
|
D | MySSLContextSpi.java | 42 private boolean init = false; field in MySSLContextSpi 49 init = true; in engineInit() 53 if (!init) { in engineGetSocketFactory() 60 if (!init) { in engineGetServerSocketFactory() 67 if (!init) { in engineGetServerSessionContext() 74 if (!init) { in engineGetClientSessionContext() 94 if (!init) { in engineCreateSSLEngine() 101 if (!init) { in engineCreateSSLEngine()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | AlgorithmParametersTest.java | 114 params.init(new MyAlgorithmParameterSpec()); in test_getEncoded() 150 params.init(new MyAlgorithmParameterSpec()); in test_getEncodedLjava_lang_String() 165 params.init(new MyAlgorithmParameterSpec()); in test_getEncodedLjava_lang_String() 177 ap.init(new MyAlgorithmParameterSpec()); in test_getInstanceLjava_lang_String() 203 ap.init(new byte[6]); in test_getInstanceLjava_lang_StringLjava_lang_String() 279 params.init(new MyAlgorithmParameterSpec()); in test_getParameterSpecLjava_lang_Class() 297 params.init(new MyAlgorithmParameterSpec()); in test_getParameterSpecLjava_lang_Class() 311 ap.init(new byte[6], "aaa"); in test_getInstanceLjava_lang_StringLjava_security_Provider() 373 params.init(spec); in test_initLjava_security_spec_AlgorithmParameterSpec() 380 params.init(spec); in test_initLjava_security_spec_AlgorithmParameterSpec() [all …]
|
D | AlgorithmParameterGenerator2Test.java | 85 algParGen.init(pp, new SecureRandom()); in checkResult() 86 algParGen.init(pp); in checkResult() 88 algParGen.init(pp, null); in checkResult() 93 algParGen.init(pp, new SecureRandom()); in checkResult() 94 algParGen.init(pp); in checkResult() 96 algParGen.init(0, null); in checkResult() 97 algParGen.init(0, new SecureRandom()); in checkResult() 100 algParGen.init(-10, null); in checkResult() 105 algParGen.init(-10, new SecureRandom()); in checkResult()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherTest.java | 218 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom()); in test_getOutputSizeI() 234 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES); in test_initWithKey() 239 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES); in test_initWithKey() 251 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom()); in test_initWithSecureRandom() 255 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom()); in test_initWithSecureRandom() 269 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec() 275 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec() 283 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap); in test_initWithAlgorithmParameterSpec() 298 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom() 304 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom() [all …]
|
D | ExemptionMechanismTest.java | 71 em.init(null); in testExemptionMechanism() 85 em.init(null); in testExemptionMechanism() 133 em.init(key); in testIsCryptoAllowed() 143 em.init(key1); in testIsCryptoAllowed() 163 em.init(key); in testGenExemptionBlob() 212 em.init(key); in test_genExemptionBlob() 220 em.init(key); in test_genExemptionBlob() 250 em.init(key); in test_genExemptionBlob$B() 290 em.init(key); in test_genExemptionBlob$BI() 402 em.init(key); in test_getOutputSizeI() [all …]
|
D | KeyAgreementTest.java | 325 kAgs[i].init(privKey); in testGenerateSecret03() 328 kAgs[i].init(privKey); in testGenerateSecret03() 332 kAgs[i].init(privKey); in testGenerateSecret03() 361 kAgs[i].init(privKey); in testDoPhase() 375 kAgs[i].init(privKey, dhPs); in testDoPhase() 377 kAgs[i].init(privKey, dhPs, random); in testDoPhase() 403 kAgs[i].init(publKey); in testInit01() 408 kAgs[i].init(publKey, new SecureRandom()); in testInit01() 413 kAgs[i].init(publKey, random); in testInit01() 418 kAgs[i].init(publKey, dhPs); in testInit01() [all …]
|
D | KeyGeneratorTest.java | 126 keyG.init(params, null); in testKeyGenerator() 131 keyG.init(keysize, null); in testKeyGenerator() 140 keyG.init(params, null); in testKeyGenerator() 145 keyG.init(keysize, null); in testKeyGenerator() 362 kgs[i].init(size[j]); in testInitKey() 369 kgs[i].init(size[j], random); in testInitKey() 394 kgs[i].init(aps); in testInitParams() 399 kgs[i].init(aps, new SecureRandom()); in testInitParams() 432 kgs[i].init(new SecureRandom()); in testGenerateKey() 436 kgs[i].init(defaultKeySize); in testGenerateKey() [all …]
|
/libcore/support/src/test/java/tests/resources/ |
D | junit4-4.3.1.jar | ... .TestSuite {
private volatile int fActiveTestDeathCount
public void <init> ()
public void <init> (java ... |
D | hyts_security.jar | ... publicField
protected int protectedField
private int privateField
public void <init> ()
protected void <init> (int ... |
/libcore/support/src/test/java/tests/resources/ServiceLoader/ |
D | hyts_services.jar | ... .resources.ServiceLoader.AbstractService {
public void <init> ()
public java.lang.String myNameIs ... |
/libcore/luni/src/main/java/org/xml/sax/ |
D | SAXParseException.java | 62 init(locator.getPublicId(), locator.getSystemId(), in SAXParseException() 65 init(null, null, -1, -1); in SAXParseException() 89 init(locator.getPublicId(), locator.getSystemId(), in SAXParseException() 92 init(null, null, -1, -1); in SAXParseException() 122 init(publicId, systemId, lineNumber, columnNumber); in SAXParseException() 154 init(publicId, systemId, lineNumber, columnNumber); in SAXParseException() 169 private void init (String publicId, String systemId, in init() method in SAXParseException
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | CopyDirectByteMemory.java | 32 private static void init(ByteBuffer b) { in init() method in CopyDirectByteMemory 41 private static void init(byte [] a) { in init() method in CopyDirectByteMemory 53 init(b); in test() 55 init(a); in test() 63 init(b); in test() 64 init(a); in test()
|
D | CopyDirectLongMemory.java | 32 private static void init(LongBuffer b) { in init() method in CopyDirectLongMemory 41 private static void init(long [] a) { in init() method in CopyDirectLongMemory 53 init(b); in test() 55 init(a); in test() 63 init(b); in test() 64 init(a); in test()
|
D | CopyDirectShortMemory.java | 32 private static void init(ShortBuffer b) { in init() method in CopyDirectShortMemory 41 private static void init(short [] a) { in init() method in CopyDirectShortMemory 53 init(b); in test() 55 init(a); in test() 63 init(b); in test() 64 init(a); in test()
|
D | CopyDirectFloatMemory.java | 32 private static void init(FloatBuffer b) { in init() method in CopyDirectFloatMemory 41 private static void init(float [] a) { in init() method in CopyDirectFloatMemory 53 init(b); in test() 55 init(a); in test() 63 init(b); in test() 64 init(a); in test()
|
D | CopyDirectCharMemory.java | 32 private static void init(CharBuffer b) { in init() method in CopyDirectCharMemory 41 private static void init(char [] a) { in init() method in CopyDirectCharMemory 53 init(b); in test() 55 init(a); in test() 63 init(b); in test() 64 init(a); in test()
|
D | CopyDirectDoubleMemory.java | 32 private static void init(DoubleBuffer b) { in init() method in CopyDirectDoubleMemory 41 private static void init(double [] a) { in init() method in CopyDirectDoubleMemory 53 init(b); in test() 55 init(a); in test() 63 init(b); in test() 64 init(a); in test()
|
D | CopyDirectIntMemory.java | 32 private static void init(IntBuffer b) { in init() method in CopyDirectIntMemory 41 private static void init(int [] a) { in init() method in CopyDirectIntMemory 53 init(b); in test() 55 init(a); in test() 63 init(b); in test() 64 init(a); in test()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherInputStreamTest.java | 111 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testAvailable() 120 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt_NullInput_Discarded() 133 cipher.init(Cipher.ENCRYPT_MODE, key, iv); in testEncrypt() 145 cipher.init(Cipher.ENCRYPT_MODE, rc4Key); in testEncrypt_RC4() 157 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt() 165 cipher.init(Cipher.DECRYPT_MODE, rc4Key); in testDecrypt_RC4() 173 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testSkip() 190 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_TruncatedInput_Failure() 198 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_NullInputStream_Failure() 223 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCloseTwice() [all …]
|
D | CipherTest.java | 78 c.init(Cipher.ENCRYPT_MODE, new MockKey()); in testCipher_getInstance_SuppliedProviderNotRegistered_Success() 95 c.init(Cipher.ENCRYPT_MODE, new MockKey()); in testCipher_getInstance_DoesNotSupportKeyClass_Success() 113 c.init(Cipher.ENCRYPT_MODE, new MockKey()); in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success() 171 c.init(Cipher.ENCRYPT_MODE, new MockKey()); in testCipher_getInstance_DelayedInitialization_KeyType() 175 c.init(Cipher.ENCRYPT_MODE, new MockKey2()); in testCipher_getInstance_DelayedInitialization_KeyType() 189 c.init(Cipher.ENCRYPT_MODE, new Key() { in testCipher_getInstance_DelayedInitialization_KeyType() 303 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[16], "FOO")); in testCipher_getInstance_WrongType_Failure() 331 c.init(Cipher.ENCRYPT_MODE, new MockKey(), new IvParameterSpec(new byte[12])); in testCipher_init_CallsInitWithParams_AlgorithmParameterSpec() 359 c.init(Cipher.ENCRYPT_MODE, new MockKey(), AlgorithmParameters.getInstance("AES")); in testCipher_init_CallsInitWithParams_AlgorithmParameters() 387 c.init(Cipher.ENCRYPT_MODE, new MockKey(), AlgorithmParameters.getInstance("AES")); in testCipher_init_CallsInitIgnoresRuntimeException() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/spec/ |
D | AlgorithmParametersPSSTest.java | 73 params.init(DEFAULT_SPEC); in testGetProvider() 79 params.init(DEFAULT_SPEC); in testInitFailsWhenAlreadyInitialized() 81 params.init(DEFAULT_SPEC); in testInitFailsWhenAlreadyInitialized() 85 params.init(DEFAULT_SPEC_DER_ENCODED); in testInitFailsWhenAlreadyInitialized() 89 params.init(DEFAULT_SPEC_DER_ENCODED, "ASN.1"); in testInitFailsWhenAlreadyInitialized() 96 params.init(WEIRD_SPEC); in testInitWithPSSParameterSpec() 108 params.init(encoded); in assertInitWithDerEncoded() 112 params.init(encoded, "ASN.1"); in assertInitWithDerEncoded() 135 params.init(spec); in assertGetEncoded() 145 params.init(BROKEN_SPEC1_DER_ENCODED); in testGetEncodedWithBrokenInput() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
D | AlgorithmParametersTestPBES2.java | 171 ap.init(TEST_PBE_PARAMETER_SPEC); in testGetEncoded_knownAnswers() 183 ap.init(TEST_PBE_PARAMETER_SPEC); in test_encodeAndDecode() 186 ap2.init(ap.getEncoded()); in test_encodeAndDecode() 207 ap.init(TEST_PBE_PARAMETER_SPEC); in test_encryptWithAlgorithmParameters() 212 c.init(Cipher.ENCRYPT_MODE, key, ap); in test_encryptWithAlgorithmParameters() 217 c.init(Cipher.DECRYPT_MODE, key, ap); in test_encryptWithAlgorithmParameters() 232 ap.init(TEST_PBE_PARAMETER_SPEC); in test_correctNames() 246 c.init(Cipher.DECRYPT_MODE, key, new PBEParameterSpec(new byte[0], 1000)); in test_encryptWithNoSalt()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | ForwardState.java | 74 private boolean init = true; field in ForwardState 97 return init; in isInitial() 121 sb.append("\n init: ").append(String.valueOf(init)); in toString() 148 checker.init(true); in initState() 153 init = true; in initState() 187 if (!init && cert.getBasicConstraints() != -1) { in updateState() 194 if (init || !X509CertImpl.isSelfIssued(cert)){ in updateState() 218 init = false; in updateState()
|