Home
last modified time | relevance | path

Searched refs:timeout_secs (Results 1 – 9 of 9) sorted by relevance

/tools/acloud/internal/lib/
Dlocal_instance_lock.py57 def _Flock(self, timeout_secs): argument
71 if timeout_secs > 0:
72 wrapper = utils.TimeoutException(timeout_secs)
78 self._file_path, timeout_secs)
88 def Lock(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): argument
110 successful = self._Flock(timeout_secs)
148 def LockIfNotInUse(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): argument
158 if not self.Lock(timeout_secs):
Dlocal_instance_lock_test.py48 self.assertTrue(self._lock.LockIfNotInUse(timeout_secs=0))
58 self.assertTrue(self._lock.Lock(timeout_secs=0))
70 self.assertTrue(lock.Lock(timeout_secs=0))
72 self.assertFalse(self._lock.Lock(timeout_secs=0))
73 self.assertFalse(self._lock.LockIfNotInUse(timeout_secs=0))
85 self.assertFalse(self._lock.Lock(timeout_secs=1))
92 self.assertFalse(self._lock.LockIfNotInUse(timeout_secs=1))
Dutils.py259 def PollAndWait(func, expected_return, timeout_exception, timeout_secs, argument
285 if time.time() - start > timeout_secs:
1277 def TimeoutException(timeout_secs, timeout_error=_DEFAULT_TIMEOUT_ERR): argument
1288 timeout_error = timeout_error % timeout_secs
1297 signal.alarm(timeout_secs)
Dandroid_compute_client.py383 timeout_secs=boot_timeout_secs,
Dgcompute_client.py200 timeout_secs=self.OPERATION_TIMEOUT_SECS,
Dgcompute_client_test.py175 timeout_secs=self.compute_client.OPERATION_TIMEOUT_SECS,
/tools/acloud/create/
Dgoldfish_local_image_local_instance.py157 if ins_lock.LockIfNotInUse(timeout_secs=0):
538 timeout_secs=_EMU_KILL_TIMEOUT_SECS,
560 timeout_secs=timeout,
Dlocal_image_local_instance.py193 if ins_lock.LockIfNotInUse(timeout_secs=0):
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiNetworkRequestTest.py430 timeout_secs = NETWORK_REQUEST_TIMEOUT_MS * 2 / 1000
433 timeout_secs,