/bionic/libc/bionic/ |
sys_time.cpp | 37 static int futimesat(int fd, const char* path, const timeval tv[2], int flags) { 39 if (tv && (!timespec_from_timeval(ts[0], tv[0]) || !timespec_from_timeval(ts[1], tv[1]))) { 43 return utimensat(fd, path, tv ? ts : nullptr, flags); 46 int utimes(const char* path, const timeval tv[2]) { 47 return futimesat(AT_FDCWD, path, tv, 0); 50 int lutimes(const char* path, const timeval tv[2]) { 51 return futimesat(AT_FDCWD, path, tv, AT_SYMLINK_NOFOLLOW); 54 int futimesat(int fd, const char* path, const timeval tv[2]) [all...] |
bionic_time_conversions.cpp | 33 bool timespec_from_timeval(timespec& ts, const timeval& tv) { 35 ts.tv_sec = tv.tv_sec; 38 if (tv.tv_usec >= 1000000 || tv.tv_usec < 0) { 41 ts.tv_nsec = tv.tv_usec * 1000; 50 void timeval_from_timespec(timeval& tv, const timespec& ts) { 51 tv.tv_sec = ts.tv_sec; 52 tv.tv_usec = ts.tv_nsec / 1000;
|
/external/toybox/toys/other/ |
usleep.c | 20 struct timespec tv; local 23 tv.tv_sec = delay/1000000; 24 tv.tv_nsec = (delay%1000000) * 1000; 25 toys.exitval = !!nanosleep(&tv, NULL);
|
/external/toybox/toys/posix/ |
sleep.c | 32 struct timespec tv; local 34 tv.tv_sec = xparsetime(*toys.optargs, 1000000000, &tv.tv_nsec); 35 toys.exitval = !!nanosleep(&tv, NULL);
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/ |
venc_util.c | 44 struct timeval tv; local 46 gettimeofday(&tv, NULL); 47 microsec = (tv.tv_sec * 1000000) + (tv.tv_usec);
|
/packages/apps/TV/src/com/android/tv/perf/ |
TimerEvent.java | 17 package com.android.tv.perf;
|
/frameworks/base/media/java/android/media/tv/ |
DvbDeviceInfo.aidl | 18 package android.media.tv;
|
TvContentRatingSystemInfo.aidl | 17 package android.media.tv;
|
TvInputHardwareInfo.aidl | 18 package android.media.tv;
|
TvInputInfo.aidl | 17 package android.media.tv;
|
TvStreamConfig.aidl | 18 package android.media.tv;
|
TvTrackInfo.aidl | 17 package android.media.tv;
|
ITvInputHardwareCallback.aidl | 17 package android.media.tv; 19 import android.media.tv.TvStreamConfig;
|
/external/strace/tests/ |
xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); 43 if (syscall(__NR_gettimeofday, tv, NULL)) 46 (long long) tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec)); 49 if (syscall(__NR_gettimeofday, tv, tz)) 53 (long long) tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 57 tv->tv_sec = -1; 58 tv->tv_usec = 1000000; 59 assert(syscall(__NR_settimeofday, tv, tz) == -1) [all...] |
futimesat.c | 41 print_tv(const struct timeval *tv) 44 (long long) tv->tv_sec, 45 zero_extend_signed_to_ull(tv->tv_usec)); 46 print_time_t_usec(tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec), 1); 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); 112 qname, tv + 1, errstr); 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)) [all...] |
xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) 51 (long long) tv->tv_sec, 52 zero_extend_signed_to_ull(tv->tv_usec)); 53 print_time_t_usec(tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 1); 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); 101 qname, tv + 1, errstr); 103 k_utimes(kfname, (uintptr_t) (tv + 2)) [all...] |
/external/strace/tests-m32/ |
xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); 43 if (syscall(__NR_gettimeofday, tv, NULL)) 46 (long long) tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec)); 49 if (syscall(__NR_gettimeofday, tv, tz)) 53 (long long) tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 57 tv->tv_sec = -1; 58 tv->tv_usec = 1000000; 59 assert(syscall(__NR_settimeofday, tv, tz) == -1) [all...] |
futimesat.c | 41 print_tv(const struct timeval *tv) 44 (long long) tv->tv_sec, 45 zero_extend_signed_to_ull(tv->tv_usec)); 46 print_time_t_usec(tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec), 1); 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); 112 qname, tv + 1, errstr); 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)) [all...] |
xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) 51 (long long) tv->tv_sec, 52 zero_extend_signed_to_ull(tv->tv_usec)); 53 print_time_t_usec(tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 1); 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); 101 qname, tv + 1, errstr); 103 k_utimes(kfname, (uintptr_t) (tv + 2)) [all...] |
/external/strace/tests-mx32/ |
xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); 43 if (syscall(__NR_gettimeofday, tv, NULL)) 46 (long long) tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec)); 49 if (syscall(__NR_gettimeofday, tv, tz)) 53 (long long) tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 57 tv->tv_sec = -1; 58 tv->tv_usec = 1000000; 59 assert(syscall(__NR_settimeofday, tv, tz) == -1) [all...] |
futimesat.c | 41 print_tv(const struct timeval *tv) 44 (long long) tv->tv_sec, 45 zero_extend_signed_to_ull(tv->tv_usec)); 46 print_time_t_usec(tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec), 1); 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); 112 qname, tv + 1, errstr); 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)) [all...] |
xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) 51 (long long) tv->tv_sec, 52 zero_extend_signed_to_ull(tv->tv_usec)); 53 print_time_t_usec(tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 1); 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); 101 qname, tv + 1, errstr); 103 k_utimes(kfname, (uintptr_t) (tv + 2)) [all...] |
/device/linaro/bootloader/arm-trusted-firmware/include/stdlib/sys/ |
timespec.h | 41 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ 43 (ts)->tv_sec = (tv)->tv_sec; \ 44 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 46 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ 48 (tv)->tv_sec = (ts)->tv_sec; \ 49 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
NoMetadataTvInputService.java | 17 package android.media.tv.cts;
|
NoPermissionTvInputService.java | 17 package android.media.tv.cts;
|