Searched refs:input (Results 26 - 50 of 137) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/security/
H A DMessageDigest.java337 * @param input the byte with which to update the digest.
339 public void update(byte input) { argument
340 engineUpdate(input);
348 * @param input the array of bytes.
355 public void update(byte[] input, int offset, int len) { argument
356 if (input == null) {
357 throw new IllegalArgumentException("No input buffer given");
359 if (input.length - offset < len) {
362 engineUpdate(input, offset, len);
369 * @param input th
371 update(byte[] input) argument
386 update(ByteBuffer input) argument
446 digest(byte[] input) argument
621 engineUpdate(byte input) argument
625 engineUpdate(byte[] input, int offset, int len) argument
629 engineUpdate(ByteBuffer input) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
H A DTCKZoneIdSerialization.java127 public void test_deserialization_lenient_offsetNotAllowed_noPrefix(String input, String resolvedId) throws Exception { argument
128 ZoneId deserialized = deserialize(input);
129 assertEquals(deserialized, ZoneId.of(input));
134 public void test_deserialization_lenient_offsetNotAllowed_prefixUTC(String input, String resolvedId, String offsetId) throws Exception { argument
135 ZoneId deserialized = deserialize("UTC" + input);
136 assertEquals(deserialized, ZoneId.of("UTC" + input));
141 public void test_deserialization_lenient_offsetNotAllowed_prefixGMT(String input, String resolvedId, String offsetId) throws Exception { argument
142 ZoneId deserialized = deserialize("GMT" + input);
143 assertEquals(deserialized, ZoneId.of("GMT" + input));
148 public void test_deserialization_lenient_offsetNotAllowed_prefixUT(String input, Strin argument
[all...]
/libcore/luni/src/main/java/javax/xml/parsers/
H A DSAXParser.java47 * a variety of input sources. These input sources are InputStreams,
130 InputSource input = new InputSource(is);
131 this.parse(input, hb);
161 InputSource input = new InputSource(is);
162 input.setSystemId(systemId);
163 this.parse(input, hb);
186 InputSource input = new InputSource(is);
187 this.parse(input, dh);
214 InputSource input
[all...]
/libcore/luni/src/test/java/libcore/java/math/
H A DRunCSVTestsStrict.java21 * Runs single-input test using assertEquals.
24 void runTest(String func, double expectedOutput, double input, String extra) argument
28 Object returnValue = m.invoke(null, input);
31 assertEquals(extra + ": " + m + ": " + input + ": ", expectedOutput,
34 assertEquals(extra + ": " + m + ": " + input + ": ", (int) expectedOutput,
40 * Runs 2-input test using assertEquals.
H A DCSVTest.java10 * Standard single-input test framework for csv math tests
15 * function,expected_output,input,extra_info
17 * for two input: function,expected_output,input1,input2,extra
68 double input = Double.parseDouble(testCase[2]);
75 run2InputTest(function, expectedOutput, input, input2, extra);
80 runTest(function, expectedOutput, input, extra);
84 abstract void runTest(String func, double expectedOutput, double input, argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherPBEThread.java38 byte[] input = getData().getBytes();
53 cip.doFinal(input, 0, input.length, output);
54 int outputSize = cip.getOutputSize(input.length);
/libcore/ojluni/src/main/java/javax/crypto/
H A DMac.java564 * @param input the input byte to be processed.
569 public final void update(byte input) throws IllegalStateException { argument
574 spi.engineUpdate(input);
580 * @param input the array of bytes to be processed.
585 public final void update(byte[] input) throws IllegalStateException { argument
590 if (input != null) {
591 spi.engineUpdate(input, 0, input.length);
596 * Processes the first <code>len</code> bytes in <code>input</cod
606 update(byte[] input, int offset, int len) argument
632 update(ByteBuffer input) argument
735 doFinal(byte[] input) argument
[all...]
H A DCipherInputStream.java75 // the underlying input stream
76 private InputStream input; field in class:CipherInputStream
83 // having reached the end of the underlying input stream
123 int readin = input.read(ibuffer);
157 * <br>Note: if the specified input stream or cipher is
160 * @param is the to-be-processed input stream
165 input = is;
173 * <br>Note: if the specified input stream is null, a
175 * @param is the to-be-processed input stream
179 input
[all...]
H A DCipher.java60 * set of operations) to be performed on the given input, to produce some
829 * <code>doFinal</code> operation, given the input length
839 * @param inputLen the input length (in bytes)
1050 * derived from the input parameters, and there are no reasonable
1106 * derived from the input parameters, and there are no reasonable
1182 * derived from the input parameters, and there are no reasonable
1246 * derived from the input parameters, and there are no reasonable
1323 * derived from the input parameters, and there are no reasonable
1387 * derived from the input parameters, and there are no reasonable
1472 * derived from the input parameter
1670 update(byte[] input) argument
1709 update(byte[] input, int inputOffset, int inputLen) argument
1761 update(byte[] input, int inputOffset, int inputLen, byte[] output) argument
1819 update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
1877 update(ByteBuffer input, ByteBuffer output) argument
2045 doFinal(byte[] input) argument
2102 doFinal(byte[] input, int inputOffset, int inputLen) argument
2174 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output) argument
2253 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
2333 doFinal(ByteBuffer input, ByteBuffer output) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DBufferedInputStream.java31 * functionality to another input stream-namely,
32 * the ability to buffer the input and to
38 * as necessary from the contained input stream,
40 * operation remembers a point in the input
45 * the contained input stream.
89 * </code>contain buffered input data obtained
90 * from the underlying input stream.
101 * is the next byte to be supplied as input;
105 * read from the contained input stream.
117 * If there is no marked position in the input
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidZipStreamTest.java96 byte[] input = makeSampleFile(i);
102 out.write(input, 0, input.length);
119 byte[] input = makeSampleFile(i);
128 out.write(input, 0, input.length);
H A DOldAndroidZipStressTest.java132 byte[] input = new byte[DATA_SIZE];
136 random.nextBytes(input);
140 while (pos < input.length) {
143 if (pos + howMany >= input.length) {
144 howMany = input.length - pos;
146 Arrays.fill(input, pos, pos + howMany, what);
157 deflater.setInput(input);
169 assertEquals(input, output);
H A DOldAndroidGZIPStreamTest.java86 byte[] input = makeSampleFile(1);
87 out.write(input, 0, input.length);
/libcore/luni/src/main/java/org/w3c/dom/ls/
H A DLSParser.java22 * from various input sources.
75 * <p> While parsing an input source, errors are reported to the application
92 * <dt><code>"no-input-specified" [fatal]</code></dt>
94 * Raised when loading a document and no input is specified in the
143 * The <code>DOMConfiguration</code> object used when parsing an input
163 * indication of the character encoding of the input stream being
299 * @param input The <code>LSInput</code> from which the source of the
315 public Document parse(LSInput input) argument
382 * <code>action</code> arguments. When parsing the input stream, the
397 * what they would be set to if the input sourc
454 parseWithContext(LSInput input, Node contextArg, short action) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyMacSpi.java57 protected void engineUpdate(byte input) { argument
61 protected void engineUpdate(byte[] input, int offset, int len) { argument
H A DMyCipher.java100 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument
105 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, argument
111 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) argument
117 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, argument
/libcore/luni/src/test/java/tests/targets/security/
H A DMessageDigestTestMD2.java86 protected void engineUpdate(byte input) { argument
90 protected void engineUpdate(byte[] input, int offset, int len) { argument
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleReader.java34 public Support_ASimpleReader(String input) { argument
35 buf = input.toCharArray();
/libcore/luni/src/main/native/
H A DZipUtilities.cpp69 input.reset(new jbyte[len]);
70 if (input.get() == NULL) {
77 env->GetByteArrayRegion(buf, off, len, &input[0]);
79 stream.next_in = reinterpret_cast<Bytef*>(&input[0]);
/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DTestTextParser.java209 // Locale, TemporalField, TextStyle, expected value, input text
224 // Locale, pattern, input text, expected DayOfWeek
238 // Locale, TemporalField, expected value, input text
249 public void test_parseText(TemporalField field, TextStyle style, int value, String input) throws Exception { argument
251 assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value);
252 assertEquals(pos.getIndex(), input.length());
256 public void test_parseNumber(TemporalField field, TextStyle style, int value, String input) throws Exception { argument
258 assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value);
259 assertEquals(pos.getIndex(), input.length());
263 public void test_parseStandaloneText(Locale locale, TemporalField field, TextStyle style, int expectedValue, String input) { argument
271 test_parseDayOfWeekText(Locale locale, String pattern, String input, DayOfWeek expected) argument
280 test_parse_strict_caseSensitive_parseUpper(TemporalField field, TextStyle style, int value, String input) argument
292 test_parse_strict_caseInsensitive_parseUpper(TemporalField field, TextStyle style, int value, String input) argument
301 test_parse_strict_caseSensitive_parseLower(TemporalField field, TextStyle style, int value, String input) argument
313 test_parse_strict_caseInsensitive_parseLower(TemporalField field, TextStyle style, int value, String input) argument
430 test_parseLenientText(Locale locale, TemporalField field, int expectedValue, String input) argument
[all...]
H A DTestReducedParser.java186 public void test_parseAllStrict(TemporalField field, int width, int baseValue, String input, int pos, int parseLen, Integer parseVal) { argument
189 TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos);
200 public void test_parseAllLenient(TemporalField field, int width, int baseValue, String input, int pos, int parseLen, Integer parseVal) { argument
203 TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos);
272 public void test_parseStrict(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, argument
276 TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(input, ppos);
287 public void test_parseStrict_baseDate(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, argument
291 TemporalAccessor parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolved(input, ppos);
305 public void test_parseLenient(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, argument
309 TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(input, ppo
320 test_parseLenient_baseDate(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, Pair strict, Pair lenient) argument
367 test_parseAdjacent(String pattern, String input, boolean strict, int pos, int parseLen, int year, int month, int day) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherSpiTest.java52 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) argument
54 return super.engineDoFinal(input, inputOffset, inputLen);
58 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument
61 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset);
113 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument
114 return super.engineUpdate(input, inputOffset, inputLen);
118 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
120 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset);
330 byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) {
339 // In case a call to engineGetOutputSize returns 0 for the whole input siz
487 engineUpdate(byte[] input, int inputOffset, int inputLen) argument
497 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
510 engineDoFinal(byte[] input, int inputOffset, int inputLen) argument
522 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
538 engineUpdate(ByteBuffer input, ByteBuffer output) argument
542 engineDoFinal(ByteBuffer input, ByteBuffer output) argument
[all...]
/libcore/support/src/test/java/tests/util/
H A DSerializationTester.java42 * @param inputObject the input object
63 * @return true if the deserialized object is the same as the input object,
75 * @return true if the deserialized object is equal to the input object,
120 InputStream input = null;
129 input = url.openStream();
131 oinput = new ObjectInputStream(input);
143 if (null != input) {
144 input.close();
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKInstantPrinterParser.java225 public void test_parse_digitsMinusOne(long instantSecs, int nano, String input) { argument
228 assertEquals(f.parse(input, Instant::from), expected);
229 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO);
230 assertEquals(f.parse(input).query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE);
234 public void test_parse_digitsNine(long instantSecs, int nano, String input) { argument
236 if (input.charAt(input.length() - 11) == '.') {
238 assertEquals(f.parse(input, Instant::from), expected);
239 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO);
240 assertEquals(f.parse(input)
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatReader.java249 public void parse(InputSource input) throws IOException, SAXException { argument
264 Reader reader = input.getCharacterStream();
267 parse(reader, input.getPublicId(), input.getSystemId());
275 InputStream in = input.getByteStream();
276 String encoding = input.getEncoding();
279 parse(in, encoding, input.getPublicId(), input.getSystemId());
286 String systemId = input.getSystemId();
288 throw new SAXException("No input specifie
[all...]

Completed in 1686 milliseconds

123456