Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java63 import static org.mockito.Mockito.times;
126 verify(mockThreadPolicy, times(0)).onNetwork(); in test_android_getaddrinfo_networkPolicy()
127 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, numericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy()
139 verify(mockThreadPolicy, times(1)).onNetwork(); in test_android_getaddrinfo_networkPolicy()
140 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, nonNumericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy()
154 verify(mockOsDelegate, times(1)).connect(eq(udpSocket), any(), anyInt()); in test_connect_networkPolicy()
163 verify(mockThreadPolicy, times(1)).onNetwork(); in test_connect_networkPolicy()
164 verify(mockOsDelegate, times(1)).connect(eq(tcpSocket), any(), anyInt()); in test_connect_networkPolicy()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFilterOutputStreamTest.java78 Mockito.verify(outputStream, Mockito.times(1)).flush(); in test_doubleClose()
79 Mockito.verify(outputStream, Mockito.times(1)).close(); in test_doubleClose()
82 Mockito.verify(outputStream, Mockito.times(1)).flush(); in test_doubleClose()
83 Mockito.verify(outputStream, Mockito.times(1)).close(); in test_doubleClose()
/libcore/ojluni/src/main/java/java/util/
DSimpleTimeZone.java1608 int[] times = new int[2]; in packTimes() local
1609 times[0] = startTime; in packTimes()
1610 times[1] = endTime; in packTimes()
1611 return times; in packTimes()
1618 private void unpackTimes(int[] times) { in unpackTimes() argument
1619 startTime = times[0]; in unpackTimes()
1620 endTime = times[1]; in unpackTimes()
1644 int[] times = packTimes(); in writeObject() local
1655 stream.writeObject(times); in writeObject()
1660 unpackTimes(times); in writeObject()
[all …]
/libcore/tools/testmapping/
Dgen_smoke_tests.py214 for (test, times) in times_by_test.iteritems():
215 if len(times) != REQUIRED_RUNS:
216 print('Warning: Only found %d runs for %s' % (len(times), test))
217 return {test: min(times) for (test, times) in times_by_test.iteritems()}
DREADME10 3. Do that two more times. We'll use best-of-three timings, since sometimes a
/libcore/ojluni/src/main/native/
DUnixNativeDispatcher.c621 struct timeval times[2]; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0() local
624 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
625 times[0].tv_usec = accessTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
627 times[1].tv_sec = modificationTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
628 times[1].tv_usec = modificationTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
630 RESTARTABLE(utimes(path, &times[0]), err); in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
640 struct timeval times[2]; in Java_sun_nio_fs_UnixNativeDispatcher_futimes() local
643 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
644 times[0].tv_usec = accessTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
646 times[1].tv_sec = modificationTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java980 List<Time> times = new LinkedList<Time>(); in testGetTimeIntCalendar() local
1042 List<Time> times = new LinkedList<Time>(); in testGetTimeString() local
1101 List<Time> times = new LinkedList<Time>(); in testGetTimeStringCalendar() local
1161 List<Timestamp> times = new LinkedList<Timestamp>(); in testGetTimestampInt() local
1178 times.add(t2); in testGetTimestampInt()
1191 times.add(t3); in testGetTimestampInt()
1218 List<Timestamp> times = new LinkedList<Timestamp>(); in testGetTimestampIntCalendar() local
1235 times.add(t2); in testGetTimestampIntCalendar()
1248 times.add(t3); in testGetTimestampIntCalendar()
1281 List<Timestamp> times = new LinkedList<Timestamp>(); in testGetTimestampString() local
[all …]
DOldPreparedStatementTest.java1920 Time[] times = { new Time(24, 25, 26), new Time(Integer.MAX_VALUE), in testSetTimeint_Time() local
1929 for (int i = 0; i < times.length; i++) { in testSetTimeint_Time()
1931 ps.setTime(1, times[i]); in testSetTimeint_Time()
1935 + times[i].getTime() + "'"); in testSetTimeint_Time()
1947 ps.setTime(2, times[0]); in testSetTimeint_Time()
1956 ps.setTime(1, times[0]); in testSetTimeint_Time()
1963 ps1.setTime(1, times[0]); in testSetTimeint_Time()
1980 Time[] times = { new Time(24, 25, 26), new Time(Integer.MAX_VALUE), in testSetTime_int_Time_Calendar() local
1989 for (int i = 0; i < times.length; i++) { in testSetTime_int_Time_Calendar()
1991 ps.setTime(1, times[i], cals[i]); in testSetTime_int_Time_Calendar()
[all …]
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherInputStreamTest.java43 import static org.mockito.Mockito.times;
229 verify(mockIs, times(1)).close(); in testCloseTwice()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet6AddressTest.java793 int times = bytes.length / 4; in byteArrayToHexString() local
794 int intArray[] = new int[times]; in byteArrayToHexString()
795 for (int i = 0; i < times; i++) { in byteArrayToHexString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetEncoderTest.java820 private byte[] duplicateByteArray(byte[] ba, int times) { in duplicateByteArray() argument
821 byte[] result = new byte[ba.length * times]; in duplicateByteArray()
822 for (int i = 0; i < times; i++) { in duplicateByteArray()
/libcore/expectations/
Dknownfailures.txt58 description: "KeyAgreementFunctionalTest times out even with an absurdly long timeout",