Home
last modified time | relevance | path

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

12345678910>>...16

/frameworks/base/tests/testables/src/android/testing/
DPollingCheck.java33 public PollingCheck(long timeout) { in PollingCheck() argument
34 mTimeout = timeout; in PollingCheck()
44 long timeout = mTimeout; in run() local
45 while (timeout > 0) { in run()
56 timeout -= TIME_SLICE; in run()
62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() argument
64 while (timeout > 0) { in check()
70 timeout -= TIME_SLICE; in check()
85 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
86 new PollingCheck(timeout) { in waitFor() argument
DAndroidTestingRunner.java75 long timeout = this.getTimeout(method.getAnnotation(Test.class)); in withPotentialTimeout() local
76 if (timeout <= 0L && mTimeout > 0L) { in withPotentialTimeout()
77 timeout = mTimeout; in withPotentialTimeout()
80 return timeout <= 0L ? next : new FailOnTimeout(next, timeout); in withPotentialTimeout()
84 return annotation == null ? 0L : annotation.timeout(); in getTimeout()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellularNetworkValidatorTest.java108 int timeout = 1000; in testValidateSuccess() local
109 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateSuccess()
121 int timeout = 100; in testValidateTimeout() local
122 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateTimeout()
126 moveTimeForward(timeout); in testValidateTimeout()
135 int timeout = 100; in testValidateFailure() local
136 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateFailure()
146 int timeout = 100; in testNetworkAvailableNotValidated() local
147 mValidatorUT.validate(subId, timeout, true, mCallback); in testNetworkAvailableNotValidated()
154 moveTimeForward(timeout); in testNetworkAvailableNotValidated()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DConfigurator.java79 public Configurator setWaitForIdleTimeout(long timeout) { in setWaitForIdleTimeout() argument
80 mWaitForIdleTimeout = timeout; in setWaitForIdleTimeout()
115 public Configurator setWaitForSelectorTimeout(long timeout) { in setWaitForSelectorTimeout() argument
116 mWaitForSelector = timeout; in setWaitForSelectorTimeout()
149 public Configurator setScrollAcknowledgmentTimeout(long timeout) { in setScrollAcknowledgmentTimeout() argument
150 mScrollEventWaitTimeout = timeout; in setScrollAcknowledgmentTimeout()
183 public Configurator setActionAcknowledgmentTimeout(long timeout) { in setActionAcknowledgmentTimeout() argument
184 mWaitForActionAcknowledgment = timeout; in setActionAcknowledgmentTimeout()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java213 int index, byte[] buffer, int length, int timeout) { in controlTransfer() argument
214 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); in controlTransfer()
238 byte[] buffer, int offset, int length, int timeout) { in controlTransfer() argument
241 buffer, offset, length, timeout); in controlTransfer()
265 byte[] buffer, int length, int timeout) { in bulkTransfer() argument
266 return bulkTransfer(endpoint, buffer, 0, length, timeout); in bulkTransfer()
285 byte[] buffer, int offset, int length, int timeout) { in bulkTransfer() argument
291 return native_bulk_request(endpoint.getAddress(), buffer, offset, length, timeout); in bulkTransfer()
365 public UsbRequest requestWait(long timeout) throws TimeoutException { in requestWait() argument
366 timeout = Preconditions.checkArgumentNonnegative(timeout, "timeout"); in requestWait()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DPollingCheck.java43 public PollingCheck(long timeout) { in PollingCheck() argument
44 mTimeout = timeout; in PollingCheck()
57 long timeout = mTimeout; in run() local
58 while (timeout > 0) { in run()
69 timeout -= TIME_SLICE; in run()
95 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
96 new PollingCheck(timeout) { in waitFor() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java27 import static org.mockito.Mockito.timeout;
216 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
218 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
220 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
222 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
227 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
230 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
233 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
238 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
260 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testRegister()
[all …]
/frameworks/base/startop/scripts/lib/
Dlogcat_utils.py46 def _is_time_out(timeout: datetime, line: str) -> bool:
58 return timestamp > timeout
62 timeout: datetime) -> Optional[str]:
82 if _is_time_out(timeout, line):
85 '>>'.format(timeout=timeout, pattern=pattern))
95 timeout: datetime) -> Optional[str]:
103 _blocking_wait_for_logcat_pattern(timestamp, pattern, timeout))
Dcmd_utils.py85 timeout: int,
113 _run_command(*cmd, shell=shell, timeout=timeout))
126 timeout: Optional[int] = None) -> Tuple[int, bytes]:
138 timeout_remaining = timeout
151 timeout_remaining = timeout - time_elapsed
/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java26 import static org.mockito.Mockito.timeout;
96 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err); in testResolveService()
101 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testResolveService()
123 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService()
124 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService()
147 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in testRegisterService()
151 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in testRegisterService()
158 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in testRegisterService()
166 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in testRegisterService()
174 verify(listener2, timeout(mTimeoutMs).times(1)).onUnregistrationFailed(request2, err); in testRegisterService()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DPeriodicAdvertisingManager.java92 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument
94 registerSync(scanResult, skip, timeout, callback, null); in registerSync()
116 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument
135 if (timeout < TIMEOUT_MIN || timeout > TIMEOUT_MAX) { in registerSync()
146 skip, timeout, in registerSync()
159 gatt.registerSync(scanResult, skip, timeout, wrapped); in registerSync()
203 int advertisingSid, int skip, int timeout, int status) { in wrap()
209 timeout, in wrap()
/frameworks/base/libs/hwui/thread/
DThreadBase.h59 int timeout = -1; in waitForWork() local
61 timeout = ns2ms(nextWakeup - WorkQueue::clock::now()); in waitForWork()
62 if (timeout < 0) timeout = 0; in waitForWork()
64 int result = mLooper->pollOnce(timeout); in waitForWork()
/frameworks/base/startop/scripts/app_startup/
Dparse_metrics44 -t, --timeout <sec> how many seconds to timeout when trying to wait for logcat to change
55 timeout=5
75 -t|--timeout)
76 timeout="$2"
150 result="$(logcat_extract_pattern "$timeout" "$timestamp" "$pattern" "$re_pattern")"
155 echo "Parse $re_pattern from logcat TIMED OUT after $timeout seconds." >&2
181 while read -t "$timeout" -r input_line; do
Drun_app_with_prefetch30 -t, --timeout <sec> how many seconds to timeout in between each app run (default 10)
45 timeout=10
87 -t|--timeout)
88 timeout="$2"
279 iorapd_readahead_wait_until_finished "$package" "$activity" "$logcat_timestamp" "$timeout"
433 verbose_print "Running with timeout $timeout"
440 …total_time="$(timeout $timeout "$DIR/launch_application" "$package" "$activity" | "$DIR/parse_metr…
442 …total_time="$(timeout $timeout "$DIR/launch_application" "$package" "$activity" | "$DIR/parse_metr…
Drun_app_with_prefetch_test.py147 assert parse_optional_args('--timeout 123') == mad(timeout=123)
148 assert parse_optional_args('-t 456') == mad(timeout=456)
176 timeout=None,
201 timeout=None,
229 timeout=None,
263 timeout=10,
274 format(timeout=10,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiThreadRunner.java156 long timeout) { in runWithScissors() argument
160 if (timeout < 0) { in runWithScissors()
170 return br.postAndWait(handler, timeout); in runWithScissors()
193 public boolean postAndWait(Handler handler, long timeout) { in postAndWait() argument
199 if (timeout > 0) { in postAndWait()
200 final long expirationTime = SystemClock.uptimeMillis() + timeout; in postAndWait()
/frameworks/base/core/java/com/android/internal/widget/
DVerifyCredentialResponse.java80 public VerifyCredentialResponse(int timeout) { in VerifyCredentialResponse() argument
81 mTimeout = timeout; in VerifyCredentialResponse()
86 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { in VerifyCredentialResponse() argument
88 mTimeout = timeout; in VerifyCredentialResponse()
124 private void setTimeout(int timeout) { in setTimeout() argument
125 mTimeout = timeout; in setTimeout()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java153 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument
161 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState()
172 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument
180 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState()
191 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument
199 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState()
216 protected boolean waitForTetherStateChange(long timeout) { in waitForTetherStateChange() argument
220 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange()
414 protected boolean waitForActiveNetworkConnection(long timeout) { in waitForActiveNetworkConnection() argument
421 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForActiveNetworkConnection()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java20 import static org.mockito.Mockito.timeout;
200 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
206 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
217 verify(mListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
223 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
225 verify(mListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
240 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
242 verify(mListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
/frameworks/base/startop/scripts/app_startup/lib/
Dcommon123 local timeout_ts="$(date -d "now + ${timeout} seconds" '+%s')"
130 while read -t "$timeout" -r -u "${logcat_fd[0]}" logcat_output; do
143 …verbose_print "DID TIMEOUT BEFORE SEEING ANYTHING (timeout=$timeout seconds) " '<<' "$pattern" '>>…
Dapp_runner.py71 timeout: Optional[int],
84 self.timeout = timeout if timeout else AppRunner.DEFAULT_TIMEOUT
190 print_utils.debug_print('Running with timeout {}'.format(self.timeout))
196 format(timeout=self.timeout,
/frameworks/opt/net/voip/src/java/android/net/sip/
DISipSession.aidl116 void makeCall(in SipProfile callee, String sessionDescription, int timeout); in makeCall() argument
127 void answerCall(String sessionDescription, int timeout); in answerCall() argument
147 void changeCall(String sessionDescription, int timeout); in changeCall() argument
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServiceTestsBase.java58 boolean waitHandlerIdle(Handler handler, long timeout) { in waitHandlerIdle() argument
59 return runWithScissors(handler, () -> { }, timeout); in waitHandlerIdle()
62 boolean runWithScissors(Handler handler, Runnable r, long timeout) { in runWithScissors() argument
63 return mLockRule.runWithScissors(handler, r, timeout); in runWithScissors()
/frameworks/rs/tests/lldb/tests/harness/
Dutil_android.py60 def adb(self, args, async=False, device=True, timeout=None): argument
93 if timeout is None:
104 timeout)
115 def adb_retry(self, args, max_num_attempts, timeout): argument
143 if timeout is None or timeout <= 0:
150 output = self.adb(args, False, True, timeout)
233 def shell(self, cmd, async=False, timeout=None): argument
248 return self.adb('shell "{0}"'.format(cmd), async, True, timeout)
679 def _execute_command_remote(command, timeout): argument
710 return_code, output = channel.get(True, timeout)
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h162 pdx::Status<std::shared_ptr<BufferHubBase>> Dequeue(int timeout,
166 bool WaitForBuffers(int timeout);
359 int timeout, size_t* slot, pdx::LocalHandle* release_fence);
379 int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta,
443 int timeout, size_t* slot, Meta* meta, pdx::LocalHandle* acquire_fence) { in Dequeue() argument
444 return Dequeue(timeout, slot, meta, sizeof(*meta), acquire_fence); in Dequeue()
447 int timeout, size_t* slot, pdx::LocalHandle* acquire_fence) { in Dequeue() argument
448 return Dequeue(timeout, slot, nullptr, 0, acquire_fence); in Dequeue()
452 int timeout, size_t* slot, void* meta, size_t user_metadata_size,
455 int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta,

12345678910>>...16