Home
last modified time | relevance | path

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

12345678910>>...18

/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/libs/net/common/testutils/devicetests/com/android/testutils/
DTestableNetworkStatsProvider.kt62 fun expectOnRequestStatsUpdate(token: Int, timeout: Long = defaultTimeoutMs): Int { in expectOnRequestStatsUpdate()
63 val event = history.poll(timeout) in expectOnRequestStatsUpdate()
71 fun expectOnSetLimit(iface: String?, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit()
72 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(timeout)) in expectOnSetLimit()
75 fun expectOnSetAlert(quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetAlert()
76 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(timeout)) in expectOnSetAlert()
79 fun pollForNextCallback(timeout: Long = defaultTimeoutMs) = in pollForNextCallback()
80 history.poll(timeout) ?: fail("Did not receive callback after ${timeout}ms") in pollForNextCallback()
83 timeout: Long = defaultTimeoutMs, in pollForNextCallback()
86 return pollForNextCallback(timeout).also { assertTrue(it is T && predicate(it)) } as T in <lambda>()
[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/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/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/core/java/android/bluetooth/le/
DPeriodicAdvertisingManager.java103 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument
105 registerSync(scanResult, skip, timeout, callback, null); in registerSync()
131 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument
150 if (timeout < TIMEOUT_MIN || timeout > TIMEOUT_MAX) { in registerSync()
161 skip, timeout, in registerSync()
175 scanResult, skip, timeout, wrapped, mAttributionSource); in registerSync()
223 int advertisingSid, int skip, int timeout, int status) { in wrap()
229 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/native/services/inputflinger/docs/
Danr.md7 1. An event was sent to a connection, and the response was not received within a certain timeout.
25timeout time. To calculate the timeout time of a specific event, simply add the `window.dispatchin…
27timeout time. Therefore, entries sent prior to the timeout change would need to follow the previou…
29 …lication is being debugged, the ActivityManager may want to increase the timeout time for a window…
33 …te entries are allowed because there may be two events with an identical timeout time. This is unl…
35 …ycle, InputDispatcher checks `AnrTracker` for the nearest timeout value. If the nearest timeout va…
59 To keep track of this timeout, when this situation is detected initially, `mInputTargetWaitTimeoutT…
67 ## Extending the timeout based on the response from policy ##
69timeout, InputDispatcher marks the connection as "responsive" by setting `inputPublisherBlocked = …
71 If the policy wants to abort dispatch, it returns a timeout value of 0. In this case, InputDispatch…
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java156 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument
164 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState()
175 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument
183 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState()
194 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument
202 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState()
219 protected boolean waitForTetherStateChange(long timeout) { in waitForTetherStateChange() argument
223 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange()
417 protected boolean waitForActiveNetworkConnection(long timeout) { in waitForActiveNetworkConnection() argument
424 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForActiveNetworkConnection()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DVerifyCredentialResponse.java59 final int timeout = source.readInt();
63 return new VerifyCredentialResponse(responseCode, timeout, gatekeeperHAT,
109 public static VerifyCredentialResponse fromTimeout(int timeout) { in fromTimeout() argument
111 timeout, in fromTimeout()
127 private VerifyCredentialResponse(@ResponseCode int responseCode, int timeout, in VerifyCredentialResponse() argument
130 mTimeout = timeout; in VerifyCredentialResponse()
/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,
/frameworks/base/core/java/org/apache/http/params/
DHttpConnectionParams.java83 public static void setSoTimeout(final HttpParams params, int timeout) { in setSoTimeout() argument
87 params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, timeout); in setSoTimeout()
187 public static void setConnectionTimeout(final HttpParams params, int timeout) { in setConnectionTimeout() argument
192 (CoreConnectionPNames.CONNECTION_TIMEOUT, timeout); in setConnectionTimeout()

12345678910>>...18