Home
last modified time | relevance | path

Searched refs:WaitFor (Results 1 – 25 of 52) sorted by relevance

123

/external/v8/test/unittests/base/platform/
Dsemaphore-unittest.cc78 ASSERT_FALSE(semaphore_->WaitFor(TimeDelta::FromMicroseconds(1))); in Run()
120 EXPECT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1))); in TEST()
124 TEST(Semaphore, WaitFor) { in TEST() argument
128 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(0))); in TEST()
129 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(100))); in TEST()
130 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1000))); in TEST()
134 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(0))); in TEST()
136 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(100))); in TEST()
138 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1000))); in TEST()
Dcondition-variable-unittest.cc22 EXPECT_FALSE(cv.WaitFor(&mutex, TimeDelta::FromMicroseconds(n))); in TEST()
25 EXPECT_FALSE(cv.WaitFor(&mutex, TimeDelta::FromMicroseconds(n))); in TEST()
/external/chromium-trace/catapult/telemetry/telemetry/core/
Dutil_unittest.py20 util.WaitFor(test, 0.1)
28 lambda: util.WaitFor(test, 0.1))
38 util.WaitFor(Test().Method, 0.1)
40 util.WaitFor(lambda: 1, 0.1)
43 self.assertRaises(TypeError, lambda: util.WaitFor('test', 0.1))
46 self.assertEquals('test', util.WaitFor(lambda: 'test', 0.1))
Dandroid_action_runner.py128 util.WaitFor(self._platform_backend.device.IsScreenOn, 5)
142 util.WaitFor(is_screen_off, 5)
161 util.WaitFor(is_screen_unlocked, 5)
/external/chromium-trace/catapult/devil/devil/android/
Dlogcat_monitor_test.py70 actual_match = test_log.WaitFor(r'.*(fatal|error) logcat monitor.*', None)
85 actual_match = test_log.WaitFor(
110 actual_match = test_log.WaitFor(r'.*last line.*', None)
121 test_log.WaitFor(r'.*last line.*', None)
145 test_log.WaitFor(r'.*last line.*', None)
157 test_log.WaitFor(r'.*last line.*', None)
172 test_log.WaitFor(r'.*last line.*', None)
187 test_log.WaitFor(r'.*last line.*', None)
205 test_log.WaitFor(r'.*last line.*', None)
Dbattery_utils.py350 timeout_retry.WaitFor(battery_updates_disabled, wait_period=1)
371 timeout_retry.WaitFor(battery_updates_enabled, wait_period=1)
437 timeout_retry.WaitFor(device_discharged, wait_period=wait_period)
476 timeout_retry.WaitFor(device_charged, wait_period=wait_period)
502 timeout_retry.WaitFor(cool_device, wait_period=wait_period)
561 timeout_retry.WaitFor(verify_charging, wait_period=1)
Ddevice_utils.py147 if not timeout_retry.WaitFor(adb_killed, wait_period=1, max_tries=5):
151 if not timeout_retry.WaitFor(adb_started, wait_period=1, max_tries=5):
519 timeout_retry.WaitFor(sd_card_ready)
520 timeout_retry.WaitFor(pm_ready)
521 timeout_retry.WaitFor(boot_completed)
523 timeout_retry.WaitFor(wifi_enabled)
548 timeout_retry.WaitFor(device_offline, wait_period=1)
921 timeout_retry.WaitFor(all_pids_killed, wait_period=0.1)
1035 timeout_retry.WaitFor(dismiss_popups, wait_period=1)
2180 timeout_retry.WaitFor(screen_test, wait_period=1)
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome/
Doobe.py82 util.WaitFor(_GetGaiaFunction, 20)(self, username, password)
86 gaia_iframe_context = util.WaitFor(self._GaiaIFrameContext, timeout=30)
102 util.WaitFor(lambda: not self._GaiaWebviewContext(), 20)
114 gaia_webview_context = util.WaitFor(self._GaiaWebviewContext, 5)
115 util.WaitFor(gaia_webview_context.HasReachedQuiescence, 20)
Dcros_unittest.py83 util.WaitFor(lambda: not self._IsCryptohomeMounted(), 20)
100 self.assertTrue(util.WaitFor(self._IsCryptohomeMounted, 10))
120 self.assertTrue(util.WaitFor(lambda: self._cri.FileExistsOnDevice(
143 util.WaitFor(ScreenLocked, 10)
156 util.WaitFor(ErrorBubbleVisible, 10)
164 util.WaitFor(lambda: not browser.oobe_exists, 10)
Dcros_browser_backend.py43 util.WaitFor(self.IsBrowserRunning, 20)
126 util.WaitFor(lambda: self.oobe_exists, 10)
135 util.WaitFor(lambda: pid != self.pid, 10)
157 util.WaitFor(lambda: not self._IsCryptohomeMounted(), 180)
226 util.WaitFor(self._IsLoggedIn, 60)
/external/v8/src/base/platform/
Dcondition-variable.cc68 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) { in WaitFor() function in v8::base::ConditionVariable
119 bool WaitFor(DWORD timeout_ms) {
267 while (!event->WaitFor(INFINITE)) {
279 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) {
293 result = event->WaitFor(INFINITE - 1);
299 result = event->WaitFor((msec < 0) ? 0 : static_cast<DWORD>(msec));
Dsemaphore.cc54 bool Semaphore::WaitFor(const TimeDelta& rel_time) { in WaitFor() function in v8::base::Semaphore
113 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
182 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
Dsemaphore.h50 bool WaitFor(const TimeDelta& rel_time) WARN_UNUSED_RESULT;
Dcondition-variable.h59 bool WaitFor(Mutex* mutex, const TimeDelta& rel_time) WARN_UNUSED_RESULT;
/external/chromium-trace/catapult/systrace/profile_chrome/
Dchrome_controller.py45 json_category_list = logmon.WaitFor(
85 self._logcat_monitor.WaitFor(self._trace_start_re, timeout=5)
96 self._trace_file = self._logcat_monitor.WaitFor(
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/
Dinspector_runtime_unittest.py49 util.WaitFor(lambda: self._tab.EnableAllContexts() == expected_contexts,
66 util.WaitFor(lambda: TestVarReady(context_id), timeout=10)
Dinspector_console_unittest.py19 util.WaitFor(GotLog, 5)
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dadb_compatibility_devicetest.py48 timeout_retry.WaitFor(
58 timeout_retry.WaitFor(
/external/chromium-trace/catapult/telemetry/telemetry/internal/browser/
Dtab_unittest.py91 util.WaitFor(lambda: _IsDocumentVisible(self._tab), timeout=5)
94 util.WaitFor(lambda: _IsDocumentVisible(new_tab), timeout=5)
97 util.WaitFor(lambda: _IsDocumentVisible(self._tab), timeout=5)
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/
Dhttpproxy_test.py116 util.WaitFor(lambda: threading.activeCount() == initial_thread_count, 2)
159 util.WaitFor(lambda: threading.activeCount() == initial_thread_count, 1)
Dutil.py57 def WaitFor(condition, timeout): function
/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/
Drepaint_continuously.py35 util.WaitFor(HasMinRafs, max(60 - self._seconds, 0))
Dmedia_action.py38 util.WaitFor(lambda:
/external/chromium-trace/catapult/telemetry/telemetry/internal/util/
Dwebpagereplay.py206 util.WaitFor(self._IsStarted, 30)
242 util.WaitFor(lambda: self.replay_process.poll() is not None, 10)
/external/chromium-trace/catapult/telemetry/telemetry/internal/forwarders/
Ddo_nothing_forwarder.py77 util.WaitFor(CanConnect, timeout)

123