Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/tools/preload2/src/com/android/preload/
DClientUtils.java59 public Client findClient(IDevice device, String processName, int processPid, int timeout) { in findClient() argument
60 WaitForClient wfc = new WaitForClient(device, processName, processPid, timeout); in findClient()
79 public Client[] findAllClients(IDevice device, int timeout) { in findAllClients() argument
83 WaitForClients wfc = new WaitForClients(device, timeout); in findAllClients()
92 private long timeout; field in ClientUtils.WaitForClient
95 public WaitForClient(IDevice device, String processName, int processPid, long timeout) { in WaitForClient() argument
99 this.timeout = timeout; in WaitForClient()
114 wait(timeout); in get()
180 private long timeout; field in ClientUtils.WaitForClients
182 public WaitForClients(IDevice device, long timeout) { in WaitForClients() argument
[all …]
DDeviceUtils.java65 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { in doShell() argument
66 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit); in doShell()
72 public static String doShellReturnString(IDevice device, String cmdline, long timeout, in doShellReturnString() argument
75 doShell(device, cmdline, rec, timeout, unit); in doShellReturnString()
83 long timeout, TimeUnit unit) { in doShell() argument
85 device.executeShellCommand(cmdline, receiver, timeout, unit); in doShell()
101 public static IDevice findDevice(String serial, int timeout) { in findDevice() argument
102 WaitForDevice wfd = new WaitForDevice(serial, timeout); in findDevice()
109 public static IDevice[] findDevices(int timeout) { in findDevices() argument
110 WaitForDevice wfd = new WaitForDevice(null, timeout); in findDevices()
[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.java181 int index, byte[] buffer, int length, int timeout) { in controlTransfer() argument
182 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); in controlTransfer()
206 byte[] buffer, int offset, int length, int timeout) { in controlTransfer() argument
209 buffer, offset, length, timeout); in controlTransfer()
230 byte[] buffer, int length, int timeout) { in bulkTransfer() argument
231 return bulkTransfer(endpoint, buffer, 0, length, timeout); in bulkTransfer()
247 byte[] buffer, int offset, int length, int timeout) { in bulkTransfer() argument
249 return native_bulk_request(endpoint.getAddress(), buffer, offset, length, timeout); in bulkTransfer()
322 public UsbRequest requestWait(long timeout) throws TimeoutException { in requestWait() argument
323 timeout = Preconditions.checkArgumentNonnegative(timeout, "timeout"); in requestWait()
[all …]
/frameworks/support/testutils/src/main/java/android/support/testutils/
DPollingCheck.java39 public PollingCheck(long timeout) { in PollingCheck() argument
40 mTimeout = timeout; in PollingCheck()
53 long timeout = mTimeout; in run() local
54 while (timeout > 0) { in run()
65 timeout -= TIME_SLICE; in run()
89 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
90 new PollingCheck(timeout) { in waitFor() argument
/frameworks/support/fragment/tests/java/android/support/v4/app/
DCtsMockitoUtils.java30 public static VerificationMode within(long timeout) { in within() argument
31 return new Within(timeout); in within()
38 public Within(long timeout) { in Within() argument
39 mTimeout = timeout; in Within()
44 long timeout = mTimeout; in verify() local
48 while (timeout > 0) { in verify()
66 timeout -= TIME_SLICE; in verify()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/testutils/
DPollingCheck.java39 public PollingCheck(long timeout) { in PollingCheck() argument
40 mTimeout = timeout; in PollingCheck()
54 long timeout = mTimeout; in run() local
55 while (timeout > 0) { in run()
66 timeout -= TIME_SLICE; in run()
86 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
87 new PollingCheck(timeout) { in waitFor() argument
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/
DHprof.java48 public static File doHprof(Client client, int timeout) { in doHprof() argument
49 GetHprof gh = new GetHprof(client, timeout); in doHprof()
118 private long timeout; field in Hprof.GetHprof
121 public GetHprof(Client client, long timeout) { in GetHprof() argument
123 this.timeout = timeout; in GetHprof()
132 wait(timeout); in get()
206 private int timeout; field in Hprof
208 public Hprof(int timeout) { in Hprof() argument
209 this.timeout = timeout; in Hprof()
214 File hprofLocalFile = Hprof.doHprof(client, timeout); in getClassData()
/frameworks/base/core/java/android/bluetooth/le/
DPeriodicAdvertisingManager.java90 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument
92 registerSync(scanResult, skip, timeout, callback, null); in registerSync()
114 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument
133 if (timeout < TIMEOUT_MIN || timeout > TIMEOUT_MAX) { in registerSync()
144 skip, timeout, in registerSync()
156 gatt.registerSync(scanResult, skip, timeout, wrapped); in registerSync()
199 int advertisingSid, int skip, int timeout, int status) { in wrap()
204 callback.onSyncEstablished(syncHandle, device, advertisingSid, skip, timeout, in wrap()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DTwoWayBindingAdapterTest.java69 long timeout = SystemClock.uptimeMillis() + 500; in testListViewSelectedItemPosition() local
71 SystemClock.uptimeMillis() < timeout) { in testListViewSelectedItemPosition()
152 long timeout = SystemClock.uptimeMillis() + 1500; in testCalendarViewDate() local
166 } while (date[0] == date[1] && SystemClock.uptimeMillis() < timeout); in testCalendarViewDate()
168 timeout = SystemClock.uptimeMillis() + 100; in testCalendarViewDate()
169 while (mBindingObject.date.get() == 0 && SystemClock.uptimeMillis() < timeout) { in testCalendarViewDate()
198 final long timeout = SystemClock.uptimeMillis() + 500; in testCheckBoxChecked() local
199 while (!mBindingObject.checked.get() && SystemClock.uptimeMillis() < timeout) { in testCheckBoxChecked()
219 long timeout = SystemClock.uptimeMillis() + 500; in focusOn() local
221 while (SystemClock.uptimeMillis() < timeout) { in focusOn()
[all …]
/frameworks/support/transition/tests/src/android/support/transition/
DFadeTest.java29 import static org.mockito.Mockito.timeout;
127 verify(listenerOut, timeout(3000)).onTransitionStart(any(Transition.class)); in testFadeOutThenIn()
130 verify(interrupt, timeout(3000)).run(); in testFadeOutThenIn()
138 verify(listenerOut, timeout(3000)).onTransitionPause(any(Transition.class)); in testFadeOutThenIn()
139 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class)); in testFadeOutThenIn()
146 verify(listenerIn, timeout(3000)).onTransitionEnd(any(Transition.class)); in testFadeOutThenIn()
163 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class)); in testFadeInThenOut()
166 verify(interrupt, timeout(3000)).run(); in testFadeInThenOut()
174 verify(listenerIn, timeout(3000)).onTransitionPause(any(Transition.class)); in testFadeInThenOut()
175 verify(listenerOut, timeout(3000)).onTransitionStart(any(Transition.class)); in testFadeInThenOut()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DVerifyCredentialResponse.java77 public VerifyCredentialResponse(int timeout) { in VerifyCredentialResponse() argument
78 mTimeout = timeout; in VerifyCredentialResponse()
83 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { in VerifyCredentialResponse() argument
85 mTimeout = timeout; in VerifyCredentialResponse()
119 private void setTimeout(int timeout) { in setTimeout() argument
120 mTimeout = timeout; in setTimeout()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java159 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument
167 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState()
178 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument
186 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState()
197 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument
205 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState()
222 protected boolean waitForTetherStateChange(long timeout) { in waitForTetherStateChange() argument
226 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange()
420 protected boolean waitForActiveNetworkConnection(long timeout) { in waitForActiveNetworkConnection() argument
427 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForActiveNetworkConnection()
[all …]
/frameworks/base/core/java/android/app/
DWaitResult.java32 public boolean timeout; field in WaitResult
48 dest.writeInt(timeout ? 1 : 0); in writeToParcel()
69 timeout = source.readInt() != 0; in WaitResult()
78 pw.println(prefix + " timeout=" + timeout); in dump()
/frameworks/base/tests/testables/src/android/testing/
DAndroidTestingRunner.java73 long timeout = this.getTimeout(method.getAnnotation(Test.class)); in withPotentialTimeout() local
74 if (timeout <= 0L && mTimeout > 0L) { in withPotentialTimeout()
75 timeout = mTimeout; in withPotentialTimeout()
78 return timeout <= 0L ? next : new FailOnTimeout(next, timeout); in withPotentialTimeout()
82 return annotation == null ? 0L : annotation.timeout(); in getTimeout()
/frameworks/base/core/java/android/os/
DConditionVariable.java117 public boolean block(long timeout) in block() argument
122 if (timeout != 0) { in block()
125 long end = now + timeout; in block()
/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/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/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/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingStateCallback.java153 public void waitForState(int state, long timeout) { in waitForState() argument
156 waitForAnyOfStates(Arrays.asList(stateArray), timeout); in waitForState() local
172 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { in waitForAnyOfStates() argument
186 long timeoutLeft = timeout; in waitForAnyOfStates()
209 s.append(timeout); in waitForAnyOfStates()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java27 int timeout, int distance, int actionIndex) { in eventsWithinTimeAndDistanceSlop() argument
28 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop()
43 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { in isTimedOut() argument
45 return (deltaTime >= timeout); in isTimedOut()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DTooltipCompatHandler.java165 final long timeout; in show() local
167 timeout = LONG_CLICK_HIDE_TIMEOUT_MS; in show()
170 timeout = HOVER_HIDE_TIMEOUT_SHORT_MS - ViewConfiguration.getLongPressTimeout(); in show()
172 timeout = HOVER_HIDE_TIMEOUT_MS - ViewConfiguration.getLongPressTimeout(); in show()
175 mAnchor.postDelayed(mHideRunnable, timeout); in show()
/frameworks/support/dynamic-animation/tests/src/android/support/dynamicanimation/tests/
DSpringTests.java31 import static org.mockito.Mockito.timeout;
107 verify(listener, timeout(1000)).onAnimationEnd(anim, false, 1f, 0f); in testCustomProperties()
146 verify(mockListener, timeout(1000).atLeast(10)).onAnimationUpdate(eq(anim), lt(1000f), in testFloatValueHolder()
148 verify(listener, timeout(1000)).onAnimationEnd(anim, false, 1000f, 0f); in testFloatValueHolder()
225 verify(mockListener, timeout(2000)).onAnimationEnd(anim3, false, 0, 0); in testDampingRatioOverAndCriticallyDamped()
287 verify(mockListener, timeout(2000)).onAnimationEnd(anim2, false, 0, 0); in testDampingRatioUnderDamped()
347 verify(mockListener, timeout(2000)).onAnimationEnd(springAnims[1], false, 0f, 0f); in testStiffness()
415 verify(endListener, timeout(1000)).onAnimationEnd(anim, false, 0.5f, 0f); in testRemoveListeners()
480 verify(mockEndListener, timeout(2000)).onAnimationEnd(anim, false, 0f, 0f); in testSetMinMax()
513 verify(mockEndListener, timeout(1500)).onAnimationEnd(anim, false, 1.0f, 0.0f); in testAnimateToFinalPosition()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java90 String prefix, String[] args, long timeout) throws IOException, RemoteException { in go() argument
102 tp.go(out, timeout); in go()
112 String[] args, long timeout) throws IOException, RemoteException { in goDump() argument
124 tp.go(out, timeout); in goDump()
132 public void go(FileDescriptor out, long timeout) throws IOException { in go() argument
136 mEndTime = SystemClock.uptimeMillis() + timeout; in go()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java52 private NtpTrustedTime(String server, long timeout) { in NtpTrustedTime() argument
55 mTimeout = timeout; in NtpTrustedTime()
70 final long timeout = Settings.Global.getLong( in getInstance() local
74 sSingleton = new NtpTrustedTime(server, timeout); in getInstance()

1234567891011