Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/native/
DInet4AddressImpl.c82 struct timeval tv; in ping4() local
121 gettimeofday(&tv, NULL); in ping4()
122 memcpy(icmp->icmp_data, &tv, sizeof(tv)); in ping4()
123 plen = ICMP_ADVLENMIN + sizeof(tv); in ping4()
DInet6AddressImpl.c156 struct timeval tv; in ping6() local
199 gettimeofday(&tv, NULL); in ping6()
200 memcpy(sendbuf + sizeof(struct icmp6_hdr), &tv, sizeof(tv)); in ping6()
201 plen = sizeof(struct icmp6_hdr) + sizeof(tv); in ping6()
DUnixFileSystem_md.c401 struct timeval tv[2]; in Java_java_io_UnixFileSystem_setLastModifiedTime0() local
404 tv[0].tv_sec = sb.st_atime; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
405 tv[0].tv_usec = 0; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
408 tv[1].tv_sec = time / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
409 tv[1].tv_usec = (time % 1000) * 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
411 if (utimes(path, tv) == 0) in Java_java_io_UnixFileSystem_setLastModifiedTime0()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java533 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DMethodTest.java466 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/
DVectorTest.java53 Vector tv = new Vector(100); in test_Constructor() local
55 tv.addElement(new Integer(i)); in test_Constructor()
56 new Support_ListTest("", tv).runTest(); in test_Constructor()
58 tv = new Vector(200); in test_Constructor()
60 tv.addElement(new Integer(i)); in test_Constructor()
61 new Support_ListTest("", tv.subList(50, 150)).runTest(); in test_Constructor()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java382 StructTimeval tv = StructTimeval.fromMillis(millis); in setSocketOptionErrno() local
383 Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); in setSocketOptionErrno()
/libcore/luni/src/main/native/
Dlibcore_io_Posix.cpp456 static jobject makeStructTimeval(JNIEnv* env, const struct timeval& tv) { in makeStructTimeval() argument
459 static_cast<jlong>(tv.tv_sec), static_cast<jlong>(tv.tv_usec)); in makeStructTimeval()
1131 struct timeval tv; in Posix_getsockoptTimeval() local
1132 socklen_t size = sizeof(tv); in Posix_getsockoptTimeval()
1133 memset(&tv, 0, size); in Posix_getsockoptTimeval()
1134 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &tv, &size)); in Posix_getsockoptTimeval()
1139 return makeStructTimeval(env, tv); in Posix_getsockoptTimeval()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java335 StructTimeval tv = StructTimeval.fromMillis(20); in checkSendToSocketAddress() local
336 Libcore.os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv); in checkSendToSocketAddress()