Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java71 import static org.mockito.Mockito.times;
134 verify(mockThreadPolicy, times(0)).onNetwork(); in test_android_getaddrinfo_networkPolicy()
135 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, numericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy()
147 verify(mockThreadPolicy, times(1)).onNetwork(); in test_android_getaddrinfo_networkPolicy()
148 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, nonNumericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy()
203 verify(mockOsDelegate, times(1)).connect(eq(udpSocket), any(), anyInt()); in test_connect_networkPolicy()
212 verify(mockThreadPolicy, times(1)).onNetwork(); in test_connect_networkPolicy()
213 verify(mockOsDelegate, times(1)).connect(eq(tcpSocket), any(), anyInt()); in test_connect_networkPolicy()
/libcore/ojluni/src/main/java/java/util/
DSimpleTimeZone.java1592 int[] times = new int[2]; in packTimes() local
1593 times[0] = startTime; in packTimes()
1594 times[1] = endTime; in packTimes()
1595 return times; in packTimes()
1602 private void unpackTimes(int[] times) { in unpackTimes() argument
1603 startTime = times[0]; in unpackTimes()
1604 endTime = times[1]; in unpackTimes()
1629 int[] times = packTimes(); in writeObject() local
1640 stream.writeObject(times); in writeObject()
1645 unpackTimes(times); in writeObject()
[all …]
/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/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/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/ojluni/src/main/native/
DUnixNativeDispatcher.c635 struct timeval times[2]; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0() local
638 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
639 times[0].tv_usec = accessTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
641 times[1].tv_sec = modificationTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
642 times[1].tv_usec = modificationTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
644 RESTARTABLE(utimes(path, &times[0]), err); in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
654 struct timeval times[2]; in Java_sun_nio_fs_UnixNativeDispatcher_futimes() local
657 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
658 times[0].tv_usec = accessTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
660 times[1].tv_sec = modificationTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
[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.java823 private byte[] duplicateByteArray(byte[] ba, int times) { in duplicateByteArray() argument
824 byte[] result = new byte[ba.length * times]; in duplicateByteArray()
825 for (int i = 0; i < times; i++) { in duplicateByteArray()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset-X-Coder.java.template59 * <li><p> Invoke the {@link #$code$ $code$} method zero or more times, as
/libcore/expectations/
Dknownfailures.txt58 description: "KeyAgreementFunctionalTest times out even with an absurdly long timeout",