/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/ |
MemoryTextBody.java | 32 //BEGIN android-changed: Stubbing out logging 64 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 65 IOUtils.copy(is, out); 66 out.close(); 67 tempFile = out.toByteArray(); 115 public void writeTo(OutputStream out) throws IOException { 116 IOUtils.copy(new ByteArrayInputStream(tempFile), out);
|
TempFileBinaryBody.java | 27 //BEGIN android-changed: Stubbing out logging 59 OutputStream out = tempFile.getOutputStream(); local 60 IOUtils.copy(is, out); 61 out.close(); 88 public void writeTo(OutputStream out) throws IOException { 89 IOUtils.copy(getInputStream(),out); local
|
TempFileTextBody.java | 30 //BEGIN android-changed: Stubbing out logging 64 OutputStream out = tempFile.getOutputStream(); local 65 IOUtils.copy(is, out); 66 out.close(); 114 public void writeTo(OutputStream out) throws IOException { 115 IOUtils.copy(tempFile.getInputStream(), out); local
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/ |
FakeSocketServerHelper.java | 54 PrintWriter out = null; local 59 out = new PrintWriter(client.getOutputStream(), true); 68 out.print("{\"uid\":1,\"status\":true}"); 69 out.print('\n'); 70 out.flush(); 72 out.print("{\"id\":2,\"result\":true,\"error\":null}"); 73 out.print('\n'); 74 out.flush();
|
/external/r8/src/main/java/com/android/tools/r8/graph/ |
DexCallSite.java | 108 private ObjectOutputStream out; field in class:DexCallSite.HashBuilder 111 out.writeInt(string.size); // To avoid same-prefix problem 112 out.write(string.content); 120 out.writeShort(methodHandle.type.getValue()); 132 out.writeInt(params.length); 151 out.writeInt(args.size()); 155 out.writeByte(0); 161 out.writeByte(1); 167 out.writeByte(2); 168 out.writeInt(((DexValue.DexValueInt) arg).value) [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
ZipOutputStreamTest.java | 84 ZipOutputStream out = local 87 out.close(); 96 try (ZipOutputStream out = new ZipOutputStream(new ByteArrayOutputStream())) { 97 out.setComment(null); 98 out.putNextEntry(new ZipEntry("name")); 99 out.write(new byte[1]); 100 out.closeEntry(); 101 out.finish(); 113 try (ZipOutputStream out = new ZipOutputStream(bos)) { 117 out.putNextEntry(entryWithoutExplicitTime) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
LoggingPrintStreamTest.java | 34 TestPrintStream out = new TestPrintStream(); field in class:LoggingPrintStreamTest 43 t.printStackTrace(out); 47 assertEquals(Arrays.asList(lines), out.lines); 52 out.print(4); 53 out.print(o); 54 out.print(2); 55 out.flush(); 56 assertEquals(Arrays.asList("4" + o + "2"), out.lines); 61 out.print(4); 62 out.println(o) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
PipedOutputStreamTest.java | 36 public PReader(PipedOutputStream out) { 38 reader = new PipedInputStream(out); 40 System.out.println("Couldn't start reader"); 68 System.out.println("Exception reading info"); 78 PipedOutputStream out; field in class:PipedOutputStreamTest 91 out = new PipedOutputStream(new PipedInputStream()); 92 out.write('b'); 99 out = new PipedOutputStream(); 100 rt = new Thread(reader = new PReader(out)); 102 out.close() 177 PipedOutputStream out = new PipedOutputStream(pis); local [all...] |
/cts/common/util/src/com/android/compatibility/common/util/ |
ZipUtil.java | 43 ZipOutputStream out = null; local 46 out = new ZipOutputStream(new BufferedOutputStream(fileStream)); 47 addToZip(out, dir, new LinkedList<String>()); 55 out.close(); 62 * @param out the {@link ZipOutputStream} 67 public static void addToZip(ZipOutputStream out, File file, List<String> relativePathSegs) 75 out.putNextEntry(zipEntry); 77 writeToStream(file, out); 79 out.closeEntry(); 88 addToZip(out, subFile, relativePathSegs) [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
ServicePermissionsTest.java | 102 final FileOutputStream out = new FileOutputStream(mTempFile); local 104 serviceBinder.dump(out.getFD(), new String[0]); 118 out.close();
|
/cts/tests/tests/text/src/android/text/cts/ |
AnnotationTest.java | 80 Annotation out = new Annotation(dest); local 81 assertEquals(out.getKey(), mAnnotation.getKey()); 82 assertEquals(out.getValue(), mAnnotation.getValue()); 84 assertEquals(0, out.describeContents());
|
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/ |
CharSinkTester.java | 96 Writer out = create(); local 97 out.close(); 104 Writer out = create(); local 106 out.write(a, 1000, 0); 107 out.write(a, 0, 0); 108 out.write(new char[] { }); 110 out.close(); 117 Writer out = create(); local 119 out.write(c); 122 out.close() 129 Writer out = create(); local 141 Writer out = create(); local 172 Writer out = create(); local 181 Writer out = create(); local 196 Writer out = create(); local [all...] |
SinkTester.java | 97 OutputStream out = create(); local 98 out.close(); 105 OutputStream out = create(); local 107 out.write(a, 1000, 0); 108 out.write(a, 0, 0); 109 out.write(new byte[] { }); 111 out.close(); 118 OutputStream out = create(); local 120 out.write(b); 123 out.close() 134 OutputStream out = create(); local 156 OutputStream out = create(); local 184 OutputStream out = create(); local 193 OutputStream out = create(); local 208 OutputStream out = create(); local [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
ChunkedOutputStream.java | 58 private final SessionOutputBuffer out; field in class:ChunkedOutputStream 72 * @param out the session output buffer to wrap 76 public ChunkedOutputStream(final SessionOutputBuffer out, int bufferSize) 80 this.out = out; 87 * @param out the output buffer to wrap 90 public ChunkedOutputStream(final SessionOutputBuffer out) 92 this(out, 2048); 97 * Writes the cache out onto the underlying stream 102 this.out.writeLine(Integer.toHexString(this.cachePosition)) [all...] |
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
RandomAccessFileInputStreamFactoryTest.java | 56 FileOutputStream out = new FileOutputStream(tempFile); local 57 out.write(testData); 58 out.flush(); 59 out.close();
|
/external/guava/guava-tests/test/com/google/common/io/ |
ByteSinkTest.java | 47 OutputStream out = sink.openBufferedStream(); local 51 out.write(new byte[] {1, 2, 3, 4}); 52 out.close();
|
IoTestCase.java | 166 OutputStream out = new FileOutputStream(file); local 170 out.write(buf, 0, read); 173 out.close();
|
/external/jacoco/org.jacoco.cli.test/src/org/jacoco/cli/internal/commands/ |
InstrumentTest.java | 66 + destdir.getAbsolutePath(), out); 94 OutputStream out = new FileOutputStream( local 96 out.write((byte) 0xca); 97 out.write((byte) 0xfe); 98 out.write((byte) 0xba); 99 out.write((byte) 0xbe); 100 out.write((byte) 0x00); 101 out.write((byte) 0x00); 102 out.write((byte) 0x00); 103 out.write((byte) 50) [all...] |
/external/jarjar/src/main/com/tonicsystems/jarjar/util/ |
IoUtil.java | 31 public static void pipe(InputStream is, OutputStream out, byte[] buf) throws IOException { 36 out.write(buf, 0, amt); 43 OutputStream out = new FileOutputStream(to); local 45 pipe(in, out, buf); 47 out.close();
|
/external/r8/src/test/java/com/android/tools/r8/ |
TestBase.java | 67 try (JarOutputStream out = new JarOutputStream(new FileOutputStream(jar.toFile()))) { 71 out.putNextEntry(new ZipEntry(clazz.getCanonicalName().replace('.', '/') + ".class")); 72 ByteStreams.copy(in, out); 73 out.closeEntry(); 208 Path out = File.createTempFile("junit", ".zip", temp.getRoot()).toPath(); local 209 app.writeToZip(out, OutputMode.Indexed); 211 ImmutableList.of(out.toString()), mainClass.getCanonicalName(), null); 218 Path out = File.createTempFile("junit", ".zip", temp.getRoot()).toPath(); local 219 app.writeToZip(out, OutputMode.Indexed); 221 ImmutableList.of(out.toString()), mainClass.getCanonicalName() [all...] |
/frameworks/base/core/java/android/app/admin/ |
SystemUpdateInfo.java | 124 public void writeToXml(XmlSerializer out, String tag) throws IOException { 125 out.startTag(null, tag); 126 out.attribute(null, ATTR_RECEIVED_TIME, String.valueOf(mReceivedTime)); 127 out.attribute(null, ATTR_SECURITY_PATCH_STATE, String.valueOf(mSecurityPatchState)); 128 out.attribute(null, ATTR_ORIGINAL_BUILD , Build.FINGERPRINT); 129 out.endTag(null, tag);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
DeletedEphemeralSsidsStoreDataTest.java | 69 final XmlSerializer out = new FastXmlSerializer(); local 71 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); 72 mDeletedEphemeralSsidsStoreData.serializeData(out, shared); 73 out.flush();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
GZIPOutputStreamTest.java | 38 TestGZIPOutputStream(OutputStream out) throws IOException { 39 super(out); 42 TestGZIPOutputStream(OutputStream out, int size) throws IOException { 43 super(out, size); 156 // System.out.print(outGZIP.getChecksum().getValue()); 167 assertEquals("out of bounds exception is not present", 1, r); 182 GZIPOutputStream out = new GZIPOutputStream(pout, true /* syncFlush */); local 184 out.write(1); 185 out.write(2); 186 out.write(3) [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ |
ServerSocketFactoryTest.java | 84 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 85 transfer(in, out); 86 assertEquals(Arrays.toString(data), Arrays.toString(out.toByteArray())); 115 System.out.println("backlog peaked at " + peak); 128 private void transfer(InputStream in, ByteArrayOutputStream out) throws IOException { 132 out.write(buffer, 0, count);
|
/libcore/ojluni/src/main/java/java/io/ |
BufferedWriter.java | 48 * PrintWriter out 49 * = new PrintWriter(new BufferedWriter(new FileWriter("foo.out"))); 68 private Writer out; field in class:BufferedWriter 85 * @param out A Writer 87 public BufferedWriter(Writer out) { 88 this(out, defaultCharBufferSize); 95 * @param out A Writer 100 public BufferedWriter(Writer out, int sz) { 101 super(out); 104 this.out = out [all...] |