Searched refs:input (Results 1 - 25 of 119) sorted by relevance

12345

/libcore/ojluni/src/main/java/java/net/
H A DIDN.java90 * In this case, the input string should not be used in an internationalized domain name.
101 * @param input the string to be processed
106 * @throws IllegalArgumentException if the input string doesn't conform to RFC 3490 specification
108 public static String toASCII(String input, int flag) { argument
110 return IDNA.convertIDNToASCII(input, flag).toString();
112 throw new IllegalArgumentException("Invalid input to toASCII: " + input, e);
124 * {@link #toASCII(String, int) toASCII}(input, 0);
127 * @param input the string to be processed
131 * @throws IllegalArgumentException if the input strin
133 toASCII(String input) argument
156 toUnicode(String input, int flag) argument
172 convertFullStop(StringBuffer input) argument
196 toUnicode(String input) argument
[all...]
H A DURISyntaxException.java43 private String input; field in class:URISyntaxException
47 * Constructs an instance from the given input string, reason, and error
50 * @param input The input string
51 * @param reason A string explaining why the input could not be parsed
56 * If either the input or reason strings are <tt>null</tt>
61 public URISyntaxException(String input, String reason, int index) { argument
63 if ((input == null) || (reason == null))
67 this.input = input;
81 URISyntaxException(String input, String reason) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DUTF16BECharsetTest.java38 String input = "ab\u5D14\u654F";
40 internalTestEncode(input, output);
49 byte[] input = new byte[] { 0, 97, 0, 98, 93, 20, 101, 79 };
51 internalTestDecode(input, output);
H A DUTF16LECharsetTest.java38 String input = "ab\u5D14\u654F";
40 internalTestEncode(input, output);
49 byte[] input = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 };
51 internalTestDecode(input, output);
H A DASCCharsetTest.java41 String input = "ab\u5D14\u654F";
45 internalTestEncode(input, output);
54 byte[] input = new byte[] { 97, 98, 63, 63 };
56 internalTestDecode(input, output);
H A DISOCharsetTest.java40 String input = "ab\u5D14\u654F";
44 internalTestEncode(input, output);
53 byte[] input = new byte[] { 97, 98, 63, 63 };
55 internalTestDecode(input, output);
H A DUTF8CharsetTest.java40 byte[] input = new byte[] { 97, 98, -27, -76, -108, -26, -107, -113 };
42 internalTestDecode(input, output);
51 String input = "ab\u5D14\u654F";
53 internalTestEncode(input, output);
/libcore/ojluni/src/main/java/java/security/
H A DMessageDigestSpi.java53 // for re-use in engineUpdate(ByteBuffer input)
78 * @param input the byte to use for the update.
80 protected abstract void engineUpdate(byte input); argument
86 * @param input the array of bytes to use for the update.
93 protected abstract void engineUpdate(byte[] input, int offset, int len); argument
97 * updated using the <code>input.remaining()</code> bytes starting
98 * at <code>input.position()</code>.
102 * @param input the ByteBuffer
105 protected void engineUpdate(ByteBuffer input) { argument
106 if (input
[all...]
H A DSignatureSpi.java139 * @param input the ByteBuffer
142 protected void engineUpdate(ByteBuffer input) { argument
143 if (input.hasRemaining() == false) {
147 if (input.hasArray()) {
148 byte[] b = input.array();
149 int ofs = input.arrayOffset();
150 int pos = input.position();
151 int lim = input.limit();
153 input.position(lim);
155 int len = input
[all...]
H A DMessageDigest.java315 * @param input the byte with which to update the digest.
317 public void update(byte input) { argument
318 engineUpdate(input);
326 * @param input the array of bytes.
333 public void update(byte[] input, int offset, int len) { argument
334 if (input == null) {
335 throw new IllegalArgumentException("No input buffer given");
337 if (input.length - offset < len) {
340 engineUpdate(input, offset, len);
347 * @param input th
349 update(byte[] input) argument
364 update(ByteBuffer input) argument
424 digest(byte[] input) argument
593 engineUpdate(byte input) argument
597 engineUpdate(byte[] input, int offset, int len) argument
601 engineUpdate(ByteBuffer input) argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DMacSpi.java75 * @param input the input byte to be processed.
77 protected abstract void engineUpdate(byte input); argument
80 * Processes the first <code>len</code> bytes in <code>input</code>,
83 * @param input the input buffer.
84 * @param offset the offset in <code>input</code> where the input starts.
87 protected abstract void engineUpdate(byte[] input, int offset, int len); argument
90 * Processes <code>input
101 engineUpdate(ByteBuffer input) argument
[all...]
H A DNullCipherSpi.java79 protected byte[] engineUpdate(byte[] input, int inputOffset, argument
81 if (input == null) return null;
83 System.arraycopy(input, inputOffset, x, 0, inputLen);
87 protected int engineUpdate(byte[] input, int inputOffset, argument
90 if (input == null) return 0;
91 System.arraycopy(input, inputOffset, output, outputOffset, inputLen);
95 protected byte[] engineDoFinal(byte[] input, int inputOffset, argument
98 return engineUpdate(input, inputOffset, inputLen);
101 protected int engineDoFinal(byte[] input, int inputOffset, argument
105 return engineUpdate(input, inputOffse
[all...]
H A DCipherSpi.java60 * set of operations) to be performed on the given input, to produce some
265 * or <code>doFinal</code> operation, given the input length
275 * @param inputLen the input length (in bytes)
326 * derived from the input parameters, and there are no reasonable
375 * derived from the input parameters, and there are no reasonable
428 * derived from the input parameters, and there are no reasonable
466 * <p>The first <code>inputLen</code> bytes in the <code>input</code>
470 * @param input the input buffer
471 * @param inputOffset the offset in <code>input</cod
479 engineUpdate(byte[] input, int inputOffset, int inputLen) argument
508 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
543 engineUpdate(ByteBuffer input, ByteBuffer output) argument
600 engineDoFinal(byte[] input, int inputOffset, int inputLen) argument
657 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
718 engineDoFinal(ByteBuffer input, ByteBuffer output) argument
735 bufferCrypt(ByteBuffer input, ByteBuffer output, boolean isUpdate) argument
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleInputStream.java34 public Support_ASimpleInputStream(String input) { argument
35 buf = input.getBytes();
40 public Support_ASimpleInputStream(byte[] input) { argument
42 len = input.length;
44 System.arraycopy(input, 0, buf, 0, len);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DMacSpiTest.java67 protected void engineUpdate(byte input) { argument
68 super.engineUpdate(input);
72 protected void engineUpdate(byte[] input, int offset, int len) { argument
73 super.engineUpdate(input, offset, len);
101 protected void engineUpdate(byte input) { argument
102 super.engineUpdate(input);
106 protected void engineUpdate(byte[] input, int offset, int len) { argument
107 super.engineUpdate(input, offset, len);
110 protected void engineUpdate(ByteBuffer input) { argument
111 super.engineUpdate(input);
140 engineUpdate(byte input) argument
145 engineUpdate(byte[] input, int offset, int len) argument
149 engineUpdate(ByteBuffer input) argument
242 engineUpdate(byte input) argument
245 engineUpdate(byte[] input, int offset, int len) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherRSAThread.java35 byte[] input = getData().substring(0, dataBlock).getBytes();
43 cip.doFinal(input, 0, input.length, output);
44 int outputSize = cip.getOutputSize(input.length);
49 checkPaddedEncodedData(input, decrypted, outputSize - input.length);
51 checkEncodedData(input, decrypted);
H A DCipherSymmetricKeyThread.java37 byte[] input = getData().getBytes();
57 cip.doFinal(input, 0, input.length, output);
58 outputSize = cip.getOutputSize(input.length);
65 cip.doFinal(input, 0, input.length, output);
66 outputSize = cip.getOutputSize(input.length);
/libcore/benchmarks/src/benchmarks/regression/
H A DCollectionsBenchmark.java42 List<Integer> input = buildList(arrayListLength, ArrayList.class);
44 Collections.sort(input);
49 List<Integer> input = buildList(arrayListLength, ArrayList.class);
51 Collections.sort(input, REVERSE);
56 List<Integer> input = buildList(arrayListLength, Vector.class);
58 Collections.sort(input);
63 List<Integer> input = buildList(arrayListLength, Vector.class);
65 Collections.sort(input, REVERSE);
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatcher.java42 * input sequence against the pattern. </p></li>
45 * input sequence, starting at the beginning, against the pattern. </p></li>
47 * <li><p> The {@link #find find} method scans the input sequence looking for
56 * <p> A matcher finds matches in a subset of its input called the
57 * <i>region</i>. By default, the region contains all of the matcher's input.
71 * matching subsequence in the input sequence is replaced.
75 * indices of the input subsequence captured by each <a
85 * <p> The implicit state of a matcher includes the input character sequence as
90 * method or, if a new input sequence is desired, its {@link
127 * Holds the input tex
129 private String input; field in class:Matcher
994 reset(CharSequence input) argument
1014 reset(CharSequence input, int start, int end) argument
1118 private final String input; field in class:Matcher.OffsetBasedMatchResult
1121 OffsetBasedMatchResult(String input, int[] offsets) argument
[all...]
H A DPattern.java61 * compiles an expression and matches an input sequence against it in a single
240 * <td headers="matches">The beginning of the input</td></tr>
244 * <td headers="matches">The end of the input but for the final
247 * <td headers="matches">The end of the input</td></tr>
434 * the end of a line of the input character sequence. The following are
461 * of the entire input sequence. If {@link #MULTILINE} mode is activated then
462 * <tt>^</tt> matches at the beginning of input and after any line terminator
463 * except at the end of input. When in {@link #MULTILINE} mode <tt>$</tt>
464 * matches just before a line terminator or the end of the input sequence.
489 * of the input sequenc
1005 matcher(CharSequence input) argument
1045 matches(String regex, CharSequence input) argument
1111 split(CharSequence input, int limit) argument
1167 fastSplit(String re, String input, int limit) argument
1260 split(CharSequence input) argument
1390 splitAsStream(final CharSequence input) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
H A DSplitTest.java44 String input = "poodle zoo";
47 tokens = p.split(input, 1);
49 assertTrue(tokens[0].equals(input));
50 tokens = p.split(input, 2);
54 tokens = p.split(input, 5);
58 tokens = p.split(input, -2);
62 tokens = p.split(input, 0);
66 tokens = p.split(input);
73 tokens = p.split(input, 1);
75 assertTrue(tokens[0].equals(input));
[all...]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
H A DSplitTest.java30 // A separator that doesn't occur in the input gets you the input.
32 // ...including when the input is the empty string.
40 // If l > 0, the result contains the first l matches, plus one string containing the remaining input.
66 String input = "poodle zoo";
69 tokens = p.split(input, 1);
71 assertTrue(tokens[0].equals(input));
72 tokens = p.split(input, 2);
76 tokens = p.split(input, 5);
80 tokens = p.split(input,
[all...]
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DDHClientKeyExchange.java74 DHClientKeyExchange(HandshakeInStream input) throws IOException { argument
75 if (input.available() >= 2) {
76 dh_Yc = input.getBytes16();
/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.

Completed in 724 milliseconds

12345