Searched refs:timeoutMs (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/opt/car/services/src/com/android/internal/car/
H A DICarServiceHelper.aidl24 int forceSuspend(int timeoutMs);
H A DCarServiceHelperService.java91 private static native int nativeForceSuspend(int timeoutMs); argument
97 * @param timeoutMs
100 public int forceSuspend(int timeoutMs) { argument
105 retVal = nativeForceSuspend(timeoutMs);
/frameworks/base/tests/net/java/com/android/internal/util/
H A DTestUtils.java30 * Block until the given Handler thread becomes idle, or until timeoutMs has passed.
32 public static void waitForIdleHandler(HandlerThread handlerThread, long timeoutMs) { argument
33 waitForIdleHandler(handlerThread.getThreadHandler(), timeoutMs);
37 * Block until the given Looper becomes idle, or until timeoutMs has passed.
39 public static void waitForIdleLooper(Looper looper, long timeoutMs) { argument
40 waitForIdleHandler(new Handler(looper), timeoutMs);
44 * Block until the given Handler becomes idle, or until timeoutMs has passed.
46 public static void waitForIdleHandler(Handler handler, long timeoutMs) { argument
49 if (!cv.block(timeoutMs)) {
50 fail(handler.toString() + " did not become idle after " + timeoutMs
[all...]
/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.java156 onPasswordChecked(userId, true /* matched */, 0 /* timeoutMs */,
161 public void onChecked(boolean matched, int timeoutMs) {
169 onPasswordChecked(userId, false /* matched */, timeoutMs,
186 private void onPasswordChecked(int userId, boolean matched, int timeoutMs, argument
197 mCallback.reportUnlockAttempt(userId, false, timeoutMs);
198 if (timeoutMs > 0) {
200 userId, timeoutMs);
204 if (timeoutMs == 0) {
H A DKeyguardSecurityContainer.java188 private void showTimeoutDialog(int userId, int timeoutMs) { argument
189 int timeoutInSeconds = (int) timeoutMs / 1000;
256 private void reportFailedUnlockAttempt(int userId, int timeoutMs) { argument
294 if (timeoutMs > 0) {
295 mLockPatternUtils.reportPasswordLockout(timeoutMs, userId);
296 showTimeoutDialog(userId, timeoutMs);
431 public void reportUnlockAttempt(int userId, boolean success, int timeoutMs) {
441 KeyguardSecurityContainer.this.reportFailedUnlockAttempt(userId, timeoutMs);
457 public void reportUnlockAttempt(int userId, boolean success, int timeoutMs) { }
/frameworks/base/services/net/java/android/net/util/
H A DNetdService.java83 long timeoutMs = 0;
94 timeoutMs = Math.min(timeoutMs + BASE_TIMEOUT_MS, MAX_TIMEOUT_MS);
95 timeoutMs = Math.min(timeoutMs, remaining);
97 Thread.sleep(timeoutMs);
/frameworks/av/media/libmedia/
H A DTimeCheck.cpp29 TimeCheck::TimeCheck(const char *tag, uint32_t timeoutMs) argument
30 : mEndTimeNs(getTimeCheckThread()->startMonitoring(tag, timeoutMs))
46 nsecs_t TimeCheck::TimeCheckThread::startMonitoring(const char *tag, uint32_t timeoutMs) { argument
48 nsecs_t endTimeNs = systemTime() + milliseconds(timeoutMs);
/frameworks/base/cmds/incidentd/src/
H A DSection.h42 const int64_t timeoutMs; // each section must have a timeout member in class:android::os::incidentd::Section
47 Section(int id, int64_t timeoutMs = REMOTE_CALL_TIMEOUT_MS, bool userdebugAndEngOnly = false,
82 int64_t timeoutMs = 5000 /* 5 seconds */);
112 WorkerThreadSection(int id, int64_t timeoutMs = REMOTE_CALL_TIMEOUT_MS,
126 CommandSection(int id, int64_t timeoutMs, const char* command, ...);
176 TombstoneSection(int id, const char* type, int64_t timeoutMs = 30000 /* 30 seconds */);
H A DFdBuffer.h45 status_t read(int fd, int64_t timeoutMs);
63 status_t readProcessedDataInStream(int fd, unique_fd toFd, unique_fd fromFd, int64_t timeoutMs,
/frameworks/av/include/media/
H A DTimeCheck.h36 TimeCheck(const char *tag, uint32_t timeoutMs = kDefaultTimeOutMs);
47 nsecs_t startMonitoring(const char *tag, uint32_t timeoutMs);
/frameworks/av/media/libmedia/include/media/
H A DTimeCheck.h36 TimeCheck(const char *tag, uint32_t timeoutMs = kDefaultTimeOutMs);
47 nsecs_t startMonitoring(const char *tag, uint32_t timeoutMs);
/frameworks/base/core/java/android/app/trust/
H A DITrustManager.aidl28 void reportUnlockLockout(int timeoutMs, int userId);
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkSocket.java114 private static void checkTimeout(long timeoutMs) { argument
115 if (timeoutMs < 0) {
121 * Wait up to |timeoutMs| (or until underlying socket error) for a
126 public static ByteBuffer recvMessage(FileDescriptor fd, int bufsize, long timeoutMs) argument
128 checkTimeout(timeoutMs);
130 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, StructTimeval.fromMillis(timeoutMs));
145 * waiting at most |timeoutMs| milliseconds for the send to complete.
150 FileDescriptor fd, byte[] bytes, int offset, int count, long timeoutMs)
152 checkTimeout(timeoutMs);
153 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, StructTimeval.fromMillis(timeoutMs));
149 sendMessage( FileDescriptor fd, byte[] bytes, int offset, int count, long timeoutMs) argument
[all...]
/frameworks/opt/car/services/src/jni/
H A Dcom_android_internal_car_CarServiceHelperService.cpp31 static jint nativeForceSuspend(JNIEnv* /* env */, jclass /* clazz */, jint timeoutMs) { argument
32 jint ret = autosuspend_force_suspend(timeoutMs);
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
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);
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
/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);
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/base/core/java/android/service/trust/
H A DITrustAgentService.aidl28 oneway void onUnlockLockout(int 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/com/android/internal/util/
H A DConcurrentUtils.java94 * <p>If {@link CountDownLatch#countDown()} doesn't occur within {@param timeoutMs}, this
101 * @param timeoutMs the maximum time waited for {@link CountDownLatch#countDown()}
104 public static void waitForCountDownNoInterrupt(CountDownLatch countDownLatch, long timeoutMs, argument
107 if (!countDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS)) {
/frameworks/base/services/net/java/android/net/ip/
H A DIpManager.java86 public Builder withProvisioningTimeoutMs(int timeoutMs) { argument
87 super.withProvisioningTimeoutMs(timeoutMs);
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
H A DTimeReceiver.java78 public long getReceivedTimeNs(String type, long timeoutMs) { argument
80 long endTimeNs = System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(timeoutMs);
/frameworks/support/compat/src/androidTest/java/androidx/core/provider/
H A DSelfDestructiveThreadTest.java51 private void waitUntilDestruction(SelfDestructiveThread thread, long timeoutMs) { argument
56 System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(timeoutMs);
182 final int timeoutMs = 300;
187 waitMillis(timeoutMs * 3); // Wait longer than timeout.
190 }, timeoutMs);

Completed in 598 milliseconds

1234