Home
last modified time | relevance | path

Searched refs:timeoutMs (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/net/java/android/net/netlink/
DNetlinkSocket.java93 public ByteBuffer recvMessage(long timeoutMs) throws ErrnoException, InterruptedIOException { in recvMessage() argument
94 return recvMessage(DEFAULT_RECV_BUFSIZE, timeoutMs); in recvMessage()
97 private void checkTimeout(long timeoutMs) { in checkTimeout() argument
98 if (timeoutMs < 0) { in checkTimeout()
109 public ByteBuffer recvMessage(int bufsize, long timeoutMs) in recvMessage() argument
111 checkTimeout(timeoutMs); in recvMessage()
114 if (mLastRecvTimeoutMs != timeoutMs) { in recvMessage()
117 StructTimeval.fromMillis(timeoutMs)); in recvMessage()
118 mLastRecvTimeoutMs = timeoutMs; in recvMessage()
149 public boolean sendMessage(byte[] bytes, int offset, int count, long timeoutMs) in sendMessage() argument
[all …]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingSessionCallback.java139 public CameraCaptureSession waitAndGetSession(long timeoutMs) { in waitAndGetSession() argument
141 return mSessionFuture.get(timeoutMs, TimeUnit.MILLISECONDS); in waitAndGetSession()
144 String.format("Failed to get session after %s milliseconds", timeoutMs), e); in waitAndGetSession()
225 CameraCaptureSession session, Surface surface, long timeoutMs) { in waitForSurfacePrepared() argument
232 long waitTimeRemaining = timeoutMs; in waitForSurfacePrepared()
235 mPreparedSurfaces.wait(timeoutMs); in waitForSurfacePrepared()
245 "Unable to get Surface prepared in " + timeoutMs + "ms"); in waitForSurfacePrepared()
284 long timeoutMs = unit.convert(timeout, TimeUnit.MILLISECONDS); in get() local
285 if (!mCondVar.block(timeoutMs)) { in get()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardAbsKeyInputView.java148 public void onChecked(boolean matched, int timeoutMs) { in verifyPasswordAndUnlock()
152 onPasswordChecked(userId, false /* matched */, timeoutMs, in verifyPasswordAndUnlock()
159 private void onPasswordChecked(int userId, boolean matched, int timeoutMs, in onPasswordChecked() argument
170 mCallback.reportUnlockAttempt(userId, false, timeoutMs); in onPasswordChecked()
171 if (timeoutMs > 0) { in onPasswordChecked()
173 userId, timeoutMs); in onPasswordChecked()
177 if (timeoutMs == 0) { in onPasswordChecked()
DKeyguardPatternView.java258 public void onChecked(boolean matched, int timeoutMs) { in onPatternDetected()
262 onPatternChecked(userId, false /* matched */, timeoutMs, in onPatternDetected()
272 private void onPatternChecked(int userId, boolean matched, int timeoutMs, in onPatternChecked() argument
284 mCallback.reportUnlockAttempt(userId, false, timeoutMs); in onPatternChecked()
285 if (timeoutMs > 0) { in onPatternChecked()
287 userId, timeoutMs); in onPatternChecked()
291 if (timeoutMs == 0) { in onPatternChecked()
DKeyguardSecurityContainer.java184 private void showTimeoutDialog(int timeoutMs) { in showTimeoutDialog() argument
185 int timeoutInSeconds = (int) timeoutMs / 1000; in showTimeoutDialog()
253 private void reportFailedUnlockAttempt(int userId, int timeoutMs) { in reportFailedUnlockAttempt() argument
291 if (timeoutMs > 0) { in reportFailedUnlockAttempt()
292 showTimeoutDialog(timeoutMs); in reportFailedUnlockAttempt()
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) { }
DKeyguardSecurityCallback.java44 void reportUnlockAttempt(int userId, boolean success, int timeoutMs); in reportUnlockAttempt() argument
DKeyguardMessageArea.java123 public void setTimeout(int timeoutMs) { in setTimeout() argument
124 mTimeout = timeoutMs; in setTimeout()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityTestsBase.java143 public int waitForResultOrThrow(int timeoutMs) { in waitForResultOrThrow() argument
144 return waitForResultOrThrow(timeoutMs, null); in waitForResultOrThrow()
147 public int waitForResultOrThrow(int timeoutMs, String expected) { in waitForResultOrThrow() argument
148 int res = waitForResult(timeoutMs, expected); in waitForResultOrThrow()
163 public int waitForResult(int timeoutMs, String expected) { in waitForResult() argument
166 long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
DStateWaiter.java97 public void waitForState(int state, long timeoutMs) { in waitForState() argument
100 waitForAnyOfStates(Arrays.asList(stateArray), timeoutMs); in waitForState() local
120 public int waitForAnyOfStates(Collection<Integer> states, final long timeoutMs) { in waitForAnyOfStates() argument
136 long timeoutLeft = timeoutMs; in waitForAnyOfStates()
160 s.append(timeoutMs); in waitForAnyOfStates()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DRequestFuture.java100 private synchronized T doGet(Long timeoutMs) in doGet() argument
110 if (timeoutMs == null) { in doGet()
112 } else if (timeoutMs > 0) { in doGet()
113 wait(timeoutMs); in doGet()
DHurlStack.java188 int timeoutMs = request.getTimeoutMs(); in openConnection() local
189 connection.setConnectTimeout(timeoutMs); in openConnection()
190 connection.setReadTimeout(timeoutMs); in openConnection()
DHttpClientStack.java82 int timeoutMs = request.getTimeoutMs(); in performRequest() local
86 HttpConnectionParams.setSoTimeout(httpParams, timeoutMs); in performRequest()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DDispatchThread.java73 public void runJobSync(final Runnable job, Object waitLock, long timeoutMs, String jobMsg) { in runJobSync() argument
74 String timeoutMsg = "Timeout waiting " + timeoutMs + "ms for " + jobMsg; in runJobSync()
76 long timeoutBound = SystemClock.uptimeMillis() + timeoutMs; in runJobSync()
79 waitLock.wait(timeoutMs); in runJobSync()
DCameraStateHolder.java95 long timeoutMs) { in waitForCondition() argument
96 long timeBound = SystemClock.uptimeMillis() + timeoutMs; in waitForCondition()
100 this.wait(timeoutMs); in waitForCondition()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DFullWidthDetailsOverviewSharedElementHelper.java87 long timeoutMs) { in setSharedElementEnterTransition() argument
104 if (timeoutMs > 0) { in setSharedElementEnterTransition()
105 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs); in setSharedElementEnterTransition()
DDetailsOverviewSharedElementHelper.java186 long timeoutMs) { in setSharedElementEnterTransition() argument
205 if (timeoutMs > 0) { in setSharedElementEnterTransition()
206 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs); in setSharedElementEnterTransition()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java399 public NativeDaemonEvent execute(long timeoutMs, String cmd, Object... args) in execute() argument
401 final NativeDaemonEvent[] events = executeForList(timeoutMs, cmd, args); in execute()
451 public NativeDaemonEvent[] executeForList(long timeoutMs, String cmd, Object... args) in executeForList() argument
487 event = mResponseQueue.remove(sequenceNumber, timeoutMs, logCmd); in executeForList()
675 public NativeDaemonEvent remove(int cmdNum, long timeoutMs, String logCmd) { in remove() argument
695 result = found.responses.poll(timeoutMs, TimeUnit.MILLISECONDS); in remove()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffFilterTestCase.java117 protected void process(long timeoutMs) in process() argument
120 mProcessResult.get(timeoutMs, TimeUnit.MILLISECONDS); in process()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java189 public RequestThrottledException(int timeoutMs) { in RequestThrottledException() argument
190 mTimeoutMs = timeoutMs; in RequestThrottledException()
1242 public long setLockoutAttemptDeadline(int userId, int timeoutMs) { in setLockoutAttemptDeadline() argument
1243 final long deadline = SystemClock.elapsedRealtime() + timeoutMs; in setLockoutAttemptDeadline()
1245 setLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, timeoutMs, userId); in setLockoutAttemptDeadline()
1256 final long timeoutMs = getLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, 0L, userId); in getLockoutAttemptDeadline() local
1265 if (deadline > (now + timeoutMs)) { in getLockoutAttemptDeadline()
1267 deadline = now + timeoutMs; in getLockoutAttemptDeadline()
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
DIpConnectivityMetricsTest.java252 List<ConnectivityMetricsEvent> verifyEvents(int n, int timeoutMs) throws Exception { in verifyEvents() argument
255 verify(mMockService, timeout(timeoutMs).times(n)).logEvent(captor.capture()); in verifyEvents()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java165 public void waitForIdle(int timeoutMs) { in waitForIdle() argument
187 if (!cv.block(timeoutMs)) { in waitForIdle()
189 " did not become idle after " + timeoutMs + " ms"); in waitForIdle()
307 public void waitForIdle(int timeoutMs) { in waitForIdle() argument
308 mHandlerThread.waitForIdle(timeoutMs); in waitForIdle()
696 public void waitForIdle(int timeoutMs) { in waitForIdle() argument
697 ((IdleableHandlerThread) mHandlerThread).waitForIdle(timeoutMs); in waitForIdle()
1139 void expectCallback(CallbackState state, MockNetworkAgent mockAgent, int timeoutMs) { in expectCallback() argument
1144 actual = mCallbacks.poll(timeoutMs, TimeUnit.MILLISECONDS); in expectCallback()
2494 public static boolean awaitPin(int timeoutMs) { in awaitPin() argument
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2StillCaptureTest.java594 public void waitForAutoFocusDone(long timeoutMs) { in waitForAutoFocusDone() argument
595 if (focusDone.block(timeoutMs)) { in waitForAutoFocusDone()
599 + timeoutMs + "ms"); in waitForAutoFocusDone()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java764 Messenger messenger, int timeoutMs, IBinder binder, int legacyType) { in requestNetwork() argument
767 if (timeoutMs < 0 || timeoutMs > ConnectivityManager.MAX_NETWORK_REQUEST_TIMEOUT_MS) { in requestNetwork()
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java150 public float getContactAffinity(UserHandle userHandle, Bundle extras, int timeoutMs, in getContactAffinity() argument
176 if (!s.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in getContactAffinity()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkDiagnostics.java168 public NetworkDiagnostics(Network network, LinkProperties lp, long timeoutMs) { in NetworkDiagnostics() argument
172 mTimeoutMs = timeoutMs; in NetworkDiagnostics()

12