Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/hardware/google/gfxstream/guest/mesa/include/android_stub/log/
Dlog_time.h27 #define LOG_TIME_SEC(t) ((t)->tv_sec)
37 uint32_t tv_sec = 0; /* good to Feb 5 2106 */
44 : tv_sec(static_cast<uint32_t>(T.tv_sec)), tv_nsec(static_cast<uint32_t>(T.tv_nsec)) {} in log_time()
46 : tv_sec(sec), tv_nsec(nsec) { in tv_sec() function
52 tv_sec = static_cast<uint32_t>(T.tv_sec); in log_time()
58 return (tv_sec == static_cast<uint32_t>(T.tv_sec)) &&
65 return (tv_sec < static_cast<uint32_t>(T.tv_sec)) ||
66 ((tv_sec == static_cast<uint32_t>(T.tv_sec)) &&
73 return (tv_sec > static_cast<uint32_t>(T.tv_sec)) ||
74 ((tv_sec == static_cast<uint32_t>(T.tv_sec)) &&
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Dtimespec_test.cpp37 a.tv_sec = 1; in TEST()
39 b.tv_sec = 1; in TEST()
42 EXPECT_EQ(r.tv_sec, 3); in TEST()
50 a.tv_sec = 1; in TEST()
52 b.tv_sec = 0; in TEST()
55 EXPECT_EQ(r.tv_sec, 0); in TEST()
63 a.tv_sec = 4; in TEST()
72 a.tv_sec = 4; in TEST()
81 a.tv_sec = 4; in TEST()
93 a.tv_sec = 0; in TEST()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/
Dtimespec.h55 r->tv_sec = a->tv_sec + b->tv_sec; in timespec_add()
58 r->tv_sec++; in timespec_add()
74 r->tv_sec = a->tv_sec - b->tv_sec; in timespec_sub()
77 r->tv_sec--; in timespec_sub()
100 ((uint64_t)a->tv_sec > (uint64_t)TIME_T_MAX - b_sec); in timespec_add_nsec()
102 r->tv_sec = (uint64_t)a->tv_sec + b_sec; in timespec_add_nsec()
106 if (r->tv_sec >= TIME_T_MAX) in timespec_add_nsec()
108 r->tv_sec = (uint64_t)r->tv_sec + 1ull; in timespec_add_nsec()
112 r->tv_sec--; in timespec_add_nsec()
142 return (uint64_t)a->tv_sec * NSEC_PER_SEC + a->tv_nsec; in timespec_to_nsec()
[all …]
/hardware/ril/libril/
Dril_event.cpp40 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
43 (vvp)->tv_sec++; \
51 ((a)->tv_sec == (b)->tv_sec \
53 : (a)->tv_sec op (b)->tv_sec)
59 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
63 (res)->tv_sec -= 1; \
86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event()
100 tv->tv_sec = ts.tv_sec; in getNow()
169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts()
228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout()
[all …]
/hardware/st/secure_element/ese-spi-driver/utils-lib/
DUtils.cc60 return (t2.tv_sec - t1.tv_sec) * 1000 + (t2.tv_usec - t1.tv_usec) / 1000; in Utils_getElapsedTimeInMs()
76 return (t2.tv_sec - t1.tv_sec) * 1000000 + (t2.tv_usec - t1.tv_usec); in Utils_getElapsedTimeInUs()
93 STLOG_HAL_V("SpiTiming: %s: %ld,%ld", prefix, currentTime.tv_sec, in Utils_printCurrentTime()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dcam_semaphore_tests.cpp31 ts.tv_sec += ms / 1000; in timespec_add_ms()
34 ts.tv_sec++; in timespec_add_ms()
40 if (ts_start.tv_sec == ts_end.tv_sec) { in time_diff()
43 return (int64_t)(ts_end.tv_sec - 1 - ts_start.tv_sec) * NS_PER_S + in time_diff()
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_stub/src/
Dloc_stub_time.cpp37 t.tv_sec = t.tv_usec = 0; in systemTime()
39 return t.tv_sec*1000000LL + t.tv_usec; in systemTime()
47 time_ms += (ts.tv_sec * 1000000000LL); /* Seconds to nanoseconds */ in elapsedMicrosSinceBoot()
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_stub/src/
Dloc_stub_time.cpp37 t.tv_sec = t.tv_usec = 0; in systemTime()
39 return t.tv_sec*1000000LL + t.tv_usec; in systemTime()
47 time_ms += (ts.tv_sec * 1000000000LL); /* Seconds to nanoseconds */ in elapsedMicrosSinceBoot()
/hardware/st/secure_element2/secure_element/esehal/src/
Dtransport.c48 if (t1->tv_sec < t2->tv_sec) in ts_compare()
50 else if (t1->tv_sec > t2->tv_sec) in ts_compare()
72 time_t sec = ta.tv_sec + in ts_add_ns()
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_pla/src/
Dplatform_lib_log_util.cpp37 hh = tv.tv_sec/3600%24; in get_timestamp()
38 mm = (tv.tv_sec%3600)/60; in get_timestamp()
39 ss = tv.tv_sec%60; in get_timestamp()
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/src/
Dplatform_lib_log_util.cpp40 hh = tv.tv_sec/3600%24; in get_timestamp()
41 mm = (tv.tv_sec%3600)/60; in get_timestamp()
42 ss = tv.tv_sec%60; in get_timestamp()
/hardware/qcom/sm7150/gps/utils/
Dloc_log.cpp176 localtime_r(&now.tv_sec, &now_tm); in loc_get_time()
205 hh = tv.tv_sec/3600%24; in get_timestamp()
206 mm = (tv.tv_sec%3600)/60; in get_timestamp()
207 ss = tv.tv_sec%60; in get_timestamp()
227 uint64_t elapsedTime = (uint64_t)tv.tv_sec + (uint64_t)tv.tv_nsec/1000000000; in log_buffer_insert()
/hardware/st/secure_element/ese-spi-driver/
DSpiLayerDriver.cc110 STLOG_HAL_V(" Last TX: %ld,%ld", lastRxTxTime.tv_sec, lastRxTxTime.tv_usec); in SpiLayerDriver_read()
113 STLOG_HAL_V(" Now: %ld,%ld", currentTime.tv_sec, currentTime.tv_usec); in SpiLayerDriver_read()
122 STLOG_HAL_V("Start RX: %ld,%ld", currentTime.tv_sec, currentTime.tv_usec); in SpiLayerDriver_read()
179 STLOG_HAL_V(" Last RX: %ld,%ld", lastRxTxTime.tv_sec, lastRxTxTime.tv_usec); in SpiLayerDriver_write()
190 STLOG_HAL_V("Start TX: %ld,%ld", currentTime.tv_sec, currentTime.tv_usec); in SpiLayerDriver_write()
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_pla/include/
Dplatform_lib_macros.h55 hh = tv.tv_sec/3600%24; \
56 mm = (tv.tv_sec%3600)/60; \
57 ss = tv.tv_sec%60; \
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/include/
Dplatform_lib_macros.h55 hh = tv.tv_sec/3600%24; \
56 mm = (tv.tv_sec%3600)/60; \
57 ss = tv.tv_sec%60; \
/hardware/qcom/gps/msm8909/utils/platform_lib_abstractions/
Dplatform_lib_macros.h40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
/hardware/qcom/gps/msm8084/platform_lib_abstractions/
Dplatform_lib_macros.h40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
/hardware/qcom/gps/platform_lib_abstractions/
Dplatform_lib_macros.h40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dsync.h74 abstime.tv_sec += now.tv_sec; in wait()
77 abstime.tv_sec += 1; in wait()
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dsync.h74 abstime.tv_sec += now.tv_sec; in wait()
77 abstime.tv_sec += 1; in wait()
/hardware/qcom/gps/msm8996/utils/platform_lib_abstractions/
Dplatform_lib_macros.h40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
/hardware/qcom/gps/msm8994/platform_lib_abstractions/
Dplatform_lib_macros.h40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
Delapsed_millis_since_boot.cpp36 t.tv_sec = t.tv_usec = 0; in systemTime()
38 return t.tv_sec*1000000LL + t.tv_usec; in systemTime()
/hardware/qcom/gps/msm8960/platform_lib_abstractions/
Dplatform_lib_macros.h40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/
Delapsed_millis_since_boot.cpp36 t.tv_sec = t.tv_usec = 0; in systemTime()
38 return t.tv_sec*1000000LL + t.tv_usec; in systemTime()

12345678910>>...15