/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/ |
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");
|
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
DiskBasedCacheTest.java | 45 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 46 CacheHeader second = CacheHeader.readHeader(bais); 63 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 64 assertEquals(DiskBasedCache.readInt(bais), 0); 65 assertEquals(DiskBasedCache.readInt(bais), 19791214); 66 assertEquals(DiskBasedCache.readInt(bais), -20050711); 67 assertEquals(DiskBasedCache.readInt(bais), Integer.MIN_VALUE); 68 assertEquals(DiskBasedCache.readInt(bais), Integer.MAX_VALUE); 80 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 81 assertEquals(DiskBasedCache.readLong(bais), 0) 95 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 116 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local [all...] |
/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]);
|
/libcore/luni/src/test/java/tests/security/cert/ |
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...] |
CertificateFactory2Test.java | 88 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 89 DataInputStream dis = new DataInputStream(bais); 91 certFactory.generateCertPath(bais); 106 certFactory.generateCertPath(bais, "aa"); 123 certFactory.generateCertificate(bais); 138 certFactory.generateCRL(bais);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateFactory_ImplTest.java | 261 ByteArrayInputStream bais = new ByteArrayInputStream( local 264 Collection crls = factory.generateCRLs(bais); 285 ByteArrayInputStream bais = new ByteArrayInputStream( local 288 factory.generateCRL(bais); 291 bais = new ByteArrayInputStream(Base64.decode(pkcs7so.getBytes("UTF-8"))); 293 factory.generateCertificate(bais); 303 ByteArrayInputStream bais; local 306 bais = new ByteArrayInputStream( 309 X509CRL crl = (X509CRL) factory.generateCRL(bais); 319 bais = new ByteArrayInputStream 561 ByteArrayInputStream bais; local 626 ByteArrayInputStream bais; local 733 ByteArrayInputStream bais = new ByteArrayInputStream( local 757 ByteArrayInputStream bais = new ByteArrayInputStream( local [all...] |
/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...] |
CertificateFactory2Test.java | 98 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); local 99 DataInputStream dis = new DataInputStream(bais); 101 certFactory.generateCertPath(bais); 116 certFactory.generateCertPath(bais, "aa"); 133 certFactory.generateCertificate(bais); 148 certFactory.generateCRL(bais);
|
/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);
|
ClassObj.java | 49 ByteArrayInputStream bais = local 51 DataInputStream dis = new DataInputStream(bais); 191 ByteArrayInputStream bais = local 193 DataInputStream dis = new DataInputStream(bais);
|
/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());
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
ObjectStreamFieldTest.java | 165 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); local 166 ObjectInputStream ois = new ObjectInputStream(bais); 186 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); local 187 MockObjectInputStream ois = new MockObjectInputStream(bais); 204 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); local 205 ObjectInputStream ois = new ObjectInputStream(bais); 237 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); local 238 final MyObjectInputStream ois = new MyObjectInputStream(bais);
|
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...] |
ObjectInputStream2Test.java | 196 ByteArrayInputStream bais; local 203 bais = new ByteArrayInputStream(bytes); 204 ois = new TestObjectInputStream(bais);
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
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);
|
CertificateMessageTest.java | 86 ByteArrayInputStream bais = new ByteArrayInputStream(base64certEncoding local 88 X509Certificate cert = (X509Certificate) certFactory.generateCertificate(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);
|
/libcore/luni/src/main/java/java/util/jar/ |
Manifest.java | 223 private static byte[] exposeByteArrayInputStreamBytes(ByteArrayInputStream bais) { 225 synchronized (bais) { 229 buf = (byte[]) BAIS_BUF.get(bais); 230 pos = BAIS_POS.getInt(bais); 234 int available = bais.available(); 241 bais.skip(available);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 324 ByteArrayInputStream bais; local 333 bais = new ByteArrayInputStream(encoded); 334 b64is = new Base64InputStream(bais, flags); 342 bais = new ByteArrayInputStream(encoded); 343 b64is = new Base64InputStream(bais, flags); 351 bais = new ByteArrayInputStream(encoded); 352 b64is = new Base64InputStream(bais, flags); 372 bais = new ByteArrayInputStream(plain); 373 b64is = new Base64InputStream(bais, flags, true); 381 bais = new ByteArrayInputStream(plain) [all...] |
/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);
|
/frameworks/base/core/java/com/android/internal/http/multipart/ |
MultipartEntity.java | 223 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); local 224 return bais;
|