Home
last modified time | relevance | path

Searched refs:secs (Results 1 – 25 of 217) sorted by relevance

123456789

/third_party/flutter/skia/third_party/externals/sdl/src/power/linux/
DSDL_syspower.c135 int secs = -1; in check_proc_acpi_battery() local
192 if ((secs < 0) && (*seconds < 0)) { in check_proc_acpi_battery()
199 } else if (secs > *seconds) { in check_proc_acpi_battery()
204 *seconds = secs; in check_proc_acpi_battery()
415 const int secs = battery_time; in SDL_GetPowerInfo_Linux_proc_apm() local
420 if (secs >= 0) { /* -1 == unknown */ in SDL_GetPowerInfo_Linux_proc_apm()
421 *seconds = secs; in SDL_GetPowerInfo_Linux_proc_apm()
451 int secs; in SDL_GetPowerInfo_Linux_sys_class_power_supply() local
485 secs = -1; in SDL_GetPowerInfo_Linux_sys_class_power_supply()
487 secs = SDL_atoi(str); in SDL_GetPowerInfo_Linux_sys_class_power_supply()
[all …]
/third_party/pulseaudio/src/pulse/
Dtimeval.c126 time_t secs; in pa_timeval_add() local
129 secs = (time_t) (v/PA_USEC_PER_SEC); in pa_timeval_add()
131 if (PA_UNLIKELY(tv->tv_sec > PA_INT_TYPE_MAX(time_t) - secs)) in pa_timeval_add()
134 tv->tv_sec += secs; in pa_timeval_add()
135 v -= (pa_usec_t) secs * PA_USEC_PER_SEC; in pa_timeval_add()
157 time_t secs; in pa_timeval_sub() local
160 secs = (time_t) (v/PA_USEC_PER_SEC); in pa_timeval_sub()
162 if (PA_UNLIKELY(tv->tv_sec < secs)) in pa_timeval_sub()
165 tv->tv_sec -= secs; in pa_timeval_sub()
166 v -= (pa_usec_t) secs * PA_USEC_PER_SEC; in pa_timeval_sub()
/third_party/python/Python/
Dpytime.c459 _PyTime_t secs; in _PyTime_AsSecondsDouble() local
462 secs = t / SEC_TO_NS; in _PyTime_AsSecondsDouble()
463 d = (double)secs; in _PyTime_AsSecondsDouble()
542 _PyTime_t secs, ns; in _PyTime_AsTimeval_impl() local
546 secs = t / SEC_TO_NS; in _PyTime_AsTimeval_impl()
552 if (secs != _PyTime_MIN) { in _PyTime_AsTimeval_impl()
553 secs -= 1; in _PyTime_AsTimeval_impl()
561 if (secs != _PyTime_MAX) { in _PyTime_AsTimeval_impl()
562 secs += 1; in _PyTime_AsTimeval_impl()
570 *p_secs = secs; in _PyTime_AsTimeval_impl()
[all …]
/third_party/ltp/testcases/lib/
Dtst_sleep.c32 long interval, secs = 0, usecs = 0; in main() local
74 secs = interval; in main()
77 secs = interval / 1000; in main()
82 secs = interval / 1000000; in main()
86 if (secs) in main()
87 sleep(secs); in main()
/third_party/libwebsockets/lib/core-net/
Dwsi-timeout.c125 __lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in __lws_set_timeout() argument
132 ((lws_usec_t)secs) * LWS_US_PER_SEC); in __lws_set_timeout()
134 lwsl_wsi_debug(wsi, "%d secs, reason %d\n", secs, reason); in __lws_set_timeout()
140 lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in lws_set_timeout() argument
149 if (!secs) in lws_set_timeout()
152 if (secs == LWS_TO_KILL_SYNC) { in lws_set_timeout()
160 if (secs == LWS_TO_KILL_ASYNC) in lws_set_timeout()
161 secs = 0; in lws_set_timeout()
164 if (secs && wsi->mux_stream_immortal) in lws_set_timeout()
165 lwsl_wsi_err(wsi, "on immortal stream %d %d", reason, secs); in lws_set_timeout()
[all …]
/third_party/ltp/lib/
Dtst_rtctime.c60 unsigned int month, year, secs; in tst_rtc_time_to_tm() local
65 secs = time % 86400; in tst_rtc_time_to_tm()
92 tm->tm_hour = secs / 3600; in tst_rtc_time_to_tm()
93 secs -= tm->tm_hour * 3600; in tst_rtc_time_to_tm()
94 tm->tm_min = secs / 60; in tst_rtc_time_to_tm()
95 tm->tm_sec = secs - tm->tm_min * 60; in tst_rtc_time_to_tm()
/third_party/flutter/skia/third_party/externals/sdl/src/power/macosx/
DSDL_syspower.c48 int secs = -1; in checkps() local
97 secs = (int) val; in checkps()
98 if (secs > 0) { in checkps()
99 secs *= 60; /* value is in minutes, so convert to seconds. */ in checkps()
121 if ((secs < 0) && (*seconds < 0)) { in checkps()
128 } else if (secs > *seconds) { in checkps()
133 *seconds = secs; in checkps()
/third_party/rust/crates/tracing/tracing-subscriber/src/fmt/time/
Ddatetime.rs256 let (secs, nanos) = (duration.as_secs() as i64, duration.subsec_nanos()); in from()
258 (-secs, 0) in from()
260 (-secs - 1, 1_000_000_000 - nanos) in from()
342 let case = |expected: &str, secs: i64, micros: u32| { in test_datetime()
343 let timestamp = if secs >= 0 { in test_datetime()
344 UNIX_EPOCH + Duration::new(secs as u64, micros * 1_000) in test_datetime()
346 (UNIX_EPOCH - Duration::new(!secs as u64 + 1, 0)) + Duration::new(0, micros * 1_000) in test_datetime()
352 secs, in test_datetime()
/third_party/libbpf/src/
Dlinker.c62 struct src_sec *secs; member
140 struct dst_sec *secs; member
201 struct dst_sec *sec = &linker->secs[i]; in bpf_linker__free()
211 free(linker->secs); in bpf_linker__free()
249 struct dst_sec *secs = linker->secs, *sec; in add_dst_sec() local
252 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec()
253 if (!secs) in add_dst_sec()
257 memset(secs + linker->sec_cnt, 0, (new_cnt - linker->sec_cnt) * sizeof(*secs)); in add_dst_sec()
259 linker->secs = secs; in add_dst_sec()
262 sec = &linker->secs[new_cnt - 1]; in add_dst_sec()
[all …]
/third_party/rust/crates/nix/src/sys/
Dtime.rs151 let secs = hours in hours() localVariable
154 Self::seconds(secs) in hours()
159 let secs = minutes in minutes() localVariable
162 Self::seconds(secs) in minutes()
296 let (secs, nanos) = div_mod_floor_64(nanoseconds, NANOS_PER_SEC); in nanoseconds()
298 (TS_MIN_SECONDS..=TS_MAX_SECONDS).contains(&secs), in nanoseconds()
302 ts.tv_sec = secs as time_t; in nanoseconds()
328 let secs = self.num_seconds() * 1_000_000_000; in num_nanoseconds() localVariable
330 secs + nsec as i64 in num_nanoseconds()
523 let (secs, micros) = div_mod_floor_64(microseconds, MICROS_PER_SEC); in microseconds()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_fixed.cc75 int secs = Parse02d(np + 7); in FixedOffsetFromName() local
76 if (secs == -1) return false; in FixedOffsetFromName()
78 secs += ((hours * 60) + mins) * 60; in FixedOffsetFromName()
79 if (secs > 24 * 60 * 60) return false; // outside supported offset range in FixedOffsetFromName()
80 *offset = seconds(secs * (np[0] == '-' ? -1 : 1)); // "-" means west in FixedOffsetFromName()
/third_party/musl/porting/uniproton/kernel/src/time/
D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
24 secs = t - LEAPOCH; in __secs_to_tm()
25 days = secs / 86400; in __secs_to_tm()
26 remsecs = secs % 86400; in __secs_to_tm()
/third_party/musl/src/time/
D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
24 secs = t - LEAPOCH; in __secs_to_tm()
25 days = secs / 86400; in __secs_to_tm()
26 remsecs = secs % 86400; in __secs_to_tm()
/third_party/musl/porting/liteos_m/kernel/src/time/
D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
24 secs = t - LEAPOCH; in __secs_to_tm()
25 days = secs / 86400; in __secs_to_tm()
26 remsecs = secs % 86400; in __secs_to_tm()
/third_party/musl/porting/liteos_a/kernel/src/time/
D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
24 secs = t - LEAPOCH; in __secs_to_tm()
25 days = secs / 86400; in __secs_to_tm()
26 remsecs = secs % 86400; in __secs_to_tm()
/third_party/tzdata/
Ddate.c66 intmax_t secs; in main() local
95 secs = strtoimax(optarg, &endarg, 0); in main()
98 else if (! (TIME_T_MIN <= secs && secs <= TIME_T_MAX)) in main()
105 t = secs; in main()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_platform.c457 int secs; in platform_testGetPowerInfo() local
462 state = SDL_GetPowerInfo(&secs, &pct); in platform_testGetPowerInfo()
476 secs >= 0, in platform_testGetPowerInfo()
478 secs); in platform_testGetPowerInfo()
489 secs == -1, in platform_testGetPowerInfo()
491 secs); in platform_testGetPowerInfo()
505 secs==secsAgain, in platform_testGetPowerInfo()
/third_party/rust/crates/rust-openssl/openssl/src/
Dasn1.rs175 pub secs: c_int, field
204 let mut secs = 0; in diff() localVariable
207 let err = unsafe { ffi::ASN1_TIME_diff(&mut days, &mut secs, self.as_ptr(), other) }; in diff()
211 _ => Ok(TimeDiff { days, secs }), in diff()
220 if d.days > 0 || d.secs > 0 { in compare()
223 if d.days < 0 || d.secs < 0 { in compare()
235 .map(|t| t.days == 0 && t.secs == 0) in eq()
244 .map(|t| t.days == 0 && t.secs == 0) in eq()
253 .map(|t| t.days == 0 && t.secs == 0) in eq()
373 .map(|t| t.days == 0 && t.secs == 0) in eq()
[all …]
/third_party/python/Lib/test/
Dtest_time.py873 def c_int_filter(secs): argument
874 return (_testcapi.INT_MIN <= secs <= _testcapi.INT_MAX)
876 self.check_int_rounding(lambda secs, rnd: PyTime_FromSeconds(secs),
877 lambda secs: secs * SEC_TO_NS,
890 lambda secs: secs * SEC_TO_NS)
941 def seconds_filter(secs): argument
942 return LONG_MIN <= secs <= LONG_MAX
991 lambda secs: secs,
999 def converter(secs): argument
1000 floatpart, intpart = math.modf(secs)
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/power/windows/
DSDL_syspower.c60 const int secs = (int) status.BatteryLifeTime; in SDL_GetPowerInfo_Windows() local
65 if (secs != 0xFFFFFFFF) { /* ((DWORD)-1) == unknown */ in SDL_GetPowerInfo_Windows()
66 *seconds = secs; in SDL_GetPowerInfo_Windows()
/third_party/libunwind/tests/
Dforker.c37 double secs; in main() local
71 secs = ((stop.tv_sec + 1e-6 * stop.tv_usec) in main()
74 (unsigned long) (1e9 * secs / (double) count)); in main()
/third_party/mesa3d/src/gallium/frontends/clover/core/
Dprogram.cpp104 if (!bin.secs.empty()) in status()
114 if (any_of(type_equals(binary::section::text_intermediate), bin.secs)) in binary_type()
116 else if (any_of(type_equals(binary::section::text_library), bin.secs)) in binary_type()
118 else if (any_of(type_equals(binary::section::text_executable), bin.secs)) in binary_type()
/third_party/flutter/skia/third_party/externals/sdl/src/power/haiku/
DSDL_syspower.c110 const int secs = (int) battery_time; in SDL_GetPowerInfo_Haiku() local
115 if (secs != 0xFFFF) { /* 0xFFFF == unknown */ in SDL_GetPowerInfo_Haiku()
116 *seconds = secs; in SDL_GetPowerInfo_Haiku()
/third_party/flutter/skia/third_party/externals/icu/source/data/unit/
Drm.txt61 one{"{0} secs."}
62 other{"{0} secs."}
94 other{"{0} secs."}
/third_party/gstreamer/gstreamer/gst/
Dgstdatetime.c428 gst_date_time_new_from_unix_epoch_local_time (gint64 secs) in gst_date_time_new_from_unix_epoch_local_time() argument
432 datetime = g_date_time_new_from_unix_local (secs); in gst_date_time_new_from_unix_epoch_local_time()
450 gst_date_time_new_from_unix_epoch_utc (gint64 secs) in gst_date_time_new_from_unix_epoch_utc() argument
454 datetime = g_date_time_new_from_unix_utc (secs); in gst_date_time_new_from_unix_epoch_utc()
477 gint64 secs = usecs / G_USEC_PER_SEC; in gst_date_time_new_from_unix_epoch_local_time_usecs() local
480 dt = g_date_time_new_from_unix_local (secs); in gst_date_time_new_from_unix_epoch_local_time_usecs()
507 gint64 secs = usecs / G_USEC_PER_SEC; in gst_date_time_new_from_unix_epoch_utc_usecs() local
510 dt = g_date_time_new_from_unix_utc (secs); in gst_date_time_new_from_unix_epoch_utc_usecs()

123456789