OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:timeoutms
(Results
1 - 25
of
283
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/cts/common/device-side/util/src/com/android/compatibility/common/util/
PollingCheck.java
31
public PollingCheck(long
timeoutMs
) {
32
mTimeoutMs =
timeoutMs
;
42
long
timeoutMs
= mTimeoutMs;
43
while (
timeoutMs
> 0) {
54
timeoutMs
-= TIME_SLICE;
60
public static void check(CharSequence message, long
timeoutMs
, Callable<Boolean> condition)
62
while (
timeoutMs
> 0) {
68
timeoutMs
-= TIME_SLICE;
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
Camera2SurfaceViewCtsActivity.java
48
public boolean waitForSurfaceSizeChanged(int
timeOutMs
, int expectWidth, int expectHeight) {
49
if (
timeOutMs
<= 0 || expectWidth <= 0 || expectHeight <= 0) {
54
timeOutMs
, expectWidth, expectHeight));
57
int waitTimeMs =
timeOutMs
;
63
Log.e(TAG, "Wait for surface change timed out after " +
timeOutMs
+ " ms");
SurfaceViewPreviewTest.java
261
int
timeOutMs
) {
266
timeout(
timeOutMs
).atLeast(expectResultCount))
292
timeout(
timeOutMs
).atLeast(expectResultCount))
/cts/tests/app/src/android/app/cts/
ActivityTestsBase.java
145
public int waitForResultOrThrow(int
timeoutMs
) {
146
return waitForResultOrThrow(
timeoutMs
, null);
149
public int waitForResultOrThrow(int
timeoutMs
, String expected) {
150
final int res = waitForResult(
timeoutMs
, expected);
163
public int waitForResult(int
timeoutMs
, String expected) {
166
final long endTime = System.currentTimeMillis() +
timeoutMs
;
/cts/tests/tests/os/src/android/os/cts/
ActivityTestsBase.java
145
public int waitForResultOrThrow(int
timeoutMs
) {
146
return waitForResultOrThrow(
timeoutMs
, null);
149
public int waitForResultOrThrow(int
timeoutMs
, String expected) {
150
final int res = waitForResult(
timeoutMs
, expected);
163
public int waitForResult(int
timeoutMs
, String expected) {
166
final long endTime = System.currentTimeMillis() +
timeoutMs
;
/frameworks/base/core/tests/coretests/src/android/app/activity/
ActivityTestsBase.java
143
public int waitForResultOrThrow(int
timeoutMs
) {
144
return waitForResultOrThrow(
timeoutMs
, null);
147
public int waitForResultOrThrow(int
timeoutMs
, String expected) {
148
int res = waitForResult(
timeoutMs
, expected);
163
public int waitForResult(int
timeoutMs
, String expected) {
166
long endTime = System.currentTimeMillis() +
timeoutMs
;
/external/chromium_org/chrome/browser/resources/hotword/
constants.js
24
var
TimeoutMs
= {
93
TimeoutMs
:
TimeoutMs
,
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DispatchThread.java
69
* @param
timeoutMs
Timeout limit in milliseconds.
73
public void runJobSync(final Runnable job, Object waitLock, long
timeoutMs
, String jobMsg) {
74
String timeoutMsg = "Timeout waiting " +
timeoutMs
+ "ms for " + jobMsg;
76
long timeoutBound = SystemClock.uptimeMillis() +
timeoutMs
;
79
waitLock.wait(
timeoutMs
);
CameraStateHolder.java
90
* @param
timeoutMs
The timeout limit in milliseconds.
95
long
timeoutMs
) {
96
long timeBound = SystemClock.uptimeMillis() +
timeoutMs
;
100
this.wait(
timeoutMs
);
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
BlockingSessionCallback.java
130
* @param
timeoutMs
how many milliseconds to wait for
133
* @throws TimeoutRuntimeException if waiting for more than {@long
timeoutMs
}
135
public CameraCaptureSession waitAndGetSession(long
timeoutMs
) {
137
return mSessionFuture.get(
timeoutMs
, TimeUnit.MILLISECONDS);
140
String.format("Failed to get session after %s milliseconds",
timeoutMs
), e);
215
long
timeoutMs
= unit.convert(timeout, TimeUnit.MILLISECONDS);
216
if (!mCondVar.block(
timeoutMs
)) {
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
StateWaiter.java
91
* @param
timeoutMs
how long to wait in milliseconds
97
public void waitForState(int state, long
timeoutMs
) {
100
waitForAnyOfStates(Arrays.asList(stateArray),
timeoutMs
);
112
* @param
timeoutMs
how long to wait in milliseconds
120
public int waitForAnyOfStates(Collection<Integer> states, final long
timeoutMs
) {
136
long timeoutLeft =
timeoutMs
;
160
s.append(
timeoutMs
);
/external/chromium_org/mojo/android/javatests/src/org/chromium/mojo/
MojoTestCase.java
47
protected native void nativeRunLoop(long
timeoutMS
);
/external/glide/library/src/main/java/com/bumptech/glide/volley/
VolleyRequestFuture.java
107
private synchronized T doGet(Long
timeoutMs
)
121
if (
timeoutMs
== null) {
123
} else if (
timeoutMs
> 0) {
124
wait(
timeoutMs
);
/frameworks/volley/src/com/android/volley/toolbox/
RequestFuture.java
100
private synchronized T doGet(Long
timeoutMs
)
110
if (
timeoutMs
== null) {
112
} else if (
timeoutMs
> 0) {
113
wait(
timeoutMs
);
HurlStack.java
164
int
timeoutMs
= request.getTimeoutMs();
165
connection.setConnectTimeout(
timeoutMs
);
166
connection.setReadTimeout(
timeoutMs
);
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
MyActivity.java
50
public Integer getResult(int
timeoutMs
) throws InterruptedException {
51
return mResult.poll(
timeoutMs
, TimeUnit.MILLISECONDS);
/cts/tests/tests/media/src/android/media/cts/
CompositionTextureView.java
100
public boolean waitForSurfaceReady(long
timeoutMs
) throws Exception {
104
if (mInitWaitSemaphore.tryAcquire(
timeoutMs
, TimeUnit.MILLISECONDS)) {
MediaPlayerTestBase.java
63
public synchronized boolean waitForSignal(long
timeoutMs
) throws InterruptedException {
64
return waitForCountedSignals(1,
timeoutMs
) > 0;
67
public synchronized int waitForCountedSignals(int targetCount, long
timeoutMs
)
69
if (
timeoutMs
== 0) {
72
long deadline = System.currentTimeMillis() +
timeoutMs
;
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/testcases/
Camera2MultiViewTestCase.java
259
* @param
timeOutMs
The timeout value for the wait
262
protected SurfaceTexture getAvailableSurfaceTexture(long
timeOutMs
, TextureView view) {
263
long waitTime =
timeOutMs
;
274
Log.w(TAG, "Wait for SurfaceTexture available timed out after " +
timeOutMs
+ "ms");
315
public boolean waitForPreviewDone(long
timeOutMs
) {
316
if (!mPreviewDone.block(
timeOutMs
)) {
318
Log.w(TAG, "waitForPreviewDone timed out after " +
timeOutMs
+ "ms");
/libcore/luni/src/main/java/libcore/io/
IoBridge.java
117
* Connects socket 'fd' to 'inetAddress' on 'port', with a the given '
timeoutMs
'.
118
* Use
timeoutMs
== 0 for a blocking connect with no timeout.
120
public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int
timeoutMs
) throws SocketException, SocketTimeoutException {
122
connectErrno(fd, inetAddress, port,
timeoutMs
);
124
throw new ConnectException(connectDetail(inetAddress, port,
timeoutMs
, errnoException), errnoException);
134
private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int
timeoutMs
) throws ErrnoException, IOException {
136
if (
timeoutMs
== 0) {
152
long finishTimeMs = System.currentTimeMillis() +
timeoutMs
;
169
throw new SocketTimeoutException(connectDetail(inetAddress, port,
timeoutMs
, null));
171
} while (!IoBridge.isConnected(fd, inetAddress, port,
timeoutMs
, remainingTimeoutMs))
[
all
...]
/external/chromium_org/extensions/test/data/
unit_test_environment_specific_bindings.js
122
TimeoutManager.prototype.setTimeout_ = function(target,
timeoutMs
) {
127
timeMs:
timeoutMs
+ this.currentTime,
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/
CookieUtils.java
67
* @param
timeoutMs
the timeout in milliseconds for waiting for the callback to complete.
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DetailsOverviewSharedElementHelper.java
165
long
timeoutMs
) {
184
if (
timeoutMs
> 0) {
196
},
timeoutMs
);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
TransitionImageAnimation.java
130
public TransitionImageAnimation
timeoutMs
(long
timeoutMs
) {
131
mTransitionTimeoutMs =
timeoutMs
;
/developers/build/prebuilts/gradle/PermissionRequest/Application/tests/src/com/example/android/permissionrequest/test/
SampleTests.java
175
public boolean waitForKeyword(String keyword, long
timeoutMs
) throws InterruptedException {
177
while (time <
timeoutMs
) {
Completed in 1139 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>