Home
last modified time | relevance | path

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

12345678910>>...14

/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/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/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java26 import static org.mockito.Mockito.timeout;
167 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
169 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
171 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
173 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
178 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
181 verify(mStatusListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
184 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
189 verify(mStatusListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
211 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testRegister()
[all …]
/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestableNetworkStatsProvider.kt52 fun expectOnRequestStatsUpdate(token: Int, timeout: Long = defaultTimeoutMs) { in expectOnRequestStatsUpdate()
53 assertEquals(CallbackType.OnRequestStatsUpdate(token), history.poll(timeout)) in expectOnRequestStatsUpdate()
56 fun expectOnSetLimit(iface: String?, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit()
57 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(timeout)) in expectOnSetLimit()
60 fun expectOnSetAlert(quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetAlert()
61 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(timeout)) in expectOnSetAlert()
64 fun pollForNextCallback(timeout: Long = defaultTimeoutMs) = in pollForNextCallback()
65 history.poll(timeout) ?: fail("Did not receive callback after ${timeout}ms") in pollForNextCallback()
68 timeout: Long = defaultTimeoutMs, in pollForNextCallback()
71 return pollForNextCallback(timeout).also { assertTrue(it is T && predicate(it)) } as T in <lambda>()
[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.java184 int index, byte[] buffer, int length, int timeout) { in controlTransfer() argument
185 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); in controlTransfer()
209 byte[] buffer, int offset, int length, int timeout) { in controlTransfer() argument
212 buffer, offset, length, timeout); in controlTransfer()
236 byte[] buffer, int length, int timeout) { in bulkTransfer() argument
237 return bulkTransfer(endpoint, buffer, 0, length, timeout); in bulkTransfer()
256 byte[] buffer, int offset, int length, int timeout) { in bulkTransfer() argument
262 return native_bulk_request(endpoint.getAddress(), buffer, offset, length, timeout); in bulkTransfer()
336 public UsbRequest requestWait(long timeout) throws TimeoutException { in requestWait() argument
337 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/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/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/startop/scripts/app_startup/
Drun_app_with_prefetch30 -t, --timeout <sec> how many seconds to timeout in between each app run (default 10)
44 timeout=10
82 -t|--timeout)
83 timeout="$2"
322 verbose_print "Running with timeout $timeout"
325 total_time="$(timeout $timeout $DIR/launch_application "$package" "$activity")"
Dapp_startup_runner.py220 def execute_arbitrary_command(cmd: List[str], simulate: bool, timeout: int) -> Tuple[bool, str]:
231 script_output = proc.communicate(timeout=timeout)[0]
246 …ckageInfo, Iterable[RunCommandArgs]]], simulate: bool, inodes_path: str, timeout: int, loop_count:…
248 execute_arbitrary_command([_UNLOCK_SCREEN_SCRIPT], simulate, timeout)
260 collector_timeout = timeout and _COLLECTOR_TIMEOUT_MULTIPLIER * timeout
269 (passed, script_output) = execute_arbitrary_command(cmd, simulate, timeout)
314 …exec = execute_run_combos(grouped_combos(), opts.simulate, opts.inodes, opts.timeout, opts.loop_co…
/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()
220 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
222 verify(mListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
237 verify(mListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
239 verify(mListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testThermalStatusCallback()
/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/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/native/libs/vr/libdvr/
Ddvr_buffer_queue.cpp54 int DvrWriteBufferQueue::Dequeue(int timeout, DvrWriteBuffer* write_buffer, in Dequeue() argument
59 if (const int ret = GainBuffer(timeout, &buffer, &meta, &fence_fd)) in Dequeue()
70 int DvrWriteBufferQueue::GainBuffer(int timeout, in GainBuffer() argument
85 producer_queue_->Dequeue(timeout, &slot, out_meta, &release_fence); in GainBuffer()
292 int dvrWriteBufferQueueGainBuffer(DvrWriteBufferQueue* write_queue, int timeout, in dvrWriteBufferQueueGainBuffer() argument
299 return write_queue->GainBuffer(timeout, out_write_buffer, out_meta, in dvrWriteBufferQueueGainBuffer()
341 int DvrReadBufferQueue::AcquireBuffer(int timeout, in AcquireBuffer() argument
348 consumer_queue_->Dequeue(timeout, &slot, out_meta, &acquire_fence); in AcquireBuffer()
491 int dvrReadBufferQueueDequeue(DvrReadBufferQueue* read_queue, int timeout, in dvrReadBufferQueueDequeue() argument
500 return read_queue->Dequeue(timeout, read_buffer, out_fence_fd, out_meta, in dvrReadBufferQueueDequeue()
[all …]
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/
DRadioTunerTest.java26 import static org.mockito.Mockito.timeout;
156 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); in openTuner()
199 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); in testSetAndGetConfiguration()
221 verify(mCallback, timeout(kConfigCallbackTimeoutMs)).onConfigurationChanged(any()); in testSetBadConfiguration()
259 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testStep()
265 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testStep()
277 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testStepLoop()
294 verify(mCallback, timeout(kTuneCallbackTimeoutMs)) in testTuneAndGetPI()
321 verify(mCallback, timeout(kTuneCallbackTimeoutMs)).onProgramInfoChanged(any()); in testLateCancel()
382 verify(mCallback, timeout(kFullScanTimeoutMs)).onBackgroundScanComplete(); in testTuneFromProgramList()
[all …]
/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()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java23 int timeout, int distance) { in eventsWithinTimeAndDistanceSlop() argument
24 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop()
38 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { in isTimedOut() argument
40 return (deltaTime >= timeout); in isTimedOut()
/frameworks/base/core/java/android/app/
DWaitResult.java67 public boolean timeout; field in WaitResult
83 dest.writeInt(timeout ? 1 : 0); in writeToParcel()
104 timeout = source.readInt() != 0; in WaitResult()
113 pw.println(prefix + " timeout=" + timeout); in dump()
/frameworks/base/startop/iorap/tests/src/com/google/android/startop/iorap/
DIIorapIntegrationTest.kt24 import org.mockito.Mockito.timeout in <lambda>()
73 inOrder.verify(taskListener, timeout(100)) in <lambda>()
75 inOrder.verify(taskListener, timeout(100)) in <lambda>()
77 inOrder.verify(taskListener, timeout(100)) in <lambda>()

12345678910>>...14