Home
last modified time | relevance | path

Searched refs:TIMEOUT_MS (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DRadioOnStateListenerTest.java56 private static final long TIMEOUT_MS = 1000; field in RadioOnStateListenerTest
78 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /* ms timeout */); in tearDown() local
90 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForCallback() local
111 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForSatelliteCallback() local
131 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue() local
136 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue() local
154 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testSatelliteChangeState_OkToCallTrue() local
159 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testSatelliteChangeState_OkToCallTrue() local
176 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout() local
181 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DWatchdogTest.java40 private static final int TIMEOUT_MS = 10; field in WatchdogTest
65 mChecker.scheduleCheckLocked(TIMEOUT_MS); in checkerPausedUntilResume()
80 mChecker.scheduleCheckLocked(TIMEOUT_MS); in checkerPausedUntilDeadline()
90 mChecker.scheduleCheckLocked(TIMEOUT_MS); in checkerPausedUntilDeadline()
99 mChecker.scheduleCheckLocked(TIMEOUT_MS); in checkerPausedDuringScheduledRun()
107 mChecker.scheduleCheckLocked(TIMEOUT_MS); in checkerPausedDuringScheduledRun()
113 mChecker.scheduleCheckLocked(TIMEOUT_MS); in blockedThread()
129 mChecker.scheduleCheckLocked(TIMEOUT_MS); in checkNothingBlocked()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceSyncGroupTest.java48 private static final int TIMEOUT_MS = 100; field in SurfaceSyncGroupTest
99 finishedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testSyncMultiple()
137 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testMultipleSyncGroups()
143 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testMultipleSyncGroups()
169 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncGroup()
176 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncGroup()
179 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncGroup()
202 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncAlreadyComplete()
211 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncAlreadyComplete()
245 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncAlreadyInASync_NewSyncReadyFirst()
[all …]
DTaskPositioningControllerTests.java54 private static final int TIMEOUT_MS = 1000; field in TaskPositioningControllerTests
86 assertTrue(waitHandlerIdle(mWm.mAnimationHandler, TIMEOUT_MS)); in testStartAndFinishPositioning()
104 assertTrue(waitHandlerIdle(mWm.mAnimationHandler, TIMEOUT_MS)); in testFinishPositioningWhenAppRequested()
121 assertTrue(waitHandlerIdle(mWm.mH, TIMEOUT_MS)); in testHandleTapOutsideTask()
128 assertTrue(waitHandlerIdle(mWm.mAnimationHandler, TIMEOUT_MS)); in testHandleTapOutsideTask()
147 assertTrue(waitHandlerIdle(mWm.mH, TIMEOUT_MS)); in testHandleTapOutsideNonResizableTask()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DSplitScreenUtils.kt48 private const val TIMEOUT_MS = 3_000L in <lambda>() constant
144 val snapshots = device.wait(Until.findObjects(overviewSnapshotSelector), TIMEOUT_MS) in <lambda>()
171 SystemClock.sleep(TIMEOUT_MS) in <lambda>()
186 SystemClock.sleep(TIMEOUT_MS) in <lambda>()
190 device.wait(Until.findObject(notificationScrollerSelector), TIMEOUT_MS) in <lambda>()
211 touch(instrumentation, MotionEvent.ACTION_DOWN, downTime, downTime, TIMEOUT_MS, dragStart) in <lambda>()
230 SystemClock.sleep(TIMEOUT_MS) in <lambda>()
239 SystemClock.sleep(TIMEOUT_MS) in <lambda>()
314 val dividerBar = device.wait(Until.findObject(dividerBarSelector), TIMEOUT_MS) in <lambda>()
332 val dividerBar = device.wait(Until.findObject(dividerBarSelector), TIMEOUT_MS) in <lambda>()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DRequestSadActionTest.java53 private static final int TIMEOUT_MS = HdmiConfig.TIMEOUT_MS + 1; field in RequestSadActionTest
159 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
162 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
178 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
180 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
182 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
184 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
186 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
188 mTestLooper.moveTimeForward(TIMEOUT_MS); in noResponse_queryAgainOnce_emptyResult()
230 mTestLooper.moveTimeForward(TIMEOUT_MS); in unrecognizedOpcode_dontQueryAgain_emptyResult()
[all …]
DHdmiCecLocalDeviceTvTest.java77 private static final int TIMEOUT_MS = HdmiConfig.TIMEOUT_MS + 1; field in HdmiCecLocalDeviceTvTest
275 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in initiateArcAndValidate()
278 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in initiateArcAndValidate()
687 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in handleInitiateArc_portSupportsArc()
690 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in handleInitiateArc_portSupportsArc()
972 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in onHotplug_doNotSend_systemAudioModeRequestWithParameter()
975 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in onHotplug_doNotSend_systemAudioModeRequestWithParameter()
983 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in onHotplug_doNotSend_systemAudioModeRequestWithParameter()
996 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in onHotplug_doNotSend_systemAudioModeRequestWithParameter()
1001 mTestLooper.moveTimeForward(HdmiConfig.TIMEOUT_MS); in onHotplug_doNotSend_systemAudioModeRequestWithParameter()
[all …]
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DMyAutofillCallback.java45 private static final int TIMEOUT_MS = 5000; field in MyAutofillCallback
54 offered = mEvents.offer(new MyEvent(view, event), TIMEOUT_MS, TimeUnit.MILLISECONDS); in onAutofillEvent()
59 String error = "could not offer " + toString(view, event) + " in " + TIMEOUT_MS + "ms"; in onAutofillEvent()
71 myEvent = mEvents.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in expectEvent()
73 throw new IllegalStateException("no event received in " + TIMEOUT_MS in expectEvent()
DMyAutofillService.java45 private static final int TIMEOUT_MS = 5_000; field in MyAutofillService
90 request = sFillRequests.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in getLastFillRequest()
96 throw new IllegalStateException("onFillRequest() not called in " + TIMEOUT_MS + "ms"); in getLastFillRequest()
125 CannedResponse response = sCannedResponses.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in handleRequest()
159 if (!sFillRequests.offer(request, TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in handleRequest()
160 Log.w(TAG, "could not offer request in " + TIMEOUT_MS + "ms"); in handleRequest()
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceSelectActionFromPlayback.java131 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
137 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
211 addTimer(mState, HdmiConfig.TIMEOUT_MS); in selectDevice()
223 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
229 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
234 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
DRequestActiveSourceAction.java58 addTimer(mState, HdmiConfig.TIMEOUT_MS * 2); in start()
82 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
87 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
DArcInitiationActionFromAvr.java29 private static final int TIMEOUT_MS = 1000; field in ArcInitiationActionFromAvr
39 addTimer(mState, TIMEOUT_MS); in start()
DDetectTvSystemAudioModeSupportAction.java44 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
87 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
DArcTerminationActionFromAvr.java32 public static final int TIMEOUT_MS = 1000; field in ArcTerminationActionFromAvr
45 addTimer(mState, TIMEOUT_MS); in start()
DOneTouchPlayAction.java102 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
146 addTimer(mState, HdmiConfig.TIMEOUT_MS); in startAction()
203 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
DSystemAudioAutoInitiationAction.java52 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
115 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
/frameworks/base/core/tests/coretests/src/android/view/
DViewRootSurfaceCallbackTest.java41 private static final long TIMEOUT_MS = TimeUnit.SECONDS.toMillis(3); field in ViewRootSurfaceCallbackTest
69 }, TIMEOUT_MS); in testCallingTidOfSurfaceCallback()
73 mTidOfSurfaceCreated.get(TIMEOUT_MS, TimeUnit.MILLISECONDS).intValue()); in testCallingTidOfSurfaceCallback()
80 mTidOfSurfaceDestroyed.get(TIMEOUT_MS, TimeUnit.MILLISECONDS).intValue()); in testCallingTidOfSurfaceCallback()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java89 private static final int TIMEOUT_MS = 5000; field in MediaRouter2ManagerTest
141 new PollingCheck(TIMEOUT_MS) { in setUp() argument
211 .that(addedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testOnRoutesUpdated()
220 .that(changedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testOnRoutesUpdated()
228 .that(removedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testOnRoutesUpdated()
295 assertThat(removedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testGetRoutes_removedRoute_returnsCorrectRoutes()
302 assertThat(addedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testGetRoutes_removedRoute_returnsCorrectRoutes()
392 assertThat(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testRouterOnSessionCreated()
420 assertThat(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testGetRoutingSessions()
464 assertThat(onTransferFailedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testTransfer_unknownRoute_fail()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppForegroundHelperTest.java54 private static final long TIMEOUT_MS = 5000; field in SystemAppForegroundHelperTest
92 verify(listener, timeout(TIMEOUT_MS)).onAppForegroundChanged(0, true); in testListeners()
95 verify(listener, timeout(TIMEOUT_MS)).onAppForegroundChanged(1, true); in testListeners()
98 verify(listener, timeout(TIMEOUT_MS)).onAppForegroundChanged(2, false); in testListeners()
DSystemLocationPowerSaveModeHelperTest.java63 private static final long TIMEOUT_MS = 5000; field in SystemLocationPowerSaveModeHelperTest
142 verify(listener, timeout(TIMEOUT_MS)).onLocationPowerSaveModeChanged( in testListener()
148 verify(listener, timeout(TIMEOUT_MS)).onLocationPowerSaveModeChanged( in testListener()
154 verify(listener, timeout(TIMEOUT_MS)).onLocationPowerSaveModeChanged( in testListener()
160 verify(listener, timeout(TIMEOUT_MS)).onLocationPowerSaveModeChanged( in testListener()
166 verify(listener, timeout(TIMEOUT_MS)).onLocationPowerSaveModeChanged( in testListener()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
DALSProbeTest.java63 private static final long TIMEOUT_MS = 1000; field in ALSProbeTest
84 mProbe = new ALSProbe(mSensorManager, new Handler(mLooper.getLooper()), TIMEOUT_MS - 1); in setup()
154 moveTimeBy(TIMEOUT_MS); in testWatchDog()
166 moveTimeBy(TIMEOUT_MS / 2); in testEnableExtendsWatchDog()
170 moveTimeBy(TIMEOUT_MS); in testEnableExtendsWatchDog()
187 moveTimeBy(TIMEOUT_MS); in testWatchDogCompletesAwait()
350 mProbe = new ALSProbe(mSensorManager, new Handler(mLooper.getLooper()), TIMEOUT_MS - 1); in testAwaitLuxWhenNoLightSensor()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DAuthStateDenialTimer.java35 private static final long TIMEOUT_MS = SECONDS.toMillis(60); field in AuthStateDenialTimer
70 mStopTimeInFuture = SystemClock.elapsedRealtime() + TIMEOUT_MS; in start()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DAnrHelperTest.java65 private static final long TIMEOUT_MS = TimeUnit.SECONDS.toMillis(5); field in AnrHelperTest
133 verify(mAnrApp.mErrorState, timeout(TIMEOUT_MS)).appNotResponding( in testHandleAppNotResponding()
163 assertTrue(consumerLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSkipDuplicatedAnr()
172 verify(mAnrApp.mErrorState, timeout(TIMEOUT_MS).only()).appNotResponding( in testSkipDuplicatedAnr()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerServiceShellCommand.java36 private static final long TIMEOUT_MS = 5_000; field in VoiceInteractionManagerServiceShellCommand
125 if (!latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in requestShow()
126 pw.printf("Callback not called in %d ms\n", TIMEOUT_MS); in requestShow()
/frameworks/base/services/core/java/com/android/server/wm/
DPendingRemoteAnimationRegistry.java33 static final long TIMEOUT_MS = 3000; field in PendingRemoteAnimationRegistry
92 }, TIMEOUT_MS); in Entry()

1234