Searched defs:timeoutMs (Results 1 - 25 of 58) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityCallback.java42 * @param timeoutMs timeout in milliseconds to wait before reattempting an unlock.
45 void reportUnlockAttempt(int userId, boolean success, int timeoutMs); argument
H A DKeyguardAbsKeyInputView.java155 onPasswordChecked(userId, true /* matched */, 0 /* timeoutMs */,
160 public void onChecked(boolean matched, int timeoutMs) {
168 onPasswordChecked(userId, false /* matched */, timeoutMs,
185 private void onPasswordChecked(int userId, boolean matched, int timeoutMs, argument
196 mCallback.reportUnlockAttempt(userId, false, timeoutMs);
197 if (timeoutMs > 0) {
199 userId, timeoutMs);
203 if (timeoutMs == 0) {
H A DKeyguardPatternView.java264 onPatternChecked(userId, true /* matched */, 0 /* timeoutMs */,
269 public void onChecked(boolean matched, int timeoutMs) {
277 onPatternChecked(userId, false /* matched */, timeoutMs,
297 private void onPatternChecked(int userId, boolean matched, int timeoutMs, argument
309 mCallback.reportUnlockAttempt(userId, false, timeoutMs);
310 if (timeoutMs > 0) {
312 userId, timeoutMs);
316 if (timeoutMs == 0) {
H A DKeyguardSecurityContainer.java189 private void showTimeoutDialog(int userId, int timeoutMs) { argument
190 int timeoutInSeconds = (int) timeoutMs / 1000;
257 private void reportFailedUnlockAttempt(int userId, int timeoutMs) { argument
295 if (timeoutMs > 0) {
296 mLockPatternUtils.reportPasswordLockout(timeoutMs, userId);
297 showTimeoutDialog(userId, timeoutMs);
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) { }
/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/base/core/java/android/app/trust/
H A DTrustManager.java96 public void reportUnlockLockout(int timeoutMs, int userId) { argument
98 mService.reportUnlockLockout(timeoutMs, userId);
/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/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/compat/tests/java/android/support/v4/provider/
H A DSelfDestructiveThreadTest.java49 private void waitUntilDestruction(SelfDestructiveThread thread, long timeoutMs) { argument
54 System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(timeoutMs);
179 final int timeoutMs = 300;
184 waitMillis(timeoutMs * 3); // Wait longer than timeout.
187 }, timeoutMs);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewSharedElementHelper.java184 long timeoutMs) {
203 if (timeoutMs > 0) {
204 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs);
183 setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs) argument
H A DFullWidthDetailsOverviewSharedElementHelper.java76 long timeoutMs) {
93 if (timeoutMs > 0) {
94 new Handler().postDelayed(new TransitionTimeOutRunnable(this), timeoutMs);
75 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/base/telecomm/java/android/telecom/Logging/
H A DSessionManager.java395 public synchronized void cleanupStaleSessions(long timeoutMs) { argument
407 if (currentTimeMs - session.getExecutionStartTimeMilliseconds() > timeoutMs) {
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DIpConnectivityMetricsTest.java413 List<ConnectivityMetricsEvent> verifyEvents(int n, int timeoutMs) throws Exception { argument
416 verify(mMockService, timeout(timeoutMs).times(n)).logEvent(captor.capture());
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
H A DUpstreamNetworkMonitorTest.java305 int timeoutMs, int legacyType, Handler h) {
304 requestNetwork(NetworkRequest req, NetworkCallback cb, int timeoutMs, int legacyType, Handler h) argument
/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);
228 * @param timeoutMs how many milliseconds to wait for
230 * @throws TimeoutRuntimeException if waiting for more than {@long timeoutMs}
233 CameraCaptureSession session, Surface surface, long timeoutMs) {
240 long waitTimeRemaining = timeoutMs;
243 mPreparedSurfaces.wait(timeoutMs);
232 waitForSurfacePrepared( CameraCaptureSession session, Surface surface, long timeoutMs) argument
[all...]
/frameworks/support/compat/api26/android/support/v4/app/
H A DNotificationCompatApi26.java46 String channelId, int badgeIcon, String shortcutId, long timeoutMs,
87 .setTimeoutAfter(timeoutMs)
36 Builder(Context context, Notification n, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, RemoteViews tickerView, int number, PendingIntent contentIntent, PendingIntent fullScreenIntent, Bitmap largeIcon, int progressMax, int progress, boolean progressIndeterminate, boolean showWhen, boolean useChronometer, int priority, CharSequence subText, boolean localOnly, String category, ArrayList<String> people, Bundle extras, int color, int visibility, Notification publicVersion, String groupKey, boolean groupSummary, String sortKey, CharSequence[] remoteInputHistory, RemoteViews contentView, RemoteViews bigContentView, RemoteViews headsUpContentView, String channelId, int badgeIcon, String shortcutId, long timeoutMs, boolean colorized, boolean colorizedSet, int groupAlertBehavior) argument
/frameworks/support/compat/java/android/support/v4/content/res/
H A DFontResourcesParserCompat.java79 int timeoutMs) {
82 mTimeoutMs = timeoutMs;
179 int timeoutMs = array.getInteger(R.styleable.FontFamily_fontProviderFetchTimeout,
188 new FontRequest(authority, providerPackage, query, certs), strategy, timeoutMs);
78 ProviderResourceEntry(@onNull FontRequest request, @FetchStrategy int strategy, int timeoutMs) argument
/frameworks/base/core/java/android/service/trust/
H A DTrustAgentService.java300 * @param timeoutMs The amount of time, in milliseconds, that needs to elapse before the user
303 public void onDeviceUnlockLockout(long timeoutMs) { argument
579 public void onUnlockLockout(int timeoutMs) { argument
580 mHandler.obtainMessage(MSG_UNLOCK_LOCKOUT, timeoutMs, 0).sendToTarget();
/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.java149 * @param timeoutMs timeout in milliseconds to wait for contacts response
151 * <code>timeoutMs</code> is hit
153 public float getContactAffinity(UserHandle userHandle, Bundle extras, int timeoutMs, argument
180 if (!s.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustAgentWrapper.java448 public void onUnlockLockout(int timeoutMs) { argument
451 mTrustAgentService.onUnlockLockout(timeoutMs);

Completed in 503 milliseconds

123