Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 138) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/net/
DIDN.java108 public static String toASCII(String input, int flag) { in toASCII() argument
110 return IDNA.convertIDNToASCII(input, flag).toString(); in toASCII()
112 throw new IllegalArgumentException("Invalid input to toASCII: " + input, e); in toASCII()
133 public static String toASCII(String input) { in toASCII() argument
134 return toASCII(input, 0); in toASCII()
156 public static String toUnicode(String input, int flag) { in toUnicode() argument
160 return convertFullStop(IDNA.convertIDNToUnicode(input, flag)).toString(); in toUnicode()
164 return input; in toUnicode()
172 private static StringBuffer convertFullStop(StringBuffer input) { in convertFullStop() argument
173 for (int i = 0; i < input.length(); i++) { in convertFullStop()
[all …]
DURISyntaxException.java43 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/
DMacSpi.java77 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 …]
DNullCipherSpi.java79 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()
DCipherSpi.java488 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 …]
DMac.java520 public final void update(byte input) throws IllegalStateException { in update() argument
525 spi.engineUpdate(input); in update()
536 public final void update(byte[] input) throws IllegalStateException { in update() argument
541 if (input != null) { in update()
542 spi.engineUpdate(input, 0, input.length); in update()
557 public final void update(byte[] input, int offset, int len) in update() argument
564 if (input != null) { in update()
565 if ((offset < 0) || (len > (input.length - offset)) || (len < 0)) in update()
567 spi.engineUpdate(input, offset, len); in update()
583 public final void update(ByteBuffer input) { in update() argument
[all …]
/libcore/ojluni/src/main/java/java/security/
DMessageDigestSpi.java80 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 …]
DMessageDigest.java337 public void update(byte input) { in update() argument
338 engineUpdate(input); in update()
353 public void update(byte[] input, int offset, int len) { in update() argument
354 if (input == null) { in update()
357 if (input.length - offset < len) { in update()
360 engineUpdate(input, offset, len); in update()
369 public void update(byte[] input) { in update() argument
370 engineUpdate(input, 0, input.length); in update()
384 public final void update(ByteBuffer input) { in update() argument
385 if (input == null) { in update()
[all …]
DSignatureSpi.java142 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/nio/file/
DInvalidPathException.java39 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/ojluni/src/main/java/java/util/regex/
DPattern.java1005 public Matcher matcher(CharSequence input) { in matcher() argument
1006 Matcher m = new Matcher(this, input); in matcher()
1045 public static boolean matches(String regex, CharSequence input) { in matches() argument
1047 Matcher m = p.matcher(input); in matches()
1111 public String[] split(CharSequence input, int limit) { in split() argument
1112 String[] fast = fastSplit(pattern, input.toString(), limit); in split()
1120 Matcher m = matcher(input); in split()
1125 String match = input.subSequence(index, m.start()).toString(); in split()
1129 String match = input.subSequence(index, in split()
1130 input.length()).toString(); in split()
[all …]
DMatcher.java129 private String input; field in Matcher
196 return new OffsetBasedMatchResult(input, matchOffsets); in toMatchResult()
232 if (input != null) { in usePattern()
375 return input.substring(from, to); in group()
414 return input.substring(from, to); in group()
493 if (start < 0 || start > input.length()) { in find()
494 throw new IndexOutOfBoundsException("start=" + start + "; length=" + input.length()); in find()
632 sb.append(input.substring(appendPos, start())); in appendReplacement()
707 sb.append(input.substring(appendPos, regionEnd)); in appendTail()
748 StringBuffer buffer = new StringBuffer(input.length()); in replaceAll()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/
DInvalidPathExceptionTest.java27 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 …]
DLinuxFileSystemTestData.java75 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DSplitTest.java44 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/
DMacSpiTest.java67 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/
DSAXParser.java130 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/
DSplitTest.java66 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/
DCipherRSAThread.java35 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()
/libcore/benchmarks/src/benchmarks/regression/
DCollectionsBenchmark.java42 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/tck/java/time/serial/
DTCKZoneIdSerialization.java127 …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/ojluni/src/test/java/time/test/java/time/format/
DTestTextParser.java249 …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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DUTF16BECharsetTest.java38 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()
DUTF16LECharsetTest.java38 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()
/libcore/support/src/test/java/tests/support/
DSupport_ASimpleInputStream.java34 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()

123456