/libcore/luni/src/main/java/javax/crypto/ |
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 | 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 | Cipher.java | 1148 public final byte[] update(byte[] input) { in update() argument 1152 if (input == null) { in update() 1155 if (input.length == 0) { in update() 1158 return getSpi().engineUpdate(input, 0, input.length); in update() 1180 public final byte[] update(byte[] input, int inputOffset, int inputLen) { in update() argument 1184 if (input == null) { in update() 1187 checkInputOffsetAndCount(input.length, inputOffset, inputLen); in update() 1191 return getSpi().engineUpdate(input, inputOffset, inputLen); in update() 1234 public final int update(byte[] input, int inputOffset, int inputLen, in update() argument 1236 return update(input, inputOffset, inputLen, output, 0); in update() [all …]
|
D | Mac.java | 371 public final void update(byte input) throws IllegalStateException { in update() argument 375 getSpi().engineUpdate(input); in update() 394 public final void update(byte[] input, int offset, int len) throws IllegalStateException { in update() argument 398 if (input == null) { in update() 401 if ((offset < 0) || (len < 0) || ((offset + len) > input.length)) { in update() 403 + " input.length=" + input.length in update() 406 getSpi().engineUpdate(input, offset, len); in update() 417 public final void update(byte[] input) throws IllegalStateException { in update() argument 421 if (input != null) { in update() 422 getSpi().engineUpdate(input, 0, input.length); in update() [all …]
|
/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) { in URISyntaxException() 62 this.input = input; in URISyntaxException() 78 public URISyntaxException(String input, String reason) { in URISyntaxException() argument 81 if (input == null) { in URISyntaxException() 87 this.input = input; in URISyntaxException() 116 return input; in getInput() 131 return reason + " at index " + index + ": " + input; in getMessage() 133 return reason + ": " + input; in getMessage()
|
D | IDN.java | 63 public static String toASCII(String input, int flags) { in toASCII() argument 64 return NativeIDN.toASCII(input, flags); in toASCII() 74 public static String toASCII(String input) { in toASCII() argument 75 return toASCII(input, 0); in toASCII() 93 public static String toUnicode(String input, int flags) { in toUnicode() argument 94 return NativeIDN.toUnicode(input, flags); in toUnicode() 103 public static String toUnicode(String input) { in toUnicode() argument 104 return NativeIDN.toUnicode(input, 0); in toUnicode()
|
D | HttpCookie.java | 215 private final String input; field in HttpCookie.CookieParser 231 CookieParser(String input) { in CookieParser() argument 232 this.input = input; in CookieParser() 233 this.inputLowerCase = input.toLowerCase(Locale.US); in CookieParser() 257 throw new IllegalArgumentException("No cookies in " + input); in parse() 264 "Expected '=' after " + name + " in " + input); in parse() 279 if (pos == input.length()) { in parse() 283 if (input.charAt(pos) == ',') { in parse() 286 } else if (input.charAt(pos) == ';') { in parse() 370 String forSubstring = returnLowerCase ? inputLowerCase : input; in readAttributeName() [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 | 200 public void update(byte[] input, int offset, int len) { in update() argument 201 if (input == null || in update() 205 (long) offset + (long) len > input.length) { in update() 208 engineUpdate(input, offset, len); in update() 219 public void update(byte[] input) { in update() argument 220 if (input == null) { in update() 223 engineUpdate(input, 0, input.length); in update() 276 public byte[] digest(byte[] input) { in digest() argument 277 update(input); in digest() 361 public final void update(ByteBuffer input) { in update() argument [all …]
|
/libcore/luni/src/main/java/java/util/regex/ |
D | Splitter.java | 39 public static String[] fastSplit(String re, String input, int limit) { in fastSplit() argument 63 if (input.isEmpty()) { in fastSplit() 71 while (separatorCount + 1 != limit && (end = input.indexOf(ch, begin)) != -1) { in fastSplit() 75 int lastPartEnd = input.length(); in fastSplit() 85 } while (input.charAt(begin - 1) == ch); in fastSplit() 87 separatorCount -= input.length() - begin; in fastSplit() 95 end = input.indexOf(ch, begin); in fastSplit() 96 result[i] = input.substring(begin, end); in fastSplit() 100 result[separatorCount] = input.substring(begin, lastPartEnd); in fastSplit() 104 public static String[] split(Pattern pattern, String re, String input, int limit) { in split() argument [all …]
|
D | Matcher.java | 39 private String input; field in Matcher 88 Matcher(Pattern pattern, CharSequence input) { in Matcher() argument 90 reset(input); in Matcher() 110 buffer.append(input.substring(appendPos, start())); in appendReplacement() 162 return reset(input, 0, input.length()); in reset() 176 public Matcher reset(CharSequence input) { in reset() argument 177 return reset(input, 0, input.length()); in reset() 196 private Matcher reset(CharSequence input, int start, int end) { in reset() argument 197 if (input == null) { in reset() 201 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset() [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) { in engineUpdate() 123 int result = input.limit() - input.position(); in engineUpdate() 125 output.put(input); in engineUpdate() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | SplitTest.java | 44 String input = "poodle zoo"; in testSplit1() local 47 tokens = p.split(input, 1); in testSplit1() 49 assertTrue(tokens[0].equals(input)); in testSplit1() 50 tokens = p.split(input, 2); in testSplit1() 54 tokens = p.split(input, 5); in testSplit1() 58 tokens = p.split(input, -2); in testSplit1() 62 tokens = p.split(input, 0); in testSplit1() 66 tokens = p.split(input); in testSplit1() 73 tokens = p.split(input, 1); in testSplit1() 75 assertTrue(tokens[0].equals(input)); in testSplit1() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MacSpiTest.java | 67 protected void engineUpdate(byte input) { in engineUpdate() argument 68 super.engineUpdate(input); in engineUpdate() 72 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 73 super.engineUpdate(input, offset, len); in engineUpdate() 101 protected void engineUpdate(byte input) { in engineUpdate() argument 102 super.engineUpdate(input); in engineUpdate() 106 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 107 super.engineUpdate(input, offset, len); in engineUpdate() 110 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 111 super.engineUpdate(input); 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 | 66 String input = "poodle zoo"; in testSplit1() local 69 tokens = p.split(input, 1); in testSplit1() 71 assertTrue(tokens[0].equals(input)); in testSplit1() 72 tokens = p.split(input, 2); in testSplit1() 76 tokens = p.split(input, 5); in testSplit1() 80 tokens = p.split(input, -2); in testSplit1() 84 tokens = p.split(input, 0); in testSplit1() 88 tokens = p.split(input); in testSplit1() 95 tokens = p.split(input, 1); in testSplit1() 97 assertTrue(tokens[0].equals(input)); in testSplit1() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
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() 49 checkPaddedEncodedData(input, decrypted, outputSize - input.length); in crypt() 51 checkEncodedData(input, decrypted); in crypt()
|
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()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CollectionsBenchmark.java | 43 List<Integer> input = buildList(arrayListLength, ArrayList.class); in timeSort_arrayList() local 45 Collections.sort(input); in timeSort_arrayList() 50 List<Integer> input = buildList(arrayListLength, ArrayList.class); in timeSortWithComparator_arrayList() local 52 Collections.sort(input, REVERSE); in timeSortWithComparator_arrayList() 57 List<Integer> input = buildList(arrayListLength, Vector.class); in timeSort_vector() local 59 Collections.sort(input); in timeSort_vector() 64 List<Integer> input = buildList(arrayListLength, Vector.class); in timeSortWithComparator_vector() local 66 Collections.sort(input, REVERSE); in timeSortWithComparator_vector()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | UTF16BECharsetTest.java | 38 String input = "ab\u5D14\u654F"; in testEncode_Normal() local 40 internalTestEncode(input, output); in testEncode_Normal() 49 byte[] input = new byte[] { 0, 97, 0, 98, 93, 20, 101, 79 }; in testDecode_Normal() 51 internalTestDecode(input, output); in testDecode_Normal()
|
D | UTF16LECharsetTest.java | 38 String input = "ab\u5D14\u654F"; in testEncode_Normal() local 40 internalTestEncode(input, output); in testEncode_Normal() 49 byte[] input = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 }; in testDecode_Normal() 51 internalTestDecode(input, output); in testDecode_Normal()
|
D | ASCCharsetTest.java | 41 String input = "ab\u5D14\u654F"; in testEncode_Normal() local 45 internalTestEncode(input, output); in testEncode_Normal() 54 byte[] input = new byte[] { 97, 98, 63, 63 }; in testDecode_Normal() 56 internalTestDecode(input, output); in testDecode_Normal()
|
D | ISOCharsetTest.java | 40 String input = "ab\u5D14\u654F"; in testEncode_Normal() local 44 internalTestEncode(input, output); in testEncode_Normal() 53 byte[] input = new byte[] { 97, 98, 63, 63 }; in testDecode_Normal() 55 internalTestDecode(input, output); in testDecode_Normal()
|
/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()
|