Home
last modified time | relevance | path

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

123456789

/device/generic/goldfish-opengl/android-emu/android/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/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DSocketServer.py194 timeout = None variable in BaseServer
260 timeout = self.socket.gettimeout()
261 if timeout is None:
262 timeout = self.timeout
263 elif self.timeout is not None:
264 timeout = min(timeout, self.timeout)
265 fd_sets = select.select([self], [], [], timeout)
499 timeout = 300 variable in ForkingMixIn
676 timeout = None variable in StreamRequestHandler
684 if self.timeout is not None:
[all …]
Dtelnetlib.py188 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
198 self.timeout = timeout
209 self.open(host, port, timeout)
211 def open(self, host, port=0, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
224 self.timeout = timeout
225 self.sock = socket.create_connection((host, port), timeout)
282 def read_until(self, match, timeout=None): argument
300 if timeout is not None:
301 s_args = s_args + (timeout,)
314 if timeout is not None:
[all …]
DQueue.py107 def put(self, item, block=True, timeout=None): argument
124 elif timeout is None:
127 elif timeout < 0:
130 endtime = _time() + timeout
150 def get(self, block=True, timeout=None): argument
166 elif timeout is None:
169 elif timeout < 0:
172 endtime = _time() + timeout
Durllib2.py122 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
126 return _opener.open(url, data, timeout)
376 def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
385 req.timeout = timeout
619 return self.parent.open(new, timeout=req.timeout)
741 return self.parent.open(req, timeout=req.timeout)
872 return self.parent.open(req, timeout=req.timeout)
968 resp = self.parent.open(req, timeout=req.timeout)
1140 h = http_class(host, timeout=req.timeout) # will parse host:port
1379 fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
[all …]
Dasyncore.py125 def poll(timeout=0.0, map=None): argument
140 time.sleep(timeout)
144 r, w, e = select.select(r, w, e, timeout)
169 def poll2(timeout=0.0, map=None): argument
173 if timeout is not None:
175 timeout = int(timeout*1000)
190 r = pollster.poll(timeout)
203 def loop(timeout=30.0, use_poll=False, map=None, count=None): argument
214 poll_fun(timeout, map)
218 poll_fun(timeout, map)
Dsmtplib.py228 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
239 self.timeout = timeout
272 def _get_socket(self, port, host, timeout): argument
277 return socket.create_connection((port, host), timeout)
302 self.sock = self._get_socket(host, port, self.timeout)
764 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
767 SMTP.__init__(self, host, port, local_hostname, timeout)
769 def _get_socket(self, host, port, timeout): argument
772 new_socket = socket.create_connection((host, port), timeout)
Dftplib.py114 timeout=_GLOBAL_DEFAULT_TIMEOUT): argument
115 self.timeout = timeout
121 def connect(self, host='', port=0, timeout=-999): argument
130 if timeout != -999:
131 self.timeout = timeout
132 self.sock = socket.create_connection((self.host, self.port), self.timeout)
298 if self.timeout is not _GLOBAL_DEFAULT_TIMEOUT:
299 sock.settimeout(self.timeout)
327 conn = socket.create_connection((host, port), self.timeout)
352 if self.timeout is not _GLOBAL_DEFAULT_TIMEOUT:
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/
Dxf-osal.h106 static inline int __xf_wait(xf_wait_t *w, u32 timeout) in __xf_wait() argument
113 if (!timeout) in __xf_wait()
123 ts.tv_sec = tv.tv_sec + timeout / 1000; in __xf_wait()
124 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000; in __xf_wait()
135 #define __xf_wait(w, timeout) \ argument
139 __r = (__xf_wait)(w, timeout); \
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/
Dxf-osal.h100 static inline int __xf_wait(xf_wait_t *w, u32 timeout)
107 if (!timeout)
117 ts.tv_sec = tv.tv_sec + timeout / 1000;
118 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000;
129 #define __xf_wait(w, timeout) \
133 __r = (__xf_wait)(w, timeout); \
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DSocketServer.py204 timeout = None variable in BaseServer
271 timeout = self.socket.gettimeout()
272 if timeout is None:
273 timeout = self.timeout
274 elif self.timeout is not None:
275 timeout = min(timeout, self.timeout)
276 fd_sets = _eintr_retry(select.select, [self], [], [], timeout)
514 timeout = 300 variable in ForkingMixIn
692 timeout = None variable in StreamRequestHandler
700 if self.timeout is not None:
[all …]
/device/linaro/hikey/bluetooth/
Dasync_fd_watcher.cc50 const std::chrono::milliseconds timeout, in ConfigureTimeout() argument
56 timeout_ms_ = timeout; in ConfigureTimeout()
125 struct timeval timeout; in ThreadRoutine() local
128 timeout.tv_sec = timeout_ms_.count() / 1000; in ThreadRoutine()
129 timeout.tv_usec = (timeout_ms_.count() % 1000) * 1000; in ThreadRoutine()
130 timeout_ptr = &timeout; in ThreadRoutine()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_smtplib.py26 except socket.timeout:
93 smtp = smtplib.SMTP(HOST, self.port, timeout=None)
100 smtp = smtplib.SMTP(HOST, self.port, timeout=30)
127 except socket.timeout:
182 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
186 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
192 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
199 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
206 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
215 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
[all …]
Dtest_urllib2net.py214 if isinstance(err[0], socket.timeout):
224 except socket.timeout:
244 with test_support.transient_internet(url, timeout=None):
265 u = _urlopen_with_retry(url, timeout=None)
273 u = _urlopen_with_retry(url, timeout=120)
280 with test_support.transient_internet(self.FTP_HOST, timeout=None):
299 u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
306 u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
Dtest_asynchat.py122 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
153 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
174 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
186 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
196 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
207 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
219 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
/device/generic/goldfish/radio/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/guest/hals/ril/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/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-fio.c84 int xf_ipc_wait(xf_proxy_ipc_data_t *ipc, u32 timeout) in xf_ipc_wait() argument
95 (timeout ? tv.tv_sec = timeout / 1000, tv.tv_usec = (timeout % 1000) * 1000 : 0); in xf_ipc_wait()
99 select(fd+1,&rfds,NULL,NULL,(timeout? &tv: NULL)); in xf_ipc_wait()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
Dselectmodule.c214 double timeout; in select_select() local
233 timeout = PyFloat_AsDouble(tout); in select_select()
234 if (timeout == -1 && PyErr_Occurred()) in select_select()
236 if (timeout > (double)LONG_MAX) { in select_select()
241 seconds = (long)timeout; in select_select()
242 timeout = timeout - (double)seconds; in select_select()
244 tv.tv_usec = (long)(timeout * 1E6); in select_select()
497 int timeout = 0, poll_result, i, j; in poll_poll() local
506 timeout = -1; in poll_poll()
516 timeout = PyInt_AsLong(tout); in poll_poll()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dselectmodule.c214 double timeout; in select_select() local
233 timeout = PyFloat_AsDouble(tout); in select_select()
234 if (timeout == -1 && PyErr_Occurred()) in select_select()
236 if (timeout > (double)LONG_MAX) { in select_select()
241 seconds = (long)timeout; in select_select()
242 timeout = timeout - (double)seconds; in select_select()
244 tv.tv_usec = (long)(timeout * 1E6); in select_select()
497 int timeout = 0, poll_result, i, j; in poll_poll() local
506 timeout = -1; in poll_poll()
516 timeout = PyInt_AsLong(tout); in poll_poll()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Drivers/I2c/MvI2cDxe/
DMvI2cDxe.h169 IN UINTN timeout,
179 IN UINTN timeout
202 IN UINTN timeout
210 IN UINTN timeout
237 IN UINTN timeout
/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/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
Dselectmodule.c214 double timeout; in select_select() local
233 timeout = PyFloat_AsDouble(tout); in select_select()
234 if (timeout == -1 && PyErr_Occurred()) in select_select()
236 if (timeout > (double)LONG_MAX) { in select_select()
241 seconds = (long)timeout; in select_select()
242 timeout = timeout - (double)seconds; in select_select()
244 tv.tv_usec = (long)(timeout * 1E6); in select_select()
519 int timeout = 0, poll_result, i, j; in poll_poll() local
528 timeout = -1; in poll_poll()
538 timeout = _PyInt_AsInt(tout); in poll_poll()
[all …]
/device/generic/goldfish/network/wifi_forwarder/
Dpoller.cpp42 auto timeout = deadline - now; in calculateTimeout() local
44 auto seconds = duration_cast<std::chrono::seconds>(timeout); in calculateTimeout()
46 auto nanos = duration_cast<std::chrono::nanoseconds>(timeout - seconds); in calculateTimeout()

123456789