/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 369 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_Accumulation() 377 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_Accumulation() 404 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_Accumulation() 412 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_Accumulation() 439 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageLimitObserver_Accumulation() 447 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageLimitObserver_Accumulation() 456 assertFalse(mLimitReachedLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_TimeoutOtherApp() 459 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_TimeoutOtherApp() 468 assertFalse(mLimitReachedLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_TimeoutOtherApp() 471 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_TimeoutOtherApp() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | SingleKeyGestureTests.java | 245 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testShortPress() 251 assertTrue(mLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testLongPress() 257 assertTrue(mVeryLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testVeryLongPress() 266 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress() 274 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress() 286 KeyUpData keyUpData = mKeyUpQueue.poll(mWaitTimeout, TimeUnit.MILLISECONDS); in verifyKeyUpData() 297 assertFalse(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testNonInteractive() 301 assertTrue(mLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testNonInteractive() 321 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testShortPress_Pressure() 345 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress_Pressure() [all …]
|
D | KeyCombinationManagerTests.java | 164 assertTrue(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testTriggerRule() 167 assertTrue(mAction2Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testTriggerRule() 170 assertTrue(mAction3Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testTriggerRule() 180 assertFalse(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_NoRule() 181 assertFalse(mAction2Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_NoRule() 182 assertFalse(mAction3Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_NoRule() 193 assertFalse(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_Interval() 205 assertFalse(mAction2Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_Condition() 215 assertFalse(mAction3Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_EarlyRelease() 250 assertFalse(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testAddRemove() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/io/ |
D | FakeBasicFileAttributes.java | 27 private FileTime mLastModifiedTime = FileTime.from(0, TimeUnit.MILLISECONDS); 28 private FileTime mLastAccessTime = FileTime.from(0, TimeUnit.MILLISECONDS); 29 private FileTime mCreationTime = FileTime.from(0, TimeUnit.MILLISECONDS); 83 mLastModifiedTime = FileTime.from(millis, TimeUnit.MILLISECONDS); in setLastModifiedTime() 88 mLastAccessTime = FileTime.from(millis, TimeUnit.MILLISECONDS); in setLastAccessTime() 93 mCreationTime = FileTime.from(millis, TimeUnit.MILLISECONDS); in setCreationTime()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceSyncGroupTest.java | 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() 246 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncAlreadyInASync_NewSyncReadyFirst() [all …]
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | EventsTest.java | 290 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartCancel() 311 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartEnd() 332 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartDelayedCancel() 353 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartDelayedEnd() 374 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testPlayingCancel() 395 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testPlayingEnd() 417 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testPlayingDelayedCancel() 439 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testPlayingDelayedEnd() 463 mFuture.get(getTimeout() + 100, TimeUnit.MILLISECONDS); in testPlayingDelayedCancelMidDelay() 487 mFuture.get(getTimeout() + 100, TimeUnit.MILLISECONDS); in testPlayingDelayedEndMidDelay() [all …]
|
D | ViewPropertyAnimatorTest.java | 219 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartCancel() 240 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartDelayedCancel() 261 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testPlayingCancel() 283 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testPlayingDelayedCancel() 307 mFuture.get(getTimeout() + 100, TimeUnit.MILLISECONDS); in testPlayingDelayedCancelMidDelay() 329 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartDoubleCancel() 351 mFuture.get(getTimeout(), TimeUnit.MILLISECONDS); in testStartDelayedDoubleCancel()
|
D | AutoCancelTest.java | 140 assertTrue(future.get(FUTURE_TIMEOUT, TimeUnit.MILLISECONDS)); in testAutoCancel() 154 assertTrue(future.get(FUTURE_TIMEOUT, TimeUnit.MILLISECONDS)); in testAutoCancelDelayed() 168 assertTrue(future.get(FUTURE_TIMEOUT, TimeUnit.MILLISECONDS)); in testAutoCancelTestLater() 182 assertTrue(future.get(FUTURE_TIMEOUT, TimeUnit.MILLISECONDS)); in testAutoCancelDelayedTestLater()
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | MediaRouter2ManagerTest.java | 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() 463 assertThat(onSessionCreatedLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)).isFalse(); in testTransfer_unknownRoute_fail() 464 assertThat(onTransferFailedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testTransfer_unknownRoute_fail() 501 assertThat(transferLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testRouterRelease_managerGetRoutingSessions() [all …]
|
/frameworks/base/core/tests/coretests/src/android/transition/ |
D | FadeTransitionTest.java | 54 assertTrue(latch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 58 assertTrue(latch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 64 assertTrue(latch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 70 assertTrue(latch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 82 assertTrue(outLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutInterrupt() 89 assertTrue(inLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutInterrupt() 97 assertTrue(inLatch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutInterrupt() 115 assertTrue(inLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeInInterrupt() 122 assertTrue(outLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeInInterrupt() 130 assertTrue(outLatch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeInInterrupt()
|
D | SlideTransitionTest.java | 59 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS)); in testShortSlide() 65 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS)); in testShortSlide() 76 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS)); in testShortSlide() 82 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS)); in testShortSlide()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | SlowNestedRecyclerViewActivity.java | 37 private static final long INNER_ITEM_CREATE_NS = TimeUnit.MILLISECONDS.toNanos(6); 38 private static final long INNER_ITEM_BIND_NS = TimeUnit.MILLISECONDS.toNanos(1); 39 private static final long INNER_ITEM_ATTACH_NS = TimeUnit.MILLISECONDS.toNanos(1); 41 private static final long OUTER_ITEM_CREATE_NS = TimeUnit.MILLISECONDS.toNanos(3); 42 private static final long OUTER_ITEM_BIND_NS = TimeUnit.MILLISECONDS.toNanos(1); 43 private static final long OUTER_ITEM_ATTACH_NS = TimeUnit.MILLISECONDS.toNanos(1);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/scroll/ |
D | ScrollCaptureClientTest.java | 89 assertNotNull(requestFuture.get(100, TimeUnit.MILLISECONDS)); in testDetectAndConnect() 96 assertNotNull(startFuture.get(100, TimeUnit.MILLISECONDS)); in testDetectAndConnect() 103 assertNotNull(tileFuture.get(100, TimeUnit.MILLISECONDS)); in testDetectAndConnect() 114 assertTrue(latch.await(100, TimeUnit.MILLISECONDS)); in testDetectAndConnect()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | DelayableExecutor.java | 34 return executeDelayed(r, delayMillis, TimeUnit.MILLISECONDS); in executeDelayed() 54 return executeAtTime(r, uptime, TimeUnit.MILLISECONDS); in executeAtTime()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TestLooperManagerTest.java | 72 assertFalse(latch.await(100, TimeUnit.MILLISECONDS)); in doTest() 79 assertFalse(latch.await(100, TimeUnit.MILLISECONDS)); in doTest() 86 assertTrue(latch.await(100, TimeUnit.MILLISECONDS)); in doTest()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerTest.java | 177 latch.await(AWAIT_TIMEOUT, TimeUnit.MILLISECONDS)); in runOnce() 190 latch.await(AWAIT_TIMEOUT, TimeUnit.MILLISECONDS)); in runOnce() 319 timeout, TimeUnit.MILLISECONDS)); in testFgsProcStatsTracker() 325 timeout, TimeUnit.MILLISECONDS)); in testFgsProcStatsTracker() 331 timeout, TimeUnit.MILLISECONDS)); in testFgsProcStatsTracker() 337 timeout, TimeUnit.MILLISECONDS)); in testFgsProcStatsTracker() 339 timeout * 2, TimeUnit.MILLISECONDS)); in testFgsProcStatsTracker() 407 latch.await(AWAIT_TIMEOUT, TimeUnit.MILLISECONDS)); in testAppFreezerWithAllowOomAdj() 439 waitFor, TimeUnit.MILLISECONDS)); in testAppFreezerWithAllowOomAdj() 579 shortTimeoutMs, TimeUnit.MILLISECONDS)); in testKillAppIfBgRestrictedCachedIdle() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkRecommendationProviderTest.java | 72 mScoreRequestLatch.await(200, TimeUnit.MILLISECONDS); in testScoreRequestReceived() 82 assertFalse(mScoreRequestLatch.await(200, TimeUnit.MILLISECONDS)); in testScoreRequest_nullInput() 90 assertFalse(mScoreRequestLatch.await(200, TimeUnit.MILLISECONDS)); in testScoreRequest_emptyInput()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotNotificationSmartActionsTest.java | 88 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testExceptionHandlingInGetSmartActionsFuture() 100 when(smartActionsFuture.get(timeoutMs, TimeUnit.MILLISECONDS)).thenThrow( in testExceptionHandlingInGetSmartActions() 130 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testUnsupportedBitmapConfiguration() 160 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testSupportedBitmapConfiguration()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | HistoryTracker.java | 202 return unit.convert(mExpiryMs - mSystemClock.uptimeMillis(), TimeUnit.MILLISECONDS); in getDelay() 207 long ourDelay = getDelay(TimeUnit.MILLISECONDS); in compareTo() 208 long otherDelay = o.getDelay(TimeUnit.MILLISECONDS); in compareTo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | FullscreenMagnificationControllerTest.java | 140 .that(animationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in enableFullscreenMagnification_visibleBorder() 174 .that(enableAnimationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in disableFullscreenMagnification_reverseAnimationAndReleaseScvh() 184 .that(disableAnimationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in disableFullscreenMagnification_reverseAnimationAndReleaseScvh() 215 .that(animationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in onFullscreenMagnificationActivationChangeTrue_deactivating_reverseAnimator() 241 .that(animationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in onScreenSizeChanged_activated_borderChangedToExpectedSize()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/ |
D | HintManagerServiceTest.java | 600 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500) + TimeUnit.MILLISECONDS.toNanos( 657 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500) + TimeUnit.MILLISECONDS.toNanos( 670 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500)); 676 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(100)); 679 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500) + TimeUnit.MILLISECONDS.toNanos( 688 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500)); 706 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(100)); 709 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500) + TimeUnit.MILLISECONDS.toNanos( 725 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500) + TimeUnit.MILLISECONDS.toNanos( 962 LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(500)); [all …]
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | SpyInputEventSenderAndReceiver.kt | 33 return queue.poll(DEFAULT_DISPATCHING_TIMEOUT_MILLIS.toLong(), TimeUnit.MILLISECONDS) in getEvent() 38 assertNull(queue.poll(100L, TimeUnit.MILLISECONDS)) in assertNoEvents()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewRootSurfaceCallbackTest.java | 73 mTidOfSurfaceCreated.get(TIMEOUT_MS, TimeUnit.MILLISECONDS).intValue()); in testCallingTidOfSurfaceCallback() 80 mTidOfSurfaceDestroyed.get(TIMEOUT_MS, TimeUnit.MILLISECONDS).intValue()); in testCallingTidOfSurfaceCallback()
|
/frameworks/libs/systemui/weathereffects/graphics/tests/src/com/google/android/wallpaper/weathereffects/graphics/ |
D | FrameBufferTest.kt | 56 assertThat(latch.await(RESULT_FENCE_TIME_OUT, TimeUnit.MILLISECONDS)).isTrue() in onImageReady_invokesCallback() 89 assertThat(latch.await(RESULT_FENCE_TIME_OUT, TimeUnit.MILLISECONDS)).isFalse() in close_onImageReady_doesNotInvokeCallback()
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | MyAutofillCallback.java | 54 offered = mEvents.offer(new MyEvent(view, event), TIMEOUT_MS, TimeUnit.MILLISECONDS); in onAutofillEvent() 71 myEvent = mEvents.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in expectEvent()
|