Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 150) sorted by relevance

123456

/system/core/init/
Dwatchdogd.cpp54 int timeout = interval + margin; in watchdogd_main() local
55 int ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); in watchdogd_main()
57 PLOG(ERROR) << "Failed to set timeout to " << timeout; in watchdogd_main()
58 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); in watchdogd_main()
62 if (timeout > margin) { in watchdogd_main()
63 interval = timeout - margin; in watchdogd_main()
68 << "timeout " << timeout in watchdogd_main()
/system/netd/server/
DIdletimerController.cpp165 uint32_t timeout, in modifyInterfaceIdletimer() argument
176 addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
180 addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
188 uint32_t timeout, in addInterfaceIdletimer() argument
190 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); in addInterfaceIdletimer()
194 uint32_t timeout, in removeInterfaceIdletimer() argument
196 return modifyInterfaceIdletimer(IptOpDelete, iface, timeout, classLabel); in removeInterfaceIdletimer()
DIdletimerController.h31 int addInterfaceIdletimer(const char *iface, uint32_t timeout,
33 int removeInterfaceIdletimer(const char *iface, uint32_t timeout,
44 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout,
/system/extras/slideshow/
Dslideshow.cpp90 long int timeout = NEXT_TIMEOUT_MS; in main() local
96 timeout = strtol(optarg, NULL, 0); in main()
98 if (timeout < 0 || timeout >= LONG_MAX) { in main()
99 timeout = NEXT_TIMEOUT_MS; in main()
101 timeout); in main()
126 long int timeout_remaining = timeout; in main()
150 if (ev_wait(timeout) == 0) { in main()
/system/update_engine/update_manager/
Devaluation_context.cc107 Time EvaluationContext::MonotonicDeadline(TimeDelta timeout) { in MonotonicDeadline() argument
108 return (timeout.is_max() ? Time::Max() : in MonotonicDeadline()
109 clock_->GetMonotonicTime() + timeout); in MonotonicDeadline()
181 TimeDelta timeout = std::min( in RunOnValueChangeOrTimeout() local
195 timeout = std::min(timeout, it.first->GetPollInterval()); in RunOnValueChangeOrTimeout()
205 if (!waiting_for_value_change && timeout.is_max()) in RunOnValueChangeOrTimeout()
210 timeout_marks_expiration_ = expiration < timeout; in RunOnValueChangeOrTimeout()
212 timeout = expiration; in RunOnValueChangeOrTimeout()
218 if (!timeout.is_max()) { in RunOnValueChangeOrTimeout()
220 << chromeos_update_engine::utils::FormatTimeDelta(timeout); in RunOnValueChangeOrTimeout()
[all …]
/system/media/audio_utils/tests/
Dfifo_threads.cpp39 struct timespec timeout; in input_routine() local
40 timeout.tv_sec = 30; in input_routine()
41 timeout.tv_nsec = 0; in input_routine()
43 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); in input_routine()
50 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine()
74 struct timespec timeout; in output_routine() local
75 timeout.tv_sec = 60; in output_routine()
76 timeout.tv_nsec = 0; in output_routine()
78 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine()
/system/media/audio_utils/
Dfifo.cpp178 const struct timespec *timeout) in write() argument
182 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
198 const struct timespec *timeout) in obtain() argument
219 if (count == 0 || availToWrite > 0 || timeout == NULL || in obtain()
220 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { in obtain()
230 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
243 if (timeout->tv_sec == LONG_MAX) { in obtain()
244 timeout = NULL; in obtain()
246 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
272 timeout = NULL; in obtain()
[all …]
Dfifo_index.cpp36 int audio_utils_fifo_index::wait(int op, uint32_t expected, const struct timespec *timeout) in wait() argument
38 return sys_futex(&mIndex, op, expected, timeout, NULL, 0); in wait()
155 int RefIndexCachedLoadAcquireDeferredWait::wait(int op, const struct timespec *timeout) in wait() argument
160 int err = mIndex.wait(op, mValue /*expected*/, timeout); in wait()
/system/chre/platform/slpi/
Dsmr_helper.cc29 Nanoseconds timeout) { in releaseSync() argument
45 waitSuccess = mCond.wait_for(mMutex, timeout); in releaseSync()
59 Microseconds timeout) { in waitForService() argument
69 timeout.getMicroseconds(), in waitForService()
91 Nanoseconds timeout, smr_err *result) { in sendReqSyncUntyped() argument
112 waitSuccess = mCond.wait_for(mMutex, timeout); in sendReqSyncUntyped()
119 msg_id, Milliseconds(timeout).getMilliseconds()); in sendReqSyncUntyped()
/system/chre/platform/slpi/include/chre/platform/slpi/
Dsmr_helper.h60 Nanoseconds timeout = kDefaultSmrTimeout);
82 Nanoseconds timeout = kDefaultSmrTimeout) {
91 resp->get(), sizeof(RespStruct), timeout, &result);
117 Microseconds timeout = kDefaultSmrWaitTimeout);
138 Nanoseconds timeout, smr_err *result);
/system/gatekeeper/
Dgatekeeper.cpp52 uint32_t timeout = 0; in Enroll() local
69 timeout = ComputeRetryTimeout(&record); in Enroll()
74 if (throttle && timeout > 0) { in Enroll()
75 response->SetRetryTimeout(timeout); in Enroll()
126 uint32_t timeout = 0; in Verify() local
143 timeout = ComputeRetryTimeout(&record); in Verify()
161 if (throttle && timeout > 0) { in Verify()
162 response->SetRetryTimeout(timeout); in Verify()
287 uint32_t timeout = ComputeRetryTimeout(record); in ThrottleRequest() local
289 if (timeout > 0) { in ThrottleRequest()
[all …]
/system/core/libusbhost/include/usbhost/
Dusbhost.h147 char* usb_device_get_string(struct usb_device *device, int id, int timeout);
152 char* usb_device_get_manufacturer_name(struct usb_device *device, int timeout);
157 char* usb_device_get_product_name(struct usb_device *device, int timeout);
166 char* usb_device_get_serial(struct usb_device *device, int timeout);
211 unsigned int timeout);
220 unsigned int timeout);
/system/extras/tests/timetest/
Drtc_test.cpp103 int timeout; in rtc_rollover() local
104 for (timeout = timeout_num; timeout && (roll.tm_year == save.tm_year); --timeout) { in rtc_rollover()
141 for (timeout = timeout_num; timeout && (roll.tm_year == tm.tm_year); --timeout) { in rtc_rollover()
146 EXPECT_LT(timeout_num * 5 / 100, timeout); in rtc_rollover()
147 EXPECT_GT(timeout_num * 95 / 100, timeout); in rtc_rollover()
/system/media/audio_utils/include/audio_utils/
Dfutex.h35 int sys_futex(void *addr1, int op, int val1, const struct timespec *timeout, void *addr2, in sys_futex() argument
39 return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); in sys_futex()
45 (void) timeout; in sys_futex()
Dfifo.h277 const struct timespec *timeout = NULL) = 0;
381 ssize_t write(const void *buffer, size_t count, const struct timespec *timeout = NULL);
385 const struct timespec *timeout = NULL);
508 ssize_t read(void *buffer, size_t count, const struct timespec *timeout = NULL,
513 const struct timespec *timeout = NULL);
527 ssize_t obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout,
/system/bt/vendor_libs/linux/interface/
Dasync_fd_watcher.cc52 const std::chrono::milliseconds timeout, in ConfigureTimeout() argument
58 timeout_ms_ = timeout; in ConfigureTimeout()
136 struct timeval timeout; in ThreadRoutine() local
139 timeout.tv_sec = timeout_ms_.count() / 1000; in ThreadRoutine()
140 timeout.tv_usec = (timeout_ms_.count() % 1000) * 1000; in ThreadRoutine()
141 timeout_ptr = &timeout; in ThreadRoutine()
/system/chre/platform/linux/include/chre/target_platform/
Dcondition_variable_impl.h34 inline bool ConditionVariable::wait_for(Mutex& mutex, Nanoseconds timeout) { in wait_for() argument
36 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); in wait_for()
37 return (result != std::cv_status::timeout); in wait_for()
/system/bt/stack/test/
Dstack_btu_test.cc41 struct timespec timeout; in wait() local
42 clock_gettime(CLOCK_REALTIME, &timeout); in wait()
43 timeout.tv_sec += seconds; in wait()
49 if (sem_timedwait(&sem, &timeout) == -1 && !callback.is_null()) { in wait()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp82 struct timeval timeout; in debuggerd_trigger_dump() local
83 populate_timeval(&timeout, remaining); in debuggerd_trigger_dump()
85 if (setsockopt(sockfd, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) != 0) { in debuggerd_trigger_dump()
89 if (setsockopt(sockfd, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)) != 0) { in debuggerd_trigger_dump()
/system/bt/service/common/bluetooth/
Dadvertise_settings.cc21 AdvertiseSettings::AdvertiseSettings(Mode mode, base::TimeDelta timeout, in AdvertiseSettings() argument
25 timeout_(timeout), in AdvertiseSettings()
Dadvertise_settings.h64 AdvertiseSettings(Mode mode, base::TimeDelta timeout,
78 const base::TimeDelta& timeout() const { return timeout_; } in timeout() function
/system/core/libusbhost/
Dusbhost.c457 char* usb_device_get_string(struct usb_device *device, int id, int timeout) in usb_device_get_string() argument
474 timeout); in usb_device_get_string()
484 timeout); in usb_device_get_string()
499 char* usb_device_get_manufacturer_name(struct usb_device *device, int timeout) in usb_device_get_manufacturer_name() argument
502 return usb_device_get_string(device, desc->iManufacturer, timeout); in usb_device_get_manufacturer_name()
505 char* usb_device_get_product_name(struct usb_device *device, int timeout) in usb_device_get_product_name() argument
508 return usb_device_get_string(device, desc->iProduct, timeout); in usb_device_get_product_name()
517 char* usb_device_get_serial(struct usb_device *device, int timeout) in usb_device_get_serial() argument
520 return usb_device_get_string(device, desc->iSerialNumber, timeout); in usb_device_get_serial()
588 unsigned int timeout) in usb_device_control_transfer() argument
[all …]
/system/core/logd/
DLogReader.cpp75 uint64_t timeout = 0; in onDataAvailable() local
79 timeout = atol(cp + sizeof(_timeout) - 1) * NS_PER_SEC + in onDataAvailable()
133 if (nonBlock && (sequence != log_time::EPOCH) && timeout) { in onDataAvailable()
200 logMask, (int)pid, sequence.nsec(), timeout); in onDataAvailable()
202 FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence, timeout); in onDataAvailable()
/system/core/healthd/
Dhealthd_common.cpp238 int timeout = awake_poll_interval; in healthd_mainloop() local
248 if (timeout < 0 || (mode_timeout > 0 && mode_timeout < timeout)) in healthd_mainloop()
249 timeout = mode_timeout; in healthd_mainloop()
250 nevents = epoll_wait(epollfd, events, eventct, timeout); in healthd_mainloop()
/system/bt/stack/rfcomm/
Drfc_utils.cc225 void rfc_timer_start(tRFC_MCB* p_mcb, uint16_t timeout) { in rfc_timer_start() argument
226 RFCOMM_TRACE_EVENT("%s - timeout:%d seconds", __func__, timeout); in rfc_timer_start()
228 period_ms_t interval_ms = timeout * 1000; in rfc_timer_start()
253 void rfc_port_timer_start(tPORT* p_port, uint16_t timeout) { in rfc_port_timer_start() argument
254 RFCOMM_TRACE_EVENT("%s - timeout:%d seconds", __func__, timeout); in rfc_port_timer_start()
256 period_ms_t interval_ms = timeout * 1000; in rfc_port_timer_start()

123456