Searched refs:input (Results 101 - 125 of 137) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/text/
H A DDecimalFormatTest.java575 // Space after decimal point is treated as end of input.
577 // Space before decimal point is treated as end of input.
579 // Space after decimal digit is treated as end of input.
606 private void assertParseError(String pattern, String input) { argument
609 Number result = df.parse(input, pos);
612 input, pattern, describeParseResult(result, pos)));
616 private static void assertParsed(String pattern, String input, Number expected, argument
621 Number result = df.parse(input, pos);
622 assertEquals("Parse <" + input + "> using <" + pattern + ">.",
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKDateTimeFormatterBuilder.java639 public void test_appendPattern_valid(String input) throws Exception { argument
640 builder.appendPattern(input); // test is for no error here
708 public void test_appendPattern_invalid(String input) throws Exception { argument
709 builder.appendPattern(input); // test is for error here
725 public void test_appendPattern_patternPrint(String input, Temporal temporal, String expected) throws Exception { argument
726 DateTimeFormatter f = builder.appendPattern(input).toFormatter(Locale.UK);
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DCipherInputStreamTest.java245 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
255 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument
261 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) { argument
262 return input;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DInflaterTest.java89 fail("Invalid input to be decompressed");
133 "getRemaining returned zero when there is input in the input buffer",
285 fail("Invalid input to be decompressed");
294 // testing for an empty input array
311 "the number of input byte from the array did not correspond with getTotalIn - inflate(byte)",
324 fail("Invalid input to be decompressed");
391 fail("Invalid input to be decompressed");
413 fail("Invalid input to be decompressed");
422 fail("Invalid input t
[all...]
H A DInflaterOutputStreamTest.java414 byte[] input = string.getBytes();
417 deflater.setInput(input);
H A DDeflaterTest.java96 fail("Invalid input to be decompressed");
140 fail("Invalid input to be decompressed");
355 "needsInput give the wrong boolean value as a result of no input buffer",
360 "needsInput give wrong boolean value as a result of a full input buffer",
369 "needsInput give wrong boolean value as a result of an empty input buffer",
434 fail("Test " + i + ": Invalid input to be decompressed");
579 fail("Invalid input to be decompressed");
1091 byte[] input = inputString.getBytes("UTF-8");
1095 def.setInput(input);
1118 byte[] input
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DXMLFilterImpl.java324 * @param input The input source for the document entity.
331 public void parse (InputSource input)
335 parent.parse(input);
328 parse(InputSource input) argument
H A DParserAdapter.java386 * @param input An input source for the document.
394 public void parse (InputSource input)
403 parser.parse(input);
392 parse(InputSource input) argument
/libcore/luni/src/main/native/
H A Djava_util_regex_Matcher.cpp39 * the input it's currently operating on in the native heap.
62 bool updateInput(JNIEnv* env, jstring input) { argument
78 ScopedStringChars inputChars(env, input);
84 // Make a copy of |input| on the native heap. This copy will be live
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DCharsetEncoderTest.java37 String input = "hello\u0666world";
38 String output = ascii.decode(e.encode(CharBuffer.wrap(input))).toString();
167 // Discards all input. Outputs a single byte 'X' on flush.
H A DOldCharset_AbstractTest.java128 static void decode (byte[] input, char[] expectedOutput) throws CharacterCodingException { argument
129 ByteBuffer inputBB = ByteBuffer.wrap(input);
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DLinuxFileSystemTest.java113 inputOutputTestCase.input, inputOutputTestCase.inputArray).toString());
119 fileSystem.getPath(exceptionTestCase.input, exceptionTestCase.inputArray);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherTest.java220 // A 25-byte input could result in at least 4 8-byte blocks
224 // A 8-byte input should result in 2 8-byte blocks
339 byte[] input = new byte[256];
346 int bytesRead = is.read(input, 0, 256);
348 byte[] output = c.update(input, 0, bytesRead);
352 bytesRead = is.read(input, 0, 256);
397 byte[] input = new byte[256];
404 int bytesRead = is.read(input, 0, 256);
406 byte[] output = c.update(input, 0, bytesRead);
410 bytesRead = is.read(input,
[all...]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DMessageDigest1Test.java312 protected void engineUpdate(byte input) { argument
317 protected void engineUpdate(byte[] input, int offset, int len) { argument
H A DDigestOutputStreamTest.java603 protected void engineUpdate(byte input) { argument
608 protected void engineUpdate(byte[] input, int offset, int len) { argument
H A DMessageDigest2Test.java486 public void engineUpdate(byte input) { argument
490 public void engineUpdate(byte[] input, int offset, int len) { argument
H A DSignatureSpiTest.java292 protected void engineUpdate(ByteBuffer input) { argument
/libcore/ojluni/src/main/java/sun/security/x509/
H A DX500Name.java301 * Constructs a name from an ASN.1 encoded input stream. The encoding
872 private void parseDN(String input, Map<String, String> keywordMap) argument
874 if (input == null || input.length() == 0) {
880 checkNoNewLinesNorTabsAtBeginningOfDN(input);
888 String dnString = input;
954 private void checkNoNewLinesNorTabsAtBeginningOfDN(String input) { argument
955 for (int i = 0; i < input.length(); i++) {
956 char c = input.charAt(i);
1260 * <li>NAME_DIFF_TYPE = -1: input nam
[all...]
/libcore/luni/src/test/java/libcore/libcore/io/
H A DOsTest.java289 ByteBuffer input = ByteBuffer.wrap(bytes);
290 input.position(0);
291 input.limit(16);
293 int sent = Libcore.os.sendto(clientFd, input, 0, address.getAddress(), address.getPort());
295 assertEquals(sent, input.position());
297 input.position(16);
298 input.limit(24);
299 sent = Libcore.os.sendto(clientFd, input, 0, address.getAddress(), address.getPort());
301 assertEquals(sent + 16, input.position());
841 // FileDescriptor.out is not open for input, wil
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DCharsetDecoderTest.java213 // empty input buffer
801 byte[] input = new byte[in.remaining()];
802 in.get(input);
805 result = new String(input, "UTF-8");
825 int inLeft = input.length;
835 out.put((char) input[i]);
H A DCharsetEncoderTest.java574 // empty input buffer
1048 char[] input = new char[in.remaining()];
1049 in.get(input);
1050 String result = new String(input);
1069 int inLeft = input.length;
1079 out.put((byte) input[i]);
/libcore/ojluni/src/main/java/java/util/stream/
H A DSliceOps.java33 * that produce subsequences of their input stream.
108 * @param <T> the type of both input and output elements
656 private Node<P_OUT> doTruncate(Node<P_OUT> input) { argument
657 long to = targetSize >= 0 ? Math.min(input.count(), targetOffset + targetSize) : thisNodeSize;
658 return input.truncate(targetOffset, to, generator);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSimpleDateFormatTest.java785 private static void assertParse(String input, String pattern, Date expectedDate) argument
789 Date date = df.parse(input);
818 private void assertParse(String pattern, String input, Date expected, int start, int end) { argument
821 Date result = pFormat.parse(input, position);
822 assertEquals("Wrong result: " + pattern + " input: " + input +
825 assertEquals("Wrong end position: " + pattern + " input: " + input,
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DObjectStreamClassTest.java194 public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException { argument
/libcore/ojluni/src/main/java/java/net/
H A DURI.java831 * URI is being constructed from user input or from some other source that
1587 * class then a string equivalent to the original input string, or to the
1648 * @param is The object-input stream from which this object
2871 // For convenience we wrap the input URI string in a new instance of the
2872 // following internal class. This saves always having to pass the input
2877 private String input; // URI input string field in class:URI.Parser
2881 input = s;
2888 throw new URISyntaxException(input, reason);
2892 throw new URISyntaxException(input, reaso
[all...]

Completed in 580 milliseconds

123456