/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
D | MyExemptionMechanismSpi.java | 109 private byte[] enc; field in MyExemptionMechanismSpi.tmpKey 110 public tmpKey(String alg, byte[] enc) { in tmpKey() argument 112 this.enc = enc; in tmpKey() 121 return enc; in getEncoded() 126 private byte[] enc; field in MyExemptionMechanismSpi.tmp1Key 127 public tmp1Key(String alg, byte[] enc) { in tmp1Key() argument 128 this.enc = enc; in tmp1Key() 137 return enc; in getEncoded()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | AlgorithmParametersTest.java | 90 final byte[] enc = new byte[] { 0x02, 0x01, 0x03 }; in test_getEncoded() 94 return enc; in test_getEncoded() 115 assertSame(enc, params.getEncoded()); in test_getEncoded() 123 final byte[] enc = new byte[] { 0x02, 0x01, 0x03 }; in test_getEncodedLjava_lang_String() 130 return enc; in test_getEncodedLjava_lang_String() 151 assertSame(enc, params.getEncoded(strFormatParam)); in test_getEncodedLjava_lang_String() 160 return enc; in test_getEncodedLjava_lang_String() 166 assertSame(enc, params.getEncoded(null)); in test_getEncodedLjava_lang_String() 429 final byte[] enc = new byte[] { 0x02, 0x01, 0x03 }; in test_init$B() 434 assertSame(enc, params); in test_init$B() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidInputStreamReaderTest.java | 86 String[] enc = new String[]{ in testStringy() local 91 for (int i = 0; i < enc.length; i++) { in testStringy() 92 byte[] ba = src.getBytes(enc[i]); in testStringy() 94 String s1 = new String(ba, enc[i]); in testStringy() 97 InputStreamReader r = new InputStreamReader(bais, enc[i]); in testStringy()
|
D | OldOutputStreamWriterTest.java | 153 CharsetEncoder enc = cs.newEncoder(); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder() local 156 writer = new OutputStreamWriter(null, enc); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | PKIXCertPathValidatorResultTest.java | 276 assertSame(my.enc, myClone.enc); in testClone() 281 public byte[] enc; // byte array is cloneable field in PKIXCertPathValidatorResultTest.MyPKIXCertPathBuilderResult 284 PolicyNode policyTree, PublicKey subjectPublicKey, byte[] enc) { in MyPKIXCertPathBuilderResult() argument 287 this.enc = enc; in MyPKIXCertPathBuilderResult()
|
D | CertificateFactory1Test.java | 99 byte[] enc = { (byte) 0, (byte) 2, (byte) 3, (byte) 4, (byte) 5 }; in createMC() 100 return new MyCertificate("Test_Test", enc); in createMC() 505 String enc = it.next(); in testCertificateFactory12() local 507 certFs[i].generateCertPath(is1, enc); in testCertificateFactory12() 509 .concat(enc)); in testCertificateFactory12() 514 certFs[i].generateCertPath(is2, enc); in testCertificateFactory12() 516 .concat(enc)); in testCertificateFactory12() 537 byte[] enc = { (byte) 0, (byte) 2, (byte) 3, (byte) 4, (byte) 5 }; in testCertificateFactory13() 538 MyCertPath mc = new MyCertPath(enc); in testCertificateFactory13()
|
D | CertificateFactorySpiTest.java | 176 Iterator<String> enc = certFactorySpi.engineGetCertPathEncodings(); in testCertificateFactorySpi02() local 177 assertTrue("Incorrect Iterator", enc.hasNext()); in testCertificateFactorySpi02() 242 Iterator<String> enc = certFactorySpi.engineGetCertPathEncodings(); in testCertificateFactorySpi03() local 243 assertFalse("Incorrect Iterator", enc.hasNext()); in testCertificateFactorySpi03()
|
D | X509CertSelectorTest.java | 728 byte[] enc = { 0x30, 0x0E, // SEQUENCE in test_getSubjectPublicKey() 737 selector.setSubjectPublicKey(enc); in test_getSubjectPublicKey() 741 assertTrue(Arrays.equals(enc, key.getEncoded())); in test_getSubjectPublicKey() 1418 byte[] enc = { 0x30, 0x0E, // SEQUENCE in test_setSubjectPublicKeyLB$() 1427 selector.setSubjectPublicKey(enc); in test_setSubjectPublicKeyLB$() 1431 assertTrue(Arrays.equals(enc, key.getEncoded())); in test_setSubjectPublicKeyLB$()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | EncryptedPrivateKeyInfoTest.java | 299 byte[] enc = null; in testEncryptedPrivateKeyInfobyteArray5() 302 enc = EncryptedPrivateKeyInfoData in testEncryptedPrivateKeyInfobyteArray5() 306 enc[9] = (byte) 6; in testEncryptedPrivateKeyInfobyteArray5() 308 new EncryptedPrivateKeyInfo(enc); in testEncryptedPrivateKeyInfobyteArray5() 315 enc = EncryptedPrivateKeyInfoData in testEncryptedPrivateKeyInfobyteArray5() 318 enc[307] = (byte) 6; in testEncryptedPrivateKeyInfobyteArray5() 319 new EncryptedPrivateKeyInfo(enc); in testEncryptedPrivateKeyInfobyteArray5() 326 enc = EncryptedPrivateKeyInfoData in testEncryptedPrivateKeyInfobyteArray5() 329 enc[310] = (byte) 1; in testEncryptedPrivateKeyInfobyteArray5() 330 new EncryptedPrivateKeyInfo(enc); in testEncryptedPrivateKeyInfobyteArray5() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 453 byte[] enc = principal.getEncoded(); in testSafeEncoding() 454 assertEquals(enc[mess.length - 1], 0x41); in testSafeEncoding() 844 byte[] enc = principal.getEncoded(); in testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC1779() 845 X500Principal principal2 = new X500Principal(enc); in testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC1779() 862 byte[] enc = principal.getEncoded(); in testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC2253() 863 X500Principal principal2 = new X500Principal(enc); in testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC2253() 880 byte[] enc = principal.getEncoded(); in testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_CANONICAL() 881 X500Principal principal2 = new X500Principal(enc); in testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_CANONICAL() 1510 byte[] enc = principal.getEncoded(); in testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779() 1511 X500Principal principal2 = new X500Principal(enc); in testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OutputStreamWriterTest.java | 375 CharsetEncoder enc = cs.newEncoder(); in testOutputStreamWriterOutputStreamCharsetEncoder() local 377 writer = new OutputStreamWriter(null, enc); in testOutputStreamWriterOutputStreamCharsetEncoder() 388 OutputStreamWriter writer2 = new OutputStreamWriter(out, enc); in testOutputStreamWriterOutputStreamCharsetEncoder()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 57 CharsetEncoder enc = cs.newEncoder(); in test_allAvailableCharsets() local 58 assertNotNull(enc); in test_allAvailableCharsets() 59 assertNotNull(enc.replacement()); in test_allAvailableCharsets()
|