Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/
DListenerSetTest.kt38 val runnable2 = Runnable {} in makeRunnableListenerSet() constant
46 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in makeRunnableListenerSet()
47 assertThat(runnableSet).containsExactly(runnable1, runnable2) in makeRunnableListenerSet()
51 assertThat(runnableSet).containsExactly(runnable1, runnable2) in makeRunnableListenerSet()
87 val runnable2 = Runnable {} in contains_worksAsExpected() constant
90 assertThat(runnable2 in runnableSet).isFalse() in contains_worksAsExpected()
92 assertThat(runnableSet).doesNotContain(runnable2) in contains_worksAsExpected()
96 assertThat(runnable2 in runnableSet).isFalse() in contains_worksAsExpected()
98 assertThat(runnableSet).doesNotContain(runnable2) in contains_worksAsExpected()
100 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in contains_worksAsExpected()
[all …]
DNamedListenerSetTest.kt40 val runnable2 = NamedRunnable("A") in <lambda>() constant
48 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in <lambda>()
49 assertThat(runnableSet).containsExactly(runnable1, runnable2) in <lambda>()
53 assertThat(runnableSet).containsExactly(runnable1, runnable2) in <lambda>()
59 val runnable2 = NamedRunnable("X") in <lambda>() constant
69 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in <lambda>()
73 "X" to runnable2, in <lambda>()
80 "X" to runnable2, in <lambda>()
87 "X" to runnable2, in <lambda>()
91 assertThat(runnableSet.remove(runnable2)).isTrue() in <lambda>()
/frameworks/base/core/tests/coretests/src/android/view/
DHandlerActionQueueTest.java29 MockRunnable runnable2 = new MockRunnable(); in testPostAndRemove() local
34 runQueue.post(runnable2); in testPostAndRemove()
46 assertEquals(runnable2, runQueue.getRunnable(2)); in testPostAndRemove()
54 assertEquals(runnable2, runQueue.getRunnable(0)); in testPostAndRemove()
67 runQueue.removeCallbacks(runnable2); in testPostAndRemove()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DMockExecutorHandlerTest.kt212 val runnable2 = RunnableImpl() in testRemoveCallback_differentRunnables_onlyMatchingRemoved() constant
215 handler.postDelayed(runnable2, 150) in testRemoveCallback_differentRunnables_onlyMatchingRemoved()
223 assertEquals(1, runnable2.mRunCount) in testRemoveCallback_differentRunnables_onlyMatchingRemoved()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
DShellTransitionTests.java917 Runnable runnable2 = mock(Runnable.class); in testRunWhenIdle() local
937 transitions.runOnIdle(runnable2); in testRunWhenIdle()
962 verify(runnable2, times(0)).run(); in testRunWhenIdle()
972 verify(runnable2, times(1)).run(); in testRunWhenIdle()
975 clearInvocations(runnable2); in testRunWhenIdle()
983 verify(runnable2, times(0)).run(); in testRunWhenIdle()