/libcore/luni/src/main/java/java/net/ |
H A D | IDN.java | 49 * <p>If the transformation fails (because the input is not a valid IDN), an 57 * @param input the Unicode name 61 * @throws IllegalArgumentException if {@code input} does not conform to <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a> 63 public static String toASCII(String input, int flags) { argument 64 return NativeIDN.toASCII(input, flags); 68 * Equivalent to {@code toASCII(input, 0)}. 70 * @param input the Unicode name 72 * @throws IllegalArgumentException if {@code input} does not conform to <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a> 74 public static String toASCII(String input) { argument 75 return toASCII(input, 93 toUnicode(String input, int flags) argument 103 toUnicode(String input) argument [all...] |
H A D | URISyntaxException.java | 28 private String input; field in class:URISyntaxException 37 * @param input 44 * if one of the arguments {@code input} or {@code reason} is 49 public URISyntaxException(String input, String reason, int index) { argument 52 if (input == null) { 53 throw new NullPointerException("input == null"); 62 this.input = input; 70 *@param input 75 * if one of the arguments {@code input} o 78 URISyntaxException(String input, String reason) argument [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | MessageDigestSpi.java | 45 * @param input 49 protected abstract void engineUpdate(byte input); argument 54 * @param input 57 * the index of the first byte in {@code input} to update from. 59 * the number of bytes in {@code input} to update from. 62 * {@code input}. 64 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 67 * Updates this {@code MessageDigestSpi} using the given {@code input}. 69 * @param input 72 protected void engineUpdate(ByteBuffer input) { argument [all...] |
H A D | SignatureSpi.java | 112 * @param input 120 protected void engineUpdate(ByteBuffer input) { argument 121 if (!input.hasRemaining()) { 125 if (input.hasArray()) { 126 tmp = input.array(); 127 int offset = input.arrayOffset(); 128 int position = input.position(); 129 int limit = input.limit(); 135 input.position(limit); 137 tmp = new byte[input [all...] |
H A D | MessageDigest.java | 42 * call {@link #update(byte[],int,int)} for each block of input data, and then call {@link #digest} 189 * @param input 192 * the index of the first byte in {@code input} to update from 194 * the number of bytes in {@code input} to update from 197 * {@code input} 199 public void update(byte[] input, int offset, int len) { argument 200 if (input == null || 204 (long) offset + (long) len > input.length) { 207 engineUpdate(input, offset, len); 213 * @param input 218 update(byte[] input) argument 275 digest(byte[] input) argument 368 update(ByteBuffer input) argument [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
H A D | MacSpi.java | 68 * @param input 71 protected abstract void engineUpdate(byte input); argument 75 * buffer {@code input} from the specified {@code offset} and length {@code 78 * @param input 85 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 92 * @param input 95 protected void engineUpdate(ByteBuffer input) { argument 96 if (!input.hasRemaining()) { 100 if (input.hasArray()) { 101 bInput = input [all...] |
H A D | CipherSpi.java | 129 * the length of the input (in bytes). 178 * the input key for the operation. 210 * the input key for the operation. 248 * the input key for the operation. 268 * @param input 269 * the input bytes to transform. 271 * the offset in the input to start. 273 * the length of the input to transform. 275 * input has zero length. 280 * if the input i 283 engineUpdate(byte[] input, int inputOffset, int inputLen) argument 309 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 331 engineUpdate(ByteBuffer input, ByteBuffer output) argument 390 engineDoFinal(byte[] input, int inputOffset, int inputLen) argument 419 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 451 engineDoFinal(ByteBuffer input, ByteBuffer output) argument [all...] |
H A D | Mac.java | 232 * @param input 237 public final void update(byte input) throws IllegalStateException { argument 241 spiImpl.engineUpdate(input); 246 * {@code input} from the specified {@code offset} and length {@code len}. 248 * @param input 258 * chunk in {@code input} buffer. 260 public final void update(byte[] input, int offset, int len) throws IllegalStateException { argument 264 if (input == null) { 267 if ((offset < 0) || (len < 0) || ((offset + len) > input.length)) { 270 spiImpl.engineUpdate(input, offse 281 update(byte[] input) argument 300 update(ByteBuffer input) argument 386 doFinal(byte[] input) argument [all...] |
H A D | Cipher.java | 393 * the number of bytes of the input. 394 * @return the output buffer length for the input length. 467 * the input key for the operation. 505 * the input key for the operation. 551 * the input key for the operation. 592 * the input key for the operation. 643 * the input key for the operation. 683 * the input key for the operation. 839 * @param input 840 * the input byte 849 update(byte[] input) argument 882 update(byte[] input, int inputOffset, int inputLen) argument 936 update(byte[] input, int inputOffset, int inputLen, byte[] output) argument 971 update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 1017 update(ByteBuffer input, ByteBuffer output) argument 1106 doFinal(byte[] input) argument 1140 doFinal(byte[] input, int inputOffset, int inputLen) argument 1179 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output) argument 1217 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 1255 doFinal(ByteBuffer input, ByteBuffer output) argument [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | Externalizable.java | 26 * Reads the next object from the ObjectInput <code>input</code>. 28 * @param input 31 * if an error occurs attempting to read from {@code input}. 35 public void readExternal(ObjectInput input) throws IOException, argument
|
/libcore/luni/src/main/java/java/util/regex/ |
H A D | Splitter.java | 38 public static String[] fastSplit(String re, String input, int limit) { argument 62 if (input.isEmpty()) { 71 while ((end = input.indexOf(ch, begin)) != -1 && list.size() + 1 < maxSize) { 72 list.add(input.substring(begin, end)); 75 return finishSplit(list, input, begin, maxSize, limit); 78 public static String[] split(Pattern pattern, String re, String input, int limit) { argument 79 String[] fastResult = fastSplit(re, input, limit); 86 if (input.isEmpty()) { 93 Matcher matcher = new Matcher(pattern, input); 96 list.add(input 102 finishSplit(List<String> list, String input, int begin, int maxSize, int limit) argument [all...] |
H A D | Matcher.java | 20 * The result of applying a {@code Pattern} to a given input. See {@link Pattern} for 36 * Holds the input text. 38 private String input; field in class:Matcher 47 * Holds the end of the region, or input.length() if the matching should 48 * go until the end of the input. 79 * Creates a matcher for a given combination of pattern and input. Both 84 * @param input 85 * the input to use. 87 Matcher(Pattern pattern, CharSequence input) { argument 89 reset(input); 175 reset(CharSequence input) argument 195 reset(CharSequence input, int start, int end) argument [all...] |
H A D | Pattern.java | 124 * <p>Quantifiers are "greedy" by default, meaning that they will match the longest possible input 125 * sequence. There are also non-greedy quantifiers that match the shortest possible input sequence. 150 * <tr> <td> \A </td> <td>At beginning of input.</td> </tr> 154 * <tr> <td> \z </td> <td>At end of input.</td> </tr> 155 * <tr> <td> \Z </td> <td>At end of input, or before newline at end.</td> </tr> 251 * the beginning and end of an input line, respectively. Normally, they 252 * match the beginning and the end of the complete input. Corresponds to {@code (?m)}. 280 * character in the input string only match if they are canonically 291 * Returns a {@link Matcher} for this pattern applied to the given {@code input}. 293 * whole input, fin 296 matcher(CharSequence input) argument 328 split(CharSequence input, int limit) argument 335 split(CharSequence input) argument 419 matches(String regularExpression, CharSequence input) argument [all...] |
/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/main/java/org/apache/harmony/crypto/internal/ |
H A D | NullCipherSpi.java | 96 public byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument 97 if (input == null) { 101 System.arraycopy(input, inputOffset, result, 0, inputLen); 106 public int engineUpdate(byte[] input, int inputOffset, int inputLen, argument 108 if (input == null) { 111 System.arraycopy(input, inputOffset, output, outputOffset, inputLen); 116 public int engineUpdate(ByteBuffer input, ByteBuffer output) argument 118 if (input == null) { 119 throw new NullPointerException("input == null"); 123 int result = input 133 engineDoFinal(byte[] input, int inputOffset, int inputLen) argument 142 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 151 engineDoFinal(ByteBuffer input, ByteBuffer output) argument [all...] |
/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...] |
H A D | CipherSpiTest.java | 50 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) argument 52 return super.engineDoFinal(input, inputOffset, inputLen); 56 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument 59 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset); 111 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument 112 return super.engineUpdate(input, inputOffset, inputLen); 116 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument 118 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset); 354 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument 359 initV[i] = input[inputOffse 364 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 377 engineDoFinal(byte[] input, int inputOffset, int inputLen) argument 389 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 405 engineUpdate(ByteBuffer input, ByteBuffer output) argument 409 engineDoFinal(ByteBuffer input, ByteBuffer output) 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);
|
H A D | CipherPBEThread.java | 38 byte[] input = getData().getBytes(); 53 cip.doFinal(input, 0, input.length, output); 54 int outputSize = cip.getOutputSize(input.length);
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | SplitTest.java | 30 // 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/luni/src/main/native/ |
H A D | zip.h | 38 UniquePtr<jbyte[]> input; member in class:NativeZipStream 42 NativeZipStream() : input(NULL), inCap(0), mDict(NULL) { 74 input.reset(new jbyte[len]); 75 if (input.get() == NULL) { 82 env->GetByteArrayRegion(buf, off, len, &input[0]); 84 stream.next_in = reinterpret_cast<Bytef*>(&input[0]);
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
H A D | SAXParser.java | 47 * 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/main/java/org/apache/harmony/security/provider/crypto/ |
H A D | SHA1_MessageDigestImpl.java | 257 * input byte to add to current message 259 protected void engineUpdate(byte input) { argument 261 oneByte[0] = input; 275 * input a byte array 277 * offset a number of first byte in the "input" array to use for updating 290 protected void engineUpdate(byte[] input, int offset, int len) { argument 291 if (input == null) { 292 throw new IllegalArgumentException("input == null"); 300 if (offset > input.length || len > input [all...] |
/libcore/luni/src/main/java/libcore/net/http/ |
H A D | HeaderParser.java | 121 * Returns the next index in {@code input} at or after {@code pos} that 122 * contains a character from {@code characters}. Returns the input length if 125 private static int skipUntil(String input, int pos, String characters) { argument 126 for (; pos < input.length(); pos++) { 127 if (characters.indexOf(input.charAt(pos)) != -1) { 135 * Returns the next non-whitespace character in {@code input} that is white 136 * space. Result is undefined if input contains newline characters. 138 private static int skipWhitespace(String input, int pos) { argument 139 for (; pos < input.length(); pos++) { 140 char c = input [all...] |