Home
last modified time | relevance | path

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

1234567

/system/core/watchdogd/
Dwatchdogd.cpp45 int timeout = interval + margin; in main() local
46 int ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); in main()
48 PLOG(ERROR) << "Failed to set timeout to " << timeout; in main()
49 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); in main()
53 if (timeout > margin) { in main()
54 interval = timeout - margin; in main()
59 << "timeout " << timeout << ", interval " << interval << ", margin " in main()
/system/netd/server/
DIdletimerController.cpp141 uint32_t timeout, in modifyInterfaceIdletimer() argument
152 addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
156 addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
164 uint32_t timeout, in addInterfaceIdletimer() argument
166 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); in addInterfaceIdletimer()
170 uint32_t timeout, in removeInterfaceIdletimer() argument
172 return modifyInterfaceIdletimer(IptOpDelete, iface, timeout, classLabel); in removeInterfaceIdletimer()
DIdletimerController.h29 int addInterfaceIdletimer(const char *iface, uint32_t timeout,
31 int removeInterfaceIdletimer(const char *iface, uint32_t timeout,
42 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout,
/system/core/gatekeeperd/include/gatekeeper/
DGateKeeperResponse.h34 GateKeeperResponse(ResponseCode response_code, int32_t timeout = 0,
37 timeout_(timeout), in response_code_()
48 static GateKeeperResponse retry(int32_t timeout) { in retry() argument
49 return GateKeeperResponse(ResponseCode::RETRY, timeout); in retry()
70 int32_t timeout() const { return timeout_; } in timeout() function
72 void timeout(int32_t timeout) { timeout_ = timeout; } in timeout() function
/system/extras/boottime_tools/bootio/
Dbootio.cpp67 int timeout = 0; in StartDataCollection() local
79 timeout = atoi(components.at(LOG_TIMEOUT_INDEX).c_str()); in StartDataCollection()
86 if (timeout <= 0 || samples <= 0) { in StartDataCollection()
91 if (samples > timeout || samples > LOG_MAX_SAMPLES || timeout > LOG_MAX_TIMEOUT) { in StartDataCollection()
92 LOG(ERROR) << "Bad values for bootio. timeout=" << timeout << in StartDataCollection()
97 LOG(INFO) << "Boot I/O: collecting data. samples=" << samples << "timeout=" << timeout; in StartDataCollection()
99 timeout, samples); in StartDataCollection()
105 collector->StartDataCollection(timeout, samples); in StartDataCollection()
/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/extras/simpleperf/
DIOEventLoop.cpp29 timeval timeout; member
34 : loop(loop), e(nullptr), timeout({}), callback(callback), enabled(false) {} in IOEvent()
147 IOEventRef IOEventLoop::AddEvent(int fd_or_sig, int16_t events, timeval* timeout, in AddEvent() argument
159 if (event_add(e->e, timeout) != 0) { in AddEvent()
163 if (timeout != nullptr) { in AddEvent()
164 e->timeout = *timeout; in AddEvent()
208 timeval* timeout = in EnableEvent() local
209 (ref->timeout.tv_sec != 0 || ref->timeout.tv_usec != 0) ? &ref->timeout : nullptr; in EnableEvent()
210 if (event_add(ref->e, timeout) != 0) { in EnableEvent()
/system/media/audio_utils/tests/
Dfifo_threads.cpp40 struct timespec timeout; in input_routine() local
41 timeout.tv_sec = 30; in input_routine()
42 timeout.tv_nsec = 0; in input_routine()
44 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); in input_routine()
51 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine()
75 struct timespec timeout; in output_routine() local
76 timeout.tv_sec = 60; in output_routine()
77 timeout.tv_nsec = 0; in output_routine()
79 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine()
/system/security/keystore2/watchdog/src/
Dlib.rs67 timeout: Duration, field
79 let timeout = r.deadline.saturating_duration_since(now); in update_overdue_and_find_next_timeout() localVariable
80 if timeout == Duration::new(0, 0) { in update_overdue_and_find_next_timeout()
86 if timeout < nt { in update_overdue_and_find_next_timeout()
87 Some(timeout) in update_overdue_and_find_next_timeout()
92 None => Some(timeout), in update_overdue_and_find_next_timeout()
205 pub fn new(timeout: Duration) -> Arc<Self> { in new()
212 timeout, in new()
225 timeout: Duration, in watch_with_optional()
227 let deadline = Instant::now().checked_add(timeout); in watch_with_optional()
[all …]
/system/core/libusbhost/include/usbhost/
Dusbhost.h158 int usb_device_get_string_ucs2(struct usb_device* device, int id, int timeout, void** ucs2_out,
173 char* usb_device_get_string(struct usb_device *device, int id, int timeout);
178 char* usb_device_get_manufacturer_name(struct usb_device *device, int timeout);
183 char* usb_device_get_product_name(struct usb_device *device, int timeout);
192 char* usb_device_get_serial(struct usb_device *device, int timeout);
237 unsigned int timeout);
246 unsigned int timeout);
/system/media/audio_utils/
Dfifo.cpp181 const struct timespec *timeout) in write() argument
185 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
201 const struct timespec *timeout) in obtain() argument
223 if (count == 0 || availToWrite > 0 || timeout == NULL || in obtain()
224 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { in obtain()
237 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
250 if (timeout->tv_sec == LONG_MAX) { in obtain()
251 timeout = NULL; in obtain()
253 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
279 timeout = NULL; in obtain()
[all …]
Dfifo_index.cpp49 int audio_utils_fifo_index::wait(int op, uint32_t expected, const struct timespec *timeout) in wait() argument
51 return sys_futex(&mIndex, op, expected, timeout, NULL, 0); in wait()
165 int RefIndexCachedLoadAcquireDeferredWait::wait(int op, const struct timespec *timeout)
170 int err = mIndex.wait(op, mValue /*expected*/, timeout);
/system/extras/tests/timetest/
Drtc_test.cpp105 int timeout; in rtc_rollover() local
106 for (timeout = timeout_num; timeout && (roll.tm_year == save.tm_year); --timeout) { in rtc_rollover()
143 for (timeout = timeout_num; timeout && (roll.tm_year == tm.tm_year); --timeout) { in rtc_rollover()
148 EXPECT_LT(timeout_num * 5 / 100, timeout); in rtc_rollover()
149 EXPECT_GT(timeout_num * 95 / 100, timeout); in rtc_rollover()
/system/chre/chpp/platform/linux/
Dnotifier.c72 struct timespec timeout; in chppPlatformNotifierTimedWait() local
80 timeout = absTime; in chppPlatformNotifierTimedWait()
81 timeout.tv_sec += timeoutS; in chppPlatformNotifierTimedWait()
82 timeout.tv_nsec += timeoutNs; in chppPlatformNotifierTimedWait()
85 (CHPP_TIMESPEC_TO_NS(absTime) < CHPP_TIMESPEC_TO_NS(timeout))) { in chppPlatformNotifierTimedWait()
/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.h287 const struct timespec *timeout = NULL) = 0;
395 ssize_t write(const void *buffer, size_t count, const struct timespec *timeout = NULL);
399 const struct timespec *timeout = NULL);
522 ssize_t read(void *buffer, size_t count, const struct timespec *timeout = NULL,
527 const struct timespec *timeout = NULL);
541 ssize_t obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout,
/system/gatekeeper/
Dgatekeeper.cpp65 uint32_t timeout = 0; in Enroll() local
82 timeout = ComputeRetryTimeout(&record); in Enroll()
87 if (throttle && timeout > 0) { in Enroll()
88 response->SetRetryTimeout(timeout); in Enroll()
137 uint32_t timeout = 0; in Verify() local
154 timeout = ComputeRetryTimeout(&record); in Verify()
171 if (throttle && timeout > 0) { in Verify()
172 response->SetRetryTimeout(timeout); in Verify()
330 uint32_t timeout = ComputeRetryTimeout(record); in ThrottleRequest() local
332 if (timeout > 0) { in ThrottleRequest()
[all …]
/system/chre/platform/linux/include/chre/target_platform/
Dcondition_variable_impl.h36 inline bool ConditionVariable::wait_for(Mutex &mutex, Nanoseconds timeout) { in wait_for() argument
38 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); in wait_for()
39 return (result != std::cv_status::timeout); in wait_for()
/system/chre/java/test/utils/src/com/google/android/utils/chre/
DContextHubBroadcastReceiver.java69 long timeout, in pollIntentEvent() argument
76 event = sQueue.poll(timeout, unit); in pollIntentEvent()
115 public static void assertNoIntentEventReceived(long timeout, TimeUnit unit) { in assertNoIntentEventReceived() argument
118 event = sQueue.poll(timeout, unit); in assertNoIntentEventReceived()
/system/core/init/
Depoll.cpp84 Result<int> Epoll::Wait(std::optional<std::chrono::milliseconds> timeout) { in Wait() argument
86 if (timeout && timeout->count() < INT_MAX) { in Wait()
87 timeout_ms = timeout->count(); in Wait()
/system/update_engine/scripts/
Dota_stress_test.py58 def PerformTest(otafile: Path, resumes: int, timeout: int):
85 ota_cmd, stderr=subprocess.STDOUT, timeout=timeout).decode()
117 PerformTest(args.otafile, args.resumes, args.timeout)
/system/librustutils/
Dsystem_properties.rs194 pub fn wait(&mut self, timeout: Option<Duration>) -> Result<()> { in wait()
195 let until = timeout.map(|timeout| Instant::now() + timeout); in wait()
203 timeout: Option<Duration>, in wait_for_value()
205 let until = timeout.map(|timeout| Instant::now() + timeout); in wait_for_value()
/system/core/libusbhost/
Dusbhost.c482 int usb_device_get_string_ucs2(struct usb_device* device, int id, int timeout, void** ucs2_out, in usb_device_get_string_ucs2() argument
498 timeout); in usb_device_get_string_ucs2()
507 (USB_DT_STRING << 8) | id, languages[i], response, sizeof(response), timeout); in usb_device_get_string_ucs2()
531 char* usb_device_get_string(struct usb_device* device, int id, int timeout) { in usb_device_get_string() argument
535 if (usb_device_get_string_ucs2(device, id, timeout, (void**)&ascii_string, &raw_string_len) < 0) in usb_device_get_string()
552 char* usb_device_get_manufacturer_name(struct usb_device *device, int timeout) in usb_device_get_manufacturer_name() argument
555 return usb_device_get_string(device, desc->iManufacturer, timeout); in usb_device_get_manufacturer_name()
558 char* usb_device_get_product_name(struct usb_device *device, int timeout) in usb_device_get_product_name() argument
561 return usb_device_get_string(device, desc->iProduct, timeout); in usb_device_get_product_name()
570 char* usb_device_get_serial(struct usb_device *device, int timeout) in usb_device_get_serial() argument
[all …]
/system/memory/lmkd/
Dwatchdog.h30 Watchdog(int timeout, void (*callback)()) : in Watchdog() argument
31 timeout_(timeout), timer_created_(false), callback_(callback) {} in Watchdog()
/system/chre/chpp/test/
Dfake_link.cpp43 bool FakeLink::waitForTxPacket(std::chrono::milliseconds timeout) { in waitForTxPacket() argument
48 std::cv_status status = mCondVar.wait_until(lock, now + timeout); in waitForTxPacket()
49 if (status == std::cv_status::timeout) { in waitForTxPacket()

1234567