/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/ |
Main.java | 78 BufferedInputStream bis = new BufferedInputStream(zipSrc.getInputStream(entry)); local 81 convert(bis, zos, targets); 83 while (bis.available() > 0) { 84 zos.write(bis.read()); 87 bis.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
FilterOutputStreamTest.java | 34 ByteArrayInputStream bis; field in class:FilterOutputStreamTest 80 bis = new ByteArrayInputStream(bos.toByteArray()); 83 bis.available() == fileString.length()); 85 bis.read(wbytes, 0, fileString.length()); 97 bis = new ByteArrayInputStream(bos.toByteArray()); 100 bis.available() == fileString.length()); 102 bis.read(wbytes, 0, fileString.length()); 114 bis = new ByteArrayInputStream(bos.toByteArray()); 116 assertEquals("Byte not written after flush", 1, bis.available()); 118 bis.read(wbytes, 0, 1) [all...] |
BufferedInputStreamTest.java | 169 BufferedInputStream bis = new BufferedInputStream( local 172 int available = bis.available(); 173 bis.close(); 177 bis.available(); 340 BufferedInputStream bis = new BufferedInputStream(null); local 342 bis.read(null, -1, -1); 349 bis.read(new byte[0], -1, -1); 356 bis.read(new byte[0], 1, -1); 363 bis.read(new byte[0], 1, 1); 369 bis.close() 456 BufferedInputStream bis = new BufferedInputStream(null); local [all...] |
ObjectOutputStream2Test.java | 53 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); local 54 ObjectInputStream is = new ObjectInputStream(bis);
|
ByteArrayInputStreamTest.java | 35 InputStream bis = new ByteArrayInputStream(fileString.getBytes()); local 38 bis.available() == fileString.length()); 46 InputStream bis = new ByteArrayInputStream(zz, 0, 100); local 48 assertEquals("Unable to create ByteArrayInputStream", 100, bis
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldFilterOutputStreamTest.java | 32 java.io.ByteArrayInputStream bis; field in class:OldFilterOutputStreamTest 103 bis = new ByteArrayInputStream(sos.toByteArray()); 105 bis.available() == testLength); 107 bis.read(wbytes, 0, testLength); 126 bis = new ByteArrayInputStream(sos.toByteArray()); 128 bis.available() == testLength - 10); 130 bis.read(wbytes); 176 bis = new ByteArrayInputStream(sos.toByteArray()); 178 bis.available() == 1); 180 42, bis.read()) [all...] |
OldByteArrayInputStreamTest.java | 32 java.io.InputStream bis = new java.io.ByteArrayInputStream(fileString local 37 bis.available() == fileString.length()); 47 java.io.InputStream bis = new java.io.ByteArrayInputStream(zz, 0, 100); local 51 100, bis.available());
|
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
FuncSystemProperty.java | 187 BufferedInputStream bis = new BufferedInputStream(is); local 189 target.load(bis); // and load up the property bag from this 190 bis.close(); // close out after reading
|
/art/test/909-attach-agent/src-art/ |
Main.java | 94 BufferedInputStream bis = new BufferedInputStream(new FileInputStream(orig)); local 98 int r = bis.read(buf, 0, buf.length); 106 bis.close();
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLKey.java | 91 OpenSSLBIOInputStream bis = new OpenSSLBIOInputStream(is, true); local 93 long keyCtx = NativeCrypto.PEM_read_bio_PrivateKey(bis.getBioContext()); 102 bis.release(); 247 OpenSSLBIOInputStream bis = new OpenSSLBIOInputStream(is, true); local 249 long keyCtx = NativeCrypto.PEM_read_bio_PUBKEY(bis.getBioContext()); 258 bis.release();
|
OpenSSLX509CertPath.java | 145 OpenSSLBIOInputStream bis = new OpenSSLBIOInputStream(inStream, true); local 154 certRefs = NativeCrypto.ASN1_seq_unpack_X509_bio(bis.getBioContext()); 164 bis.release();
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/ |
GifBitmapWrapperResourceDecoder.java | 80 InputStream bis = streamFactory.build(source.getStream(), bytes); local 81 bis.mark(MARK_LIMIT_BYTES); 82 ImageHeaderParser.ImageType type = parser.parse(bis); 83 bis.reset(); 87 result = decodeGifWrapper(bis, width, height); 93 ImageVideoWrapper forBitmapDecoder = new ImageVideoWrapper(bis, source.getFileDescriptor()); 99 private GifBitmapWrapper decodeGifWrapper(InputStream bis, int width, int height) throws IOException { 101 Resource<GifDrawable> gifResource = gifDecoder.decode(bis, width, height);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
DumpDatabaseAction.java | 56 BufferedInputStream bis = null; local 68 bis = new BufferedInputStream(new FileInputStream(inFile)); 72 while ((bytesRead = bis.read(buffer)) > 0) { 88 if (bis != null) { 90 bis.close();
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
PhotoSource.java | 165 BufferedInputStream bis = new BufferedInputStream(is); local 166 bis.mark(BUFFER_SIZE); 170 image = BitmapFactory.decodeStream(new BufferedInputStream(bis), null, options); 190 bis.reset(); 193 bis.close(); 195 bis = new BufferedInputStream(is); 199 image = BitmapFactory.decodeStream(bis, null, options);
|
/external/slf4j/jcl-over-slf4j/src/test/java/org/apache/commons/logging/impl/ |
SerializationTest.java | 61 ByteArrayInputStream bis = new ByteArrayInputStream(baos.toByteArray()); local 62 ois = new ObjectInputStream(bis);
|
/libcore/luni/src/test/java/libcore/xml/ |
NodeTest.java | 41 ByteArrayInputStream bis = new ByteArrayInputStream("<root/>".getBytes()); local 42 Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(bis);
|
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
OutputPropertiesFactory.java | 358 BufferedInputStream bis = null; local 380 bis = new BufferedInputStream(is); 381 props.load(bis); 418 if (bis != null) 420 bis.close();
|
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/ |
ByteBuddyCrossClassLoaderSerializationSupport.java | 198 ByteArrayInputStream bis = new ByteArrayInputStream(serializedMock); local 199 ObjectInputStream objectInputStream = new MockitoMockObjectInputStream(bis, typeToMock, extraInterfaces); 203 bis.close();
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
TestUtils.java | 101 BufferedInputStream bis = null; local 103 bis = new BufferedInputStream(new ByteArrayInputStream( 105 X509Certificate c1 = (X509Certificate)cf.generateCertificate(bis); 112 if (bis != null) { 114 bis.close() ; 154 BufferedInputStream bis = null; local 166 if (initialize && bis != null) { 168 bis.close(); [all...] |
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
SecureWebServer.java | 173 BufferedInputStream bis; local 175 bis = new BufferedInputStream(ctx.getAssets().open(EMBEDDED_IMAGE_FILENAME)); 176 byte[] embeddedImage = new byte[bis.available()]; 177 bis.read(embeddedImage);
|
/external/apache-harmony/support/src/test/java/tests/util/ |
SerializationTester.java | 74 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); local 75 ObjectInputStream ois = new ObjectInputStream(bis);
|
/external/javassist/src/test/test/javassist/proxy/ |
ProxySerializationTest.java | 41 ByteArrayInputStream bis = new ByteArrayInputStream(bytes); local 42 ObjectInputStream in = new ObjectInputStream(bis); 68 ByteArrayInputStream bis = new ByteArrayInputStream(bytes); local 69 ProxyObjectInputStream in = new ProxyObjectInputStream(bis);
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
URLFetcher.java | 140 BufferedInputStream bis = new BufferedInputStream(inputStream); local 143 while ((len = bis.read(buffer)) != -1) {
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
PasspointProvisioningTestUtil.java | 113 ByteArrayInputStream bis = new ByteArrayInputStream( local 115 Certificate cert = certFactory.generateCertificate(bis);
|
/libcore/support/src/test/java/tests/util/ |
SerializationTester.java | 52 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); local 53 ObjectInputStream ois = new ObjectInputStream(bis);
|