Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 275) sorted by relevance

1234567891011

/libcore/luni/src/test/java/libcore/java/io/
DOldPipedOutputStreamTest.java33 public PReader(PipedOutputStream out) { in PReader() argument
35 reader = new PipedInputStream(out); in PReader()
37 System.out.println("Exception setting up reader: " in PReader()
66 System.out.println("Exception reading (" in read()
83 PipedOutputStream out; field in OldPipedOutputStreamTest
86 out = new PipedOutputStream(); in test_Constructor()
87 assertNotNull(out); in test_Constructor()
89 out.close(); in test_Constructor()
99 out = new PipedOutputStream(new PipedInputStream()); in test_ConstructorLjava_io_PipedInputStream()
100 out.write('b'); in test_ConstructorLjava_io_PipedInputStream()
[all …]
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestKeyManager.java39 private static final PrintStream out = LOG ? System.out : new NullPrintStream(); field in TestKeyManager
59 out.println("TestKeyManager.<init> keyManager=" + keyManager); in TestKeyManager()
64 out.print("TestKeyManager.chooseClientAlias"); in chooseClientAlias()
65 out.print(" | keyTypes: "); in chooseClientAlias()
67 out.print(keyType); in chooseClientAlias()
68 out.print(' '); in chooseClientAlias()
89 out.print("TestKeyManager.chooseServerAlias"); in chooseServerAlias()
90 out.print(" | keyType: "); in chooseServerAlias()
91 out.print(keyType); in chooseServerAlias()
92 out.print(' '); in chooseServerAlias()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
DASCIICharsetEncoderTest.java85 ByteBuffer out = ByteBuffer.allocate(10); in testMultiStepEncode() local
86 assertTrue(encoder.encode(CharBuffer.wrap("\ud800"), out, true) in testMultiStepEncode()
88 encoder.flush(out); in testMultiStepEncode()
90 out = ByteBuffer.allocate(10); in testMultiStepEncode()
92 .wrap("\ud800"), out, false)); in testMultiStepEncode()
93 assertTrue(encoder.encode(CharBuffer.wrap("\udc00"), out, true) in testMultiStepEncode()
134 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState() local
138 encoder.encode(in, out, false); in testInternalState()
140 encoder.encode(in, out, true); in testInternalState()
141 encoder.flush(out); in testInternalState()
[all …]
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
DCharsetDecoderTest.java214 CharBuffer out = decoder.decode(ByteBuffer.allocate(0)); in implTestDecodeByteBuffer() local
215 assertCharBufferValue("", out); in implTestDecodeByteBuffer()
219 out = decoder.decode(in); in implTestDecodeByteBuffer()
220 assertEquals(0, out.position()); in implTestDecodeByteBuffer()
221 assertEquals(getString().length(), out.limit()); in implTestDecodeByteBuffer()
222 assertEquals(getString().length(), out.remaining()); in implTestDecodeByteBuffer()
223 assertCharBufferValue(getString(), out); in implTestDecodeByteBuffer() local
227 out = decoder.decode(in); in implTestDecodeByteBuffer()
228 assertEquals(out.position(), 0); in implTestDecodeByteBuffer()
229 assertEquals(out.limit(), getString().length()); in implTestDecodeByteBuffer()
[all …]
DCharsetEncoderTest.java283 ByteBuffer out = ByteBuffer.allocate(5); in testFlushIllegalState() local
288 encoder.flush(out); in testFlushIllegalState()
295 encoder.encode(in, out, true); in testFlushIllegalState()
296 out.rewind(); in testFlushIllegalState()
297 CoderResult result = encoder.flush(out); in testFlushIllegalState()
300 encoder.flush(out); in testFlushIllegalState()
304 encoder.encode(in, out, false); in testFlushIllegalState()
306 encoder.flush(out); in testFlushIllegalState()
313 ByteBuffer out = ByteBuffer.allocate(5); in testFlushAfterConstructing() local
317 encoder.flush(out); in testFlushAfterConstructing()
[all …]
/libcore/luni/src/main/java/java/util/prefs/
DXMLParser.java150 BufferedWriter out = new BufferedWriter(new OutputStreamWriter(stream, "UTF-8")); in exportPrefs() local
151 out.write(HEADER); in exportPrefs()
152 out.newLine(); in exportPrefs()
153 out.newLine(); in exportPrefs()
155 out.write(DOCTYPE); in exportPrefs()
156 out.write(" '"); in exportPrefs()
157 out.write(PREFS_DTD_NAME); in exportPrefs()
158 out.write("'>"); in exportPrefs()
159 out.newLine(); in exportPrefs()
160 out.newLine(); in exportPrefs()
[all …]
/libcore/luni/src/main/java/java/io/
DPipedInputStream.java66 protected int out; field in PipedInputStream
95 public PipedInputStream(PipedOutputStream out) throws IOException { in PipedInputStream() argument
96 connect(out); in PipedInputStream()
126 public PipedInputStream(PipedOutputStream out, int pipeSize) throws IOException { in PipedInputStream() argument
128 connect(out); in PipedInputStream()
145 return in <= out ? buffer.length - out + in : in - out; in available()
242 int result = buffer[out++] & 0xff; in read()
243 if (out == buffer.length) { in read()
244 out = 0; in read()
246 if (out == in) { in read()
[all …]
DFilterWriter.java35 protected Writer out; field in FilterWriter
44 protected FilterWriter(Writer out) { in FilterWriter() argument
45 super(out); in FilterWriter()
46 this.out = out; in FilterWriter()
58 out.close(); in close()
72 out.flush(); in flush()
92 out.write(buffer, offset, count); in write()
108 out.write(oneChar); in write()
129 out.write(str, offset, count); in write()
DPipedReader.java66 private int out; field in PipedReader
95 public PipedReader(PipedWriter out) throws IOException { in PipedReader() argument
96 connect(out); in PipedReader()
126 public PipedReader(PipedWriter out, int pipeSize) throws IOException { in PipedReader() argument
128 connect(out); in PipedReader()
262 if (out >= in) { in read()
263 copyLength = count > this.buffer.length - out ? this.buffer.length - out : count; in read()
264 System.arraycopy(this.buffer, out, buffer, offset, copyLength); in read()
265 out += copyLength; in read()
266 if (out == this.buffer.length) { in read()
[all …]
DBufferedWriter.java41 private Writer out; field in BufferedWriter
53 public BufferedWriter(Writer out) { in BufferedWriter() argument
54 this(out, 8192); in BufferedWriter()
65 public BufferedWriter(Writer out, int size) { in BufferedWriter() argument
66 super(out); in BufferedWriter()
70 this.out = out; in BufferedWriter()
98 out.close(); in close()
104 out = null; in close()
124 out.flush(); in flush()
139 out.write(buf, 0, pos); in flushInternal()
[all …]
DOutputStreamWriter.java40 private final OutputStream out; field in OutputStreamWriter
54 public OutputStreamWriter(OutputStream out) { in OutputStreamWriter() argument
55 this(out, Charset.defaultCharset()); in OutputStreamWriter()
73 public OutputStreamWriter(OutputStream out, final String charsetName) in OutputStreamWriter() argument
75 super(out); in OutputStreamWriter()
79 this.out = out; in OutputStreamWriter()
99 public OutputStreamWriter(OutputStream out, Charset cs) { in OutputStreamWriter() argument
100 super(out); in OutputStreamWriter()
101 this.out = out; in OutputStreamWriter()
117 public OutputStreamWriter(OutputStream out, CharsetEncoder charsetEncoder) { in OutputStreamWriter() argument
[all …]
/libcore/luni/src/main/java/libcore/io/
DBase64.java47 byte[] out = new byte[length]; in decode()
107 out[outIndex++] = (byte) (quantum >> 16); in decode()
108 out[outIndex++] = (byte) (quantum >> 8); in decode()
109 out[outIndex++] = (byte) quantum; in decode()
117 out[outIndex++] = (byte) (quantum >> 16); in decode()
119 out[outIndex++] = (byte) (quantum >> 8); in decode()
124 System.arraycopy(out, 0, result, 0, outIndex); in decode()
137 byte[] out = new byte[length]; in encode()
140 out[index++] = map[(in[i] & 0xff) >> 2]; in encode()
141 out[index++] = map[((in[i] & 0x03) << 4) | ((in[i+1] & 0xff) >> 4)]; in encode()
[all …]
/libcore/luni/src/main/java/libcore/reflect/
DTypes.java99 public static void appendTypeName(StringBuilder out, Class<?> c) { in appendTypeName() argument
105 out.append(c.getName()); in appendTypeName()
107 out.append("[]"); in appendTypeName()
114 public static void appendArrayGenericType(StringBuilder out, Type[] types) { in appendArrayGenericType() argument
118 appendGenericType(out, types[0]); in appendArrayGenericType()
120 out.append(','); in appendArrayGenericType()
121 appendGenericType(out, types[i]); in appendArrayGenericType()
125 public static void appendGenericType(StringBuilder out, Type type) { in appendGenericType() argument
127 out.append(((TypeVariable) type).getName()); in appendGenericType()
129 out.append(type.toString()); in appendGenericType()
[all …]
/libcore/json/src/main/java/org/json/
DJSONStringer.java64 final StringBuilder out = new StringBuilder(); field in JSONStringer
175 if (stack.isEmpty() && out.length() > 0) { in open()
180 out.append(openBracket); in open()
198 out.append(closeBracket); in close()
246 out.append(value); in value()
249 out.append(JSONObject.numberToString((Number) value)); in value()
268 out.append(value); in value()
284 out.append(JSONObject.numberToString(value)); in value()
298 out.append(value); in value()
303 out.append("\""); in string()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipFileTest.java83 FileOutputStream out = new FileOutputStream(f); in writeBytes() local
84 out.write(bytes); in writeBytes()
85 out.close(); in writeBytes()
98 ZipOutputStream out = new ZipOutputStream(baos); in testDuplicateEntries() local
99 out.putNextEntry(new ZipEntry(name2)); in testDuplicateEntries()
100 out.closeEntry(); in testDuplicateEntries()
101 out.putNextEntry(new ZipEntry(name1)); in testDuplicateEntries()
102 out.closeEntry(); in testDuplicateEntries()
103 out.close(); in testDuplicateEntries()
127 ZipOutputStream out = new ZipOutputStream(baos); in testStoredEntrySize() local
[all …]
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharsetEncoderDecoderBufferTest.java41 CharBuffer out = CharBuffer.wrap(cBuf); in testDecoderOutputBuffer() local
42 assertTrue(out.hasArray()); in testDecoderOutputBuffer()
44 out, false); in testDecoderOutputBuffer() local
51 out = ByteBuffer.wrap(bBuf).asCharBuffer(); in testDecoderOutputBuffer()
52 assertFalse(out.hasArray()); in testDecoderOutputBuffer()
53 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'x'}), out, true); in testDecoderOutputBuffer() local
71 CharBuffer out = CharBuffer.wrap(new char[10]); in testDecoderInputBuffer() local
76 decoder.decode(inWithArray, out, false); in testDecoderInputBuffer()
83 decoder.decode(inWithoutArray, out, true); in testDecoderInputBuffer()
99 ByteBuffer out = ByteBuffer.wrap(buffer); in testEncoderOutputBuffer() local
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DASN1Any.java96 public void encodeASN(BerOutputStream out) { in encodeASN() argument
97 out.encodeANY(); in encodeASN()
100 public void encodeContent(BerOutputStream out) { in encodeContent() argument
101 out.encodeANY(); in encodeContent()
104 public void setEncodingContent(BerOutputStream out) { in setEncodingContent() argument
105 out.length = ((byte[]) out.content).length; in setEncodingContent()
108 public int getEncodedLength(BerOutputStream out) { in getEncodedLength() argument
109 return out.length; in getEncodedLength()
DASN1StringType.java46 public void setEncodingContent(BerOutputStream out) { in setEncodingContent() argument
47 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8); in setEncodingContent()
48 out.content = bytes; in setEncodingContent()
49 out.length = bytes.length; in setEncodingContent()
102 public void encodeASN(BerOutputStream out) { in encodeASN() argument
103 out.encodeTag(id); in encodeASN()
104 encodeContent(out); in encodeASN()
107 public void encodeContent(BerOutputStream out) { in encodeContent() argument
108 out.encodeString(); in encodeContent()
111 public void setEncodingContent(BerOutputStream out) { in setEncodingContent() argument
[all …]
/libcore/dex/src/main/java/com/android/dex/util/
DExceptionWithContext.java92 public void printStackTrace(PrintStream out) { in printStackTrace() argument
93 super.printStackTrace(out); in printStackTrace()
94 out.println(context); in printStackTrace()
99 public void printStackTrace(PrintWriter out) { in printStackTrace() argument
100 super.printStackTrace(out); in printStackTrace()
101 out.println(context); in printStackTrace()
134 public void printContext(PrintStream out) { in printContext() argument
135 out.println(getMessage()); in printContext()
136 out.print(context); in printContext()
144 public void printContext(PrintWriter out) { in printContext() argument
[all …]
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprofWriter.java42 private final DataOutputStream out; field in BinaryHprofWriter
53 this.out = new DataOutputStream(outputStream); in BinaryHprofWriter()
75 out.flush(); in write()
80 out.writeBytes(BinaryHprof.MAGIC + "1.0.2"); in writeHeader()
81 out.writeByte(0); // null terminated string in writeHeader()
82 out.writeInt(BinaryHprof.ID_SIZE); in writeHeader()
83 out.writeLong(dumpTimeInMilliseconds); in writeHeader()
94 out.writeInt(flags); in writeControlSettings()
95 out.writeShort((short) depth); in writeControlSettings()
117 out.writeInt(e.threadId); in writeStartThread()
[all …]
/libcore/dex/src/main/java/com/android/dex/
DTableOfContents.java166 public void writeHeader(Dex.Section out) throws IOException { in writeHeader() argument
167 out.write(DexFormat.apiToMagic(DexFormat.API_NO_EXTENDED_OPCODES).getBytes("UTF-8")); in writeHeader()
168 out.writeInt(checksum); in writeHeader()
169 out.write(signature); in writeHeader()
170 out.writeInt(fileSize); in writeHeader()
171 out.writeInt(SizeOf.HEADER_ITEM); in writeHeader()
172 out.writeInt(DexFormat.ENDIAN_TAG); in writeHeader()
173 out.writeInt(linkSize); in writeHeader()
174 out.writeInt(linkOff); in writeHeader()
175 out.writeInt(mapList.off); in writeHeader()
[all …]
/libcore/luni/src/main/java/java/util/zip/
DGZIPOutputStream.java84 out.write(Deflater.DEFLATED); in GZIPOutputStream()
85 out.write(0); // flags in GZIPOutputStream()
87 out.write(0); // extra flags in GZIPOutputStream()
88 out.write(0); // operating system in GZIPOutputStream()
118 out.write(unsigned & 0xFF); in writeLong()
119 out.write((unsigned >> 8) & 0xFF); in writeLong()
120 out.write((unsigned >> 16) & 0xFF); in writeLong()
121 out.write((unsigned >> 24) & 0xFF); in writeLong()
126 out.write(i & 0xFF); in writeShort()
127 out.write((i >> 8) & 0xFF); in writeShort()
DInflaterOutputStream.java46 public InflaterOutputStream(OutputStream out) { in InflaterOutputStream() argument
47 this(out, new Inflater()); in InflaterOutputStream()
58 public InflaterOutputStream(OutputStream out, Inflater inf) { in InflaterOutputStream() argument
59 this(out, inf, DEFAULT_BUFFER_SIZE); in InflaterOutputStream()
71 public InflaterOutputStream(OutputStream out, Inflater inf, int bufferSize) { in InflaterOutputStream() argument
72 super(out); in InflaterOutputStream()
73 if (out == null) { in InflaterOutputStream()
94 out.close(); in close()
102 out.flush(); in flush()
152 out.write(buf, 0, inflated); in write()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetDecoderICU.java102 @Override protected final CoderResult implFlush(CharBuffer out) { in implFlush() argument
109 data[OUTPUT_OFFSET] = getArray(out); in implFlush()
124 setPosition(out); in implFlush()
129 @Override protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { in decodeLoop() argument
135 data[OUTPUT_OFFSET]= getArray(out); in decodeLoop()
154 setPosition(out); in decodeLoop()
167 private int getArray(CharBuffer out) { in getArray() argument
168 if (out.hasArray()) { in getArray()
169 output = out.array(); in getArray()
170 outEnd = out.arrayOffset() + out.limit(); in getArray()
[all …]
/libcore/crypto/src/main/java/org/conscrypt/
DPRF.java71 static synchronized void computePRF_SSLv3(byte[] out, byte[] secret, byte[] seed) { in computePRF_SSLv3() argument
78 while (pos < out.length) { in computePRF_SSLv3()
87 if (pos + 16 > out.length) { in computePRF_SSLv3()
88 System.arraycopy(digest, 0, out, pos, out.length - pos); in computePRF_SSLv3()
89 pos = out.length; in computePRF_SSLv3()
91 System.arraycopy(digest, 0, out, pos, 16); in computePRF_SSLv3()
104 synchronized static void computePRF(byte[] out, byte[] secret, in computePRF() argument
158 while (pos < out.length) { in computePRF()
162 if (pos + md5_mac_length < out.length) { in computePRF()
163 md5_mac.doFinal(out, pos); in computePRF()
[all …]

1234567891011