/libcore/ojluni/src/main/native/ |
D | UnixFileSystem_md.c | 432 struct timeval tv[2]; in Java_java_io_UnixFileSystem_setLastModifiedTime0() local 435 tv[0].tv_sec = sb.st_atime; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 436 tv[0].tv_usec = 0; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 439 tv[1].tv_sec = time / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 440 tv[1].tv_usec = (time % 1000) * 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 442 if (utimes(path, tv) == 0) in Java_java_io_UnixFileSystem_setLastModifiedTime0()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 683 StructTimeval tv = StructTimeval.fromMillis(20); in checkSendToSocketAddress() local 684 Os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv); in checkSendToSocketAddress() 816 StructTimeval tv = StructTimeval.fromMillis(4000); in test_recvfrom_concurrentShutdown() local 817 Os.setsockoptTimeval(serverFd, SOL_SOCKET, SO_RCVTIMEO, tv); in test_recvfrom_concurrentShutdown() 1111 StructTimeval tv = StructTimeval.fromMillis(timeoutValueMillis); in test_socket_setSockoptTimeval_effective() local 1112 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); in test_socket_setSockoptTimeval_effective() 1127 StructTimeval tv = StructTimeval.fromMillis(500); 1129 () -> Os.setsockoptTimeval(null, SOL_SOCKET, SO_RCVTIMEO, tv), 1138 StructTimeval tv = StructTimeval.fromMillis(500); in test_socket_setSockoptTimeval_fileFd() local 1140 () -> Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv), in test_socket_setSockoptTimeval_fileFd() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldClassTest.java | 533 TypeVariable [] tv = TempTestClass1.class.getTypeParameters(); in test_getTypeParameters() local 534 assertEquals(1, tv.length); in test_getTypeParameters() 535 assertEquals(Object.class, tv[0].getBounds()[0]); in test_getTypeParameters() 538 tv = tc.getClass().getTypeParameters(); in test_getTypeParameters() 539 assertEquals(1, tv.length); in test_getTypeParameters() 540 assertEquals(String.class, tv[0].getBounds()[0]); in test_getTypeParameters()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | BaseLocale.java | 265 String tv = this.vart.get(); in equals() local 267 return (ov != null && ov.equals(tv)); in equals()
|
/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(new Integer(i)); in test_Constructor() 57 new Support_ListTest("", tv).runTest(); in test_Constructor() 59 tv = new Vector(200); in test_Constructor() 61 tv.addElement(new Integer(i)); in test_Constructor() 62 new Support_ListTest("", tv.subList(50, 150)).runTest(); in test_Constructor()
|
/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() 1509 struct timeval tv; in Linux_getsockoptTimeval() local 1510 socklen_t size = sizeof(tv); in Linux_getsockoptTimeval() 1511 memset(&tv, 0, size); in Linux_getsockoptTimeval() 1512 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &tv, &size)); in Linux_getsockoptTimeval() 1519 if (size != sizeof(tv)) { in Linux_getsockoptTimeval() 1524 return makeStructTimeval(env, tv); in Linux_getsockoptTimeval()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 449 StructTimeval tv = StructTimeval.fromMillis(millis); in setSocketOptionErrno() local 450 Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); in setSocketOptionErrno()
|