/frameworks/base/services/net/java/android/net/netlink/ |
D | NetlinkSocket.java | 93 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/ |
D | BlockingSessionCallback.java | 139 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/ |
D | KeyguardAbsKeyInputView.java | 148 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()
|
D | KeyguardPatternView.java | 258 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()
|
D | KeyguardSecurityContainer.java | 184 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) { }
|
D | KeyguardSecurityCallback.java | 44 void reportUnlockAttempt(int userId, boolean success, int timeoutMs); in reportUnlockAttempt() argument
|
D | KeyguardMessageArea.java | 123 public void setTimeout(int timeoutMs) { in setTimeout() argument 124 mTimeout = timeoutMs; in setTimeout()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityTestsBase.java | 143 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/volley/src/main/java/com/android/volley/toolbox/ |
D | RequestFuture.java | 100 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()
|
D | HurlStack.java | 188 int timeoutMs = request.getTimeoutMs(); in openConnection() local 189 connection.setConnectTimeout(timeoutMs); in openConnection() 190 connection.setReadTimeout(timeoutMs); in openConnection()
|
D | HttpClientStack.java | 82 int timeoutMs = request.getTimeoutMs(); in performRequest() local 86 HttpConnectionParams.setSoTimeout(httpParams, timeoutMs); in performRequest()
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/ |
D | StateWaiter.java | 97 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/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | DispatchThread.java | 73 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()
|
D | CameraStateHolder.java | 95 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/ |
D | FullWidthDetailsOverviewSharedElementHelper.java | 65 long timeoutMs) { in setSharedElementEnterTransition() argument 82 if (timeoutMs > 0) { in setSharedElementEnterTransition() 91 }, timeoutMs); in setSharedElementEnterTransition()
|
D | DetailsOverviewSharedElementHelper.java | 165 long timeoutMs) { in setSharedElementEnterTransition() argument 184 if (timeoutMs > 0) { in setSharedElementEnterTransition() 196 }, timeoutMs); in setSharedElementEnterTransition()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NativeDaemonConnector.java | 399 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/ |
D | MffFilterTestCase.java | 117 protected void process(long timeoutMs) in process() argument 120 mProcessResult.get(timeoutMs, TimeUnit.MILLISECONDS); in process()
|
/frameworks/base/services/tests/servicestests/src/android/net/metrics/ |
D | IpConnectivityLogTest.java | 146 List<ConnectivityMetricsEvent> verifyEvents(int n, int timeoutMs) throws Exception { in verifyEvents() argument 147 verify(mService, timeout(timeoutMs).times(n)).logEvent(evCaptor.capture()); in verifyEvents()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 189 public RequestThrottledException(int timeoutMs) { in RequestThrottledException() argument 190 mTimeoutMs = timeoutMs; in RequestThrottledException() 1281 public long setLockoutAttemptDeadline(int userId, int timeoutMs) { in setLockoutAttemptDeadline() argument 1282 final long deadline = SystemClock.elapsedRealtime() + timeoutMs; in setLockoutAttemptDeadline() 1284 setLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, timeoutMs, userId); in setLockoutAttemptDeadline() 1295 final long timeoutMs = getLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, 0L, userId); in getLockoutAttemptDeadline() local 1304 if (deadline > (now + timeoutMs)) { in getLockoutAttemptDeadline() 1306 deadline = now + timeoutMs; in getLockoutAttemptDeadline()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | ConnectivityServiceTest.java | 165 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() 301 public void waitForIdle(int timeoutMs) { in waitForIdle() argument 302 mHandlerThread.waitForIdle(timeoutMs); in waitForIdle() 690 public void waitForIdle(int timeoutMs) { in waitForIdle() argument 691 ((IdleableHandlerThread) mHandlerThread).waitForIdle(timeoutMs); in waitForIdle() 1129 void expectCallback(CallbackState state, MockNetworkAgent mockAgent, int timeoutMs) { in expectCallback() argument 1134 actual = mCallbacks.poll(timeoutMs, TimeUnit.MILLISECONDS); in expectCallback() 2361 public static boolean awaitPin(int timeoutMs) { in awaitPin() argument [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2StillCaptureTest.java | 594 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/ |
D | ConnectivityServiceMock.java | 764 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/connectivity/ |
D | NetworkDiagnostics.java | 168 public NetworkDiagnostics(Network network, LinkProperties lp, long timeoutMs) { in NetworkDiagnostics() argument 172 mTimeoutMs = timeoutMs; in NetworkDiagnostics()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ValidateNotificationPeople.java | 150 public float getContactAffinity(UserHandle userHandle, Bundle extras, int timeoutMs, in getContactAffinity() argument 176 if (!s.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in getContactAffinity()
|