Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactorySpiTest.java56 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi01() local
58 certFactorySpi.engineGenerateCertPath(bais); in testCertificateFactorySpi01()
63 certFactorySpi.engineGenerateCertPath(bais, ""); in testCertificateFactorySpi01()
78 Certificate cc = certFactorySpi.engineGenerateCertificate(bais); in testCertificateFactorySpi01()
85 Collection<? extends Certificate> col = certFactorySpi.engineGenerateCertificates(bais); in testCertificateFactorySpi01()
93 CRL ccCRL = certFactorySpi.engineGenerateCRL(bais); in testCertificateFactorySpi01()
101 Collection<? extends CRL> colCRL = certFactorySpi.engineGenerateCRLs(bais); in testCertificateFactorySpi01()
118 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi02() local
119 DataInputStream dis = new DataInputStream(bais); in testCertificateFactorySpi02()
121 certFactorySpi.engineGenerateCertPath(bais); in testCertificateFactorySpi02()
[all …]
DCertificateFactory2Test.java88 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in checkResult() local
89 DataInputStream dis = new DataInputStream(bais); in checkResult()
91 certFactory.generateCertPath(bais); in checkResult()
106 certFactory.generateCertPath(bais, "aa"); in checkResult()
123 certFactory.generateCertificate(bais); in checkResult()
138 certFactory.generateCRL(bais); in checkResult()
DCertificateFactory4Test.java63 ByteArrayInputStream bais = new ByteArrayInputStream( in test_generateCertificateLjava_io_InputStream() local
65 fact.generateCertificate(bais); in test_generateCertificateLjava_io_InputStream()
68 bais = new ByteArrayInputStream(CERTIFICATES_ENCODED_X509[i] in test_generateCertificateLjava_io_InputStream()
70 fact.generateCertificate(bais); in test_generateCertificateLjava_io_InputStream()
DX509Certificate2Test.java505 ByteArrayInputStream bais = new ByteArrayInputStream(string.getBytes()); in generateCert() local
506 X509Certificate cert = (X509Certificate) cf.generateCertificate(bais); in generateCert()
/libcore/luni/src/test/java/libcore/java/io/
DOldBufferedOutputStreamTest.java32 java.io.ByteArrayInputStream bais; field in OldBufferedOutputStreamTest
91 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
93 0, bais.available()); in test_write$BII()
95 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
97 500, bais.available()); in test_write$BII()
99 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
101 bais.available() >= 1000); in test_write$BII()
103 bais.read(wbytes, 0, 1013); in test_write$BII()
159 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI()
161 0, bais.available()); in test_writeI()
[all …]
DOldAndroidInputStreamReaderTest.java96 ByteArrayInputStream bais = new ByteArrayInputStream(ba); in testStringy() local
97 InputStreamReader r = new InputStreamReader(bais, enc[i]); in testStringy()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/
DInputSourceTest.java51 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testInputSourceInputStream() local
54 InputSource i = new InputSource(bais); in testInputSourceInputStream()
56 assertEquals(bais, i.getByteStream()); in testInputSourceInputStream()
115 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testSetByteStreamGetByteStream() local
120 i.setByteStream(bais); in testSetByteStreamGetByteStream()
122 assertEquals(bais, i.getByteStream()); in testSetByteStreamGetByteStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DBufferedOutputStreamTest.java32 java.io.ByteArrayInputStream bais; field in BufferedOutputStreamTest
134 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
135 assertEquals("Bytes written, not buffered", 0, bais.available()); in test_write$BII()
137 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
138 assertEquals("Bytes not written after flush", 500, bais.available()); in test_write$BII()
140 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
142 bais.available() >= 1000); in test_write$BII()
144 bais.read(wbytes, 0, 1013); in test_write$BII()
652 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI()
653 assertEquals("Byte written, not buffered", 0, bais.available()); in test_writeI()
[all …]
DObjectStreamFieldTest.java165 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_getType_Deserialized() local
166 ObjectInputStream ois = new ObjectInputStream(bais); in test_getType_Deserialized()
186 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_getType_MockObjectInputStream() local
187 MockObjectInputStream ois = new MockObjectInputStream(bais); in test_getType_MockObjectInputStream()
204 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_isUnshared() local
205 ObjectInputStream ois = new ObjectInputStream(bais); in test_isUnshared()
237 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_ObjectWithPrimitiveField() local
238 final MyObjectInputStream ois = new MyObjectInputStream(bais); in test_ObjectWithPrimitiveField()
DObjectInputStream2Test.java196 ByteArrayInputStream bais; in test_resolveClass_invalidClassName() local
203 bais = new ByteArrayInputStream(bytes); in test_resolveClass_invalidClassName()
204 ois = new TestObjectInputStream(bais); in test_resolveClass_invalidClassName()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java1102 ByteArrayInputStream bais = new ByteArrayInputStream(certsTwice); in generateCertificate_PEM_TrailingData() local
1104 assertEquals(certsBytes.length * 2, bais.available()); in generateCertificate_PEM_TrailingData()
1105 X509Certificate cert1 = (X509Certificate) f.generateCertificate(bais); in generateCertificate_PEM_TrailingData()
1107 assertTrue(certsBytes.length < bais.available()); in generateCertificate_PEM_TrailingData()
1115 ByteArrayInputStream bais = new ByteArrayInputStream(cert1WithTrailing);
1117 assertEquals(cert1Bytes.length * 2, bais.available());
1118 X509Certificate cert1 = (X509Certificate) f.generateCertificate(bais);
1119 assertEquals(cert1Bytes.length, bais.available());
1168 ByteArrayInputStream bais = new ByteArrayInputStream(certsPlusExtra);
1170 assertEquals(certsPlusExtra.length, bais.available());
[all …]
DCertificateFactoryTest.java506 ByteArrayInputStream bais = new ByteArrayInputStream(serialized); in testCertPathEncoding() local
507 ObjectInputStream ois = new ObjectInputStream(bais); in testCertPathEncoding()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java160 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_ClassDescriptor() local
162 bais, cls); in test_ClassDescriptor()
1087 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_resolveClass() local
1088 ObjectInputStream ois = new ObjectInputStreamWithResolve(bais); in test_resolveClass()
1130 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_resolveObjectLjava_lang_Object() local
1132 new ObjectInputStreamWithResolveObject(bais); in test_resolveObjectLjava_lang_Object()
1152 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_readClassDescriptor() local
1154 bais); in test_readClassDescriptor()
1160 bais = new ByteArrayInputStream(bytes); in test_readClassDescriptor()
1162 bais); in test_readClassDescriptor()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DSerializationBenchmark.java96 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in readSingleObject() local
98 ObjectInputStream in = new ObjectInputStream(bais); in readSingleObject()
101 bais.reset(); in readSingleObject()
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterOutputStreamTest.java139 ByteArrayInputStream bais = new ByteArrayInputStream(compressed); in testSyncFlushDeflater() local
140 InflaterInputStream iis = new InflaterInputStream(bais); in testSyncFlushDeflater()
/libcore/luni/src/main/java/javax/security/cert/
DX509Certificate.java212 ByteArrayInputStream bais = new ByteArrayInputStream(certData);
213 return getInstance(bais);
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldManifestTest.java133 ByteArrayInputStream bais = new ByteArrayInputStream(b); in test_writeLjava_io_OutputStream() local
136 manifest2 = new Manifest(bais); in test_writeLjava_io_OutputStream()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherInputStream1Test.java253 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[100]); in test_ConstructorLjava_io_InputStreamLjavax_crypto_Cipher() local
262 CipherInputStream cis = new CipherInputStream(bais, c); in test_ConstructorLjava_io_InputStreamLjavax_crypto_Cipher()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DX509CertificateTest.java134 ByteArrayInputStream bais = new ByteArrayInputStream(base64cert in setUp() local
138 .generateCertificate(bais); in setUp()
188 ByteArrayInputStream bais = new ByteArrayInputStream(cert in testGetInstance1() local
191 X509Certificate.getInstance(bais); in testGetInstance1()
/libcore/luni/src/test/java/libcore/java/lang/
DOldRuntimeTest.java459 ByteArrayInputStream bais = new ByteArrayInputStream( in test_getLocalizedInputStream() local
463 Runtime.getRuntime().getLocalizedInputStream(bais); in test_getLocalizedInputStream()
/libcore/luni/src/test/java/libcore/java/security/
DKeyPairGeneratorTest.java292 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_Key() local
293 ObjectInputStream ois = new ObjectInputStream(bais); in test_Key()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java984 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExportNode() local
1014 pref.importPreferences(bais); in testExportNode()
1034 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExportSubtree() local
1069 pref.importPreferences(bais); in testExportSubtree()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java648 ByteArrayInputStream bais = new ByteArrayInputStream(x509c.getEncoded()); in createCertificate() local
649 Certificate c = cf.generateCertificate(bais); in createCertificate()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java950 ByteArrayInputStream bais = new ByteArrayInputStream(output); in validateOutput() local
951 BufferedReader br = new BufferedReader(new InputStreamReader(bais, in validateOutput()
DScannerTest.java5588 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testPerformance() local
5589 bais.mark(-1); in testPerformance()
5591 Scanner s = new Scanner(new BufferedReader(new InputStreamReader(bais))); in testPerformance()
5598 bais.reset(); in testPerformance()
5599 s = new Scanner(new BufferedReader(new InputStreamReader(bais))); in testPerformance()