/frameworks/base/core/java/android/nfc/tech/ |
NfcF.java | 131 * Set the {@link #transceive} timeout in milliseconds. 133 * <p>The timeout only applies to {@link #transceive} on this object, 136 * <p>Setting a longer timeout may be useful when performing 142 * @param timeout timeout value in milliseconds 144 public void setTimeout(int timeout) { 146 int err = mTag.getTagService().setTimeout(TagTechnology.NFC_F, timeout); 148 throw new IllegalArgumentException("The supplied timeout is not valid"); 156 * Get the current {@link #transceive} timeout in milliseconds. 160 * @return timeout value in millisecond [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
TestHandlerThread.java | 35 public void doTest(long timeout) { 40 long endTime = now + timeout;
|
/frameworks/native/services/sensorservice/ |
SensorDevice.h | 48 BatchParams(int flag, nsecs_t delay, nsecs_t timeout): flags(flag), batchDelay(delay), 49 batchTimeout(timeout) { } 56 // Store batch parameters in the KeyedVector and the optimal batch_rate and timeout in 58 // vector. A continuous mode request is batch(... timeout=0 ..) followed by activate(). A batch 59 // mode request is batch(... timeout > 0 ...) followed by activate(). 90 // Call batch with timeout zero instead of calling setDelay() for newer devices.
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
SipWakeLock.java | 42 synchronized void acquire(long timeout) { 48 mTimerWakeLock.acquire(timeout);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
Queue.py | 107 def put(self, item, block=True, timeout=None): 110 If optional args 'block' is true and 'timeout' is None (the default), 111 block if necessary until a free slot is available. If 'timeout' is 112 a positive number, it blocks at most 'timeout' seconds and raises 115 is immediately available, else raise the Full exception ('timeout' 124 elif timeout is None: 127 elif timeout < 0: 128 raise ValueError("'timeout' must be a positive number") 130 endtime = _time() + timeout 150 def get(self, block=True, timeout=None) [all...] |
SocketServer.py | 192 - timeout 204 timeout = None variable in class:BaseServer 225 self.timeout. If you need to do periodic tasks, do them in 267 Respects self.timeout. 270 # handle_request before self.timeout was available. 271 timeout = self.socket.gettimeout() 272 if timeout is None: 273 timeout = self.timeout 274 elif self.timeout is not None 510 timeout = 300 variable in class:ForkingMixIn 686 timeout = None variable in class:StreamRequestHandler [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
Queue.py | 107 def put(self, item, block=True, timeout=None): 110 If optional args 'block' is true and 'timeout' is None (the default), 111 block if necessary until a free slot is available. If 'timeout' is 112 a positive number, it blocks at most 'timeout' seconds and raises 115 is immediately available, else raise the Full exception ('timeout' 124 elif timeout is None: 127 elif timeout < 0: 128 raise ValueError("'timeout' must be a positive number") 130 endtime = _time() + timeout 150 def get(self, block=True, timeout=None) [all...] |
SocketServer.py | 192 - timeout 204 timeout = None variable in class:BaseServer 225 self.timeout. If you need to do periodic tasks, do them in 267 Respects self.timeout. 270 # handle_request before self.timeout was available. 271 timeout = self.socket.gettimeout() 272 if timeout is None: 273 timeout = self.timeout 274 elif self.timeout is not None 510 timeout = 300 variable in class:ForkingMixIn 686 timeout = None variable in class:StreamRequestHandler [all...] |
/external/jmdns/src/javax/jmdns/impl/ |
JmmDNSImpl.java | 180 public ServiceInfo[] getServiceInfos(String type, String name, long timeout) { 181 return this.getServiceInfos(type, name, false, timeout); 198 public ServiceInfo[] getServiceInfos(final String type, final String name, final boolean persistent, final long timeout) { 199 // We need to run this in parallel to respect the timeout. 209 result.add(mDNS.getServiceInfo(type, name, persistent, timeout)); 215 executor.awaitTermination(timeout, TimeUnit.MILLISECONDS); 245 public void requestServiceInfo(String type, String name, long timeout) { 246 this.requestServiceInfo(type, name, false, timeout); 254 public void requestServiceInfo(final String type, final String name, final boolean persistent, final long timeout) { 255 // We need to run this in parallel to respect the timeout [all...] |
/external/chromium_org/build/android/pylib/gtest/ |
test_package_apk.py | 66 def _WatchFifo(self, adb, timeout, logfile=None): 77 return pexpect.spawn('adb', args, timeout=timeout, logfile=logfile) 111 p = self._WatchFifo(adb, timeout=30 * self.tool.GetTimeoutScale()) 129 return self._WatchFifo(adb, timeout=10, logfile=logfile)
|
/external/chromium_org/chrome/test/pyautolib/ |
pyautolib.cc | 109 int timeout) { 123 timeout)) { 125 base::TimeDelta::FromMilliseconds(timeout), 149 const base::TimeDelta& timeout, 151 // TODO(craigdh): Determine timeout directly from IPC's Send(). 152 if (duration >= timeout) {
|
/external/chromium_org/third_party/jinja2/ |
bccache.py | 266 .. method:: set(key, value[, timeout]) 269 `timeout` the timeout of the key. If timeout is not provided 270 a default timeout or no timeout should be assumed, if it's 280 is added before the actual cache key and the timeout for the bytecode in 281 the cache system. We recommend a high (or no) timeout. 287 def __init__(self, client, prefix='jinja2/bytecode/', timeout=None): 290 self.timeout = timeou [all...] |
/external/chromium_org/tools/site_compare/scrapers/firefox/ |
firefox2.py | 76 def Scrape(urls, outdir, size, pos, timeout=20, **kwargs): 84 timeout: amount of time to wait for page to load 122 load_time = windowing.WaitForThrobber(wnd, (10, 96, 26, 112), timeout) 149 return "timeout" 152 def Time(urls, size, timeout, **kwargs): 158 timeout: amount of time to wait for page to load 162 A list of tuples (url, time). "time" can be "crashed" or "timeout" 198 load_time = windowing.WaitForThrobber(wnd, (10, 96, 26, 112), timeout) 202 load_time = "timeout"
|
/external/chromium_org/tools/site_compare/utils/ |
browser_iterate.py | 64 ["-t", "--timeout"], "Amount of time (seconds) to wait for browser to " 82 def AttachToBrowser(path, timeout): 109 s.settimeout(timeout) 155 timeout = command["--timeout"] 165 AttachToBrowser(browser, timeout) 183 except socket.timeout: 191 # If we received a timeout response, restart the browser 192 if response[-9:] == ",timeout\n":
|
/external/chromium_org/tools/valgrind/ |
common.py | 28 def RunSubprocess(proc, timeout=0): 29 """ Runs a subprocess, until it finishes or |timeout| is exceeded and the 30 process is killed with taskkill. A |timeout| <= 0 means no timeout. 34 timeout: how long to wait before killing, <= 0 means wait forever 37 logging.info("running %s, timeout %d sec" % (" ".join(proc), timeout)) 55 if timeout > 0: 56 wait_until = time.time() + timeout 65 if timeout > 0 [all...] |
/external/chromium_org/v8/tools/testrunner/local/ |
commands.py | 66 def RunProcess(verbose, timeout, args, **rest): 87 if timeout is None: end_time = None 88 else: end_time = time.time() + timeout 133 def Execute(args, verbose=False, timeout=None): 140 timeout,
|
/external/webrtc/src/system_wrappers/source/ |
event_posix.cc | 126 EventTypeWrapper EventPosix::Wait(unsigned long timeout) 136 if (WEBRTC_EVENT_INFINITE != timeout) 153 tEnd.tv_sec += timeout / 1000; 154 tEnd.tv_nsec += (timeout - (timeout / 1000) * 1000) * E6;
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
BlockingStateListener.java | 189 * @param timeout how long to wait in milliseconds 191 * @throws TimeoutRuntimeException if the desired state is not observed before timeout. 193 public void waitForState(int state, long timeout) { 196 waitForAnyOfStates(Arrays.asList(stateArray), timeout); local 206 * @param timeout how long to wait in milliseconds 209 * @throws TimeoutRuntimeException if none of the states is observed before timeout. 212 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { 224 long timeoutLeft = timeout; 247 s.append(timeout);
|
/external/chromium/base/ |
message_pump_win.cc | 71 double timeout = local 75 int delay = static_cast<int>(timeout); 488 int timeout = GetCurrentDelay(); local 489 if (timeout < 0) // Negative value means no timers waiting. 490 timeout = INFINITE; 492 WaitForIOCompletion(timeout, NULL); 495 bool MessagePumpForIO::WaitForIOCompletion(DWORD timeout, IOHandler* filter) { 499 if (!GetIOItem(timeout, &item)) 525 bool MessagePumpForIO::GetIOItem(DWORD timeout, IOItem* item) { 530 &overlapped, timeout)) { [all...] |
/hardware/ril/libril/ |
ril_event.cpp | 86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); 168 // walk list, see if now >= ev->timeout for any events 171 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { 231 (int)tev->timeout.tv_sec, (int)tev->timeout.tv_usec); 232 if (timercmp(&tev->timeout, &now, >)) { 233 timersub(&tev->timeout, &now, tv); 300 timeradd(&now, tv, &ev->timeout); [all...] |
/external/chromium_org/third_party/npapi/npspy/extern/nspr/ |
prio.h | 340 PRIntervalTime timeout); 342 PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout); 344 PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout); 350 PRIntn flags, PRIntervalTime timeout); 353 PRIntn flags, PRIntervalTime timeout); 356 PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout); 359 PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout); 376 PRTransmitFileFlags flags, PRIntervalTime timeout); 774 * PRIntervalTime timeout 789 PRIntervalTime timeout); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
SelectorTest.java | 49 NULL, TIMEOUT, NOW 238 assert_select_OP_ACCEPT(SelectType.TIMEOUT, 0); 239 assert_select_OP_CONNECT(SelectType.TIMEOUT, 0); 240 assert_select_OP_READ(SelectType.TIMEOUT, 0); 241 assert_select_OP_WRITE(SelectType.TIMEOUT, 0); 243 assert_select_OP_ACCEPT(SelectType.TIMEOUT, WAIT_TIME); 244 assert_select_OP_CONNECT(SelectType.TIMEOUT, WAIT_TIME); 245 assert_select_OP_READ(SelectType.TIMEOUT, WAIT_TIME); 246 assert_select_OP_WRITE(SelectType.TIMEOUT, WAIT_TIME); 253 assert_select_SelectorClosed(SelectType.TIMEOUT, 0) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_smtplib.py | 26 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...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_smtplib.py | 26 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...] |
/external/chromium_org/net/dns/ |
dns_session_unittest.cc | 223 // Expect default calculated timeout to be within 10ms of in DnsConfig. 226 base::TimeDelta timeoutDelta = session_->NextTimeout(0, 0) - config_.timeout; 230 // Expect short calculated timeout to be within 10ms of in DnsConfig. 232 config_.timeout = base::TimeDelta::FromMilliseconds(15); 234 base::TimeDelta timeoutDelta = session_->NextTimeout(0, 0) - config_.timeout; 238 // Expect long calculated timeout to be equal to one in DnsConfig. 240 config_.timeout = base::TimeDelta::FromSeconds(15); 242 base::TimeDelta timeout = session_->NextTimeout(0, 0); local 243 EXPECT_EQ(config_.timeout.InMilliseconds(), timeout.InMilliseconds()) [all...] |