Home
last modified time | relevance | path

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

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/
DX509CertFactoryImplTest.java54 ByteArrayInputStream bais = in testEngineGenerateCertificate() local
57 cert = certFactory.engineGenerateCertificate(bais); in testEngineGenerateCertificate()
59 cert = certFactory.engineGenerateCertificate(bais); in testEngineGenerateCertificate()
63 certFactory.engineGenerateCertificate(bais); in testEngineGenerateCertificate()
69 bais = new ByteArrayInputStream( in testEngineGenerateCertificate()
71 cert = certFactory.engineGenerateCertificate(bais); in testEngineGenerateCertificate()
73 cert = certFactory.engineGenerateCertificate(bais); in testEngineGenerateCertificate()
77 certFactory.engineGenerateCertificate(bais); in testEngineGenerateCertificate()
90 ByteArrayInputStream bais = in testEngineGenerateCertificates() local
94 .engineGenerateCertificates(bais).size()); in testEngineGenerateCertificates()
[all …]
DX509CertPathImplTest.java79 ByteArrayInputStream bais = new ByteArrayInputStream(encoding); in test_getInstance_InputStream() local
80 X509CertPathImpl cpath = X509CertPathImpl.getInstance(bais); in test_getInstance_InputStream()
106 ByteArrayInputStream bais = new ByteArrayInputStream(encoding); in test_getInstance$BLjava_lang_String() local
108 CertPath cert_path = factory.generateCertPath(bais); in test_getInstance$BLjava_lang_String()
117 bais = new ByteArrayInputStream(encoding); in test_getInstance$BLjava_lang_String()
119 cpath = X509CertPathImpl.getInstance(bais, "PKCS7"); in test_getInstance$BLjava_lang_String()
DDRLCertFactoryTest.java215 ByteArrayInputStream bais = new ByteArrayInputStream(certEncoding); in testDRLCertFactory() local
218 certFactory.generateCertificate(bais)); in testDRLCertFactory()
224 certFactory.generateCertificate(bais); in testDRLCertFactory()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactory_ImplTest.java261 ByteArrayInputStream bais = new ByteArrayInputStream( in testGenerateCRLs() local
264 Collection crls = factory.generateCRLs(bais); in testGenerateCRLs()
285 ByteArrayInputStream bais = new ByteArrayInputStream( in testGenerateCRL() local
288 factory.generateCRL(bais); in testGenerateCRL()
291 bais = new ByteArrayInputStream(Base64.decode(pkcs7so.getBytes("UTF-8"))); in testGenerateCRL()
293 factory.generateCertificate(bais); in testGenerateCRL()
303 ByteArrayInputStream bais; in testGenerateBase64CRL() local
306 bais = new ByteArrayInputStream( in testGenerateBase64CRL()
309 X509CRL crl = (X509CRL) factory.generateCRL(bais); in testGenerateBase64CRL()
319 bais = new ByteArrayInputStream( in testGenerateBase64CRL()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactorySpiTest.java63 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi01() local
65 certFactorySpi.engineGenerateCertPath(bais); in testCertificateFactorySpi01()
70 certFactorySpi.engineGenerateCertPath(bais, ""); in testCertificateFactorySpi01()
86 .engineGenerateCertificate(bais); in testCertificateFactorySpi01()
94 .engineGenerateCertificates(bais); in testCertificateFactorySpi01()
102 CRL ccCRL = certFactorySpi.engineGenerateCRL(bais); in testCertificateFactorySpi01()
111 .engineGenerateCRLs(bais); in testCertificateFactorySpi01()
128 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi02() local
129 DataInputStream dis = new DataInputStream(bais); in testCertificateFactorySpi02()
131 certFactorySpi.engineGenerateCertPath(bais); in testCertificateFactorySpi02()
[all …]
DCertificateFactory2Test.java98 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in checkResult() local
99 DataInputStream dis = new DataInputStream(bais); in checkResult()
101 certFactory.generateCertPath(bais); in checkResult()
116 certFactory.generateCertPath(bais, "aa"); in checkResult()
133 certFactory.generateCertificate(bais); in checkResult()
148 certFactory.generateCRL(bais); in checkResult()
DCertificateFactory4Test.java60 ByteArrayInputStream bais = new ByteArrayInputStream( in test_generateCertificateLjava_io_InputStream() local
62 fact.generateCertificate(bais); in test_generateCertificateLjava_io_InputStream()
65 bais = new ByteArrayInputStream(CERTIFICATES_ENCODED_X509[i] in test_generateCertificateLjava_io_InputStream()
67 fact.generateCertificate(bais); in test_generateCertificateLjava_io_InputStream()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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()
DObjectInputStreamTest.java687 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_ClassDescriptor() local
689 bais, cls); in test_ClassDescriptor()
751 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_resolveClass() local
752 ObjectInputStream ois = new ObjectInputStreamWithResolve(bais); in test_resolveClass()
794 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_resolveObjectLjava_lang_Object() local
796 new ObjectInputStreamWithResolveObject(bais); in test_resolveObjectLjava_lang_Object()
816 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_readClassDescriptor() local
818 bais); in test_readClassDescriptor()
824 bais = new ByteArrayInputStream(bytes); in test_readClassDescriptor()
826 bais); in test_readClassDescriptor()
[all …]
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()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
DX509CertificateTest.java77 ByteArrayInputStream bais = in setUp() local
82 cf.generateCertificate(bais); in setUp()
105 ByteArrayInputStream bais = in testGetInstance1() local
108 X509Certificate.getInstance(bais); in testGetInstance1()
/external/jmonkeyengine/engine/src/test/jme3test/export/
DTestOgreConvert.java70 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in simpleInitApp() local
73 Node ogreModelReloaded = (Node) imp.load(bais, null, null); in simpleInitApp()
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DTrustManagerImplTest.java67 ByteArrayInputStream bais = new ByteArrayInputStream(base64certEncoding in setUp() local
70 .generateCertificate(bais); in setUp()
DCertificateRequestTest.java59 ByteArrayInputStream bais = new ByteArrayInputStream(base64certEncoding in testCertificateRequest() local
61 X509Certificate cert = (X509Certificate) certFactory.generateCertificate(bais); in testCertificateRequest()
DCertificateMessageTest.java86 ByteArrayInputStream bais = new ByteArrayInputStream(base64certEncoding in testCertificateMessage2() local
88 X509Certificate cert = (X509Certificate) certFactory.generateCertificate(bais); in testCertificateMessage2()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/
DCertificateTest.java175 ByteArrayInputStream bais = new ByteArrayInputStream(encoding); in testCertificate() local
179 cf.generateCertificate(bais); in testCertificate()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/
DBinaryImporter.java277 ByteArrayInputStream bais = new ByteArrayInputStream(data); in load() local
278 Savable rVal = load(bais); in load()
279 bais.close(); in load()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java614 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]);
615 assertNull(URLConnection.guessContentTypeFromStream(bais));
616 bais.close();
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DPropertiesTest.java1060 ByteArrayInputStream bais = new ByteArrayInputStream(output); in validateOutput() local
1061 BufferedReader br = new BufferedReader(new InputStreamReader(bais, in validateOutput()
/external/webkit/PerformanceTests/Parser/resources/
Dfinal-url-en13440 http://pages.britishlibrary.net/liam.connell/bais.html