Home
last modified time | relevance | path

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

12345678910>>...21

/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.java38 private static final PrintStream out = LOG ? System.out : new NullPrintStream(); field in TestKeyManager
58 out.println("TestKeyManager.<init> keyManager=" + keyManager); in TestKeyManager()
63 out.print("TestKeyManager.chooseClientAlias"); in chooseClientAlias()
64 out.print(" | keyTypes: "); in chooseClientAlias()
66 out.print(keyType); in chooseClientAlias()
67 out.print(' '); in chooseClientAlias()
88 out.print("TestKeyManager.chooseServerAlias"); in chooseServerAlias()
89 out.print(" | keyType: "); in chooseServerAlias()
90 out.print(keyType); in chooseServerAlias()
91 out.print(' '); in chooseServerAlias()
[all …]
DTestTrustManager.java38 private static final PrintStream out = LOG ? System.out : new NullPrintStream(); field in TestTrustManager
61 out.println("TestTrustManager.<init> extendedTrustManager=" + trustManager); in TestTrustManager()
67 out.println("TestTrustManager.<init> trustManager=" + trustManager); in TestTrustManager()
74 out.print("TestTrustManager.checkClientTrusted " in checkClientTrusted()
80 out.println("OK"); in checkClientTrusted()
82 e.printStackTrace(out); in checkClientTrusted()
91 out.print("(fallback to X509TrustManager) "); in checkClientTrusted()
95 out.print("TestTrustManager.checkClientTrusted " in checkClientTrusted()
102 out.println("OK"); in checkClientTrusted()
104 e.printStackTrace(out); in checkClientTrusted()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DASCIICharsetEncoderTest.java85 ByteBuffer out = ByteBuffer.allocate(10); in testMultiStepEncode() local
87 encoder.encode(CharBuffer.wrap("\ud800"), out, true)); in testMultiStepEncode()
88 assertTrue(encoder.flush(out).isMalformed()); in testMultiStepEncode()
91 out = ByteBuffer.allocate(10); in testMultiStepEncode()
94 assertSame(CoderResult.UNDERFLOW, encoder.encode(buffer1, out, false)); in testMultiStepEncode()
99 assertTrue(encoder.encode(buffer2, out, true).isUnmappable()); in testMultiStepEncode()
140 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState() local
144 encoder.encode(in, out, false); in testInternalState()
146 encoder.encode(in, out, true); in testInternalState()
147 encoder.flush(out); in testInternalState()
[all …]
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/support/src/test/java/org/apache/harmony/testframework/
DSinkTester.java97 OutputStream out = create(); in sinkTestNoWriting() local
98 out.close(); in sinkTestNoWriting()
105 OutputStream out = create(); in sinkTestWriteZeroBytes() local
107 out.write(a, 1000, 0); in sinkTestWriteZeroBytes()
108 out.write(a, 0, 0); in sinkTestWriteZeroBytes()
109 out.write(new byte[] { }); in sinkTestWriteZeroBytes()
111 out.close(); in sinkTestWriteZeroBytes()
118 OutputStream out = create(); in sinkTestWriteByteByByte() local
120 out.write(b); in sinkTestWriteByteByByte()
123 out.close(); in sinkTestWriteByteByByte()
[all …]
DCharSinkTester.java96 Writer out = create(); in sinkTestNoWriting() local
97 out.close(); in sinkTestNoWriting()
104 Writer out = create(); in sinkTestWriteZeroChars() local
106 out.write(a, 1000, 0); in sinkTestWriteZeroChars()
107 out.write(a, 0, 0); in sinkTestWriteZeroChars()
108 out.write(new char[] { }); in sinkTestWriteZeroChars()
110 out.close(); in sinkTestWriteZeroChars()
117 Writer out = create(); in sinkTestWriteCharByChar() local
119 out.write(c); in sinkTestWriteCharByChar()
122 out.close(); in sinkTestWriteCharByChar()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPipedOutputStreamTest.java36 public PReader(PipedOutputStream out) { in PReader() argument
38 reader = new PipedInputStream(out); in PReader()
40 System.out.println("Couldn't start reader"); in PReader()
68 System.out.println("Exception reading info"); in read()
78 PipedOutputStream out; field in PipedOutputStreamTest
91 out = new PipedOutputStream(new PipedInputStream()); in test_ConstructorLjava_io_PipedInputStream()
92 out.write('b'); in test_ConstructorLjava_io_PipedInputStream()
99 out = new PipedOutputStream(); in test_close()
100 rt = new Thread(reader = new PReader(out)); in test_close()
102 out.close(); in test_close()
[all …]
/libcore/ojluni/src/main/java/java/io/
DPipedInputStream.java96 protected int out = 0; field in PipedInputStream
206 if (in == out) in receive()
210 out = 0; in receive()
233 if (in == out) in receive()
236 if (out < in) { in receive()
238 } else if (in < out) { in receive()
240 in = out = 0; in receive()
243 nextTransferAmount = out - in; in receive()
270 while (in == out) { in awaitSpace()
338 int ret = buffer[out++] & 0xFF; in read()
[all …]
DDataOutputStream.java59 public DataOutputStream(OutputStream out) { in DataOutputStream() argument
60 super(out); in DataOutputStream()
88 out.write(b); in write()
107 out.write(b, off, len); in write()
123 out.flush(); in flush()
139 out.write(v ? 1 : 0); in writeBoolean()
153 out.write(v); in writeByte()
167 out.write((v >>> 8) & 0xFF); in writeShort()
168 out.write((v >>> 0) & 0xFF); in writeShort()
182 out.write((v >>> 8) & 0xFF); in writeChar()
[all …]
DFilterWriter.java46 protected Writer out; field in FilterWriter
54 protected FilterWriter(Writer out) { in FilterWriter() argument
55 super(out); in FilterWriter()
56 this.out = out; in FilterWriter()
65 out.write(c); in write()
78 out.write(cbuf, off, len); in write()
91 out.write(str, off, len); in write()
100 out.flush(); in flush()
104 out.close(); in close()
DOutputStreamWriter.java94 public OutputStreamWriter(OutputStream out, String charsetName) in OutputStreamWriter() argument
97 super(out); in OutputStreamWriter()
100 se = StreamEncoder.forOutputStreamWriter(out, this, charsetName); in OutputStreamWriter()
108 public OutputStreamWriter(OutputStream out) { in OutputStreamWriter() argument
109 super(out); in OutputStreamWriter()
111 se = StreamEncoder.forOutputStreamWriter(out, this, (String)null); in OutputStreamWriter()
129 public OutputStreamWriter(OutputStream out, Charset cs) { in OutputStreamWriter() argument
130 super(out); in OutputStreamWriter()
133 se = StreamEncoder.forOutputStreamWriter(out, this, cs); in OutputStreamWriter()
148 public OutputStreamWriter(OutputStream out, CharsetEncoder enc) { in OutputStreamWriter() argument
[all …]
DPrintWriter.java64 protected Writer out; field in PrintWriter
99 public PrintWriter (Writer out) { in PrintWriter() argument
100 this(out, false); in PrintWriter()
111 public PrintWriter(Writer out, in PrintWriter() argument
113 super(out); in PrintWriter()
114 this.out = out; in PrintWriter()
130 public PrintWriter(OutputStream out) { in PrintWriter() argument
131 this(out, false); in PrintWriter()
147 public PrintWriter(OutputStream out, boolean autoFlush) { in PrintWriter() argument
148 this(new BufferedWriter(new OutputStreamWriter(out)), autoFlush); in PrintWriter()
[all …]
DBufferedWriter.java68 private Writer out; field in BufferedWriter
87 public BufferedWriter(Writer out) { in BufferedWriter() argument
88 this(out, defaultCharBufferSize); in BufferedWriter()
100 public BufferedWriter(Writer out, int sz) { in BufferedWriter() argument
101 super(out); in BufferedWriter()
104 this.out = out; in BufferedWriter()
115 if (out == null) in ensureOpen()
129 out.write(cb, 0, nextChar); in flushBuffer()
188 out.write(cbuf, off, len); in write()
254 out.flush(); in flush()
[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/ojluni/src/main/java/java/net/
DSocksSocketImpl.java139 BufferedOutputStream out) throws IOException { in authenticate() argument
140 return authenticate(method, in, out, 0L); in authenticate()
144 BufferedOutputStream out, in authenticate() argument
175 out.write(1); in authenticate()
176 out.write(userName.length()); in authenticate()
178 out.write(userName.getBytes("ISO-8859-1")); in authenticate()
183 out.write(password.length()); in authenticate()
185 out.write(password.getBytes("ISO-8859-1")); in authenticate()
190 out.write(0); in authenticate()
191 out.flush(); in authenticate()
[all …]
/libcore/ojluni/src/main/java/java/util/zip/
DDeflaterOutputStream.java79 public DeflaterOutputStream(OutputStream out, in DeflaterOutputStream() argument
83 super(out); in DeflaterOutputStream()
84 if (out == null || def == null) { in DeflaterOutputStream()
107 public DeflaterOutputStream(OutputStream out, Deflater def, int size) { in DeflaterOutputStream() argument
108 this(out, def, size, false); in DeflaterOutputStream()
125 public DeflaterOutputStream(OutputStream out, in DeflaterOutputStream() argument
128 this(out, def, 512, syncFlush); in DeflaterOutputStream()
142 public DeflaterOutputStream(OutputStream out, Deflater def) { in DeflaterOutputStream() argument
143 this(out, def, 512, false); in DeflaterOutputStream()
162 public DeflaterOutputStream(OutputStream out, boolean syncFlush) { in DeflaterOutputStream() argument
[all …]
/libcore/json/src/main/java/org/json/
DJSONStringer.java66 final StringBuilder out = new StringBuilder(); field in JSONStringer
181 if (stack.isEmpty() && out.length() > 0) { in open()
186 out.append(openBracket); in open()
205 out.append(closeBracket); in close()
255 out.append(value); in value()
258 out.append(JSONObject.numberToString((Number) value)); in value()
277 out.append(value); in value()
293 out.append(JSONObject.numberToString(value)); in value()
307 out.append(value); in value()
313 out.append("\""); in string()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DBuildStep.java223 String out = "Internal Error\n"; in toString() local
227 out = resultToString(result); in toString()
228 out = out + vertex.throwableToString(); in toString()
233 out = resultToString(result); in toString()
236 out = "Internal Error: Invalid step result\n"; in toString()
238 return out; in toString()
249 String out = resultToString(getResult()); in verboseToString() local
253 out = out + vertex.throwableToString(); in verboseToString()
257 out = out + vertex.moreToString(); in verboseToString()
264 out = out + "Certificate contains:\n" + vertex.certToString(); in verboseToString()
[all …]
/libcore/ojluni/src/main/java/java/time/zone/
DSer.java136 public void writeExternal(ObjectOutput out) throws IOException { in writeExternal() argument
137 writeInternal(type, object, out); in writeExternal()
140 static void write(Object object, DataOutput out) throws IOException { in write() argument
141 writeInternal(ZRULES, object, out); in write()
144 private static void writeInternal(byte type, Object object, DataOutput out) throws IOException { in writeInternal() argument
145 out.writeByte(type); in writeInternal()
148 ((ZoneRules) object).writeExternal(out); in writeInternal()
151 ((ZoneOffsetTransition) object).writeExternal(out); in writeInternal()
154 ((ZoneOffsetTransitionRule) object).writeExternal(out); in writeInternal()
221 static void writeOffset(ZoneOffset offset, DataOutput out) throws IOException { in writeOffset() argument
[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/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java94 FileOutputStream out = new FileOutputStream(f); in writeBytes() local
95 out.write(bytes); in writeBytes()
96 out.close(); in writeBytes()
109 ZipOutputStream out = createZipOutputStream(baos); in testDuplicateEntries() local
110 out.putNextEntry(new ZipEntry(name2)); in testDuplicateEntries()
111 out.closeEntry(); in testDuplicateEntries()
112 out.putNextEntry(new ZipEntry(name1)); in testDuplicateEntries()
113 out.closeEntry(); in testDuplicateEntries()
114 out.close(); in testDuplicateEntries()
138 ZipOutputStream out = createZipOutputStream(baos); in testStoredEntrySize() local
[all …]
/libcore/ojluni/src/main/java/java/time/
DSer.java161 public void writeExternal(ObjectOutput out) throws IOException { in writeExternal() argument
162 writeInternal(type, object, out); in writeExternal()
165 static void writeInternal(byte type, Object object, ObjectOutput out) throws IOException { in writeInternal() argument
166 out.writeByte(type); in writeInternal()
169 ((Duration) object).writeExternal(out); in writeInternal()
172 ((Instant) object).writeExternal(out); in writeInternal()
175 ((LocalDate) object).writeExternal(out); in writeInternal()
178 ((LocalDateTime) object).writeExternal(out); in writeInternal()
181 ((LocalTime) object).writeExternal(out); in writeInternal()
184 ((ZoneRegion) object).writeExternal(out); in writeInternal()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DNumberFormatTest.java37 StringBuffer out; in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() local
42 out = format.format(new Long(Long.MAX_VALUE), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
43 assertEquals("Wrong result L1: " + out, "9,223,372,036,854,775,807", in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
44 out.toString()); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
47 out = format.format(new Long(Long.MIN_VALUE), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
48 assertEquals("Wrong result L2: " + out, "-9,223,372,036,854,775,808", in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
49 out.toString()); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
52 out = format.format(new java.math.BigInteger(String in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
54 assertEquals("Wrong result BI1: " + out, "9,223,372,036,854,775,807", in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
55 out.toString()); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
[all …]

12345678910>>...21