Searched defs:timeoutMs (Results 1 - 25 of 48) 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 DKeyguardMessageArea.java123 public void setTimeout(int timeoutMs) { argument
124 mTimeout = timeoutMs;
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 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 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) { }
/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 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
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);
/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/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);
/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/services/tests/servicestests/src/com/android/server/connectivity/
H A DIpConnectivityMetricsTest.java252 List<ConnectivityMetricsEvent> verifyEvents(int n, int timeoutMs) throws Exception { argument
255 verify(mMockService, timeout(timeoutMs).times(n)).logEvent(captor.capture());
/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/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewSharedElementHelper.java186 long timeoutMs) {
205 if (timeoutMs > 0) {
206 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs);
185 setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs) argument
H A DFullWidthDetailsOverviewSharedElementHelper.java87 long timeoutMs) {
104 if (timeoutMs > 0) {
105 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs);
86 setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs) argument
H A DDetailsOverviewRowPresenter.java372 String sharedElementName, long timeoutMs) {
377 timeoutMs);
371 setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs) argument
/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/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/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)) {
/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/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsServiceTest.java1296 public void waitForIdle(long timeoutMs) { argument
1316 if (!cv.block(timeoutMs)) {
1317 fail("HandlerThread " + getName() + " did not become idle after " + timeoutMs
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java189 public RequestThrottledException(int timeoutMs) { argument
190 mTimeoutMs = timeoutMs;
1242 public long setLockoutAttemptDeadline(int userId, int timeoutMs) { argument
1243 final long deadline = SystemClock.elapsedRealtime() + timeoutMs;
1245 setLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, timeoutMs, userId);
1256 final long timeoutMs = getLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, 0L, userId);
1265 if (deadline > (now + timeoutMs)) {
1267 deadline = now + timeoutMs;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java372 public void waitForImageReleased(long timeoutMs) throws InterruptedException { argument
373 if (!mImageReleasedSema.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
374 fail("wait for image available timed out after " + timeoutMs + "ms");

Completed in 512 milliseconds

12