/frameworks/base/tests/testables/src/android/testing/ |
D | PollingCheck.java | 33 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
|
D | AndroidTestingRunner.java | 75 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/ |
D | CellularNetworkValidatorTest.java | 108 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/ |
D | Configurator.java | 79 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/ |
D | UsbDeviceConnection.java | 213 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/ |
D | TestableNetworkStatsProvider.kt | 62 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/ |
D | PollingCheck.java | 43 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/ |
D | logcat_utils.py | 46 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))
|
D | cmd_utils.py | 85 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/ |
D | ThermalManagerServiceTest.java | 27 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/ |
D | PeriodicAdvertisingManager.java | 103 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/ |
D | ThreadBase.h | 59 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/ |
D | parse_metrics | 44 -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
|
D | run_app_with_prefetch | 30 -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…
|
D | run_app_with_prefetch_test.py | 147 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/ |
D | anr.md | 7 1. An event was sent to a connection, and the response was not received within a certain timeout. 25 …timeout time. To calculate the timeout time of a specific event, simply add the `window.dispatchin… 27 …timeout 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 ## 69 …timeout, 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/ |
D | ConnectivityManagerTestBase.java | 156 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/ |
D | VerifyCredentialResponse.java | 59 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/ |
D | common | 123 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" '>>…
|
D | app_runner.py | 71 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/ |
D | ISipSession.aidl | 116 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/ |
D | SystemServiceTestsBase.java | 58 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/ |
D | util_android.py | 60 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/ |
D | buffer_hub_queue_client.h | 162 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/ |
D | HttpConnectionParams.java | 83 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()
|