Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DAbstractDateTimeTest.java102 for (TemporalAccessor sample : samples()) { in basicTest_isSupported_TemporalField_supported()
104 assertEquals(sample.isSupported(field), true, "Failed on " + sample + " " + field); in basicTest_isSupported_TemporalField_supported()
111 for (TemporalAccessor sample : samples()) { in basicTest_isSupported_TemporalField_unsupported()
113 assertEquals(sample.isSupported(field), false, "Failed on " + sample + " " + field); in basicTest_isSupported_TemporalField_unsupported()
120 for (TemporalAccessor sample : samples()) { in basicTest_isSupported_TemporalField_null()
121 assertEquals(sample.isSupported(null), false, "Failed on " + sample); in basicTest_isSupported_TemporalField_null() local
130 for (TemporalAccessor sample : samples()) { in basicTest_range_TemporalField_supported()
132 sample.range(field); // no exception in basicTest_range_TemporalField_supported()
139 for (TemporalAccessor sample : samples()) { in basicTest_range_TemporalField_unsupported()
142 sample.range(field); in basicTest_range_TemporalField_unsupported()
[all …]
DTCKOffsetTime.java730 final OffsetTime sample = OffsetTime.of(23, 5, 0, 0, OFFSET_PONE);
734 return sample;
737 assertEquals(TEST_11_30_59_500_PONE.with(adjuster), sample);
DTCKOffsetDateTime.java713 …final OffsetDateTime sample = OffsetDateTime.of(LocalDate.of(2012, 3, 4), LocalTime.of(23, 5), OFF…
717 return sample;
720 assertEquals(TEST_2008_6_30_11_30_59_000000500.with(adjuster), sample);
DTCKLocalDate.java842 final LocalDate sample = LocalDate.of(2012, 3, 4);
846 return sample;
849 assertEquals(TEST_2007_07_15.with(adjuster), sample);
DTCKLocalTime.java770 final LocalTime sample = LocalTime.of(23, 5); in test_with_adjustment() local
774 return sample; in test_with_adjustment()
777 assertEquals(TEST_12_30_40_987654321.with(adjuster), sample); in test_with_adjustment() local
DTCKLocalDateTime.java1174 final LocalDateTime sample = LocalDateTime.of(2012, 3, 4, 23, 5);
1178 return sample;
1181 assertEquals(TEST_2007_07_15_12_30_40_987654321.with(adjuster), sample);
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidGZIPStreamTest.java64 byte[] sample = new byte[128 * 1024]; in makeSampleFile()
73 sample[offset++] = val; in makeSampleFile()
80 return sample; in makeSampleFile()
DOldAndroidZipStreamTest.java71 byte[] sample = new byte[128 * 1024]; in makeSampleFile()
80 sample[offset++] = val; in makeSampleFile()
87 return sample; in makeSampleFile()
DOldAndroidZipFileTest.java58 byte[] sample = new byte[SAMPLE_SIZE]; in makeSampleFile()
67 sample[offset++] = val; in makeSampleFile()
74 return sample; in makeSampleFile()
DOldAndroidDeflateTest.java98 private void createSample(byte[] sample, int stepStep) { in createSample() argument
102 assertTrue(sample.length >= 128 * 1024); in createSample()
109 sample[offset++] = val; in createSample()
/libcore/
DLICENSE310 is a sample; alter the names:
/libcore/ojluni/
DNOTICE596 is a sample; alter the names: