Home
last modified time | relevance | path

Searched refs:enc (Results 1 – 25 of 32) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java109 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/
DAlgorithmParametersTest.java90 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/
DOldAndroidInputStreamReaderTest.java86 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()
DOldOutputStreamWriterTest.java153 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/ojluni/src/main/java/sun/nio/cs/
DStreamEncoder.java73 CharsetEncoder enc) in forOutputStreamWriter() argument
75 return new StreamEncoder(out, lock, enc); in forOutputStreamWriter()
82 CharsetEncoder enc, in forEncoder() argument
85 return new StreamEncoder(ch, enc, minBufferCap); in forEncoder()
181 private StreamEncoder(OutputStream out, Object lock, CharsetEncoder enc) { in StreamEncoder() argument
185 this.cs = enc.charset(); in StreamEncoder()
186 this.encoder = enc; in StreamEncoder()
199 private StreamEncoder(WritableByteChannel ch, CharsetEncoder enc, int mbc) { in StreamEncoder() argument
202 this.cs = enc.charset(); in StreamEncoder()
203 this.encoder = enc; in StreamEncoder()
/libcore/ojluni/src/main/java/java/net/
DURLEncoder.java200 public static String encode(String s, String enc) in encode() argument
208 if (enc == null) in encode()
212 charset = Charset.forName(enc); in encode()
214 throw new UnsupportedEncodingException(enc); in encode()
216 throw new UnsupportedEncodingException(enc); in encode()
DURLDecoder.java133 public static String decode(String s, String enc) in decode() argument
141 if (enc.length() == 0) { in decode()
199 sb.append(new String(bytes, 0, pos, enc)); in decode()
/libcore/luni/src/test/java/tests/security/cert/
DPKIXCertPathValidatorResultTest.java276 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()
DCertificateFactory1Test.java99 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()
DCertificateFactorySpiTest.java176 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()
/libcore/ojluni/src/main/java/java/io/
DOutputStreamWriter.java148 public OutputStreamWriter(OutputStream out, CharsetEncoder enc) { in OutputStreamWriter() argument
150 if (enc == null) in OutputStreamWriter()
152 se = StreamEncoder.forOutputStreamWriter(out, this, enc); in OutputStreamWriter()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java335 for (Class<?> enc = c; (enc = enc.getEnclosingClass()) != null; ) in getOutermostEnclosingClass()
336 pkgmem = enc; in getOutermostEnclosingClass()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DEncryptedPrivateKeyInfoTest.java299 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/ojluni/src/main/java/java/util/zip/
DZipCoder.java129 private CharsetEncoder enc; field in ZipCoder
152 if (enc == null) { in encoder()
153 enc = cs.newEncoder() in encoder()
157 return enc; in encoder()
/libcore/ojluni/src/main/java/java/security/cert/
DPolicyQualifierInfo.java163 HexDumpEncoder enc = new HexDumpEncoder(); in toString()
168 (mData == null ? "null" : enc.encodeBuffer(mData)) + "\n"); in toString()
DX509CertSelector.java1840 HexDumpEncoder enc = new HexDumpEncoder(); in toString() local
1842 enc.encodeBuffer(subjectKeyID) + "\n"); in toString()
1845 HexDumpEncoder enc = new HexDumpEncoder(); in toString() local
1847 enc.encodeBuffer(authorityKeyID) + "\n"); in toString()
/libcore/ojluni/src/main/java/sun/security/util/
DDerValue.java341 String enc = null; in init() local
349 enc = "ASCII"; in init()
352 enc = "ISO-8859-1"; in init()
355 enc = "UnicodeBigUnmarked"; in init()
358 enc = "UTF8"; in init()
366 byte[] buf = value.getBytes(enc); in init()
DDerOutputStream.java451 private void writeString(String s, byte stringTag, String enc) in writeString() argument
454 byte[] data = s.getBytes(enc); in writeString()
DDerInputStream.java556 String enc) throws IOException { in readString() argument
568 return new String(retval, enc); in readString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/
DX500PrincipalTest.java453 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()
1529 byte[] enc = principal.getEncoded(); in testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779()
1530 X500Principal principal2 = new X500Principal(enc); in testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779()
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DIPAddressName.java244 HexDumpEncoder enc = new HexDumpEncoder(); in toString()
245 return "IPAddress: " + enc.encodeBuffer(address); in toString()
DX509CRLEntryImpl.java315 HexDumpEncoder enc = new HexDumpEncoder(); in toString() local
318 + enc.encodeBuffer(extValue) + "\n"); in toString()
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java568 final CharsetEncoder enc,
572 return StreamEncoder.forEncoder(ch, enc.reset(), minBufferCap);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamWriterTest.java375 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/ojluni/src/main/java/java/lang/
DSystem.java1688 private static PrintStream newPrintStream(FileOutputStream fos, String enc) { in newPrintStream() argument
1689 if (enc != null) { in newPrintStream()
1691 return new PrintStream(new BufferedOutputStream(fos, 128), true, enc); in newPrintStream()

12