Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 47) sorted by relevance

12

/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DPollingCheck.java55 PollingCheckClock clock, long pollInterval, long timeout, Callable<Boolean> condition) in check() argument
63 while ((clock.currentTimeMillis() - start) < timeout) { in check()
82 public static boolean check(long timeout, Callable<Boolean> condition) throws Exception { in check() argument
83 return check(DEFAULT_CLOCK, TIME_SLICE, timeout, condition); in check()
100 long timeout, in check() argument
103 if (!check(clock, pollInterval, timeout, condition)) { in check()
116 public static void check(String message, long timeout, Callable<Boolean> condition) in check() argument
118 check(DEFAULT_CLOCK, message, TIME_SLICE, timeout, condition); in check()
134 long timeout, in waitFor() argument
137 check(clock, "Unexpected timeout waiting for condition", pollInterval, timeout, condition); in waitFor()
[all …]
DHostSideTestUtils.java33 final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000; in waitUntil() local
34 while (System.currentTimeMillis() < timeout) { in waitUntil()
/test/vts/runners/target/vts_hal_hidl_target/
DVtsHalHidlTargetCallbackBase.h128 milliseconds timeout = milliseconds(-1)) {
129 return GetCallbackLock(callback_function_name)->WaitForCallback(timeout);
153 if (status == cv_status::timeout) {
216 milliseconds timeout) { in SetWaitTimeout() argument
217 GetCallbackLock(callback_function_name)->SetWaitTimeout(timeout); in SetWaitTimeout()
232 void SetWaitTimeoutDefault(milliseconds timeout) { in SetWaitTimeoutDefault() argument
233 cb_default_wait_timeout_ = timeout; in SetWaitTimeoutDefault()
254 milliseconds timeout = milliseconds(-1),
256 return Wait(timeout, no_wait_blocking);
282 void SetWaitTimeout(milliseconds timeout) { timeout_ = timeout; } in SetWaitTimeout() argument
[all …]
/test/vts/testcases/host/kernel_proc_file_api_test/
Dproc_utils.py57 def Execute(self, cmd_list, timeout=None): argument
69 return RunCommand(cmd, timeout)
88 def WaitForBootCompletion(self, timeout=None): argument
92 self.adb.Execute(cmd, timeout)
94 if time.time() - start >= timeout:
116 def IsShutdown(self, timeout=0): argument
123 while (time.time() - start) <= timeout:
129 def Root(self, timeout=None): argument
132 self.adb.Execute(cmd, timeout=timeout)
157 def RunCommand(cmd, timeout=None): argument
[all …]
/test/framework/harnesses/host_controller/tradefed/
Dremote_client.py30 def __init__(self, host=LOCALHOST, port=DEFAULT_PORT, timeout=None): argument
40 self._timeout = timeout if timeout else socket.getdefaulttimeout()
108 def WaitForCommandResult(self, serial, timeout, poll_interval=5): argument
125 deadline = time.time() + timeout
Dremote_client_test.py41 def __init__(self, timeout): argument
45 self._timeout = timeout
154 timeout=0.5, poll_interval=1)
160 timeout=5, poll_interval=1)
167 self.assertRaises(socket.timeout, self._client.ListDevices)
/test/vts/utils/python/common/
Dcmd_utils.py34 timeout, argument
67 wait_thread.join(timeout)
103 def ExecuteOneShellCommand(cmd, timeout=None, callback_on_timeout=None, *args): argument
118 if timeout is None:
128 str(cmd), timeout, callback_on_timeout, *args)
Dtimeout_utils_test.py35 @timeout_utils.timeout(1, no_exception=True)
44 @timeout_utils.timeout(1, no_exception=True)
54 @timeout_utils.timeout(1)
68 @timeout_utils.timeout(1)
/test/vts-testcase/kernel/checkpoint/
Dcheckpoint_utils.py47 def Execute(self, cmd_list, timeout=DEFAULT_ADB_TIMEOUT): argument
59 return RunCommand(cmd, timeout)
62 def RunCommand(cmd, timeout=None): argument
67 _timer = Timer(timeout, kill, [proc])
/test/framework/harnesses/host_controller/vti_interface/
Dvti_endpoint_client.py89 timeout=REQUESTS_TIMEOUT_SECONDS)
125 timeout=REQUESTS_TIMEOUT_SECONDS)
155 headers=self._headers, timeout=REQUESTS_TIMEOUT_SECONDS)
195 timeout=REQUESTS_TIMEOUT_SECONDS)
237 timeout=REQUESTS_TIMEOUT_SECONDS)
265 timeout=REQUESTS_TIMEOUT_SECONDS)
330 timeout=REQUESTS_TIMEOUT_SECONDS)
374 timeout=REQUESTS_TIMEOUT_SECONDS)
407 timeout=REQUESTS_TIMEOUT_SECONDS)
/test/vts/runners/host/tcp_client/
Dvts_tcp_client.py73 timeout=_DEFAULT_SOCKET_TIMEOUT_SECS): argument
77 self.timeout = timeout
81 def timeout(self): member in VtsTcpClient
92 @timeout.setter
93 def timeout(self, timeout): member in VtsTcpClient
99 self._timeout = timeout
121 timeout=None): argument
146 connection_timeout = self._timeout if timeout is None else timeout
149 (ip, command_port), timeout=connection_timeout)
766 except socket.timeout as e:
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DVtsPythonRunnerHelper.java71 public String runPythonRunner(String[] cmd, CommandResult commandResult, long timeout) { in runPythonRunner() argument
75 return runPythonRunner(cmd, commandResult, timeout, stdOut, stdErr); in runPythonRunner()
97 public String runPythonRunner(String[] cmd, CommandResult commandResult, long timeout, in runPythonRunner() argument
103 result = mRunUtil.runTimedCmd(timeout, stdOut, stdErr, cmd); in runPythonRunner()
/test/vts/utils/python/mirror/
Dshell_mirror.py105 def SetConnTimeout(self, timeout): argument
111 self._client.timeout = timeout
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DCommonTestUtils.java33 final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000; in waitUntil() local
34 while (System.currentTimeMillis() < timeout) { in waitUntil()
DLogcatInspector.java97 long timeout = System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(timeInSeconds); in numberOfLogcatStringsFound() local
99 while (timeout >= System.currentTimeMillis()) { in numberOfLogcatStringsFound()
/test/vts/utils/python/controllers/
Dandroid.py64 timeout=None): argument
73 self.conn.settimeout(timeout)
75 except (TimeoutError, socket.timeout):
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsDevicePreparer.java376 void startFramework(long timeout) throws DeviceNotAvailableException { in startFramework() argument
398 void waitForFrameworkStartComplete(long timeout) throws DeviceNotAvailableException { in waitForFrameworkStartComplete() argument
402 mDevice.waitForBootComplete(timeout); in waitForFrameworkStartComplete()
405 if (System.currentTimeMillis() - start >= timeout) { in waitForFrameworkStartComplete()
/test/vts/runners/host/
Dbase_test.py148 self.timeout = timeout_milli / 1000 if timeout_milli > 0 else _DEFAULT_TEST_TIMEOUT_SECS
448 timeout = self.timeout - time.time() + self.start_time_sec
449 if timeout < 0:
450 timeout = 1
451 self.resetTimeout(timeout)
521 @timeout_utils.timeout(TIMEOUT_SECS_TEARDOWN_CLASS,
556 @timeout_utils.timeout(TIMEOUT_SECS_LOG_UPLOADING,
601 def resetTimeout(self, timeout): argument
610 logging.debug("Start timer with timeout=%ssec.", timeout)
613 signal.alarm(int(timeout))
[all …]
Dutils.py482 def wait_for_standing_subprocess(proc, timeout=None): argument
502 proc.wait(timeout)
531 def timeout(sec): function
608 @timeout(timeout_value)
/test/vts-testcase/hal/treble/vintf/
DVtsTrebleVintfTestBase.cpp101 auto timeout = std::chrono::seconds(1); in ForEachHidlHalInstance() local
102 std::future_status status = future_result.wait_for(timeout); in ForEachHidlHalInstance()
123 auto timeout = std::chrono::seconds(1); in ForEachAidlHalInstance() local
124 std::future_status status = future_result.wait_for(timeout); in ForEachAidlHalInstance()
/test/framework/harnesses/host_controller/command_processor/
Dcommand_adb.py71 if args.timeout == 0:
76 " ".join(cmd_list), args.timeout,
Dcommand_fastboot.py82 if args.timeout == 0:
86 cmd, args.timeout,
/test/vts-testcase/hal/contexthub/V1_0/host/
DVtsHalContexthubV1_0HostTest.py32 def wait_on_callback(timeout=None): argument
41 return self.event.wait(timeout)
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DCrashTestStatus.java99 public boolean waitForCompletion(long timeout, TimeUnit timeUnit) throws InterruptedException { in waitForCompletion() argument
100 return mParallelTestComplete.await(timeout, timeUnit); in waitForCompletion()
/test/mlts/benchmark/jni/
Drun_tflite.cpp265 int seqInferencesMaxCount, float timeout, int flags, in benchmark() argument
341 if (timeout > 0.001 && inferenceTotal > timeout) { in benchmark()
454 int maxNumIterations, float timeout, in benchmarkSingleTypeOfCompilation() argument
508 if (timeout > 0.001 && compilationTotal > timeout) { in benchmarkSingleTypeOfCompilation()

12