Home
last modified time | relevance | path

Searched refs:poll (Results 1 – 25 of 31) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DConditionPriorityBlockingQueueTest.java45 assertNull(mQueue.poll()); in testPoll_empty()
55 assertNull(mQueue.poll()); in testTake()
69 assertNull(mQueue.poll()); in testTake_priority()
84 assertNull(fifoQueue.poll()); in testTake_fifo()
98 assertNull(mQueue.poll()); in testTake_priorityReverse()
119 assertNull(mQueue.poll()); in testTake_delayedAdd()
143 assertNull(mQueue.poll(new OneMatcher())); in testTake_matcher_delayedAdd()
144 assertEquals(two, mQueue.poll()); in testTake_matcher_delayedAdd()
207 assertNull(mQueue.poll()); in testTake_multiple_matchers()
214 assertNull(mQueue.poll(new OneMatcher())); in testPoll_condition_empty()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DConditionPriorityBlockingQueue.java123 public T poll() { in poll() method in ConditionPriorityBlockingQueue
124 return poll(new AlwaysMatch<T>()); in poll()
134 public T poll(IMatcher<T> matcher) { in poll() method in ConditionPriorityBlockingQueue
165 public T poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() method in ConditionPriorityBlockingQueue
166 return poll(timeout, unit, new AlwaysMatch<T>()); in poll()
180 public T poll(long timeout, TimeUnit unit, IMatcher<T> matcher) throws InterruptedException { in poll() method in ConditionPriorityBlockingQueue
207 while ((matchedObj = poll(matcher)) == null && (nanos == null || nanos > 0)) { in blockingPoll()
392 T removedObj = poll(matcher); in addUnique()
DLogcatEventParser.java148 return mEventQueue.poll(timeoutMs, TimeUnit.MILLISECONDS); in waitForEvent()
157 return mEventQueue.poll(); in pollForEvent()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBatchProcessor.kt58 next = workArray.poll() in <lambda>()
63 next = workArray.poll() in <lambda>()
74 remaining = workArray.poll() in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DTestsPoolPoller.java111 IRemoteTest poll() { in poll() method in TestsPoolPoller
112 return poll(false); in poll()
116 private IRemoteTest poll(boolean reportNotExecuted) { in poll() method in TestsPoolPoller
184 IRemoteTest test = poll(); in run()
316 IRemoteTest test = poll(true); in reportNotExecuted()
325 test = poll(true); in reportNotExecuted()
/tools/test/graphicsbenchmark/functional_tests/java/src/com/android/game/qualification/tests/
DSurfaceFlingerTestActivity.java121 getReadyTimes().poll(); in run()
122 getLatchTimes().poll(); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DTestsPoolPollerTest.java103 assertNotNull(poller1.poll()); in testMultiPolling()
105 assertNotNull(poller2.poll()); in testMultiPolling()
107 assertNotNull(poller1.poll()); in testMultiPolling()
108 assertNotNull(poller1.poll()); in testMultiPolling()
109 assertNotNull(poller2.poll()); in testMultiPolling()
112 assertNull(poller1.poll()); in testMultiPolling()
113 assertNull(poller2.poll()); in testMultiPolling()
/tools/acloud/create/
Dgoldfish_local_image_local_instance_test.py45 self._mock_proc.poll.side_effect = (
164 self._mock_proc.poll.assert_called()
206 self._mock_proc.poll.assert_called()
320 self._mock_proc.poll.assert_called()
Dgoldfish_local_image_local_instance.py223 if proc.poll() is None:
500 utils.PollAndWait(func=lambda: (proc.poll() is None and
506 if proc.poll() is not None:
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcher.java123 EventSl4aObject res = mEventQueue.get(name).poll(); in popEvent()
149 EventSl4aObject res = mEventQueue.get(name).poll(); in waitForEvent()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterEventUploader.java106 events.add(mEventQueue.poll()); in uploadEvents()
/tools/acloud/internal/lib/
Dota_tools_test.py110 popen.poll.return_value = return_value
120 popen.poll.return_value = None
Dota_tools.py128 if proc and proc.poll() is None:
Dssh_test.py44 self.created_subprocess.poll = mock.MagicMock(return_value=0)
Dcvd_compute_client_multi_stage_test.py161 created_subprocess.poll = mock.MagicMock(return_value=0)
/tools/test/connectivity/acts/framework/tests/libs/proc/
Dprocess_test.py156 process._process.poll.return_value = None
240 process._process.poll.return_value = None
/tools/repohooks/rh/
Dutils.py234 self.poll()
257 return self._lock_breaker(self.poll, *args, **kwargs)
/tools/tradefederation/core/atest/test_runners/
Datest_tf_test_runner_unittest.py206 mock_subproc.poll.side_effect = [True, True, None]
226 mock_subproc.poll.side_effect = None
252 mock_subproc.poll.side_effect = [None, None, None, None,
282 mock_subproc.poll.side_effect = [None, None, True, True,
Drobolectric_test_runner.py166 if robo_proc.poll() is not None:
/tools/asuite/atest/test_runners/
Datest_tf_test_runner_unittest.py206 mock_subproc.poll.side_effect = [True, True, None]
226 mock_subproc.poll.side_effect = None
252 mock_subproc.poll.side_effect = [None, None, None, None,
282 mock_subproc.poll.side_effect = [None, None, True, True,
Drobolectric_test_runner.py172 if robo_proc.poll() is not None:
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dconnection.py116 or self._master_ssh_proc.poll() is not None):
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DMockDeviceManager.java264 ITestDevice d = mAvailableDeviceQueue.poll(new TestDeviceMatcher(options)); in allocateDevice()
/tools/asuite/atest/
Datest_utils.py136 while proc.poll() is None:
/tools/tradefederation/core/atest/
Datest_utils.py125 while proc.poll() is None:

12