/external/dhcpcd-6.8.2/compat/ |
pollts.c | 45 int r, timeout; local 49 timeout = -1; 53 timeout = INT_MAX; 55 timeout = ts->tv_sec * 1000 + (ts->tv_nsec + 999999) / 1000000; 58 r = poll(fds, nfds, timeout);
|
/external/libcups/cups/ |
backchannel.c | 35 double timeout); 41 * Reads up to "bytes" bytes from the backchannel/backend. The "timeout" 51 double timeout) /* I - Timeout in seconds, typically 0.0 to poll */ 54 struct timeval tval; /* Timeout value */ 64 cups_setup(&input, &tval, timeout); 66 if (timeout < 0.0) 74 return (-1); /* Timeout! */ 91 * Writes "bytes" bytes to the backchannel/filter. The "timeout" parameter 103 double timeout) /* I - Timeout in seconds, typically 1.0 * [all...] |
/external/adhd/cras/src/server/ |
cras_dbus.c | 82 struct DBusTimeout *timeout = data; local 88 dbus_timeout_get_interval(timeout), 89 dbus_timeout_callback, timeout); 90 dbus_timeout_set_data(timeout, t, NULL); 92 if (!dbus_timeout_handle(timeout)) 93 syslog(LOG_WARNING, "Failed to handle D-Bus timeout."); 96 static dbus_bool_t dbus_timeout_add(DBusTimeout *timeout, void *arg) 99 struct cras_timer *t = dbus_timeout_get_data(timeout); 102 dbus_timeout_set_data(timeout, NULL, NULL); 106 if (dbus_timeout_get_enabled(timeout)) { [all...] |
/external/mdnsresponder/mDNSPosix/ |
ExampleClientApp.c | 53 struct timeval timeout; local 61 // 2. Set up the timeout. 63 // so we set an effectively infinite timeout 64 timeout.tv_sec = 0x3FFFFFFF; 65 timeout.tv_usec = 0; 67 // 3. Give the mDNSPosix layer a chance to add its information to the fd_set and timeout 68 mDNSPosixGetFDSet(m, &nfds, &readfds, &timeout); 71 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec); 72 result = select(nfds, &readfds, NULL, NULL, &timeout); [all...] |
/external/okhttp/okio/okio/src/main/java/okio/ |
Timeout.java | 30 * This class offers two complementary controls to define a timeout policy. 42 public class Timeout { 44 * An empty timeout that neither tracks nor detects timeouts. Use this when 48 public static final Timeout NONE = new Timeout() { 49 @Override public Timeout timeout(long timeout, TimeUnit unit) { 53 @Override public Timeout deadlineNanoTime(long deadlineNanoTime) { 69 public Timeout() { 80 public Timeout timeout(long timeout, TimeUnit unit) { method in class:Timeout [all...] |
/external/python/futures/ |
crawl.py | 28 def load_url(url, timeout): 29 kwargs = {'timeout': timeout} if sys.version_info >= (2, 6) else {} 32 def download_urls_sequential(urls, timeout=60): 36 url_to_content[url] = load_url(url, timeout=timeout) 41 def download_urls_with_executor(urls, executor, timeout=60): 44 future_to_url = dict((executor.submit(load_url, url, timeout), url)
|
/external/tpm2/ |
PolicyTicket.c | 16 // TPM_RC_EXPIRED timeout value in the ticket is in the past and the ticket has expired 17 // TPM_RC_SIZE timeout or cpHash has invalid size for the 27 UINT64 timeout; local 45 // Restore timeout data. The format of timeout buffer is TPM-specific. 46 // In this implementation, we simply copy the value of timeout to the 48 if(in->timeout.t.size != sizeof(UINT64)) 50 timeout = BYTE_ARRAY_TO_UINT64(in->timeout.t.buffer); 52 // Do the normal checks on the cpHashA and timeout value [all...] |
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/ |
CtsMockitoUtils.java | 31 public static VerificationMode within(long timeout) { 32 return new Within(timeout); 39 public Within(long timeout) { 40 mTimeout = timeout; 45 long timeout = mTimeout; local 49 while (timeout > 0) { 57 // Found our match within our timeout. Mark all invocations as verified 67 timeout -= TIME_SLICE;
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/testutils/ |
PollingCheck.java | 39 public PollingCheck(long timeout) { 40 mTimeout = timeout; 54 long timeout = mTimeout; local 55 while (timeout > 0) { 66 timeout -= TIME_SLICE; 69 fail("unexpected timeout"); 86 public static void waitFor(long timeout, final PollingCheckCondition condition) { 87 new PollingCheck(timeout) {
|
/system/core/init/ |
watchdogd.cpp | 54 int timeout = interval + margin; local 55 int ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); 57 PLOG(ERROR) << "Failed to set timeout to " << timeout; 58 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); 60 PLOG(ERROR) << "Failed to get timeout"; 62 if (timeout > margin) { 63 interval = timeout - margin; 67 LOG(WARNING) << "Adjusted interval to timeout returned by driver: " 68 << "timeout " << timeou [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
TimeoutResetActivity.java | 30 * Activity resets the screen timeout to its original timeout. Used devices without Device Admin. 34 /** Set the timeout to the default to reset the activity to if not specified. */ 37 * Empirically determined buffer time in milliseconds between setting short timeout time and 38 * resetting the timeout. 41 /** Short timeout to trigger screen off. */ 59 private static void setUserActivityTimeout(WindowManager.LayoutParams params, long timeout) { 61 getUserActivityTimeoutField(params).setLong(params, timeout); 62 Log.d(TAG, "UserActivityTimeout set to " + timeout); 75 // to restore timeout after shutof 101 long timeout = getIntent().getLongExtra(EXTRA_OLD_TIMEOUT, FALLBACK_TIMEOUT); local [all...] |
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/ |
__init__.py | 13 # Timeout interval constants. 32 def StartAgentTracing(self, config, timeout=None): 33 '''Starts running the trace for this agent. Stops with timeout if 34 not completed within timeout interval. 39 timeout: Timeout interval in seconds. 46 def StopAgentTracing(self, timeout=None): 48 Stops with timeout if not completed within timeout interval. 51 timeout: Timeout interval in seconds [all...] |
/external/ltp/testcases/kernel/syscalls/epoll2/src/ |
epoll.c | 21 #define __sys_epoll_wait(epfd, pevents, maxevents, timeout) _syscall4(int, epoll_wait, \ 22 int, epfd, struct epoll_event *, pevents, int, maxevents, int, timeout) 28 __sys_epoll_wait(epfd, pevents, maxevents, timeout)
|
/external/mesa3d/src/gallium/auxiliary/os/ |
os_time.h | 95 * Convert a relative timeout in nanoseconds into an absolute timeout, 96 * in other words, it returns current time + timeout. 102 os_time_get_absolute_timeout(uint64_t timeout); 109 * \param timeout timeout in ns, can be anything from 0 (no wait) to 114 os_wait_until_zero(volatile int *var, uint64_t timeout); 119 * The timeout is the absolute time when the waiting should stop. If it is 125 * \param timeout the time in ns when the waiting should stop 129 os_wait_until_zero_abs_timeout(volatile int *var, int64_t timeout); [all...] |
/frameworks/base/core/java/android/os/ |
ConditionVariable.java | 107 * timeout milliseconds have passed. 112 * @param timeout the maximum time to wait in milliseconds. 115 * because of the timeout. 117 public boolean block(long timeout) 122 if (timeout != 0) { 125 long end = now + timeout;
|
/hardware/qcom/display/msm8960/libgenlock/ |
genlock.h | 53 #define GENLOCK_MAX_TIMEOUT 1000 // Max 1s timeout 86 * read. An optional timeout value can be specified. 87 * By default, there is no timeout. 91 * @param: timeout value in ms. GENLOCK_MAX_TIMEOUT is the maximum timeout 97 int timeout); 111 * @param: timeout value for the wait. 114 genlock_status_t genlock_wait(native_handle_t *buffer_handle, int timeout); 120 * @param: timeout value for the wait. 124 int timeout); [all...] |
/system/media/audio_utils/include/audio_utils/ |
futex.h | 35 int sys_futex(void *addr1, int op, int val1, const struct timespec *timeout, void *addr2, 39 return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); 45 (void) timeout;
|
/external/wpa_supplicant_8/src/utils/ |
eloop_win.c | 55 struct dl_list timeout; member in struct:eloop_data 78 dl_list_init(&eloop.timeout); 241 struct eloop_timeout *timeout, *tmp; local 244 timeout = os_zalloc(sizeof(*timeout)); 245 if (timeout == NULL) 247 if (os_get_reltime(&timeout->time) < 0) { 248 os_free(timeout); 251 now_sec = timeout->time.sec; 252 timeout->time.sec += secs 295 struct eloop_timeout *timeout, *prev; local 318 struct eloop_timeout *timeout, *prev; local 542 struct eloop_timeout *timeout; local 652 struct eloop_timeout *timeout, *prev; local [all...] |
/bionic/libc/kernel/uapi/linux/netfilter/ |
xt_IDLETIMER.h | 24 __u32 timeout; member in struct:idletimer_tg_info
|
/bionic/libc/kernel/uapi/linux/ |
pg.h | 27 int timeout; member in struct:pg_write_hdr
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_ServerSocket.java | 29 public void setTimeout(int timeout);
|
/external/apache-http/src/org/apache/http/ |
HttpConnection.java | 74 * that by attempting a read with a very small timeout. Thus this 85 * Sets the socket timeout value. 87 * @param timeout timeout value in milliseconds 89 void setSocketTimeout(int timeout); 92 * Returns the socket timeout value. 94 * @return positive value in milliseconds if a timeout is set, 95 * <code>0</code> if timeout is disabled or <code>-1</code> if 96 * timeout is undefined.
|
/external/apache-http/src/org/apache/http/conn/ |
ClientConnectionRequest.java | 49 * the timeout expires, or the connection manager is 57 * @param timeout the timeout, 0 or negative for no timeout 58 * @param tunit the unit for the <code>timeout</code>, 59 * may be <code>null</code> only if there is no timeout 65 * in case of a timeout 69 ManagedClientConnection getConnection(long timeout, TimeUnit tunit)
|
/external/autotest/client/site_tests/firmware_TouchMTB/tools/ |
expect_scp | 5 # timeout duration of expect, i.e., 10 seconds. Hence, set a longer timeout. 6 set timeout 20 25 timeout { 26 send_error "Error: scp timeout!";
|
/external/autotest/server/cros/ |
tradefed_chromelogin.py | 28 @param board: optional parameter to extend timeout for login for slow 61 def login(self, timeout=None, raise_exception=False, verbose=False): 63 if not timeout: 64 timeout = self._timeout 72 timeout=timeout) 83 timeout=2 * timeout, 103 timeout = self._timeout 104 logging.info('Ensure Android is running (timeout=%d)...', timeout [all...] |