/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/ |
D | RadioOnStateListenerTest.java | 56 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/ |
D | WatchdogTest.java | 40 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/ |
D | SurfaceSyncGroupTest.java | 48 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 …]
|
D | TaskPositioningControllerTests.java | 54 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/ |
D | SplitScreenUtils.kt | 48 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/ |
D | RequestSadActionTest.java | 53 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 …]
|
D | HdmiCecLocalDeviceTvTest.java | 77 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/ |
D | MyAutofillCallback.java | 45 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()
|
D | MyAutofillService.java | 45 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/ |
D | DeviceSelectActionFromPlayback.java | 131 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()
|
D | RequestActiveSourceAction.java | 58 addTimer(mState, HdmiConfig.TIMEOUT_MS * 2); in start() 82 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent() 87 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
|
D | ArcInitiationActionFromAvr.java | 29 private static final int TIMEOUT_MS = 1000; field in ArcInitiationActionFromAvr 39 addTimer(mState, TIMEOUT_MS); in start()
|
D | DetectTvSystemAudioModeSupportAction.java | 44 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start() 87 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
|
D | ArcTerminationActionFromAvr.java | 32 public static final int TIMEOUT_MS = 1000; field in ArcTerminationActionFromAvr 45 addTimer(mState, TIMEOUT_MS); in start()
|
D | OneTouchPlayAction.java | 102 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start() 146 addTimer(mState, HdmiConfig.TIMEOUT_MS); in startAction() 203 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
|
D | SystemAudioAutoInitiationAction.java | 52 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start() 115 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewRootSurfaceCallbackTest.java | 41 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/ |
D | MediaRouter2ManagerTest.java | 89 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/ |
D | SystemAppForegroundHelperTest.java | 54 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()
|
D | SystemLocationPowerSaveModeHelperTest.java | 63 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/ |
D | ALSProbeTest.java | 63 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/ |
D | AuthStateDenialTimer.java | 35 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/ |
D | AnrHelperTest.java | 65 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/ |
D | VoiceInteractionManagerServiceShellCommand.java | 36 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/ |
D | PendingRemoteAnimationRegistry.java | 33 static final long TIMEOUT_MS = 3000; field in PendingRemoteAnimationRegistry 92 }, TIMEOUT_MS); in Entry()
|