Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/external/autotest/client/cros/power/
Dsys_power.py116 alarm = int(rtc.get_seconds() + seconds)
117 logging.debug('Suspend for %d seconds, wakealarm = %d', seconds, alarm)
118 rtc.set_wake_alarm(alarm)
119 return (alarm, wakeup_count)
122 def check_wakeup(alarm): argument
128 if now < alarm:
159 alarm, wakeup_count = prepare_wakeup(suspend_seconds)
165 check_wakeup(alarm)
166 return alarm
199 alarm, wakeup_count = prepare_wakeup(seconds)
[all …]
/external/grpc-grpc/test/cpp/common/
Dalarm_test.cc37 Alarm alarm; in TEST() local
38 alarm.Set(&cq, grpc_timeout_seconds_to_deadline(1), junk); in TEST()
57 Alarm alarm; in TEST() local
60 alarm.experimental().Set( in TEST()
75 Alarm alarm; in TEST() local
78 alarm.experimental().Set(grpc_timeout_seconds_to_deadline(0), [c](bool ok) { in TEST()
92 Alarm alarm; in TEST() local
95 alarm.experimental().Set( in TEST()
116 Alarm alarm; in TEST() local
118 std::thread t1([&alarm, &cq, &junk] { in TEST()
[all …]
/external/linux-kselftest/tools/testing/selftests/rtc/
Drtctest.c171 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local
178 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
181 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
182 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
184 alarm.enabled = 1; in TEST_F()
186 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
193 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
197 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F()
198 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F()
199 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
/external/grpc-grpc/src/cpp/common/
Dalarm.cc63 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local
64 alarm->Ref(); in Set()
66 alarm->cq_, alarm, error, in Set()
68 arg, &alarm->completion_); in Set()
81 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local
82 alarm->callback_(error == GRPC_ERROR_NONE); in Set()
83 alarm->Unref(); in Set()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D9-1.c57 alarm(10); in main()
59 ret = alarm(10); in main()
75 ret = alarm(10); in main()
96 alarm(0); in main()
/external/linux-kselftest/tools/testing/selftests/powerpc/signal/
Dsignal.c70 alarm(0); /* Disable any pending */ in test_signal()
71 alarm(2); in test_signal()
86 alarm(0); /* Disable any pending */ in test_signal()
88 alarm(TIMEOUT); in test_signal()
Dsignal_tm.c72 alarm(0); /* Disable any pending */ in test_signal_tm()
74 alarm(TIMEOUT); in test_signal_tm()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl15.c148 alarm(60); in dochild1()
151 alarm((unsigned)0); in dochild1()
223 alarm(60); in dofork()
226 alarm((unsigned)0); in dofork()
299 alarm(60); in dochild2()
302 alarm((unsigned)0); in dochild2()
479 alarm(60); in run_test()
482 alarm((unsigned)0); in run_test()
Dfcntl14.c853 alarm(TIME_OUT); in run_test()
857 alarm((unsigned)0); in run_test()
883 alarm(TIME_OUT); in run_test()
888 alarm((unsigned)0); in run_test()
1103 (void)alarm(TIME_OUT); in main()
1108 (void)alarm((unsigned)0); in main()
1135 (void)alarm(TIME_OUT); in main()
1144 (void)alarm((unsigned)0); in main()
/external/ltp/testcases/kernel/syscalls/alarm/
Dalarm03.c25 TEST(alarm(100)); in verify_alarm()
29 TEST(alarm(0)); in verify_alarm()
42 TEST(alarm(0)); in verify_alarm()
Dalarm06.c59 alarm(2); in verify_alarm()
62 ret = alarm(0); in verify_alarm()
Dalarm05.c41 ret = alarm(10); in run()
49 ret = alarm(1); in run()
Dalarm02.c36 ret = alarm(tc->sec); in verify_alarm()
44 TEST(alarm(0)); in verify_alarm()
/external/python/cpython2/Doc/library/
Dsignal.rst42 of execution. Any thread can perform an :func:`alarm`, :func:`getsignal`,
135 .. function:: alarm(time)
138 sent to the process in *time* seconds. Any previously scheduled alarm is
139 canceled (only one alarm can be scheduled at any time). The returned value is
140 then the number of seconds before any previously set alarm was to have been
141 delivered. If *time* is zero, no alarm is scheduled, and any scheduled alarm is
142 canceled. If the return value is zero, no alarm is currently scheduled. (See
143 the Unix man page :manpage:`alarm(2)`.) Availability: Unix.
169 :func:`alarm`) and after that every *interval* seconds. The interval
253 Here is a minimal example program. It uses the :func:`alarm` function to limit
[all …]
/external/python/cpython3/Lib/test/
Dtest_threadsignals.py60 signal.alarm(1)
63 signal.alarm(0)
97 signal.alarm(1)
107 signal.alarm(0)
138 signal.alarm(1)
145 signal.alarm(0)
/external/ltp/testcases/kernel/syscalls/kill/
Dkill02.c311 (void)alarm(TIMEOUT); in parent_rout()
316 (void)alarm(TIMEOUT); in parent_rout()
320 (void)alarm(0); /*Reset the alarm clock. */ in parent_rout()
433 (void)alarm(TIMEOUT); in parent_rout()
537 (void)alarm(TIMEOUT - 40); in child1_rout()
541 (void)alarm(TIMEOUT - 40); in child1_rout()
545 (void)alarm(0); /*Reset the alarm clock. */ in child1_rout()
/external/iputils/
Dtftpd.c186 alarm(0); in main()
379 alarm(rexmtval); /* read the ack */ in sendfile()
381 alarm(0); in sendfile()
444 alarm(rexmtval); in recvfile()
446 alarm(0); in recvfile()
482 alarm(rexmtval); in recvfile()
484 alarm(0); in recvfile()
/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_client_custom.cc40 grpc_timer alarm; member
90 grpc_timer_cancel(&connect->alarm); in custom_connect_callback()
145 grpc_timer_init(&connect->alarm, deadline, &connect->on_alarm); in tcp_connect()
/external/u-boot/arch/arm/dts/
Dkirkwood-lsxl.dtsi37 pmx_led_alarm: pmx-led-alarm {
146 alarm {
147 label = "lsxl:red:alarm";
178 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DWatchdog.inc22 alarm(seconds);
28 alarm(0);
/external/llvm/lib/Support/Unix/
DWatchdog.inc22 alarm(seconds);
28 alarm(0);
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/
Drt_sigsuspend01.c40 alarm(1); in verify_rt_sigsuspend()
44 alarm(0); in verify_rt_sigsuspend()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/
DWatchdog.inc24 alarm(seconds);
30 alarm(0);
/external/linux-kselftest/tools/testing/selftests/prctl/
Ddisable-tsc-ctxt-sw-stress-test.c52 alarm(10); in segvtask()
73 alarm(10); in rdtsctask()
/external/python/cpython3/Doc/library/
Dsignal.rst188 .. function:: alarm(time)
191 sent to the process in *time* seconds. Any previously scheduled alarm is
192 canceled (only one alarm can be scheduled at any time). The returned value is
193 then the number of seconds before any previously set alarm was to have been
194 delivered. If *time* is zero, no alarm is scheduled, and any scheduled alarm is
195 canceled. If the return value is zero, no alarm is currently scheduled. (See
196 the Unix man page :manpage:`alarm(2)`.)
283 :func:`alarm`) and after that every *interval* seconds (if *interval*
473 Here is a minimal example program. It uses the :func:`alarm` function to limit
476 :func:`os.open` to hang indefinitely. The solution is to set a 5-second alarm
[all …]

12345678910>>...13