Home
last modified time | relevance | path

Searched refs:Lock (Results 1 – 25 of 26) sorted by relevance

12

/tools/acloud/internal/lib/
Dlocal_instance_lock_test.py54 self.assertTrue(self._lock.Lock())
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))
85 self.assertFalse(self._lock.Lock(timeout_secs=1))
Dlocal_instance_lock.py88 def Lock(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): member in LocalInstanceLock
160 if not self.Lock(timeout_secs):
/tools/acloud/delete/
Ddelete_test.py41 mock_lock.Lock.return_value = True
58 mock_lock.Lock.return_value = False
69 mock_lock.Lock.return_value = True
90 mock_lock.Lock.return_value = True
109 mock_lock.Lock.return_value = False
124 mock_lock.Lock.return_value = True
139 mock_lock.Lock.return_value = True
153 mock_lock.Lock.assert_called_once()
157 mock_lock.Lock.return_value = False
Ddelete.py139 if not ins_lock.Lock():
175 if not lock.Lock():
211 if not ins_lock.Lock():
/tools/acloud/list/
Dlist_test.py160 mock_lock.Lock.return_value = True
172 self.assertEqual(2, mock_lock.Lock.call_count)
176 mock_lock.Lock.reset_mock()
177 mock_lock.Lock.return_value = False
182 self.assertEqual(2, mock_lock.Lock.call_count)
185 mock_lock.Lock.reset_mock()
186 mock_lock.Lock.return_value = True
190 self.assertEqual(2, mock_lock.Lock.call_count)
Dlist.py154 if not ins_lock.Lock():
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterEventUploaderFuncTest.java30 import java.util.concurrent.locks.Lock;
45 final Lock lock = new ReentrantLock(); in testPostCommandEvent_multipleThread()
/tools/acloud/create/
Dgoldfish_local_image_local_instance_test.py39 self._mock_lock.Lock.return_value = True
208 self._mock_lock.Lock.assert_called_once()
256 self._mock_lock.Lock.assert_called_once()
300 self._mock_lock.Lock.assert_called_once()
331 self._mock_lock.Lock.assert_not_called()
Dlocal_image_local_instance_test.py210 mock_lock.Lock.return_value = True
218 mock_lock.Lock.assert_not_called()
227 mock_lock.Lock.assert_called_once()
Dgoldfish_local_image_local_instance.py146 if ins_lock.Lock():
Dlocal_image_local_instance.py222 if ins_lock.Lock():
/tools/trebuchet/trebuchet/startup-analyzer/
DREADME.md43 Lock contention
93 Lock contention
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_connection.py55 self._ticket_lock = threading.Lock()
Derror_reporter.py57 self._ticket_lock = threading.Lock()
Dsl4a_manager.py111 self._listen_for_port_lock = threading.Lock()
Dsl4a_session.py75 self._terminate_lock = threading.Lock()
Drpc_client.py155 self._lock = threading.Lock()
/tools/test/connectivity/acts/framework/acts/event/
Dsubscription_bundle.py20 self._subscription_lock = threading.Lock()
/tools/asuite/atest/metrics/
Dclearcut_client.py74 self._pending_events_lock = threading.Lock()
/tools/asuite/atest/integration_tests/
Dsnapshot.py39 lock = threading.Lock()
74 getattr(current_function, locks_dict_attr_name)[name] = threading.Lock()
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_client.py94 __log_file_lock = threading.Lock()
Dpacket_capture.py118 self._pcap_stop_lock = threading.Lock()
Darduino_wifi_dongle.py140 self.lock = threading.Lock()
Diperf_server.py263 __log_file_lock = threading.Lock()
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dconnection.py78 self._lock = threading.Lock()

12