/libcore/luni/src/test/java/libcore/libcore/io/ |
D | BlockGuardOsTest.java | 71 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FilterOutputStreamTest.java | 78 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/ |
D | SimpleTimeZone.java | 1608 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/ |
D | gen_smoke_tests.py | 214 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()}
|
D | README | 10 3. Do that two more times. We'll use best-of-three timings, since sometimes a
|
/libcore/ojluni/src/main/native/ |
D | UnixNativeDispatcher.c | 621 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, ×[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/ |
D | OldResultSetGetterTests.java | 980 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 …]
|
D | OldPreparedStatementTest.java | 1920 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/ |
D | CipherInputStreamTest.java | 43 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/ |
D | Inet6AddressTest.java | 793 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/ |
D | CharsetEncoderTest.java | 820 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/ |
D | knownfailures.txt | 58 description: "KeyAgreementFunctionalTest times out even with an absurdly long timeout",
|