Home
last modified time | relevance | path

Searched refs:mTimeoutMs (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java74 long mTimeoutMs = 200; // non-final so that tests can adjust the value. field in NsdManagerTest
86 HandlerUtils.waitForIdle(mServiceHandler, mTimeoutMs); in tearDown()
175 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err); in doTestResolveService()
180 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in doTestResolveService()
201 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in doTestParallelResolveService()
202 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in doTestParallelResolveService()
224 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in doTestRegisterService()
228 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in doTestRegisterService()
235 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in doTestRegisterService()
243 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in doTestRegisterService()
[all …]
/packages/services/Car/car-test-lib/src/android/car/testapi/
DBlockingUserLifecycleListener.java80 private final long mTimeoutMs; field in BlockingUserLifecycleListener
86 mTimeoutMs = builder.mTimeoutMs; in BlockingUserLifecycleListener()
112 private long mTimeoutMs = DEFAULT_TIMEOUT_MS; field in BlockingUserLifecycleListener.Builder
134 mTimeoutMs = timeoutMs; in setTimeout()
279 return "timeout=" + mTimeoutMs + "ms" in stateToString()
290 if (!mLatch.await(mTimeoutMs, TimeUnit.MILLISECONDS)) { in waitForExpectedEvents()
/packages/services/Car/car-test-lib/src/android/car/test/util/
DBlockingResultReceiver.java36 private final long mTimeoutMs; field in BlockingResultReceiver
47 mTimeoutMs = timeoutMs; in BlockingResultReceiver()
62 boolean called = mLatch.await(mTimeoutMs, TimeUnit.MILLISECONDS); in assertCalled()
64 Preconditions.checkState(called, "receiver not called in " + mTimeoutMs + " ms"); in assertCalled()
/packages/services/Car/car-test-lib/src/android/car/test/mocks/
DBlockingAnswer.java53 private final long mTimeoutMs; field in BlockingAnswer
63 mTimeoutMs = timeoutMs; in BlockingAnswer()
107 JavaMockitoHelper.silentAwait(mLatch, mTimeoutMs); in answer()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkDiagnostics.java118 private final long mTimeoutMs; field in NetworkDiagnostics
189 mTimeoutMs = timeoutMs; in NetworkDiagnostics()
191 mDeadlineTime = mStartTime + mTimeoutMs; in NetworkDiagnostics()