/third_party/rust/crates/rustix/tests/time/ |
H A D | dynamic_clocks.rs | 4 use rustix::time::{clock_gettime_dynamic, ClockId, DynamicClockId};
|
H A D | timespec.rs | 5 use rustix::time::{Nsecs, Secs, Timespec}; in test_timespec_layout()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | includes.h | 16 /* Include possible build time configuration before including anything else */ 41 #include <sys/time.h>
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | includes.h | 16 /* Include possible build time configuration before including anything else */ 42 #include <sys/time.h>
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wapi/ |
H A D | wapi_asue_i.c | 28 #include <sys/time.h>
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
H A D | hiview_output_log.c | 29 #include <time.h> 401 time_t time; in LogCommonFmt() local 406 time = commonContentPtr->time; in LogCommonFmt() 407 localtime_r(&time, &nowTime); in LogCommonFmt()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
H A D | fold_app_usage_db_helper.cpp | 44 void UpdateScreenStatInfo(FoldAppUsageInfo &info, uint32_t time, int screenStatus)
in UpdateScreenStatInfo() argument 48 info.expdHor += static_cast<int32_t>(time);
in UpdateScreenStatInfo() 51 info.expdVer += static_cast<int32_t>(time);
in UpdateScreenStatInfo() 54 info.foldHor += static_cast<int32_t>(time);
in UpdateScreenStatInfo() 57 info.foldVer += static_cast<int32_t>(time);
in UpdateScreenStatInfo()
|
/base/notification/eventhandler/frameworks/eventhandler/src/ |
H A D | event_queue_ffrt.cpp | 488 uint64_t time = event->GetDelayTime(); in SubmitEventAtEnd() local 508 .delay(time * MILLI_TO_MICRO).priority(queuePriority)); in SubmitEventAtEnd() 512 ffrtQueue_->submit(task, ffrt::task_attr().name(taskName.c_str()).delay(time * MILLI_TO_MICRO). in SubmitEventAtEnd() 520 uint64_t time = event->GetDelayTime(); in SubmitEventAtFront() local 525 ffrt_task_attr_set_delay(&attribute, time * MILLI_TO_MICRO); in SubmitEventAtFront()
|
/foundation/ability/ability_runtime/test/unittest/mission_info_mgr_test/ |
H A D | mission_info_mgr_test.cpp | 121 missionInfo.missionInfo.time = 'a'; in HWTEST_F() 123 missionInfo.missionInfo.time = 'b'; in HWTEST_F() 145 missionInfo.missionInfo.time = 'a'; in HWTEST_F() 146 missionInfo2.missionInfo.time = 'b'; in HWTEST_F() 222 missionInfo.missionInfo.time = 'b'; in HWTEST_F()
|
/foundation/multimedia/ringtone_library/services/utils/src/ |
H A D | ringtone_file_utils.cpp | 465 int64_t RingtoneFileUtils::Timespec2Millisecond(const struct timespec &time) in Timespec2Millisecond() argument 467 return time.tv_sec * MSEC_TO_SEC + time.tv_nsec / MSEC_TO_NSEC; in Timespec2Millisecond() 491 string RingtoneFileUtils::StrCreateTimeByMilliseconds(const string &format, int64_t time) in StrCreateTimeByMilliseconds() argument 494 int64_t times = time / MSEC_TO_SEC; in StrCreateTimeByMilliseconds()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/ |
H A D | sta_auto_connect_service.cpp | 163 time_t now = time(0); in AddOrDelBlockedBssids() 205 time_t now = time(0); in ClearOvertimeBlockedBssid() 375 time_t now = time(0); in AutoSelectDevice() 477 int gap = static_cast<int>(time(0)) - selectDeviceLastTime; in AllowAutoSelectDevice() 479 WIFI_LOGE("%ds time before we selected the network(30s).\n", gap); in AllowAutoSelectDevice() 534 time_t now = time(0); in CurrentDeviceGoodEnough() 537 WIFI_LOGI("(60s)Current user recent selections time is %ds.\n", interval); in CurrentDeviceGoodEnough()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/ |
H A D | softbus_adapter_standard.cpp | 351 uint32_t time = 0; in GetTimeout() 356 if (time < conn->GetTimeout()) { in GetTimeout() 357 time = conn->GetTimeout(); in GetTimeout() 360 if (time != 0) { in GetTimeout() 361 interval = time; in GetTimeout()
|
/kernel/linux/linux-5.10/drivers/clk/ti/ |
H A D | clkctrl.c | 95 static bool _omap4_is_timeout(union omap4_timeout *time, u32 timeout) in _omap4_is_timeout() argument 110 if (time->cycles++ < timeout) { in _omap4_is_timeout() 115 if (!ktime_to_ns(time->start)) { in _omap4_is_timeout() 116 time->start = ktime_get(); in _omap4_is_timeout() 120 if (ktime_us_delta(ktime_get(), time->start) < timeout) { in _omap4_is_timeout()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-sc27xx.c | 99 /* timeout of synchronizing time and alarm registers (us) */ 113 * The Spreadtrum RTC controller has 3 groups registers, including time, normal 114 * alarm and auxiliary alarm. The time group registers are used to set RTC time, 230 /* convert seconds to RTC time format */ in sprd_rtc_set_secs() 283 * Since the time and normal alarm registers are put in always-power-on in sprd_rtc_set_secs() 284 * region supplied by VDDRTC, then these registers changing time will in sprd_rtc_set_secs() 294 dev_err(rtc->dev, "set time/alarm values timeout\n"); in sprd_rtc_set_secs() 313 rtc_time64_to_tm(secs, &alrm->time); in sprd_rtc_read_aux_alarm() 332 time64_t secs = rtc_tm_to_time64(&alrm->time); in sprd_rtc_set_aux_alarm() [all...] |
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | net.c | 9 #include <time.h> 226 int seq = time(NULL); in netlink_get_class() 265 int seq = time(NULL); in netlink_get_qdisc() 305 int seq = time(NULL); in netlink_get_filter() 342 int seq = time(NULL); in netlink_get_link()
|
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | cached_dir.c | 35 if (!cfid->time || !cfid->has_lease) { in find_or_create_cached_dir() 267 * due to @cfid->time being zero. in open_cached_dir() 327 cfid->time = jiffies; in open_cached_dir() 545 cfid->time = 0; in cached_dir_lease_break() 617 if (cfid->time && in cfids_laundromat_worker() 618 time_after(jiffies, cfid->time + HZ * dir_cache_timeout)) { in cfids_laundromat_worker()
|
/kernel/linux/linux-6.6/drivers/clk/ti/ |
H A D | clkctrl.c | 88 static bool _omap4_is_timeout(union omap4_timeout *time, u32 timeout) in _omap4_is_timeout() argument 103 if (time->cycles++ < timeout) { in _omap4_is_timeout() 108 if (!ktime_to_ns(time->start)) { in _omap4_is_timeout() 109 time->start = ktime_get(); in _omap4_is_timeout() 113 if (ktime_us_delta(ktime_get(), time->start) < timeout) { in _omap4_is_timeout()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/ |
H A D | TimeZoneBoundaryTest.java | 74 // time at the midpoint. in findDaylightBoundaryUsingDate() 119 // // time at the midpoint. 154 // time at the midpoint. in findDaylightBoundaryUsingTimeZone() 287 ", time-of-day=" + (((cal.get(Calendar.HOUR_OF_DAY) * 60 + in verifyDST() 300 * calendar and time zone in conjunction with one another, 301 * including the calendar time->fields and fields->time and 302 * the time zone getOffset method. 395 // 2.8 after migrating to using pass-through time zones. The in TestBoundaries() 432 // i is minutes past midnight standard time in TestBoundaries() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
H A D | TimeZoneBoundaryTest.java | 71 // time at the midpoint. in findDaylightBoundaryUsingDate() 116 // // time at the midpoint. 151 // time at the midpoint. in findDaylightBoundaryUsingTimeZone() 284 ", time-of-day=" + (((cal.get(Calendar.HOUR_OF_DAY) * 60 + in verifyDST() 297 * calendar and time zone in conjunction with one another, 298 * including the calendar time->fields and fields->time and 299 * the time zone getOffset method. 392 // 2.8 after migrating to using pass-through time zones. The in TestBoundaries() 429 // i is minutes past midnight standard time in TestBoundaries() [all...] |
/third_party/python/Tools/scripts/ |
H A D | deepfreeze.py | 15 import time namespace 490 t0 = time.time() 494 t1 = time.time()
|
/third_party/python/Lib/ |
H A D | gzip.py | 8 import struct, sys, time, os namespace 164 to the last modification time field in the stream when compressing. 165 If omitted or None, the current time is used. 225 """Last modification time read from stream, or None""" 259 mtime = time.time() 564 mtime = time.time() 580 mtime can be used to set the modification time. The modification time i [all...] |
/third_party/openssl/test/ |
H A D | drbgtest.c | 177 * |reseed_when|: if nonzero, used instead of time(NULL) to set the 178 * |before_reseed| time. 218 reseed_when = time(NULL); in test_drbg_reseed() 227 after_reseed = time(NULL); in test_drbg_reseed() 263 /* Test whether reseed time of primary DRBG is set correctly */ in test_drbg_reseed() 651 * The before_reseed time has to be measured here and passed into the in test_rand_reseed() 654 * before_reseed <= reseed_time(primary) will fail if the time value happens in test_rand_reseed() 657 before_reseed = time(NULL); in test_rand_reseed() 689 time_t start = time(NULL); in run_multi_thread_test() 706 while (time(NUL in run_multi_thread_test() [all...] |
/base/location/frameworks/location_common/common/source/ |
H A D | common_utils.cpp | 18 #include <sys/time.h> 163 void CountDownLatch::Wait(int time) in Wait() argument 165 LBSLOGD(LOCATOR_STANDARD, "enter wait, time = %{public}d", time); in Wait() 171 condition_.wait_for(lock, std::chrono::seconds(time / MILLI_PER_SEC), [&]() {return count_ == 0;}); in Wait()
|
/base/powermgr/power_manager/services/native/include/ |
H A D | power_mgr_service.h | 234 void SetDisplayOffTime(int64_t time) in SetDisplayOffTime() argument 236 powerStateMachine_->SetDisplayOffTime(time); in SetDisplayOffTime() 238 void SetSleepTime(int64_t time) in SetSleepTime() argument 240 powerStateMachine_->SetSleepTime(time); in SetSleepTime()
|
/base/request/request/services/src/manage/events/ |
H A D | mod.rs | 225 use core::time; 292 std::thread::sleep(time::Duration::from_secs(10)); in ut_task_manager_start() 319 std::thread::sleep(time::Duration::from_secs(20)); in ut_task_manager_pause_resume() 346 std::thread::sleep(time::Duration::from_secs(20)); in ut_task_manager_stop_resume()
|