/libcore/luni/src/main/java/java/net/ |
D | URISyntaxException.java | 28 private String input; field in URISyntaxException 49 public URISyntaxException(String input, String reason, int index) { in URISyntaxException() argument 52 if (input == null || reason == null) { in URISyntaxException() 60 this.input = input; in URISyntaxException() 76 public URISyntaxException(String input, String reason) { in URISyntaxException() argument 79 if (input == null || reason == null) { in URISyntaxException() 83 this.input = input; in URISyntaxException() 112 return input; in getInput() 127 return reason + " at index " + index + ": " + input; in getMessage() 129 return reason + ": " + input; in getMessage()
|
D | IDN.java | 61 public static String toASCII(String input, int flags) { in toASCII() argument 62 return NativeIDN.toASCII(input, flags); in toASCII() 72 public static String toASCII(String input) { in toASCII() argument 73 return toASCII(input, 0); in toASCII() 91 public static String toUnicode(String input, int flags) { in toUnicode() argument 92 return NativeIDN.toUnicode(input, flags); in toUnicode() 101 public static String toUnicode(String input) { in toUnicode() argument 102 return NativeIDN.toUnicode(input, 0); in toUnicode()
|
D | HttpCookie.java | 247 private final String input; field in HttpCookie.CookieParser 263 CookieParser(String input) { in CookieParser() argument 264 this.input = input; in CookieParser() 265 this.inputLowerCase = input.toLowerCase(Locale.US); in CookieParser() 289 throw new IllegalArgumentException("No cookies in " + input); in parse() 296 "Expected '=' after " + name + " in " + input); in parse() 311 if (pos == input.length()) { in parse() 315 if (input.charAt(pos) == ',') { in parse() 318 } else if (input.charAt(pos) == ';') { in parse() 404 String forSubstring = returnLowerCase ? inputLowerCase : input; in readAttributeName() [all …]
|
/libcore/luni/src/main/java/javax/crypto/ |
D | MacSpi.java | 71 protected abstract void engineUpdate(byte input); in engineUpdate() argument 85 protected abstract void engineUpdate(byte[] input, int offset, int len); in engineUpdate() argument 95 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 96 if (!input.hasRemaining()) { in engineUpdate() 100 if (input.hasArray()) { in engineUpdate() 101 bInput = input.array(); in engineUpdate() 102 int offset = input.arrayOffset(); in engineUpdate() 103 int position = input.position(); in engineUpdate() 104 int limit = input.limit(); in engineUpdate() 106 input.position(limit); in engineUpdate() [all …]
|
D | CipherSpi.java | 283 protected abstract byte[] engineUpdate(byte[] input, int inputOffset, in engineUpdate() argument 309 protected abstract int engineUpdate(byte[] input, int inputOffset, in engineUpdate() argument 331 protected int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() argument 333 if (input == null) { in engineUpdate() 339 int position = input.position(); in engineUpdate() 340 int limit = input.limit(); in engineUpdate() 346 if (input.hasArray()) { in engineUpdate() 347 bInput = input.array(); in engineUpdate() 348 int offset = input.arrayOffset(); in engineUpdate() 350 input.position(limit); in engineUpdate() [all …]
|
D | Mac.java | 241 public final void update(byte input) throws IllegalStateException { in update() argument 245 spiImpl.engineUpdate(input); in update() 264 public final void update(byte[] input, int offset, int len) throws IllegalStateException { in update() argument 268 if (input == null) { in update() 271 if ((offset < 0) || (len < 0) || ((offset + len) > input.length)) { in update() 274 spiImpl.engineUpdate(input, offset, len); in update() 285 public final void update(byte[] input) throws IllegalStateException { in update() argument 289 if (input != null) { in update() 290 spiImpl.engineUpdate(input, 0, input.length); in update() 304 public final void update(ByteBuffer input) { in update() argument [all …]
|
D | Cipher.java | 833 public final byte[] update(byte[] input) { in update() argument 837 if (input == null) { in update() 840 if (input.length == 0) { in update() 843 return spiImpl.engineUpdate(input, 0, input.length); in update() 866 public final byte[] update(byte[] input, int inputOffset, int inputLen) { in update() argument 870 if (input == null) { in update() 874 || inputLen > input.length in update() 875 || inputOffset > input.length - inputLen) { in update() 878 if (input.length == 0) { in update() 881 return spiImpl.engineUpdate(input, inputOffset, inputLen); in update() [all …]
|
/libcore/luni/src/main/java/java/security/ |
D | MessageDigestSpi.java | 49 protected abstract void engineUpdate(byte input); in engineUpdate() argument 64 protected abstract void engineUpdate(byte[] input, int offset, int len); in engineUpdate() argument 72 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 73 if (!input.hasRemaining()) { in engineUpdate() 77 if (input.hasArray()) { in engineUpdate() 78 tmp = input.array(); in engineUpdate() 79 int offset = input.arrayOffset(); in engineUpdate() 80 int position = input.position(); in engineUpdate() 81 int limit = input.limit(); in engineUpdate() 83 input.position(limit); in engineUpdate() [all …]
|
D | SignatureSpi.java | 120 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 121 if (!input.hasRemaining()) { in engineUpdate() 125 if (input.hasArray()) { in engineUpdate() 126 tmp = input.array(); in engineUpdate() 127 int offset = input.arrayOffset(); in engineUpdate() 128 int position = input.position(); in engineUpdate() 129 int limit = input.limit(); in engineUpdate() 135 input.position(limit); in engineUpdate() 137 tmp = new byte[input.limit() - input.position()]; in engineUpdate() 138 input.get(tmp); in engineUpdate()
|
D | MessageDigest.java | 206 public void update(byte[] input, int offset, int len) { in update() argument 207 if (input == null || in update() 211 (long) offset + (long) len > input.length) { in update() 214 engineUpdate(input, offset, len); in update() 225 public void update(byte[] input) { in update() argument 226 if (input == null) { in update() 229 engineUpdate(input, 0, input.length); in update() 282 public byte[] digest(byte[] input) { in digest() argument 283 update(input); in digest() 375 public final void update(ByteBuffer input) { in update() argument [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/crypto/internal/ |
D | NullCipherSpi.java | 96 public byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { in engineUpdate() argument 97 if (input == null) { in engineUpdate() 101 System.arraycopy(input, inputOffset, result, 0, inputLen); in engineUpdate() 106 public int engineUpdate(byte[] input, int inputOffset, int inputLen, in engineUpdate() argument 108 if (input == null) { in engineUpdate() 111 System.arraycopy(input, inputOffset, output, outputOffset, inputLen); in engineUpdate() 116 public int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() argument 118 if (input == null || output == null) { in engineUpdate() 121 int result = input.limit() - input.position(); in engineUpdate() 123 output.put(input); in engineUpdate() [all …]
|
/libcore/luni/src/main/java/java/util/regex/ |
D | Splitter.java | 38 public static String[] fastSplit(String re, String input, int limit) { in fastSplit() argument 62 if (input.isEmpty()) { in fastSplit() 71 while ((end = input.indexOf(ch, begin)) != -1 && list.size() + 1 < maxSize) { in fastSplit() 72 list.add(input.substring(begin, end)); in fastSplit() 75 return finishSplit(list, input, begin, maxSize, limit); in fastSplit() 78 public static String[] split(Pattern pattern, String re, String input, int limit) { in split() argument 79 String[] fastResult = fastSplit(re, input, limit); in split() 86 if (input.isEmpty()) { in split() 93 Matcher matcher = new Matcher(pattern, input); in split() 96 list.add(input.substring(begin, matcher.start())); in split() [all …]
|
D | Matcher.java | 38 private String input; field in Matcher 92 Matcher(Pattern pattern, CharSequence input) { in Matcher() argument 94 reset(input); in Matcher() 114 buffer.append(input.substring(appendPos, start())); in appendReplacement() 166 return reset(input, 0, input.length()); in reset() 180 public Matcher reset(CharSequence input) { in reset() argument 181 return reset(input, 0, input.length()); in reset() 200 private Matcher reset(CharSequence input, int start, int end) { in reset() argument 201 if (input == null) { in reset() 205 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset() [all …]
|
D | Pattern.java | 289 public Matcher matcher(CharSequence input) { in matcher() argument 290 return new Matcher(this, input); in matcher() 321 public String[] split(CharSequence input, int limit) { in split() argument 322 return Splitter.split(this, pattern, input.toString(), limit); in split() 328 public String[] split(CharSequence input) { in split() argument 329 return split(input, 0); in split() 412 public static boolean matches(String regularExpression, CharSequence input) { in matches() argument 413 return new Matcher(new Pattern(regularExpression, 0), input).matches(); in matches()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MacSpiTest.java | 74 protected void engineUpdate(byte input) { in engineUpdate() argument 75 super.engineUpdate(input); in engineUpdate() 79 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 80 super.engineUpdate(input, offset, len); in engineUpdate() 108 protected void engineUpdate(byte input) { in engineUpdate() argument 109 super.engineUpdate(input); in engineUpdate() 113 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 114 super.engineUpdate(input, offset, len); in engineUpdate() 117 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 118 super.engineUpdate(input); in engineUpdate() [all …]
|
D | CipherSpiTest.java | 56 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) in engineDoFinal() argument 58 return super.engineDoFinal(input, inputOffset, inputLen); in engineDoFinal() 62 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument 65 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal() 117 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { in engineUpdate() argument 118 return super.engineUpdate(input, inputOffset, inputLen); in engineUpdate() 122 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument 124 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset); in engineUpdate() 395 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { in engineUpdate() argument 400 initV[i] = input[inputOffset + i]; in engineUpdate() [all …]
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | SAXParser.java | 130 InputSource input = new InputSource(is); in parse() local 131 this.parse(input, hb); in parse() 161 InputSource input = new InputSource(is); in parse() local 162 input.setSystemId(systemId); in parse() 163 this.parse(input, hb); in parse() 186 InputSource input = new InputSource(is); in parse() local 187 this.parse(input, dh); in parse() 214 InputSource input = new InputSource(is); in parse() local 215 input.setSystemId(systemId); in parse() 216 this.parse(input, dh); in parse() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | SplitTest.java | 100 String input = "poodle zoo"; in testSplit1() local 103 tokens = p.split(input, 1); in testSplit1() 105 assertTrue(tokens[0].equals(input)); in testSplit1() 106 tokens = p.split(input, 2); in testSplit1() 110 tokens = p.split(input, 5); in testSplit1() 114 tokens = p.split(input, -2); in testSplit1() 118 tokens = p.split(input, 0); in testSplit1() 122 tokens = p.split(input); in testSplit1() 129 tokens = p.split(input, 1); in testSplit1() 131 assertTrue(tokens[0].equals(input)); in testSplit1() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ASimpleInputStream.java | 34 public Support_ASimpleInputStream(String input) { in Support_ASimpleInputStream() argument 35 buf = input.getBytes(); in Support_ASimpleInputStream() 40 public Support_ASimpleInputStream(byte[] input) { in Support_ASimpleInputStream() argument 42 len = input.length; in Support_ASimpleInputStream() 44 System.arraycopy(input, 0, buf, 0, len); in Support_ASimpleInputStream()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherSymmetricKeyThread.java | 37 byte[] input = getData().getBytes(); in crypt() 57 cip.doFinal(input, 0, input.length, output); in crypt() 58 outputSize = cip.getOutputSize(input.length); in crypt() 65 cip.doFinal(input, 0, input.length, output); in crypt() 66 outputSize = cip.getOutputSize(input.length); in crypt()
|
D | CipherRSAThread.java | 35 byte[] input = getData().substring(0, dataBlock).getBytes(); in crypt() 43 cip.doFinal(input, 0, input.length, output); in crypt() 44 int outputSize = cip.getOutputSize(input.length); in crypt() 48 checkEncodedData(input, decrypted); in crypt()
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1_MessageDigestImpl.java | 264 protected void engineUpdate(byte input) { in engineUpdate() argument 266 oneByte[0] = input; in engineUpdate() 295 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 296 if (input == null) { in engineUpdate() 305 if (offset > input.length || len > input.length || (len + offset) > input.length) { in engineUpdate() 309 SHA1Impl.updateHash(buffer, input, offset, offset + len -1 ); in engineUpdate()
|
/libcore/luni/src/main/native/ |
D | zip.h | 37 UniquePtr<jbyte[]> input; 41 NativeZipStream() : input(NULL), inCap(0), mDict(NULL) { in NativeZipStream() 73 input.reset(new jbyte[len]); in setInput() 74 if (input.get() == NULL) { in setInput() 81 env->GetByteArrayRegion(buf, off, len, &input[0]); in setInput() 83 stream.next_in = reinterpret_cast<Bytef*>(&input[0]); in setInput()
|
/libcore/luni/src/main/java/java/io/ |
D | ObjectInputStream.java | 76 private DataInputStream input; field in ObjectInputStream 385 public ObjectInputStream(InputStream input) in ObjectInputStream() argument 422 this.input = (input instanceof DataInputStream) ? (DataInputStream) input in ObjectInputStream() 423 : new DataInputStream(input); in ObjectInputStream() 431 primitiveData = this.input; in ObjectInputStream() 455 if (primitiveData == input || primitiveData.available() > 0) { in checkReadPrimitiveTypes() 466 next = input.read(); in checkReadPrimitiveTypes() 498 input.close(); in close() 628 pushbackTC = input.readByte(); in nextTC() 707 byte[] result = new byte[input.readByte() & 0xff]; in readBlockData() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatReader.java | 244 public void parse(InputSource input) throws IOException, SAXException { in parse() argument 259 Reader reader = input.getCharacterStream(); in parse() 262 parse(reader, input.getPublicId(), input.getSystemId()); in parse() 271 InputStream in = input.getByteStream(); in parse() 272 String encoding = input.getEncoding(); in parse() 275 parse(in, encoding, input.getPublicId(), input.getSystemId()); in parse() 283 String systemId = input.getSystemId(); in parse() 291 parse(in, encoding, input.getPublicId(), systemId); in parse()
|