Searched refs:runnable1 (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/ |
D | ListenerSetTest.kt | 37 val runnable1 = Runnable {} in makeRunnableListenerSet() constant 42 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in makeRunnableListenerSet() 43 assertThat(runnableSet).containsExactly(runnable1) in makeRunnableListenerSet() 47 assertThat(runnableSet).containsExactly(runnable1, runnable2) in makeRunnableListenerSet() 50 assertThat(runnableSet.addIfAbsent(runnable1)).isFalse() in makeRunnableListenerSet() 51 assertThat(runnableSet).containsExactly(runnable1, runnable2) in makeRunnableListenerSet() 86 val runnable1 = Runnable {} in contains_worksAsExpected() constant 89 assertThat(runnable1 in runnableSet).isFalse() in contains_worksAsExpected() 91 assertThat(runnableSet).doesNotContain(runnable1) in contains_worksAsExpected() 94 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in contains_worksAsExpected() [all …]
|
D | NamedListenerSetTest.kt | 39 val runnable1 = NamedRunnable("A") in <lambda>() constant 44 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in <lambda>() 45 assertThat(runnableSet).containsExactly(runnable1) in <lambda>() 49 assertThat(runnableSet).containsExactly(runnable1, runnable2) in <lambda>() 52 assertThat(runnableSet.addIfAbsent(runnable1)).isFalse() in <lambda>() 53 assertThat(runnableSet).containsExactly(runnable1, runnable2) in <lambda>() 58 val runnable1 = NamedRunnable("A") in <lambda>() constant 63 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in <lambda>() 66 "A" to runnable1, in <lambda>() 72 "A" to runnable1, in <lambda>() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | HandlerActionQueueTest.java | 28 MockRunnable runnable1 = new MockRunnable(); in testPostAndRemove() local 32 runQueue.post(runnable1); in testPostAndRemove() 33 runQueue.post(runnable1); in testPostAndRemove() 35 runQueue.postDelayed(runnable1, 100); in testPostAndRemove() 44 assertEquals(runnable1, runQueue.getRunnable(0)); in testPostAndRemove() 45 assertEquals(runnable1, runQueue.getRunnable(1)); in testPostAndRemove() 47 assertEquals(runnable1, runQueue.getRunnable(3)); in testPostAndRemove() 50 runQueue.removeCallbacks(runnable1); in testPostAndRemove()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | MockExecutorHandlerTest.kt | 211 val runnable1 = RunnableImpl() in testRemoveCallback_differentRunnables_onlyMatchingRemoved() constant 214 handler.postDelayed(runnable1, 50) in testRemoveCallback_differentRunnables_onlyMatchingRemoved() 217 handler.removeCallbacks(runnable1) in testRemoveCallback_differentRunnables_onlyMatchingRemoved() 222 assertEquals(0, runnable1.mRunCount) in testRemoveCallback_differentRunnables_onlyMatchingRemoved()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/ |
D | ShellTransitionTests.java | 916 Runnable runnable1 = mock(Runnable.class); in testRunWhenIdle() local 921 transitions.runOnIdle(runnable1); in testRunWhenIdle() 924 verify(runnable1, times(1)).run(); in testRunWhenIdle() 926 clearInvocations(runnable1); in testRunWhenIdle() 971 verify(runnable1, times(0)).run(); in testRunWhenIdle() 982 verify(runnable1, times(0)).run(); in testRunWhenIdle()
|