Searched refs:timeoutMs (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSecurityCallback.java41 * @param timeoutMs timeout in milliseconds to wait before reattempting an unlock.
44 void reportUnlockAttempt(int userId, boolean success, int timeoutMs); argument
H A DKeyguardAbsKeyInputView.java143 onPasswordChecked(userId, true /* matched */, 0 /* timeoutMs */,
148 public void onChecked(boolean matched, int timeoutMs) {
152 onPasswordChecked(userId, false /* matched */, timeoutMs,
159 private void onPasswordChecked(int userId, boolean matched, int timeoutMs, argument
170 mCallback.reportUnlockAttempt(userId, false, timeoutMs);
171 if (timeoutMs > 0) {
173 userId, timeoutMs);
177 if (timeoutMs == 0) {
H A DKeyguardSecurityContainer.java184 private void showTimeoutDialog(int timeoutMs) { argument
185 int timeoutInSeconds = (int) timeoutMs / 1000;
253 private void reportFailedUnlockAttempt(int userId, int timeoutMs) { argument
291 if (timeoutMs > 0) {
292 showTimeoutDialog(timeoutMs);
425 public void reportUnlockAttempt(int userId, boolean success, int timeoutMs) {
431 KeyguardSecurityContainer.this.reportFailedUnlockAttempt(userId, timeoutMs);
447 public void reportUnlockAttempt(int userId, boolean success, int timeoutMs) { }
H A DKeyguardPatternView.java253 onPatternChecked(userId, true /* matched */, 0 /* timeoutMs */,
258 public void onChecked(boolean matched, int timeoutMs) {
262 onPatternChecked(userId, false /* matched */, timeoutMs,
272 private void onPatternChecked(int userId, boolean matched, int timeoutMs, argument
284 mCallback.reportUnlockAttempt(userId, false, timeoutMs);
285 if (timeoutMs > 0) {
287 userId, timeoutMs);
291 if (timeoutMs == 0) {
H A DKeyguardMessageArea.java123 public void setTimeout(int timeoutMs) { argument
124 mTimeout = timeoutMs;
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkSocket.java90 * Wait up to |timeoutMs| (or until underlying socket error) for a
93 public ByteBuffer recvMessage(long timeoutMs) throws ErrnoException, InterruptedIOException { argument
94 return recvMessage(DEFAULT_RECV_BUFSIZE, timeoutMs);
97 private void checkTimeout(long timeoutMs) { argument
98 if (timeoutMs < 0) {
104 * Wait up to |timeoutMs| (or until underlying socket error) for a
109 public ByteBuffer recvMessage(int bufsize, long timeoutMs) argument
111 checkTimeout(timeoutMs);
114 if (mLastRecvTimeoutMs != timeoutMs) {
117 StructTimeval.fromMillis(timeoutMs));
149 sendMessage(byte[] bytes, int offset, int count, long timeoutMs) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DDispatchThread.java69 * @param timeoutMs Timeout limit in milliseconds.
73 public void runJobSync(final Runnable job, Object waitLock, long timeoutMs, String jobMsg) { argument
74 String timeoutMsg = "Timeout waiting " + timeoutMs + "ms for " + jobMsg;
76 long timeoutBound = SystemClock.uptimeMillis() + timeoutMs;
79 waitLock.wait(timeoutMs);
H A DCameraStateHolder.java90 * @param timeoutMs The timeout limit in milliseconds.
95 long timeoutMs) {
96 long timeBound = SystemClock.uptimeMillis() + timeoutMs;
100 this.wait(timeoutMs);
94 waitForCondition(ConditionChecker stateChecker, long timeoutMs) argument
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DRequestFuture.java100 private synchronized T doGet(Long timeoutMs) argument
110 if (timeoutMs == null) {
112 } else if (timeoutMs > 0) {
113 wait(timeoutMs);
H A DHurlStack.java188 int timeoutMs = request.getTimeoutMs();
189 connection.setConnectTimeout(timeoutMs);
190 connection.setReadTimeout(timeoutMs);
H A DHttpClientStack.java82 int timeoutMs = request.getTimeoutMs();
86 HttpConnectionParams.setSoTimeout(httpParams, timeoutMs);
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DActivityTestsBase.java143 public int waitForResultOrThrow(int timeoutMs) { argument
144 return waitForResultOrThrow(timeoutMs, null);
147 public int waitForResultOrThrow(int timeoutMs, String expected) { argument
148 int res = waitForResult(timeoutMs, expected);
163 public int waitForResult(int timeoutMs, String expected) { argument
166 long endTime = System.currentTimeMillis() + timeoutMs;
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingSessionCallback.java134 * @param timeoutMs how many milliseconds to wait for
137 * @throws TimeoutRuntimeException if waiting for more than {@long timeoutMs}
139 public CameraCaptureSession waitAndGetSession(long timeoutMs) { argument
141 return mSessionFuture.get(timeoutMs, TimeUnit.MILLISECONDS);
144 String.format("Failed to get session after %s milliseconds", timeoutMs), e);
220 * @param timeoutMs how many milliseconds to wait for
222 * @throws TimeoutRuntimeException if waiting for more than {@long timeoutMs}
225 CameraCaptureSession session, Surface surface, long timeoutMs) {
232 long waitTimeRemaining = timeoutMs;
235 mPreparedSurfaces.wait(timeoutMs);
224 waitForSurfacePrepared( CameraCaptureSession session, Surface surface, long timeoutMs) argument
[all...]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
H A DStateWaiter.java91 * @param timeoutMs how long to wait in milliseconds
97 public void waitForState(int state, long timeoutMs) { argument
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) { argument
136 long timeoutLeft = timeoutMs;
160 s.append(timeoutMs);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DFullWidthDetailsOverviewSharedElementHelper.java65 long timeoutMs) {
82 if (timeoutMs > 0) {
91 }, timeoutMs);
64 setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs) argument
H A DDetailsOverviewSharedElementHelper.java165 long timeoutMs) {
184 if (timeoutMs > 0) {
196 }, timeoutMs);
164 setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs) argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
H A DMffFilterTestCase.java117 protected void process(long timeoutMs) argument
120 mProcessResult.get(timeoutMs, TimeUnit.MILLISECONDS);
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonConnector.java399 public NativeDaemonEvent execute(long timeoutMs, String cmd, Object... args) argument
401 final NativeDaemonEvent[] events = executeForList(timeoutMs, cmd, args);
451 public NativeDaemonEvent[] executeForList(long timeoutMs, String cmd, Object... args) argument
487 event = mResponseQueue.remove(sequenceNumber, timeoutMs, logCmd);
675 public NativeDaemonEvent remove(int cmdNum, long timeoutMs, String logCmd) { argument
695 result = found.responses.poll(timeoutMs, TimeUnit.MILLISECONDS);
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
H A DIpConnectivityMetricsTest.java219 List<ConnectivityMetricsEvent> verifyEvents(int n, int timeoutMs) throws Exception { argument
222 verify(mMockService, timeout(timeoutMs).times(n)).logEvent(captor.capture());
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java189 public RequestThrottledException(int timeoutMs) { argument
190 mTimeoutMs = timeoutMs;
1281 public long setLockoutAttemptDeadline(int userId, int timeoutMs) { argument
1282 final long deadline = SystemClock.elapsedRealtime() + timeoutMs;
1284 setLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, timeoutMs, userId);
1295 final long timeoutMs = getLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, 0L, userId);
1304 if (deadline > (now + timeoutMs)) {
1306 deadline = now + timeoutMs;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DConnectivityServiceTest.java165 public void waitForIdle(int timeoutMs) { argument
187 if (!cv.block(timeoutMs)) {
189 " did not become idle after " + timeoutMs + " ms");
301 public void waitForIdle(int timeoutMs) { argument
302 mHandlerThread.waitForIdle(timeoutMs);
690 public void waitForIdle(int timeoutMs) { argument
691 ((IdleableHandlerThread) mHandlerThread).waitForIdle(timeoutMs);
1130 void expectCallback(CallbackState state, MockNetworkAgent mockAgent, int timeoutMs) { argument
1135 actual = mCallbacks.poll(timeoutMs, TimeUnit.MILLISECONDS);
1448 TEST_LINGER_DELAY_MS /* timeoutMs */);
2439 awaitPin(int timeoutMs) argument
2450 awaitUnpin(int timeoutMs) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2StillCaptureTest.java594 public void waitForAutoFocusDone(long timeoutMs) { argument
595 if (focusDone.block(timeoutMs)) {
599 + timeoutMs + "ms");
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DCameraDeviceUserShim.java172 * @param timeoutMs timeout in milliseconds
178 public int waitForOpen(int timeoutMs) { argument
180 if (!mStartDone.block(timeoutMs)) {
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkDiagnostics.java168 public NetworkDiagnostics(Network network, LinkProperties lp, long timeoutMs) { argument
172 mTimeoutMs = timeoutMs;
/frameworks/base/services/core/java/com/android/server/notification/
H A DValidateNotificationPeople.java146 * @param timeoutMs timeout in milliseconds to wait for contacts response
148 * <code>timeoutMs</code> is hit
150 public float getContactAffinity(UserHandle userHandle, Bundle extras, int timeoutMs, argument
176 if (!s.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {

Completed in 832 milliseconds

12