/libcore/ojluni/src/main/java/java/net/ |
D | IDN.java | 105 public static String toASCII(String input, int flag) { in toASCII() argument 108 return IDNA.convertIDNToASCII(input, flag).toString(); in toASCII() 112 if (".".equals(input)) { in toASCII() 113 return input; in toASCII() 115 throw new IllegalArgumentException("Invalid input to toASCII: " + input, e); in toASCII() 137 public static String toASCII(String input) { in toASCII() argument 138 return toASCII(input, 0); in toASCII() 160 public static String toUnicode(String input, int flag) { in toUnicode() argument 165 return convertFullStop(IDNA.convertIDNToUnicode(input, flag)).toString(); in toUnicode() 169 return input; in toUnicode() [all …]
|
D | URISyntaxException.java | 43 private String input; field in URISyntaxException 61 public URISyntaxException(String input, String reason, int index) { in URISyntaxException() argument 63 if ((input == null) || (reason == null)) in URISyntaxException() 67 this.input = input; in URISyntaxException() 81 public URISyntaxException(String input, String reason) { in URISyntaxException() argument 82 this(input, reason, -1); in URISyntaxException() 91 return input; in getInput() 131 sb.append(input); in getMessage()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | MacSpi.java | 77 protected abstract void engineUpdate(byte input); in engineUpdate() argument 87 protected abstract void engineUpdate(byte[] input, int offset, int len); in engineUpdate() argument 101 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 102 if (input.hasRemaining() == false) { in engineUpdate() 105 if (input.hasArray()) { in engineUpdate() 106 byte[] b = input.array(); in engineUpdate() 107 int ofs = input.arrayOffset(); in engineUpdate() 108 int pos = input.position(); in engineUpdate() 109 int lim = input.limit(); in engineUpdate() 111 input.position(lim); in engineUpdate() [all …]
|
D | NullCipherSpi.java | 79 protected byte[] engineUpdate(byte[] input, int inputOffset, in engineUpdate() argument 81 if (input == null) return null; in engineUpdate() 83 System.arraycopy(input, inputOffset, x, 0, inputLen); in engineUpdate() 87 protected int engineUpdate(byte[] input, int inputOffset, in engineUpdate() argument 90 if (input == null) return 0; in engineUpdate() 91 System.arraycopy(input, inputOffset, output, outputOffset, inputLen); in engineUpdate() 95 protected byte[] engineDoFinal(byte[] input, int inputOffset, in engineDoFinal() argument 98 return engineUpdate(input, inputOffset, inputLen); in engineDoFinal() 101 protected int engineDoFinal(byte[] input, int inputOffset, in engineDoFinal() argument 105 return engineUpdate(input, inputOffset, inputLen, in engineDoFinal()
|
D | CipherSpi.java | 488 protected abstract byte[] engineUpdate(byte[] input, int inputOffset, in engineUpdate() argument 517 protected abstract int engineUpdate(byte[] input, int inputOffset, in engineUpdate() argument 552 protected int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() argument 555 return bufferCrypt(input, output, true); in engineUpdate() 609 protected abstract byte[] engineDoFinal(byte[] input, int inputOffset, in engineDoFinal() argument 666 protected abstract int engineDoFinal(byte[] input, int inputOffset, in engineDoFinal() argument 727 protected int engineDoFinal(ByteBuffer input, ByteBuffer output) in engineDoFinal() argument 730 return bufferCrypt(input, output, false); in engineDoFinal() 744 private int bufferCrypt(ByteBuffer input, ByteBuffer output, in bufferCrypt() argument 747 if ((input == null) || (output == null)) { in bufferCrypt() [all …]
|
D | Mac.java | 569 public final void update(byte input) throws IllegalStateException { in update() argument 574 spi.engineUpdate(input); in update() 585 public final void update(byte[] input) throws IllegalStateException { in update() argument 590 if (input != null) { in update() 591 spi.engineUpdate(input, 0, input.length); in update() 606 public final void update(byte[] input, int offset, int len) in update() argument 613 if (input != null) { in update() 614 if ((offset < 0) || (len > (input.length - offset)) || (len < 0)) in update() 616 spi.engineUpdate(input, offset, len); in update() 632 public final void update(ByteBuffer input) { in update() argument [all …]
|
D | Cipher.java | 1670 public final byte[] update(byte[] input) { in update() argument 1674 if (input == null) { in update() 1679 if (input.length == 0) { in update() 1682 return spi.engineUpdate(input, 0, input.length); in update() 1709 public final byte[] update(byte[] input, int inputOffset, int inputLen) { in update() argument 1713 if (input == null || inputOffset < 0 in update() 1714 || inputLen > (input.length - inputOffset) || inputLen < 0) { in update() 1722 return spi.engineUpdate(input, inputOffset, inputLen); in update() 1761 public final int update(byte[] input, int inputOffset, int inputLen, in update() argument 1767 if (input == null || inputOffset < 0 in update() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | MessageDigestSpi.java | 80 protected abstract void engineUpdate(byte input); in engineUpdate() argument 93 protected abstract void engineUpdate(byte[] input, int offset, int len); in engineUpdate() argument 105 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 106 if (input.hasRemaining() == false) { in engineUpdate() 109 if (input.hasArray()) { in engineUpdate() 110 byte[] b = input.array(); in engineUpdate() 111 int ofs = input.arrayOffset(); in engineUpdate() 112 int pos = input.position(); in engineUpdate() 113 int lim = input.limit(); in engineUpdate() 115 input.position(lim); in engineUpdate() [all …]
|
D | MessageDigest.java | 339 public void update(byte input) { in update() argument 340 engineUpdate(input); in update() 355 public void update(byte[] input, int offset, int len) { in update() argument 356 if (input == null) { in update() 359 if (input.length - offset < len) { in update() 362 engineUpdate(input, offset, len); in update() 371 public void update(byte[] input) { in update() argument 372 engineUpdate(input, 0, input.length); in update() 386 public final void update(ByteBuffer input) { in update() argument 387 if (input == null) { in update() [all …]
|
D | SignatureSpi.java | 142 protected void engineUpdate(ByteBuffer input) { in engineUpdate() argument 143 if (input.hasRemaining() == false) { in engineUpdate() 147 if (input.hasArray()) { in engineUpdate() 148 byte[] b = input.array(); in engineUpdate() 149 int ofs = input.arrayOffset(); in engineUpdate() 150 int pos = input.position(); in engineUpdate() 151 int lim = input.limit(); in engineUpdate() 153 input.position(lim); in engineUpdate() 155 int len = input.remaining(); in engineUpdate() 159 input.get(b, 0, chunk); in engineUpdate()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Pattern.java | 1017 public Matcher matcher(CharSequence input) { in matcher() argument 1027 Matcher m = new Matcher(this, input); in matcher() 1066 public static boolean matches(String regex, CharSequence input) { in matches() argument 1068 Matcher m = p.matcher(input); in matches() 1139 public String[] split(CharSequence input, int limit) { in split() argument 1141 String[] fast = fastSplit(pattern, input.toString(), limit); in split() 1149 Matcher m = matcher(input); in split() 1165 String match = input.subSequence(index, m.start()).toString(); in split() 1169 String match = input.subSequence(index, in split() 1170 input.length()).toString(); in split() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | InvalidPathException.java | 39 private String input; field in InvalidPathException 57 public InvalidPathException(String input, String reason, int index) { in InvalidPathException() argument 59 if ((input == null) || (reason == null)) in InvalidPathException() 63 this.input = input; in InvalidPathException() 77 public InvalidPathException(String input, String reason) { in InvalidPathException() argument 78 this(input, reason, -1); in InvalidPathException() 87 return input; in getInput() 127 sb.append(input); in getMessage()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | InvalidPathExceptionTest.java | 27 String input = "input"; in test_Constructor$String$String$Int() local 30 InvalidPathException exception = new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int() 33 assertEquals(input, exception.getInput()); in test_Constructor$String$String$Int() 37 exception = new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int() 40 assertEquals(input, exception.getInput()); in test_Constructor$String$String$Int() 45 new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int() 66 new InvalidPathException(input, null, index); in test_Constructor$String$String$Int() 73 new InvalidPathException(input, null, index); in test_Constructor$String$String$Int() 80 String input = "input"; in test_Constructor$String$String() local 82 InvalidPathException exception = new InvalidPathException(input, reason); in test_Constructor$String$String() [all …]
|
D | LinuxFileSystemTestData.java | 75 public String input; field in LinuxFileSystemTestData.TestData 79 TestData(String output, String input, String... inputArray) { in TestData() argument 81 this.input = input; in TestData() 85 TestData(Class exceptionClass, String input, String... inputArray) { in TestData() argument 87 this.input = input; in TestData()
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | SplitTest.java | 90 String input = "poodle zoo"; in testSplit1() local 93 tokens = p.split(input, 1); in testSplit1() 95 assertTrue(tokens[0].equals(input)); in testSplit1() 96 tokens = p.split(input, 2); in testSplit1() 100 tokens = p.split(input, 5); in testSplit1() 104 tokens = p.split(input, -2); in testSplit1() 108 tokens = p.split(input, 0); in testSplit1() 112 tokens = p.split(input); in testSplit1() 119 tokens = p.split(input, 1); in testSplit1() 121 assertTrue(tokens[0].equals(input)); in testSplit1() [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/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 | 42 List<Integer> input = buildList(arrayListLength, ArrayList.class); in timeSort_arrayList() local 44 Collections.sort(input); in timeSort_arrayList() 49 List<Integer> input = buildList(arrayListLength, ArrayList.class); in timeSortWithComparator_arrayList() local 51 Collections.sort(input, REVERSE); in timeSortWithComparator_arrayList() 56 List<Integer> input = buildList(arrayListLength, Vector.class); in timeSort_vector() local 58 Collections.sort(input); in timeSort_vector() 63 List<Integer> input = buildList(arrayListLength, Vector.class); in timeSortWithComparator_vector() local 65 Collections.sort(input, REVERSE); in timeSortWithComparator_vector()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestTextParser.java | 249 …public void test_parseText(TemporalField field, TextStyle style, int value, String input) throws E… in test_parseText() argument 251 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseText() 252 assertEquals(pos.getIndex(), input.length()); in test_parseText() 256 …public void test_parseNumber(TemporalField field, TextStyle style, int value, String input) throws… in test_parseNumber() argument 258 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseNumber() 259 assertEquals(pos.getIndex(), input.length()); in test_parseNumber() 263 …ndaloneText(Locale locale, TemporalField field, TextStyle style, int expectedValue, String input) { in test_parseStandaloneText() argument 266 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); in test_parseStandaloneText() 267 assertEquals(pos.getIndex(), input.length()); in test_parseStandaloneText() 271 …public void test_parseDayOfWeekText(Locale locale, String pattern, String input, DayOfWeek expecte… in test_parseDayOfWeekText() argument [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZoneIdSerialization.java | 127 …public void test_deserialization_lenient_offsetNotAllowed_noPrefix(String input, String resolvedId… in test_deserialization_lenient_offsetNotAllowed_noPrefix() argument 128 ZoneId deserialized = deserialize(input); in test_deserialization_lenient_offsetNotAllowed_noPrefix() 129 assertEquals(deserialized, ZoneId.of(input)); in test_deserialization_lenient_offsetNotAllowed_noPrefix() 134 …public void test_deserialization_lenient_offsetNotAllowed_prefixUTC(String input, String resolvedI… in test_deserialization_lenient_offsetNotAllowed_prefixUTC() argument 135 ZoneId deserialized = deserialize("UTC" + input); in test_deserialization_lenient_offsetNotAllowed_prefixUTC() 136 assertEquals(deserialized, ZoneId.of("UTC" + input)); in test_deserialization_lenient_offsetNotAllowed_prefixUTC() 141 …public void test_deserialization_lenient_offsetNotAllowed_prefixGMT(String input, String resolvedI… in test_deserialization_lenient_offsetNotAllowed_prefixGMT() argument 142 ZoneId deserialized = deserialize("GMT" + input); in test_deserialization_lenient_offsetNotAllowed_prefixGMT() 143 assertEquals(deserialized, ZoneId.of("GMT" + input)); in test_deserialization_lenient_offsetNotAllowed_prefixGMT() 148 …public void test_deserialization_lenient_offsetNotAllowed_prefixUT(String input, String resolvedId… in test_deserialization_lenient_offsetNotAllowed_prefixUT() argument [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/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKInstantPrinterParser.java | 225 public void test_parse_digitsMinusOne(long instantSecs, int nano, String input) { in test_parse_digitsMinusOne() argument 228 assertEquals(f.parse(input, Instant::from), expected); in test_parse_digitsMinusOne() 229 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsMinusOne() 230 assertEquals(f.parse(input).query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_digitsMinusOne() 234 public void test_parse_digitsNine(long instantSecs, int nano, String input) { in test_parse_digitsNine() argument 236 if (input.charAt(input.length() - 11) == '.') { in test_parse_digitsNine() 238 assertEquals(f.parse(input, Instant::from), expected); in test_parse_digitsNine() 239 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsNine() 240 assertEquals(f.parse(input).query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_digitsNine() 243 f.parse(input, Instant::from); in test_parse_digitsNine()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
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()
|