/libcore/ojluni/src/main/java/java/net/ |
H A D | IDN.java | 87 * In this case, the input string should not be used in an internationalized domain name. 98 * @param input the string to be processed 103 * @throws IllegalArgumentException if the input string doesn't conform to RFC 3490 specification 105 public static String toASCII(String input, int flag) { argument 108 return IDNA.convertIDNToASCII(input, flag).toString(); 110 throw new IllegalArgumentException("Invalid input to toASCII: " + input, e); 123 * {@link #toASCII(String, int) toASCII}(input, 0); 126 * @param input the string to be processed 130 * @throws IllegalArgumentException if the input strin 132 toASCII(String input) argument 155 toUnicode(String input, int flag) argument 174 convertFullStop(StringBuffer input) argument 198 toUnicode(String input) argument [all...] |
H A D | URISyntaxException.java | 43 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 {@code null} 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 D | UTF16BECharsetTest.java | 38 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 D | UTF16LECharsetTest.java | 38 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 D | ASCCharsetTest.java | 41 String input = "ab\u5D14\u654F"; 45 internalTestEncode(input, output); 54 byte[] input = new byte[] { 97, 98, 63, 63 }; 56 internalTestDecode(input, output);
|
H A D | ISOCharsetTest.java | 40 String input = "ab\u5D14\u654F"; 44 internalTestEncode(input, output); 53 byte[] input = new byte[] { 97, 98, 63, 63 }; 55 internalTestDecode(input, output);
|
H A D | UTF8CharsetTest.java | 40 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/nio/file/ |
H A D | InvalidPathException.java | 39 private String input; field in class:InvalidPathException 43 * Constructs an instance from the given input string, reason, and error 46 * @param input the input string 47 * @param reason a string explaining why the input was rejected 52 * if either the input or reason strings are <tt>null</tt> 57 public InvalidPathException(String input, String reason, int index) { argument 59 if ((input == null) || (reason == null)) 63 this.input = input; 77 InvalidPathException(String input, String reason) argument [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | MessageDigestSpi.java | 53 // 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()} bytes starting 98 * at {@code input.position()}. 102 * @param input the ByteBuffer 105 protected void engineUpdate(ByteBuffer input) { argument 106 if (input [all...] |
H A D | SignatureSpi.java | 139 * @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...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | MacSpi.java | 75 * @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 D | NullCipherSpi.java | 79 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 D | CipherSpi.java | 60 * 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 378 * derived from the input parameters, and there are no reasonable 434 * derived from the input parameters, and there are no reasonable 475 * <p>The first <code>inputLen</code> bytes in the <code>input</code> 479 * @param input the input buffer 480 * @param inputOffset the offset in <code>input</cod 488 engineUpdate(byte[] input, int inputOffset, int inputLen) argument 517 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 552 engineUpdate(ByteBuffer input, ByteBuffer output) argument 609 engineDoFinal(byte[] input, int inputOffset, int inputLen) argument 666 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 727 engineDoFinal(ByteBuffer input, ByteBuffer output) argument 744 bufferCrypt(ByteBuffer input, ByteBuffer output, boolean isUpdate) argument [all...] |
/libcore/luni/src/test/java/libcore/java/nio/file/ |
H A D | InvalidPathExceptionTest.java | 27 String input = "input"; 30 InvalidPathException exception = new InvalidPathException(input, reason, index); 33 assertEquals(input, exception.getInput()); 37 exception = new InvalidPathException(input, reason, index); 40 assertEquals(input, exception.getInput()); 45 new InvalidPathException(input, reason, index); 49 // Test the case where input is null, reason is not null and index >= -1. 56 // Test the case where input is null, reason is not null and index < -1. 63 // Test the case where reason is null, input i [all...] |
H A D | LinuxFileSystemTestData.java | 75 public String input; field in class:LinuxFileSystemTestData.TestData 79 TestData(String output, String input, String... inputArray) { argument 81 this.input = input; 85 TestData(Class exceptionClass, String input, String... inputArray) { argument 87 this.input = input;
|
H A D | PathsTest.java | 39 assertEquals(inputOutputTestCase.output, Paths.get(inputOutputTestCase.input, 46 Paths.get(exceptionTestCase.input, exceptionTestCase.inputArray); 58 assertEquals(inputOutputTestCase.output, Paths.get(new URI(inputOutputTestCase.input)). 65 System.out.println(exceptionTestCase.input); 66 Paths.get(new URI(exceptionTestCase.input));
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleInputStream.java | 34 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 D | MacSpiTest.java | 67 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 D | CipherRSAThread.java | 35 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 D | CipherSymmetricKeyThread.java | 37 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 D | CollectionsBenchmark.java | 42 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 D | Pattern.java | 63 * compiles an expression and matches an input sequence against it in a single 242 * <td headers="matches">The beginning of the input</td></tr> 246 * <td headers="matches">The end of the input but for the final 249 * <td headers="matches">The end of the input</td></tr> 436 * the end of a line of the input character sequence. The following are 463 * of the entire input sequence. If {@link #MULTILINE} mode is activated then 464 * <tt>^</tt> matches at the beginning of input and after any line terminator 465 * except at the end of input. When in {@link #MULTILINE} mode <tt>$</tt> 466 * matches just before a line terminator or the end of the input sequence. 491 * of the input sequenc 1009 matcher(CharSequence input) argument 1049 matches(String regex, CharSequence input) argument 1115 split(CharSequence input, int limit) argument 1171 fastSplit(String re, String input, int limit) argument 1264 split(CharSequence input) argument 1394 splitAsStream(final CharSequence input) argument [all...] |
H A D | Matcher.java | 43 * input sequence against the pattern. </p></li> 46 * input sequence, starting at the beginning, against the pattern. </p></li> 48 * <li><p> The {@link #find find} method scans the input sequence looking for 57 * <p> A matcher finds matches in a subset of its input called the 58 * <i>region</i>. By default, the region contains all of the matcher's input. 72 * matching subsequence in the input sequence is replaced. 76 * indices of the input subsequence captured by each <a 86 * <p> The implicit state of a matcher includes the input character sequence as 91 * method or, if a new input sequence is desired, its {@link 133 * Holds the original CharSequence for use in {@link #reset}. {@link #input} i 142 private String input; field in class:Matcher 1058 reset(CharSequence input) argument 1078 reset(CharSequence input, int start, int end) argument 1220 private final String input; field in class:Matcher.OffsetBasedMatchResult 1223 OffsetBasedMatchResult(String input, int[] offsets) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | SplitTest.java | 44 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 D | SplitTest.java | 31 // A separator that doesn't occur in the input gets you the input. 33 // ...including when the input is the empty string. 41 // If l > 0, the result contains the first l matches, plus one string containing the remaining input. 67 String input = "poodle zoo"; 70 tokens = p.split(input, 1); 72 assertTrue(tokens[0].equals(input)); 73 tokens = p.split(input, 2); 77 tokens = p.split(input, 5); 81 tokens = p.split(input, [all...] |