Searched refs:input (Results 51 - 75 of 137) sorted by relevance

123456

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DForEachOpTest.java88 List<Integer> input = countTo(10000);
89 TestData.OfRef<Integer> data = TestData.Factory.ofCollection("[1, 10000]", input);
100 expectedResult(input).
106 expectedResult(input).
135 List<Integer> input = countTo(10000);
148 expectedResult(input).
154 expectedResult(input).
183 List<Integer> input = countTo(10000);
196 expectedResult(input).
202 expectedResult(input)
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidDeflateTest.java44 byte[] input = inputString.getBytes("UTF-8");
49 compresser.setInput(input);
76 byte[] input = new byte[128 * 1024];
82 createSample(input, step);
84 compress(deflater, input, comp);
87 assertEquals(inflater.getBytesWritten(), input.length);
120 * Compress all data in "in" to "out". We use a small window on input
138 // only read if the input buffer is empty
177 // only read if the input buffer is empty
H A DDeflaterOutputStreamTest.java145 // assert that we returned data matches the input exactly.
148 byte[] input = new byte[output.length];
151 int n = iis.read(input, total, input.length - total);
156 if (total == input.length) {
166 assertTrue(Arrays.equals(input, output));
/libcore/luni/src/test/java/libcore/java/io/
H A DObjectOutputStreamTest.java89 List<Serializable> input = Arrays.asList(object, hello, hello);
92 roundTrip(input);
94 assertEquals(input, output);
H A DOldInputStreamTest.java33 private byte[] input; field in class:OldInputStreamTest.MockInputStream
38 input = testString.getBytes();
44 if (position < input.length) {
45 result = input[position];
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DAbstractCharsetTestCase.java139 protected void internalTestEncode(String input, byte[] output) { argument
140 ByteBuffer bb = this.testingCharset.encode(input);
159 protected void internalTestDecode(byte[] input, char[] output) { argument
160 CharBuffer chb = this.testingCharset.decode(ByteBuffer.wrap(input));
/libcore/luni/src/test/java/libcore/java/math/
H A DRunCSVTests.java50 * Runs a standard single-input test using assertEquals.
54 void runTest(String func, double expectedOutput, double input, String extra) argument
58 Object returnValue = m.invoke(null, input);
68 assertEquals(extra + ": " + m + ": " + input + ": ", expectedOutput,
71 assertEquals(extra + ": " + m + ": " + input + ": ", (int) expectedOutput,
77 * Runs a 2-input test using assertEquals.
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixPath.java69 UnixPath(UnixFileSystem fs, String input) { argument
71 this(fs, encode(fs, normalizeAndCheck(input)));
75 // removes redundant slashes and check input for invalid characters
76 static String normalizeAndCheck(String input) { argument
77 int n = input.length();
80 char c = input.charAt(i);
82 return normalize(input, n, i - 1);
83 checkNotNul(input, c);
87 return normalize(input, n, n - 1);
88 return input;
91 checkNotNul(String input, char c) argument
96 normalize(String input, int len, int off) argument
119 encode(UnixFileSystem fs, String input) argument
[all...]
/libcore/json/src/test/java/libcore/org/json/
H A DParsingTest.java78 * Java number type best suits an input value.
221 fail("Stack overflowed on input: \"" + malformedJson + "\"");
241 assertEquals("For input \"" + json + "\" " + message, expected, actual);
253 private Object canonicalize(Object input) throws JSONException { argument
254 if (input instanceof JSONArray) {
255 JSONArray array = (JSONArray) input;
261 } else if (input instanceof JSONObject) {
262 JSONObject object = (JSONObject) input;
269 } else if (input == null || input
[all...]
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetDecoderICU.java31 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input bytes consumed
32 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output chars written
41 private byte[] input = null; field in class:CharsetDecoderICU
100 input = null;
109 // ICU needs to see an empty input.
110 input = EmptyArray.BYTE;
117 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true);
143 int error = NativeConverter.decode(converterHandle, input, inEn
[all...]
H A DCharsetEncoderICU.java46 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input chars consumed
47 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output bytes written
56 private char[] input = null; field in class:CharsetEncoderICU
128 input = null;
137 // ICU needs to see an empty input.
138 input = EmptyArray.CHAR;
145 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true);
172 int error = NativeConverter.encode(converterHandle, input, inEn
[all...]
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DMockMacSpi.java73 protected void engineUpdate(byte input) { argument
78 protected void engineUpdate(byte[] input, int inputOffset, int inputLen) { argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DMockMacSpi.java64 protected void engineUpdate(byte input) { argument
69 protected void engineUpdate(byte[] input, int offset, int len) { argument
H A DCipherOutputStream1Test.java184 * the underlying input stream.
271 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument
276 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
282 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) argument
286 engineDoFinal(input, inputOffset, inputLen, new byte[10], 0);
294 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLEnginePair.java161 ByteBuffer input,
165 // make the other side's output into our input
166 input.flip();
185 if (input.remaining() == 0) {
188 int inputPositionBefore = input.position();
189 SSLEngineResult unwrapResult = engine.unwrap(input, scratch);
193 assertEquals(input.position() - inputPositionBefore, unwrapResult.bytesConsumed());
225 // shift consumed input, restore to output mode
226 input.compact();
159 handshakeCompleted(SSLEngine engine, ByteBuffer output, ByteBuffer input, ByteBuffer scratch, boolean[] finished) argument
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharset_SingleByteAbstractTest.java64 public static void decodeReplace (byte[] input, char[] expectedOutput) throws CharacterCodingException { argument
65 ByteBuffer inputBB = ByteBuffer.wrap(input);
74 input);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DDoNothingXMLReader.java55 public void parse(InputSource input) { argument
H A DNoAccessXMLReader.java55 public void parse(InputSource input) { argument
H A DNoSubclassXMLReader.java55 public void parse(InputSource input) { argument
H A DMockFilter.java80 public void parse(InputSource input) throws SAXException, IOException { argument
81 logger.add("parse", input);
/libcore/luni/src/main/java/org/xml/sax/
H A DXMLReader.java340 * reader to begin parsing an XML document from any valid input
347 * different input source.
364 * @param input The input source for the top-level of the
378 public void parse (InputSource input)
375 parse(InputSource input) argument
/libcore/luni/src/main/native/
H A DZipUtilities.h28 std::unique_ptr<jbyte[]> input; member in class:NativeZipStream
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DFormatterTest.java181 * If a(the input param) is null then a StringBuilder will be created
1174 final int input = 0;
1180 f.format((String) triple[i][pattern], triple[i][input]);
1181 assertEquals("triple[" + i + "]:" + triple[i][input]
1185 f.format(((String) triple[i][pattern]).toUpperCase(Locale.US), triple[i][input]);
1186 assertEquals("triple[" + i + "]:" + triple[i][input]
1238 final int input = 0;
1244 f.format((String) triple[i][pattern], triple[i][input]);
1245 assertEquals("triple[" + i + "]:" + triple[i][input]
1249 f.format(((String) triple[i][pattern]).toUpperCase(Locale.US), triple[i][input]);
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKZoneId.java230 public void factory_of_String_offsetBasedValid_noPrefix(String input, String id) { argument
231 ZoneId test = ZoneId.of(input);
278 public void factory_of_String_offsetBasedValid_prefixUTC(String input, String id, String offsetId) { argument
279 ZoneId test = ZoneId.of("UTC" + input);
289 public void factory_of_String_offsetBasedValid_prefixGMT(String input, String id, String offsetId) { argument
290 ZoneId test = ZoneId.of("GMT" + input);
300 public void factory_of_String_offsetBasedValid_prefixUT(String input, String id, String offsetId) { argument
301 ZoneId test = ZoneId.of("UT" + input);
397 public void factory_of_String_offsetBasedValidOther(String input, String offsetId) { argument
398 ZoneId test = ZoneId.of(input);
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DNativeConverter.java23 public static native int decode(long converterHandle, byte[] input, int inEnd, argument
26 public static native int encode(long converterHandle, char[] input, int inEnd, argument

Completed in 3514 milliseconds

123456