/libcore/ojluni/src/main/native/ |
D | UnixFileSystem_md.c | 449 struct timeval tv[2]; in Java_java_io_UnixFileSystem_setLastModifiedTime0() local 453 tv[0].tv_sec = sb.st_atime; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 454 tv[0].tv_usec = sb.st_atime_n / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 456 tv[0].tv_sec = sb.st_atimespec.tv_sec; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 457 tv[0].tv_usec = sb.st_atimespec.tv_nsec / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 459 tv[0].tv_sec = sb.st_atim.tv_sec; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 460 tv[0].tv_usec = sb.st_atim.tv_nsec / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 463 tv[1].tv_sec = time / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 464 tv[1].tv_usec = (time % 1000) * 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 466 if (utimes(path, tv) == 0) in Java_java_io_UnixFileSystem_setLastModifiedTime0()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | CopyMethods.java | 170 int tv = testValues[i % testValues.length]; in testValue() local 171 if (i >= testValues.length) tv ^= i; in testValue() 173 return invoke(coercers.get(c), tv); in testValue() 210 Object tv = (i >= firstNull) ? nullValue : testValue(i+offset, c); in checkArray() local 212 if (!eq(ai, tv)) { in checkArray() 214 System.out.println("*** a["+i+"] = "+ai+" != "+tv); in checkArray()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 813 StructTimeval tv = StructTimeval.fromMillis(20); 814 Os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv); 892 StructTimeval tv = StructTimeval.fromMillis(20); 893 Os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv); 1240 StructTimeval tv = StructTimeval.fromMillis(4000); 1241 Os.setsockoptTimeval(serverFd, SOL_SOCKET, SO_RCVTIMEO, tv); 1589 StructTimeval tv = StructTimeval.fromMillis(TIMEOUT_VALUE_MILLIS); 1590 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); 1602 assertTrue("Timeout of " + tv.toMillis() + "ms returned after " + durationMillis + "ms", 1603 durationMillis >= tv.toMillis() - ROUNDING_ERROR_MILLIS); [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldClassTest.java | 597 TypeVariable [] tv = TempTestClass1.class.getTypeParameters(); in test_getTypeParameters() local 598 assertEquals(1, tv.length); in test_getTypeParameters() 599 assertEquals(Object.class, tv[0].getBounds()[0]); in test_getTypeParameters() 602 tv = tc.getClass().getTypeParameters(); in test_getTypeParameters() 603 assertEquals(1, tv.length); in test_getTypeParameters() 604 assertEquals(String.class, tv[0].getBounds()[0]); in test_getTypeParameters()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | MethodTest.java | 466 TypeVariable<Class<ExceptionTest<?>>> tv = in test_getGenericExceptionTypes() local 468 assertEquals("T", tv.getName()); in test_getGenericExceptionTypes() 481 TypeVariable<Class<ExceptionTest<?>>> tv = in test_getGenericReturnType() local 483 assertEquals("T", tv.getName()); in test_getGenericReturnType()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | VectorTest.java | 54 Vector tv = new Vector(100); in test_Constructor() local 56 tv.addElement(Integer.valueOf(i)); in test_Constructor() 57 new Support_ListTest("", tv).runTest(); in test_Constructor() 59 tv = new Vector(200); in test_Constructor() 61 tv.addElement(Integer.valueOf(i)); in test_Constructor() 62 new Support_ListTest("", tv.subList(50, 150)).runTest(); in test_Constructor()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 518 StructTimeval tv = StructTimeval.fromMillis(millis); in setSocketOptionErrno() local 519 Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); in setSocketOptionErrno()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 538 static jobject makeStructTimeval(JNIEnv* env, const struct timeval& tv) { in makeStructTimeval() argument 544 static_cast<jlong>(tv.tv_sec), static_cast<jlong>(tv.tv_usec)); in makeStructTimeval() 1564 struct timeval tv; in Linux_getsockoptTimeval() local 1565 socklen_t size = sizeof(tv); in Linux_getsockoptTimeval() 1566 memset(&tv, 0, size); in Linux_getsockoptTimeval() 1567 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &tv, &size)); in Linux_getsockoptTimeval() 1574 if (size != sizeof(tv)) { in Linux_getsockoptTimeval() 1579 return makeStructTimeval(env, tv); in Linux_getsockoptTimeval()
|