/libcore/luni/src/test/java/libcore/java/io/ |
OldBufferedOutputStreamTest.java | 32 java.io.ByteArrayInputStream bais; field in class:OldBufferedOutputStreamTest 91 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); 93 0, bais.available()); 95 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); 97 500, bais.available()); 99 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); 101 bais.available() >= 1000); 103 bais.read(wbytes, 0, 1013); 159 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); 161 0, bais.available()) [all...] |
OldAndroidInputStreamReaderTest.java | 96 ByteArrayInputStream bais = new ByteArrayInputStream(ba); local 97 InputStreamReader r = new InputStreamReader(bais, enc[i]);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/ |
DRLCertFactoryTest.java | 215 ByteArrayInputStream bais = new ByteArrayInputStream(certEncoding); local 218 certFactory.generateCertificate(bais)); 224 certFactory.generateCertificate(bais);
|
X509CertFactoryImplTest.java | 54 ByteArrayInputStream bais = local 57 cert = certFactory.engineGenerateCertificate(bais); 59 cert = certFactory.engineGenerateCertificate(bais); 63 certFactory.engineGenerateCertificate(bais); 69 bais = new ByteArrayInputStream( 71 cert = certFactory.engineGenerateCertificate(bais); 73 cert = certFactory.engineGenerateCertificate(bais); 77 certFactory.engineGenerateCertificate(bais); 90 ByteArrayInputStream bais = local 94 .engineGenerateCertificates(bais).size()) 111 ByteArrayInputStream bais = local 148 ByteArrayInputStream bais = local 166 ByteArrayInputStream bais = local 184 ByteArrayInputStream bais = local [all...] |
X509CertPathImplTest.java | 79 ByteArrayInputStream bais = new ByteArrayInputStream(encoding); local 80 X509CertPathImpl cpath = X509CertPathImpl.getInstance(bais); 106 ByteArrayInputStream bais = new ByteArrayInputStream(encoding); local 108 CertPath cert_path = factory.generateCertPath(bais); 117 bais = new ByteArrayInputStream(encoding); 119 cpath = X509CertPathImpl.getInstance(bais, "PKCS7");
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
CertificateMessageTest.java | 86 ByteArrayInputStream bais = new ByteArrayInputStream(base64certEncoding local 88 X509Certificate cert = (X509Certificate) certFactory.generateCertificate(bais);
|
CertificateRequestTest.java | 59 ByteArrayInputStream bais = new ByteArrayInputStream(base64certEncoding local 61 X509Certificate cert = (X509Certificate) certFactory.generateCertificate(bais);
|
TrustManagerImplTest.java | 67 ByteArrayInputStream bais = new ByteArrayInputStream(base64certEncoding local 70 .generateCertificate(bais);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
BufferedOutputStreamTest.java | 32 java.io.ByteArrayInputStream bais; field in class:BufferedOutputStreamTest 134 bais = new ByteArrayInputStream(baos.toByteArray()); 135 assertEquals("Bytes written, not buffered", 0, bais.available()); 137 bais = new ByteArrayInputStream(baos.toByteArray()); 138 assertEquals("Bytes not written after flush", 500, bais.available()); 140 bais = new ByteArrayInputStream(baos.toByteArray()); 142 bais.available() >= 1000); 144 bais.read(wbytes, 0, 1013); 652 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); 653 assertEquals("Byte written, not buffered", 0, bais.available()) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ |
CertificateTest.java | 175 ByteArrayInputStream bais = new ByteArrayInputStream(encoding); local 179 cf.generateCertificate(bais);
|
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
LiteTest.java | 137 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 138 ObjectInputStream in = new ObjectInputStream(bais);
|
/external/jmonkeyengine/engine/src/test/jme3test/export/ |
TestOgreConvert.java | 70 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 73 Node ogreModelReloaded = (Node) imp.load(bais, null, null);
|
/dalvik/hit/src/com/android/hit/ |
ArrayInstance.java | 49 ByteArrayInputStream bais = new ByteArrayInputStream(mData); local 50 DataInputStream dis = new DataInputStream(bais); 104 ByteArrayInputStream bais = new ByteArrayInputStream(mData); local 105 DataInputStream dis = new DataInputStream(bais); 149 ByteArrayInputStream bais = new ByteArrayInputStream(mData); local 150 DataInputStream dis = new DataInputStream(bais);
|
ClassInstance.java | 49 ByteArrayInputStream bais = new ByteArrayInputStream(values); local 50 DataInputStream dis = new DataInputStream(bais); 109 ByteArrayInputStream bais = new ByteArrayInputStream(mFieldValues); local 110 DataInputStream dis = new DataInputStream(bais); 161 ByteArrayInputStream bais = new ByteArrayInputStream(mFieldValues); local 162 DataInputStream dis = new DataInputStream(bais);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateFactorySpiTest.java | 63 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 65 certFactorySpi.engineGenerateCertPath(bais); 70 certFactorySpi.engineGenerateCertPath(bais, ""); 86 .engineGenerateCertificate(bais); 94 .engineGenerateCertificates(bais); 102 CRL ccCRL = certFactorySpi.engineGenerateCRL(bais); 111 .engineGenerateCRLs(bais); 128 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 129 DataInputStream dis = new DataInputStream(bais); 131 certFactorySpi.engineGenerateCertPath(bais); 198 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local [all...] |
/frameworks/base/core/java/android/content/pm/ |
Signature.java | 154 final ByteArrayInputStream bais = new ByteArrayInputStream(mSignature); local 155 final Certificate cert = certFactory.generateCertificate(bais);
|
/frameworks/base/core/java/com/android/internal/http/multipart/ |
MultipartEntity.java | 223 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 224 return bais;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
NinePatch_Delegate.java | 117 ByteArrayInputStream bais = new ByteArrayInputStream(array); local 120 ois = new ObjectInputStream(bais);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherInputStream1Test.java | 253 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[100]); local 262 CipherInputStream cis = new CipherInputStream(bais, c);
|
/libcore/luni/src/test/java/tests/api/org/xml/sax/ |
InputSourceTest.java | 51 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 54 InputSource i = new InputSource(bais); 56 assertEquals(bais, i.getByteStream()); 115 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 120 i.setByteStream(bais); 122 assertEquals(bais, i.getByteStream());
|
/libcore/luni/src/test/java/tests/security/cert/ |
CertificateFactory4Test.java | 63 ByteArrayInputStream bais = new ByteArrayInputStream( local 65 fact.generateCertificate(bais); 68 bais = new ByteArrayInputStream(CERTIFICATES_ENCODED_X509[i] 70 fact.generateCertificate(bais); [all...] |
CertificateFactorySpiTest.java | 56 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 58 certFactorySpi.engineGenerateCertPath(bais); 63 certFactorySpi.engineGenerateCertPath(bais, ""); 78 Certificate cc = certFactorySpi.engineGenerateCertificate(bais); 85 Collection<? extends Certificate> col = certFactorySpi.engineGenerateCertificates(bais); 93 CRL ccCRL = certFactorySpi.engineGenerateCRL(bais); 101 Collection<? extends CRL> colCRL = certFactorySpi.engineGenerateCRLs(bais); 118 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 119 DataInputStream dis = new DataInputStream(bais); 121 certFactorySpi.engineGenerateCertPath(bais); 188 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 255 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 273 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 294 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 320 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 381 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[3]); local [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SerializationBenchmark.java | 96 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); local 98 ObjectInputStream in = new ObjectInputStream(bais); 101 bais.reset();
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLUtils.java | 104 ByteArrayInputStream bais = new ByteArrayInputStream(mHostAuth.mServerCert); local 106 CertificateFactory.getInstance("X509").generateCertificate(bais); 109 bais.close();
|
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/ |
BinaryImporter.java | 277 ByteArrayInputStream bais = new ByteArrayInputStream(data); local 278 Savable rVal = load(bais); 279 bais.close();
|