Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/java/com/android/internal/util/
DTestUtils.java32 public static void waitForIdleHandler(HandlerThread handlerThread, long timeoutMs) { in waitForIdleHandler() argument
34 waitForIdleLooper(handlerThread.getLooper(), timeoutMs); in waitForIdleHandler() local
40 public static void waitForIdleLooper(Looper looper, long timeoutMs) { in waitForIdleLooper() argument
41 waitForIdleHandler(new Handler(looper), timeoutMs); in waitForIdleLooper()
47 public static void waitForIdleHandler(Handler handler, long timeoutMs) { in waitForIdleHandler() argument
50 if (!cv.block(timeoutMs)) { in waitForIdleHandler()
51 fail(handler.toString() + " did not become idle after " + timeoutMs + " ms"); in waitForIdleHandler()
/frameworks/base/services/net/java/android/net/netlink/
DNetlinkSocket.java134 public ByteBuffer recvMessage(long timeoutMs) throws ErrnoException, InterruptedIOException { in recvMessage() argument
135 return recvMessage(DEFAULT_RECV_BUFSIZE, timeoutMs); in recvMessage()
138 private void checkTimeout(long timeoutMs) { in checkTimeout() argument
139 if (timeoutMs < 0) { in checkTimeout()
150 public ByteBuffer recvMessage(int bufsize, long timeoutMs) in recvMessage() argument
152 checkTimeout(timeoutMs); in recvMessage()
155 if (mLastRecvTimeoutMs != timeoutMs) { in recvMessage()
158 StructTimeval.fromMillis(timeoutMs)); in recvMessage()
159 mLastRecvTimeoutMs = timeoutMs; in recvMessage()
190 public boolean sendMessage(byte[] bytes, int offset, int count, long timeoutMs) in sendMessage() argument
[all …]
/frameworks/base/services/net/java/android/net/util/
DNetdService.java83 long timeoutMs = 0; in get() local
94 timeoutMs = Math.min(timeoutMs + BASE_TIMEOUT_MS, MAX_TIMEOUT_MS); in get()
95 timeoutMs = Math.min(timeoutMs, remaining); in get()
97 Thread.sleep(timeoutMs); in get()
/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()
233 CameraCaptureSession session, Surface surface, long timeoutMs) { in waitForSurfacePrepared() argument
240 long waitTimeRemaining = timeoutMs; in waitForSurfacePrepared()
243 mPreparedSurfaces.wait(timeoutMs); in waitForSurfacePrepared()
253 "Unable to get Surface prepared in " + timeoutMs + "ms"); in waitForSurfacePrepared()
292 long timeoutMs = unit.convert(timeout, TimeUnit.MILLISECONDS); in get() local
293 if (!mCondVar.block(timeoutMs)) { in get()
/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/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardAbsKeyInputView.java160 public void onChecked(boolean matched, int timeoutMs) { in verifyPasswordAndUnlock()
168 onPasswordChecked(userId, false /* matched */, timeoutMs, in verifyPasswordAndUnlock()
185 private void onPasswordChecked(int userId, boolean matched, int timeoutMs, in onPasswordChecked() argument
196 mCallback.reportUnlockAttempt(userId, false, timeoutMs); in onPasswordChecked()
197 if (timeoutMs > 0) { in onPasswordChecked()
199 userId, timeoutMs); in onPasswordChecked()
203 if (timeoutMs == 0) { in onPasswordChecked()
DKeyguardSecurityContainer.java189 private void showTimeoutDialog(int userId, int timeoutMs) { in showTimeoutDialog() argument
190 int timeoutInSeconds = (int) timeoutMs / 1000; in showTimeoutDialog()
257 private void reportFailedUnlockAttempt(int userId, int timeoutMs) { in reportFailedUnlockAttempt() argument
295 if (timeoutMs > 0) { in reportFailedUnlockAttempt()
296 mLockPatternUtils.reportPasswordLockout(timeoutMs, userId); in reportFailedUnlockAttempt()
297 showTimeoutDialog(userId, timeoutMs); in reportFailedUnlockAttempt()
432 public void reportUnlockAttempt(int userId, boolean success, int timeoutMs) {
438 KeyguardSecurityContainer.this.reportFailedUnlockAttempt(userId, timeoutMs);
454 public void reportUnlockAttempt(int userId, boolean success, int timeoutMs) { }
DKeyguardPatternView.java269 public void onChecked(boolean matched, int timeoutMs) { in onPatternDetected()
277 onPatternChecked(userId, false /* matched */, timeoutMs, in onPatternDetected()
297 private void onPatternChecked(int userId, boolean matched, int timeoutMs, in onPatternChecked() argument
309 mCallback.reportUnlockAttempt(userId, false, timeoutMs); in onPatternChecked()
310 if (timeoutMs > 0) { in onPatternChecked()
312 userId, timeoutMs); in onPatternChecked()
316 if (timeoutMs == 0) { in onPatternChecked()
DKeyguardSecurityCallback.java45 void reportUnlockAttempt(int userId, boolean success, int timeoutMs); in reportUnlockAttempt() argument
/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/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/compat/tests/java/android/support/v4/provider/
DSelfDestructiveThreadTest.java50 private void waitUntilDestruction(SelfDestructiveThread thread, long timeoutMs) { in waitUntilDestruction() argument
55 System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(timeoutMs); in waitUntilDestruction()
181 final int timeoutMs = 300; in testTimeout() local
186 waitMillis(timeoutMs * 3); // Wait longer than timeout. in testTimeout()
189 }, timeoutMs); in testTimeout()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DFullWidthDetailsOverviewSharedElementHelper.java76 long timeoutMs) { in setSharedElementEnterTransition() argument
93 if (timeoutMs > 0) { in setSharedElementEnterTransition()
94 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs); in setSharedElementEnterTransition()
DDetailsOverviewSharedElementHelper.java187 long timeoutMs) { in setSharedElementEnterTransition() argument
206 if (timeoutMs > 0) { in setSharedElementEnterTransition()
207 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs); in setSharedElementEnterTransition()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java194 public Intent expectStartActivityIntent(int timeoutMs) { in expectStartActivityIntent() argument
197 intent = mStartedActivities.poll(timeoutMs, TimeUnit.MILLISECONDS); in expectStartActivityIntent()
199 assertNotNull("Did not receive sign-in intent after " + timeoutMs + "ms", intent); in expectStartActivityIntent()
203 public void expectNoStartActivityIntent(int timeoutMs) { in expectNoStartActivityIntent() argument
206 mStartedActivities.poll(timeoutMs, TimeUnit.MILLISECONDS)); in expectNoStartActivityIntent()
229 long timeoutMs = timeoutMsAsInt; in waitForIdle() local
230 waitForIdleHandler(mService.mHandlerThread, timeoutMs); in waitForIdle()
231 waitForIdle(mCellNetworkAgent, timeoutMs); in waitForIdle()
232 waitForIdle(mWiFiNetworkAgent, timeoutMs); in waitForIdle()
233 waitForIdle(mEthernetNetworkAgent, timeoutMs); in waitForIdle()
[all …]
/frameworks/support/compat/java/android/support/v4/content/res/
DFontResourcesParserCompat.java79 int timeoutMs) { in ProviderResourceEntry() argument
82 mTimeoutMs = timeoutMs; in ProviderResourceEntry()
186 int timeoutMs = array.getInteger(R.styleable.FontFamily_fontProviderFetchTimeout, in readFamily() local
195 new FontRequest(authority, providerPackage, query, certs), strategy, timeoutMs); in readFamily()
/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/core/java/com/android/internal/widget/
DLockPatternUtils.java205 public RequestThrottledException(int timeoutMs) { in RequestThrottledException() argument
206 mTimeoutMs = timeoutMs; in RequestThrottledException()
321 public void reportPasswordLockout(int timeoutMs, int userId) { in reportPasswordLockout() argument
325 getTrustManager().reportUnlockLockout(timeoutMs, userId); in reportPasswordLockout()
1232 public long setLockoutAttemptDeadline(int userId, int timeoutMs) { in setLockoutAttemptDeadline() argument
1233 final long deadline = SystemClock.elapsedRealtime() + timeoutMs; in setLockoutAttemptDeadline()
1240 setLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, timeoutMs, userId); in setLockoutAttemptDeadline()
1251 final long timeoutMs = getLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, 0L, userId); in getLockoutAttemptDeadline() local
1260 if (deadline > (now + timeoutMs)) { in getLockoutAttemptDeadline()
1262 deadline = now + timeoutMs; in getLockoutAttemptDeadline()
/frameworks/base/core/java/android/app/trust/
DTrustManager.java94 public void reportUnlockLockout(int timeoutMs, int userId) { in reportUnlockLockout() argument
96 mService.reportUnlockLockout(timeoutMs, userId); in reportUnlockLockout()
DITrustManager.aidl28 void reportUnlockLockout(int timeoutMs, int userId); in reportUnlockLockout() argument
/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/cmds/incidentd/src/
DFdBuffer.h44 status_t read(int fd, int64_t timeoutMs);
/frameworks/base/core/java/android/service/trust/
DITrustAgentService.aidl28 oneway void onUnlockLockout(int timeoutMs); in onUnlockLockout() argument
/frameworks/base/core/java/android/net/
DConnectivityManager.java2918 int timeoutMs, int action, int legacyType, CallbackHandler handler) { in sendRequestForNetwork() argument
2936 need, messenger, timeoutMs, binder, legacyType); in sendRequestForNetwork()
2963 int timeoutMs, int legacyType, Handler handler) { in requestNetwork() argument
2966 sendRequestForNetwork(nc, networkCallback, timeoutMs, REQUEST, legacyType, cbHandler); in requestNetwork()
3071 int timeoutMs) { in requestNetwork() argument
3072 checkTimeout(timeoutMs); in requestNetwork()
3074 requestNetwork(request, networkCallback, timeoutMs, legacyType, getDefaultHandler()); in requestNetwork()
3105 Handler handler, int timeoutMs) { in requestNetwork() argument
3106 checkTimeout(timeoutMs); in requestNetwork()
3109 requestNetwork(request, networkCallback, timeoutMs, legacyType, cbHandler); in requestNetwork()
[all …]

12