/external/jmdns/src/javax/jmdns/impl/ |
DNSStatefulObject.java | 25 * This class define a semaphore. On this multiple threads can wait the arrival of one event. Thread wait for a maximum defined by the timeout. 27 * Implementation note: this class is based on {@link java.util.concurrent.Semaphore} so that they can be released by the timeout timer. 50 * Blocks the current thread until the event arrives or the timeout expires. 52 * @param timeout 55 public void waitForEvent(long timeout) { 65 semaphore.tryAcquire(timeout, TimeUnit.MILLISECONDS); 379 public boolean waitForAnnounced(long timeout) { 381 _announcing.waitForEvent(timeout); 397 public boolean waitForCanceled(long timeout) { 399 _canceling.waitForEvent(timeout); [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
ServReqTestCase.java | 69 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { 85 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { 94 Timeout t = new Timeout(TIMEOUT);
|
/cts/tests/src/android/app/cts/ |
ActivityTestsBase.java | 168 boolean timeout = false; 173 timeout = true; 187 if (timeout) { 208 final String msg = mExpecting == null ? "Timeout" : "Timeout while expecting " + mExpecting;
|
/external/chromium/chrome/browser/extensions/ |
extension_idle_api.cc | 46 static int CheckThresholdBounds(int timeout); 81 int CheckThresholdBounds(int timeout) { 82 if (timeout < kMinThreshold) return kMinThreshold; 83 if (timeout > kMaxThreshold) return kMaxThreshold; 84 return timeout;
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
AwContentsClientOnFormResubmissionTest.java | 58 // Server timeout in seconds. Used to detect dontResend case. 59 private static final long TIMEOUT = ScaleTimeout(3); 124 // Wait for page finished callback, or a timeout. A timeout is necessary 126 onPageFinishedHelper.waitForCallback(callCount, 1, TIMEOUT, TimeUnit.SECONDS);
|
/external/chromium_org/build/android/pylib/gtest/ |
test_package_apk.py | 60 def _WatchFifo(self, adb, timeout, logfile=None): 71 return pexpect.spawn('adb', args, timeout=timeout, logfile=logfile) 105 p = self._WatchFifo(adb, timeout=30 * self.tool.GetTimeoutScale()) 123 return self._WatchFifo(adb, timeout=10, logfile=logfile)
|
/external/chromium_org/chrome/service/cloud_print/ |
connector_settings.cc | 77 int timeout = prefs->GetInt( local 79 SetXmppPingTimeoutSec(timeout); 128 void ConnectorSettings::SetXmppPingTimeoutSec(int timeout) { 129 xmpp_ping_timeout_sec_ = timeout; 132 "CP_CONNECTOR: XMPP ping timeout is less then minimal value";
|
/external/chromium_org/chrome/test/chromedriver/net/ |
sync_websocket_impl.cc | 35 std::string* message, const base::TimeDelta& timeout) { 36 return core_->ReceiveNextMessage(message, timeout); 77 const base::TimeDelta& timeout) { 79 base::TimeTicks deadline = base::TimeTicks::Now() + timeout; 80 base::TimeDelta next_wait = timeout;
|
/external/chromium_org/net/dns/ |
dns_session.h | 80 // Record that server failed to respond (due to SRV_FAIL or timeout). 95 // Return the timeout for the next query. |attempt| counts from 0 and is used 117 // Return the timeout using the TCP timeout method. 120 // Compute the timeout using the histogram method.
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
Session.java | 332 * InputStreams. One can also specify a timeout. NOTE: do NOT call this 337 * @param timeout The (non-negative) timeout in <code>ms</code>. <code>0</code> means no 338 * timeout, the call may block forever. 342 * <li><code>-1</code> if a timeout occurred.</li> 348 public int waitUntilDataAvailable(long timeout) throws IOException 350 if (timeout < 0) 351 throw new IllegalArgumentException("timeout must not be negative!"); 353 int conditions = cm.waitForCondition(cn, timeout, ChannelCondition.STDOUT_DATA | ChannelCondition.STDERR_DATA 356 if ((conditions & ChannelCondition.TIMEOUT) != 0 [all...] |
/external/openssh/openbsd-compat/ |
bsd-poll.c | 40 poll(struct pollfd *fds, nfds_t nfds, int timeout) 81 /* poll timeout is msec, select is timeval (sec + usec) */ 82 if (timeout >= 0) { 83 tv.tv_sec = timeout / 1000; 84 tv.tv_usec = (timeout % 1000) * 1000;
|
/external/qemu/distrib/sdl-1.2.15/src/thread/dc/ |
SDL_syssem.c | 53 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout) 119 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout) 128 /* A timeout of 0 is an easy case */ 129 if ( timeout == 0 ) { 133 retval = sem_wait_timed(&sem->sem,timeout);
|
/external/qemu/distrib/sdl-1.2.15/src/thread/generic/ |
SDL_syssem.c | 50 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout) 146 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout) 155 /* A timeout of 0 is an easy case */ 156 if ( timeout == 0 ) { 165 sem->count_lock, timeout);
|
/external/qemu/distrib/sdl-1.2.15/src/thread/irix/ |
SDL_syssem.c | 142 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout) 152 if ( timeout == 0 ) { 155 if ( timeout == SDL_MUTEX_MAXWAIT ) { 160 timeout += SDL_GetTicks(); 167 } while ( SDL_GetTicks() < timeout );
|
/external/smack/src/org/jivesoftware/smackx/muc/ |
ConnectionDetachedPacketCollector.java | 92 * until a packet is available or the <tt>timeout</tt> has elapased. If the 93 * timeout elapses without a result, <tt>null</tt> will be returned. 95 * @param timeout the amount of time to wait for the next packet (in milleseconds). 98 public Packet nextResult(long timeout) { 100 return resultQueue.poll(timeout, TimeUnit.MILLISECONDS);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
ActivityTestsBase.java | 168 boolean timeout = false; 173 timeout = true; 187 if (timeout) { 208 ? "Timeout" : ("Timeout while expecting " + mExpecting);
|
/system/core/include/utils/ |
Timers.h | 93 * Returns the number of milliseconds to wait between the reference time and the timeout time. 94 * If the timeout is in the past relative to the reference time, returns 0. 95 * If the timeout is more than INT_MAX milliseconds in the future relative to the reference time, 96 * such as when timeoutTime == LLONG_MAX, returns -1 to indicate an infinite timeout delay. 97 * Otherwise, returns the difference between the reference time and timeout time
|
/external/chromium_org/chrome/browser/chromeos/net/ |
network_portal_detector_impl.h | 79 // Basic unit used in detection timeout computation. 82 // Single detection attempt timeout in lazy mode. 158 // Sets portal detection timeout. Used by unit tests. 159 void set_request_timeout_for_testing(const base::TimeDelta& timeout) { 160 request_timeout_for_testing_ = timeout; 179 // Returns true if detection timeout callback isn't fired or 183 // Returns timeout for current (or immediate) detection attempt. 184 // The following rules are used for timeout computation: 187 // * otherwise, timeout equals to |attempt_count_| * kBaseRequestTimeoutSec 245 // Test timeout for a portal detection used by unit tests [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
tab.py | 52 timeout=DEFAULT_TAB_TIMEOUT) 76 def Screenshot(self, timeout=DEFAULT_TAB_TIMEOUT): 82 return self._inspector_backend.Screenshot(timeout) 167 self, action_function, timeout=DEFAULT_TAB_TIMEOUT): 172 the timeout has been exceeded. 175 action_function, timeout) 178 timeout=DEFAULT_TAB_TIMEOUT): 185 self._inspector_backend.Navigate(url, script_to_evaluate_on_commit, timeout) 187 def GetCookieByName(self, name, timeout=DEFAULT_TAB_TIMEOUT): 189 return self._inspector_backend.GetCookieByName(name, timeout) [all...] |
/frameworks/base/core/java/android/nfc/tech/ |
IsoDep.java | 81 * Set the timeout of {@link #transceive} in milliseconds. 82 * <p>The timeout only applies to ISO-DEP {@link #transceive}, and is 84 * <p>Setting a longer timeout may be useful when performing 90 * @param timeout timeout value in milliseconds 92 public void setTimeout(int timeout) { 94 int err = mTag.getTagService().setTimeout(TagTechnology.ISO_DEP, timeout); 96 throw new IllegalArgumentException("The supplied timeout is not valid"); 104 * Get the current timeout for {@link #transceive} in milliseconds. 108 * @return timeout value in millisecond [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_replication.py | 164 # The timeout is necessary in BDB 4.5, since DB_EVENT_REP_STARTUPDONE 168 timeout = time.time()+60 169 while (time.time()<timeout) and not (self.confirmed_master and self.client_startupdone) : 172 # the timeout. On windows this may be a deep issue, on other 175 # the timeout triggers, the rest of this test method usually passes 177 # timeout on stderr and keep soldering on. 178 if time.time()>timeout: 180 print >> sys.stderr, ("XXX: timeout happened before" 210 timeout=time.time()+10 211 while (time.time()<timeout) and [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_replication.py | 164 # The timeout is necessary in BDB 4.5, since DB_EVENT_REP_STARTUPDONE 168 timeout = time.time()+60 169 while (time.time()<timeout) and not (self.confirmed_master and self.client_startupdone) : 172 # the timeout. On windows this may be a deep issue, on other 175 # the timeout triggers, the rest of this test method usually passes 177 # timeout on stderr and keep soldering on. 178 if time.time()>timeout: 180 print >> sys.stderr, ("XXX: timeout happened before" 210 timeout=time.time()+10 211 while (time.time()<timeout) and [all...] |
/external/libnfc-nci/src/include/ |
nfc_target.h | 203 /* Timeout for receiving response to NCI command */ 208 /* Timeout for waiting on data credit/NFC-DEP */ 268 /* RW Type 1 Tag timeout for each API call, in ms */ 273 /* CE Type 2 Tag timeout for controller command, in ms */ 278 /* RW Type 2 Tag timeout for each API call, in ms */ 283 /* RW Type 2 Tag timeout for each API call, in ms */ 288 /* RW Type 3 Tag timeout for each API call, in ms */ 293 /* CE Type 3 Tag maximum response timeout index (for check and update, used in SENSF_RES) */ 315 /* RW Type 4 Tag timeout for each API call, in ms */ 320 /* CE Type 4 Tag timeout for update file, in ms * [all...] |
/external/chromium_org/third_party/jinja2/ |
bccache.py | 261 .. method:: set(key, value[, timeout]) 264 `timeout` the timeout of the key. If timeout is not provided 265 a default timeout or no timeout should be assumed, if it's 275 is added before the actual cache key and the timeout for the bytecode in 276 the cache system. We recommend a high (or no) timeout. 286 def __init__(self, client, prefix='jinja2/bytecode/', timeout=None, 290 self.timeout = timeou [all...] |
/external/chromium_org/third_party/pexpect/ |
pexpect.py | 91 __all__ = ['ExceptionPexpect', 'EOF', 'TIMEOUT', 'spawn', 'run', 'which', 137 class TIMEOUT(ExceptionPexpect): 139 """Raised when a read time exceeds the timeout. """ 141 ##class TIMEOUT_PATTERN(TIMEOUT): 142 ## """Raised when the pattern match time exceeds the timeout. 143 ## This is different than a read TIMEOUT because the child process may 144 ## give output, thus never give a TIMEOUT, but the output 151 def run(command, timeout=-1, withexitstatus=False, events=None, 212 events={TIMEOUT:print_ticks}, timeout=5 [all...] |