Searched refs:input (Results 76 - 100 of 137) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetGetterTests.java412 Date input = new Date(testCal.getTimeInMillis());
414 assertEquals(input.toString(),"1799-05-26");
415 assertEquals(input,d);
432 Date input = new Date(testCal.getTimeInMillis());
435 assertEquals(input.toString(),"1799-05-26");
436 assertEquals(input,d);
454 Date input = new Date(testCal.getTimeInMillis());
456 assertEquals(input.toString(),"1799-05-26");
457 assertEquals(input,d);
474 Date input
[all...]
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DFilesSetup.java159 byte[] input = new byte[10000];
160 is.read(input);
161 return new String(input, "UTF-8").trim();
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidZipFileTest.java83 byte[] input = makeSampleFile(i);
90 out.write(input, 0, input.length);
H A DInflaterTest.java41 // Construct a nice long input byte sequence.
50 // We'll only supply the input a little bit at a time, so that zlib has to ask for more.
67 // a tiny input buffer to ensure that zlib has to ask for more input.
110 private static byte[] deflate(byte[] input, byte[] dictionary) { argument
117 deflater.setInput(input);
/libcore/ojluni/src/main/java/java/io/
H A DStreamTokenizer.java31 * The {@code StreamTokenizer} class takes an input stream and
38 * Each byte read from the input stream is regarded as a character
69 private InputStream input = null; field in class:StreamTokenizer
114 * <li>{@code TT_EOF} indicates that the end of the input stream
200 * Creates a stream tokenizer that parses the specified input
219 * input stream is to convert it into a character stream, for example:
225 * @param is an input stream.
236 input = is;
242 * @param r a Reader object providing the input stream.
287 * separate tokens in the input strea
[all...]
H A DRandomAccessFile.java46 * input operations read bytes starting at the file pointer and advance
357 * method blocks if no input is yet available.
390 * array of bytes. This method blocks until at least one byte of input
420 * of input is available.
481 * Attempts to skip over {@code n} bytes of input discarding the
682 * file cannot perform input or output operations and cannot be
996 StringBuffer input = new StringBuffer();
1014 input.append((char)c);
1019 if ((c == -1) && (input.length() == 0)) {
1022 return input
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMockReader.java87 public void parse(InputSource input) throws IOException, SAXException { argument
88 logger.add("parse", input);
H A DNoInstanceXMLReader.java58 public void parse(InputSource input) { argument
/libcore/luni/src/test/java/libcore/java/util/
H A DBase64Test.java382 // Empty input
385 // Test data for non-empty input
387 byte[] input = inputString.getBytes(US_ASCII);
393 // Non-empty input: output array too short
396 decoder.decode(input, tooShort);
401 // Non-empty input: output array longer than required
403 int tooLongBytesDecoded = decoder.decode(input, tooLong);
408 // Non-empty input: output array has exact minimum required size
410 int justRightBytesDecoded = decoder.decode(input, justRight);
427 byte[] input
[all...]
H A DFormatterTest.java123 BigDecimal[] input = new BigDecimal[] {
141 for (int i = 0; i < input.length; ++i) {
142 String result = String.format("%.2f", input[i]);
143 assertEquals("input=\"" + input[i] + "\", " + ",expected=" + output[i] + ",actual=" + result,
/libcore/luni/src/test/java/libcore/java/io/
H A DFileInputStreamTest.java221 try (FileInputStream input = new FileInputStream(file)) {
222 assertEquals(0, input.available());
225 try (FileInputStream input = new FileInputStream(file)) {
226 android.system.Os.ioctlInt(input.getFD(), OsConstants.FIONREAD, new Int32Ref(0));
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DMockCipherSpi.java254 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { argument
259 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
265 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) argument
271 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument
/libcore/ojluni/src/main/java/sun/security/util/
H A DObjectIdentifier.java226 * Constructor, from an ASN.1 encoded input stream.
232 * input stream has not been returned to its "initial" state.
270 * Constructor, from the rest of a DER input buffer;
284 byte[] tmp = new byte[length*5+1]; // +1 for empty input
477 * Repack all bits from input to output. On the both sides, only a portion
480 * used bits from the input byte array and repacked into the output in the
482 * the input (the least significant bit in the last byte), when repacked as
487 * For example: if the input is 01001100 with NUB 8, the output which
492 * the input, the left 4 zeroes are padded to fill the 6 bits space.
494 * @param in the input byt
579 pack7Oid(int input, byte[] out, int ooffset) argument
591 pack7Oid(BigInteger input, byte[] out, int ooffset) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
H A DMatcherTest.java103 String input = "aabfooaabfooabfoob";
106 Matcher mat = pat.matcher(input);
138 String input = "zzzdogzzzdogzzz";
141 Matcher mat = pat.matcher(input);
167 // input.
180 // Assert that find(int) refreshes the String being matched against from the input
424 String input = "foob";
427 Matcher mat = pat.matcher(input);
604 // Verify if the Matcher can match the input when region is changed
605 String input
738 hitEndTest(boolean callFind, String testNo, String regex, String input, boolean hit) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKDateTimeFormatters.java245 String input, Class<?> invalid) {
246 if (input != null) {
249 assertParseMatch(DateTimeFormatter.ISO_LOCAL_DATE.parseUnresolved(input, new ParsePosition(0)), expected);
339 String input, Class<?> invalid) {
340 if (input != null) {
343 assertParseMatch(DateTimeFormatter.ISO_OFFSET_DATE.parseUnresolved(input, new ParsePosition(0)), expected);
397 String input, Class<?> invalid) {
398 if (input != null) {
403 assertParseMatch(DateTimeFormatter.ISO_DATE.parseUnresolved(input, new ParsePosition(0)), expected);
469 String input, Clas
243 test_parse_isoLocalDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String input, Class<?> invalid) argument
337 test_parse_isoOffsetDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String input, Class<?> invalid) argument
395 test_parse_isoDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String input, Class<?> invalid) argument
467 test_parse_isoLocalTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
537 test_parse_isoOffsetTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
607 test_parse_isoTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
688 test_parse_isoLocalDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
767 test_parse_isoOffsetDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
856 test_parse_isoZonedDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
940 test_parse_isoDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
1223 test_parse_isoInstant( long instantSecs, Integer nano, String input, Class<?> invalid) argument
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DXMLReaderAdapter.java212 * @param input An input source for the document.
220 public void parse (InputSource input)
224 xmlReader.parse(input);
219 parse(InputSource input) argument
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DMessageDigestSpiTest.java211 protected void engineUpdate(ByteBuffer input) { argument
212 super.engineUpdate(input);
/libcore/ojluni/src/main/java/java/time/temporal/
H A DTemporalAdjusters.java142 LocalDate input = LocalDate.from(temporal);
143 LocalDate output = dateBasedAdjuster.apply(input);
154 * The input 2011-01-15 will return 2011-01-01.<br>
155 * The input 2011-02-15 will return 2011-02-01.
174 * The input 2011-01-15 will return 2011-01-31.<br>
175 * The input 2011-02-15 will return 2011-02-28.<br>
176 * The input 2012-02-15 will return 2012-02-29 (leap year).<br>
177 * The input 2011-04-15 will return 2011-04-30.
197 * The input 2011-01-15 will return 2011-02-01.<br>
198 * The input 201
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DTestNumberParser.java308 public void test_parseSignsStrict(String input, int min, int max, SignStyle style, int parseLen, Integer parseVal) throws Exception { argument
310 TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos);
417 public void test_parseSignsLenient(String input, int min, int max, SignStyle style, int parseLen, Integer parseVal) throws Exception { argument
420 TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos);
508 public void test_parseDigitsLenient(String input, int min, int max, SignStyle style, int parseLen, Integer parseVal) throws Exception { argument
511 TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos);
542 public void test_parseDigitsAdjacentLenient(String input, int parseLen, Integer parseMonth, Integer parsedDay) throws Exception { argument
548 TemporalAccessor parsed = f.parseUnresolved(input, pos);
H A DTestDateTimeFormatterBuilder.java801 public void test_appendPattern_valid(String input, String expected) throws Exception { argument
802 builder.appendPattern(input);
876 public void test_appendPattern_invalid(String input) throws Exception { argument
878 builder.appendPattern(input);
897 public void test_appendPattern_patternPrint(String input, Temporal temporal, String expected) throws Exception { argument
898 DateTimeFormatter f = builder.appendPattern(input).toFormatter(Locale.UK);
990 * @param input an input string
993 private String convertNonAscii(String input) { argument
994 StringBuilder sb = new StringBuilder(input
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DBufferedInputStreamTest.java485 byte[] input = "12345678900".getBytes();
487 new ByteArrayInputStream(input));
498 byte[] input = "12345678900".getBytes();
500 new ByteArrayInputStream(input));
/libcore/luni/src/main/java/libcore/reflect/
H A DGenericSignatureParser.java104 void setInput(GenericDeclaration genericDecl, String input) { argument
105 if (input != null) {
107 this.buffer = input.toCharArray();
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixFileSystem.java290 String input = syntaxAndInput.substring(pos+1);
294 expr = Globs.toUnixRegexPattern(input);
297 expr = input;
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DAbstractTCKTest.java142 byte[] input = new byte[expectedBytes.length];
143 dis.readFully(input);
144 assertEquals(input, expectedBytes);
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DDistinctOpTest.java179 List<Integer> input = IntStream.rangeClosed(0, 1000)
182 Integer expectedElement = input.get(0);
184 "1000 instances of Integer with the same value", input);
194 // the first input element

Completed in 2403 milliseconds

123456