Home
last modified time | relevance | path

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

12345678910

/device/generic/goldfish-opengl/android-emu/aemu/base/threads/
DAndroidWorkPool.cpp69 bool waitAllLocked(WorkPool::TimeoutUs timeout) { in waitAllLocked() argument
72 timeout); in waitAllLocked()
75 bool waitAnyLocked(WorkPool::TimeoutUs timeout) { in waitAnyLocked() argument
78 timeout); in waitAnyLocked()
93 bool doWait(WorkPool::TimeoutUs timeout) { in doWait() argument
94 if (timeout == ~0ULL) { in doWait()
99 return mCv.timedWait(&mLock, getDeadline(timeout)); in doWait()
128 … bool conditionalTimeoutLocked(std::function<bool()> conditionFunc, WorkPool::TimeoutUs timeout) { in conditionalTimeoutLocked() argument
130 WorkPool::TimeoutUs currTimeout = timeout; in conditionalTimeoutLocked()
384 bool waitAny(WorkPool::WaitGroupHandle waitGroupHandle, WorkPool::TimeoutUs timeout) { in waitAny() argument
[all …]
DAndroidWorkPool.h42 bool waitAny(WaitGroupHandle waitGroup, TimeoutUs timeout = -1);
43 bool waitAll(WaitGroupHandle waitGroup, TimeoutUs timeout = -1);
/device/google/cuttlefish/host/libs/graphics_detector/
Dsubprocess.cpp75 const std::string& message, pid_t pid, std::chrono::milliseconds timeout) { in WaitForChildWithTimeoutFallback() argument
83 if (!cv.wait_for(lock, timeout, [&] { return child_exited; })) { in WaitForChildWithTimeoutFallback()
87 << message << " after " << timeout.count() in WaitForChildWithTimeoutFallback()
111 std::chrono::milliseconds timeout) { in WaitForChildWithTimeout() argument
121 int ret = TEMP_FAILURE_RETRY(poll(&poll_info, 1, timeout.count())); in WaitForChildWithTimeout()
132 << " did not complete within " << timeout.count() in WaitForChildWithTimeout()
145 std::chrono::milliseconds timeout) { in DoWithSubprocessCheck() argument
161 result = WaitForChildWithTimeout(message, pid, std::move(pidfd), timeout); in DoWithSubprocessCheck()
163 result = WaitForChildWithTimeoutFallback(message, pid, timeout); in DoWithSubprocessCheck()
/device/google/gs-common/gs_watchdogd/
Dgs_watchdogd.cpp65 int timeout = interval + margin; in main() local
66 ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); in main()
68 PLOG(ERROR) << "Failed to set timeout to " << timeout; in main()
69 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); in main()
73 if (timeout > margin) { in main()
74 interval = timeout - margin; in main()
79 << "timeout " << timeout << ", interval " << interval << ", margin " in main()
/device/google/cuttlefish/guest/hals/ril/reference-libril/
Dril_event.cpp86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event()
170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts()
230 (int)tev->timeout.tv_sec, (int)tev->timeout.tv_usec); in calcNextTimeout()
231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout()
232 timersub(&tev->timeout, &now, tv); in calcNextTimeout()
299 timeradd(&now, tv, &ev->timeout); in ril_timer_add()
302 while (timercmp(&list->timeout, &ev->timeout, < ) in ril_timer_add()
/device/google/cuttlefish/tests/wmediumd_control/src/com/android/cuttlefish/tests/
DWmediumdControlE2eTest.java82 …private CommandResult runWmediumdCommand(long timeout, String... command) throws FileNotFoundExcep… in runWmediumdCommand() argument
95 return runner.run(timeout, fullCommand.toArray(new String[0])); in runWmediumdCommand()
154 @Test(timeout = 60 * 1000)
161 @Test(timeout = 60 * 1000)
184 @Test(timeout = 60 * 1000)
214 @Test(timeout = 60 * 1000)
232 @Test(timeout = 60 * 1000)
/device/google/cuttlefish/host/commands/cvd/
Dhandle_reset.cpp100 static Result<void> TimedKillCvdServer(CvdClient& client, const int timeout) { in TimedKillCvdServer() argument
132 LOG(ERROR) << "Sleeping " << timeout << " seconds, and " in TimedKillCvdServer()
135 std::this_thread::sleep_for(operator""s((unsigned long long)timeout)); in TimedKillCvdServer()
144 waiting_time.tv_sec += timeout; in TimedKillCvdServer()
/device/google/contexthub/util/stm32_flash/
Dspi.c97 uint16_t timeout = 65535; in spi_read_ack() local
114 timeout --; in spi_read_ack()
115 } while (buffer[0] != CMD_ACK && buffer[0] != CMD_NACK && timeout > 0); in spi_read_ack()
117 if (buffer[0] != CMD_ACK && buffer[0] != CMD_NACK && timeout == 0) in spi_read_ack()
/device/google/trout/hal/vehicle/2.0/
DUtils.h52 bool WaitForReadWithTimeout(int fd, struct timeval&& timeout);
56 bool WaitForReadWithTimeout(int fd, duration_t timeout) { in WaitForReadWithTimeout() argument
57 return WaitForReadWithTimeout(fd, TimeValFromChronoDuration(timeout)); in WaitForReadWithTimeout()
/device/google/cuttlefish/host/commands/run_cvd/launch/
Dstreamer.cpp237 struct timeval timeout; in Commands() local
238 timeout.tv_sec = 3; in Commands()
239 timeout.tv_usec = 0; in Commands()
240 CHECK(host_socket->SetSockOpt(SOL_SOCKET, SO_RCVTIMEO, &timeout, in Commands()
241 sizeof(timeout)) == 0) in Commands()
/device/generic/goldfish-opengl/android-emu/aemu/base/
DAndroidHealthMonitor.cpp56 uint64_t timeout, std::optional<Id> parentId) { in startMonitoringTask() argument
58 if (timeout < intervalMs) { in startMonitoringTask()
60 (unsigned long long)timeout, (unsigned long long) intervalMs, in startMonitoringTask()
62 timeout = intervalMs * 2; in startMonitoringTask()
72 .timeoutThreshold = Duration(std::chrono::milliseconds(timeout)), in startMonitoringTask()
/device/generic/goldfish/dhcp/client/
Ddhcpclient.cpp221 uint32_t timeout = calculateTimeoutMillis(); in waitAndReceive() local
226 ts.tv_sec = timeout / 1000; in waitAndReceive()
227 ts.tv_nsec = (timeout - ts.tv_sec * 1000) * 1000000; in waitAndReceive()
292 uint64_t end = startedAt + timeout; in waitAndReceive()
298 timeout = end - currentTime; in waitAndReceive()
/device/google/cuttlefish/common/libs/fs/
Dshared_fd.cpp197 struct timeval* timeout) { in ConnectWithTimeout() argument
231 int select_res = select(fd_ + 1, nullptr, &fdset, nullptr, timeout); in ConnectWithTimeout()
285 SharedFDSet* error_set, struct timeval* timeout) { in Select() argument
304 select(max_index, &readfds, &writefds, &errorfds, timeout)); in Select()
312 int SharedFD::Poll(std::vector<PollSharedFd>& fds, int timeout) { in Poll() argument
313 return Poll(fds.data(), fds.size(), timeout); in Poll()
316 int SharedFD::Poll(PollSharedFd* fds, size_t num_fds, int timeout) { in Poll() argument
323 int ret = poll(native_pollfds.data(), native_pollfds.size(), timeout); in Poll()
494 struct timeval timeout = {timeout_seconds, 0}; in SocketLocalClient() local
496 if (rval->ConnectWithTimeout(casted_addr, addrlen, &timeout) == -1) { in SocketLocalClient()
/device/google/sunfish/usb/gadget/
DUsbGadget.cpp241 uint64_t timeout) { in setupFunctions() argument
298 bool pullup = monitorFfs.waitForPullUp(timeout); in setupFunctions()
310 uint64_t timeout) { in setCurrentUsbFunctions() argument
342 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
/device/google/bramble/usb/gadget/
DUsbGadget.cpp241 uint64_t timeout) { in setupFunctions() argument
298 bool pullup = monitorFfs.waitForPullUp(timeout); in setupFunctions()
310 uint64_t timeout) { in setCurrentUsbFunctions() argument
342 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
/device/google/coral/usb/gadget/
DUsbGadget.cpp230 uint64_t timeout) { in setupFunctions() argument
287 bool pullup = monitorFfs.waitForPullUp(timeout); in setupFunctions()
299 uint64_t timeout) { in setCurrentUsbFunctions() argument
331 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
/device/google/barbet/usb/gadget/
DUsbGadget.cpp241 uint64_t timeout) { in setupFunctions() argument
298 bool pullup = monitorFfs.waitForPullUp(timeout); in setupFunctions()
310 uint64_t timeout) { in setCurrentUsbFunctions() argument
342 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
/device/google/redfin/usb/gadget/
DUsbGadget.cpp241 uint64_t timeout) { in setupFunctions() argument
298 bool pullup = monitorFfs.waitForPullUp(timeout); in setupFunctions()
310 uint64_t timeout) { in setCurrentUsbFunctions() argument
342 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
/device/google/coral/
Dinit.insmod.sh14 timeout="${2:-5}"
16 expiry=$(($(date "+%s")+timeout))
/device/google/sunfish/
Dinit.insmod.sh14 timeout="${2:-5}"
16 expiry=$(($(date "+%s")+timeout))
/device/google/redbull/
Dinit.insmod.sh14 timeout="${2:-5}"
16 expiry=$(($(date "+%s")+timeout))
/device/google/cuttlefish/host/libs/allocd/
Dresource_manager.cpp243 struct timeval timeout; in JsonServer() local
244 timeout.tv_sec = 10; in JsonServer()
245 timeout.tv_usec = 0; in JsonServer()
247 int err = client_socket->SetSockOpt(SOL_SOCKET, SO_RCVTIMEO, &timeout, in JsonServer()
248 sizeof(timeout)); in JsonServer()
/device/linaro/poplar/wifi/wpa_supplicant_8_lib/
Ddriver_cmd_wext.c45 int timeout = 10; /* In case scan A and B bands it can be long */ in wpa_driver_wext_set_scan_timeout() local
55 timeout = 30; in wpa_driver_wext_set_scan_timeout()
58 timeout); in wpa_driver_wext_set_scan_timeout()
60 eloop_register_timeout(timeout, 0, wpa_driver_wext_scan_timeout, drv, in wpa_driver_wext_set_scan_timeout()
/device/google/gs-common/insmod/
Dinsmod.sh41 timeout="${2:-5}"
43 expiry=$(($(date "+%s")+timeout))
/device/google/cuttlefish/host/libs/command_util/
Dutil.cc92 struct timeval timeout = {timeout_seconds, 0}; in WaitForRead() local
94 timeout_seconds <= 0 ? nullptr : &timeout); in WaitForRead()

12345678910