Searched refs:out (Results 1 - 25 of 274) sorted by relevance

1234567891011

/libcore/luni/src/test/java/libcore/java/io/
H A DOldPipedOutputStreamTest.java33 public PReader(PipedOutputStream out) { argument
35 reader = new PipedInputStream(out);
37 System.out.println("Exception setting up reader: "
66 System.out.println("Exception reading ("
83 PipedOutputStream out; field in class:OldPipedOutputStreamTest
86 out = new PipedOutputStream();
87 assertNotNull(out);
89 out.close();
99 out = new PipedOutputStream(new PipedInputStream());
100 out
[all...]
/libcore/luni/src/main/java/java/io/
H A DFilterWriter.java35 protected Writer out; field in class:FilterWriter
38 * Constructs a new FilterWriter on the Writer {@code out}. All writes are
41 * @param out
44 protected FilterWriter(Writer out) { argument
45 super(out);
46 this.out = out;
58 out.close();
63 * Flushes this writer to ensure all pending data is sent out to the target
72 out
[all...]
H A DFilterOutputStream.java38 protected OutputStream out; field in class:FilterOutputStream
41 * Constructs a new {@code FilterOutputStream} with {@code out} as its
44 * @param out
47 public FilterOutputStream(OutputStream out) { argument
48 this.out = out;
67 out.close();
80 * Ensures that all pending data is sent out to the target stream. This
88 out.flush();
112 // Call write() instead of out
[all...]
H A DPipedInputStream.java40 * range {@code [out, in)} and written to the range {@code [in, out)}.
45 * out in</pre>
50 * in out</pre>
53 * {@code in == out}. Writing when the buffer is full will block until free
66 protected int out; field in class:PipedInputStream
87 * {@link PipedOutputStream} {@code out}. Any data written to the output
90 * @param out
93 * if this stream or {@code out} are already connected.
95 public PipedInputStream(PipedOutputStream out) throw argument
126 PipedInputStream(PipedOutputStream out, int pipeSize) argument
[all...]
H A DPipedReader.java40 * range {@code [out, in)} and written to the range {@code [in, out)}.
45 * out in</pre>
50 * in out</pre>
53 * {@code in == out}. Writing when the buffer is full will block until free
66 private int out; field in class:PipedReader
87 * {@code out}. Any data written to the writer can be read from the this
90 * @param out
93 * if {@code out} is already connected.
95 public PipedReader(PipedWriter out) throw argument
126 PipedReader(PipedWriter out, int pipeSize) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Any.java96 public void encodeASN(BerOutputStream out) { argument
97 out.encodeANY();
100 public void encodeContent(BerOutputStream out) { argument
101 out.encodeANY();
104 public void setEncodingContent(BerOutputStream out) { argument
105 out.length = ((byte[]) out.content).length;
108 public int getEncodedLength(BerOutputStream out) { argument
109 return out.length;
H A DASN1Sequence.java48 public final void encodeContent(BerOutputStream out) { argument
49 out.encodeSequence(this);
52 public final void setEncodingContent(BerOutputStream out) { argument
53 out.getSequenceLength(this);
H A DASN1SequenceOf.java48 public final void encodeContent(BerOutputStream out) { argument
49 out.encodeSequenceOf(this);
52 public final void setEncodingContent(BerOutputStream out) { argument
53 out.getSequenceOfLength(this);
H A DASN1Set.java48 public final void encodeContent(BerOutputStream out) { argument
49 out.encodeSet(this);
52 public final void setEncodingContent(BerOutputStream out) { argument
53 out.getSetLength(this);
H A DASN1SetOf.java48 public final void encodeContent(BerOutputStream out) { argument
49 out.encodeSetOf(this);
52 public final void setEncodingContent(BerOutputStream out) { argument
53 out.getSetOfLength(this);
H A DASN1Constructed.java52 public void encodeASN(BerOutputStream out) { argument
53 out.encodeTag(constrId);
54 encodeContent(out);
H A DASN1Primitive.java48 public void encodeASN(BerOutputStream out) { argument
49 out.encodeTag(id);
50 encodeContent(out);
H A DASN1StringType.java46 public void setEncodingContent(BerOutputStream out) { argument
47 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8);
48 out.content = bytes;
49 out.length = bytes.length;
102 public void encodeASN(BerOutputStream out) { argument
103 out.encodeTag(id);
104 encodeContent(out);
107 public void encodeContent(BerOutputStream out) { argument
108 out.encodeString();
111 public void setEncodingContent(BerOutputStream out) { argument
[all...]
H A DASN1Boolean.java84 public void encodeContent(BerOutputStream out) { argument
85 out.encodeBoolean();
88 public void setEncodingContent(BerOutputStream out) { argument
89 out.length = 1;
/libcore/luni/src/test/java/tests/support/
H A DMockCallback.java25 System.out.println("&lt;TH&gt;&lt;TR&gt;");
27 System.out.println("&lt;TD&gt;" + cols[i] + "&lt;/TD&gt;");
29 System.out.println("&lt;/TR&gt;&lt;/TH&gt;");
33 System.out.println("&lt;TR&gt;");
35 System.out.println("&lt;TD&gt;" + cols[i] + "&lt;/TD&gt;");
37 System.out.println("&lt;/TR&gt;");
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestKeyManager.java39 private static final PrintStream out = LOG ? System.out : new NullPrintStream(); field in class:TestKeyManager
59 out.println("TestKeyManager.<init> keyManager=" + keyManager);
64 out.print("TestKeyManager.chooseClientAlias");
65 out.print(" | keyTypes: ");
67 out.print(keyType);
68 out.print(' ');
89 out.print("TestKeyManager.chooseServerAlias");
90 out.print(" | keyType: ");
91 out
[all...]
/libcore/dex/src/main/java/com/android/dex/util/
H A DExceptionWithContext.java92 public void printStackTrace(PrintStream out) { argument
93 super.printStackTrace(out);
94 out.println(context);
99 public void printStackTrace(PrintWriter out) { argument
100 super.printStackTrace(out);
101 out.println(context);
132 * @param out {@code non-null;} where to print to
134 public void printContext(PrintStream out) { argument
135 out.println(getMessage());
136 out
144 printContext(PrintWriter out) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBase64.java47 byte[] out = new byte[length];
107 out[outIndex++] = (byte) (quantum >> 16);
108 out[outIndex++] = (byte) (quantum >> 8);
109 out[outIndex++] = (byte) quantum;
117 out[outIndex++] = (byte) (quantum >> 16);
119 out[outIndex++] = (byte) (quantum >> 8);
124 System.arraycopy(out, 0, result, 0, outIndex);
137 byte[] out = new byte[length];
140 out[index++] = map[(in[i] & 0xff) >> 2];
141 out[inde
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
H A DASCIICharsetEncoderTest.java85 ByteBuffer out = ByteBuffer.allocate(10);
86 assertTrue(encoder.encode(CharBuffer.wrap("\ud800"), out, true)
88 encoder.flush(out);
90 out = ByteBuffer.allocate(10);
92 .wrap("\ud800"), out, false));
93 assertTrue(encoder.encode(CharBuffer.wrap("\udc00"), out, true)
134 ByteBuffer out = ByteBuffer.allocate(0x10);
138 encoder.encode(in, out, false);
140 encoder.encode(in, out, true);
141 encoder.flush(out);
[all...]
/libcore/luni/src/main/java/java/util/zip/
H A DGZIPOutputStream.java84 out.write(Deflater.DEFLATED);
85 out.write(0); // flags
87 out.write(0); // extra flags
88 out.write(0); // operating system
92 * Indicates to the stream that all data has been written out, and any GZIP
116 // Write out the long value as an unsigned int
118 out.write(unsigned & 0xFF);
119 out.write((unsigned >> 8) & 0xFF);
120 out.write((unsigned >> 16) & 0xFF);
121 out
[all...]
H A DInflaterOutputStream.java41 * implementation-defined default internal buffer size. {@code out} is a destination
44 * @param out the destination {@code OutputStream}
46 public InflaterOutputStream(OutputStream out) { argument
47 this(out, new Inflater());
52 * implementation-defined default internal buffer size. {@code out} is a destination
55 * @param out the destination {@code OutputStream}
58 public InflaterOutputStream(OutputStream out, Inflater inf) { argument
59 this(out, inf, DEFAULT_BUFFER_SIZE);
64 * given internal buffer size. {@code out} is a destination
67 * @param out th
71 InflaterOutputStream(OutputStream out, Inflater inf, int bufferSize) argument
[all...]
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharsetEncoderDecoderBufferTest.java34 * is done first with an out-buffer with hasArray()==true, and next with an out-buffer with
35 * hasArray()==false. In that situation ICU may overwrite the first out-buffer.
41 CharBuffer out = CharBuffer.wrap(cBuf);
42 assertTrue(out.hasArray());
44 out, false);
51 out = ByteBuffer.wrap(bBuf).asCharBuffer();
52 assertFalse(out.hasArray());
53 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'x'}), out, true);
71 CharBuffer out
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DTypes.java93 * Appends the best {@link #toString} name for {@code c} to {@code out}.
99 public static void appendTypeName(StringBuilder out, Class<?> c) { argument
105 out.append(c.getName());
107 out.append("[]");
112 * Appends names of the {@code types} to {@code out} separated by commas.
114 public static void appendArrayGenericType(StringBuilder out, Type[] types) { argument
118 appendGenericType(out, types[0]);
120 out.append(',');
121 appendGenericType(out, types[i]);
125 public static void appendGenericType(StringBuilder out, Typ argument
[all...]
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
H A DCharsetEncoderTest.java139 // Commented out since the comment is wrong since MAX_BYTES > 1
213 // Commented out since the comment is wrong since MAX_BYTES > 1
283 ByteBuffer out = ByteBuffer.allocate(5);
288 encoder.flush(out);
295 encoder.encode(in, out, true);
296 out.rewind();
297 CoderResult result = encoder.flush(out);
300 encoder.flush(out);
304 encoder.encode(in, out, false);
306 encoder.flush(out);
701 assertByteArray(ByteBuffer out, byte[] expected) argument
908 assertCodingErrorAction(boolean endOfInput, ByteBuffer out, CharBuffer in, byte[] expect) argument
1056 encodeLoop(CharBuffer in, ByteBuffer out) argument
1094 implFlush(ByteBuffer out) argument
[all...]
/libcore/luni/src/main/java/java/util/prefs/
H A DXMLParser.java150 BufferedWriter out = new BufferedWriter(new OutputStreamWriter(stream, "UTF-8"));
151 out.write(HEADER);
152 out.newLine();
153 out.newLine();
155 out.write(DOCTYPE);
156 out.write(" '");
157 out.write(PREFS_DTD_NAME);
158 out.write("'>");
159 out.newLine();
160 out
177 exportNode(StringTokenizer ancestors, Preferences prefs, boolean withSubTree, BufferedWriter out) argument
196 exportSubTree(Preferences prefs, BufferedWriter out) argument
210 exportEntries(Preferences prefs, BufferedWriter out) argument
220 exportEntries(String[] keys, String[] values, BufferedWriter out) argument
236 flushEndTag(String tagName, BufferedWriter out) argument
245 flushEmptyElement(String tagName, BufferedWriter out) argument
255 flushEmptyElement(String tagName, String[] attrKeys, String[] attrValues, BufferedWriter out) argument
266 flushPairs(String[] attrKeys, String[] attrValues, BufferedWriter out) argument
277 flushIndent(int ind, BufferedWriter out) argument
284 flushStartTag(String tagName, String[] attrKeys, String[] attrValues, BufferedWriter out) argument
294 flushStartTag(String tagName, BufferedWriter out) argument
[all...]

Completed in 267 milliseconds

1234567891011