/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | HandlerTest.java | 103 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostAndIdleMainLooper() 110 assertThat(scratchRunnable.wasRun, equalTo(false)); in postDelayedThenIdleMainLooper_shouldNotRunRunnable() 117 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostDelayedThenRunMainLooperOneTask() 130 assertThat(scratchRunnable.wasRun, equalTo(false)); in testRemoveCallbacks() 137 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostDelayedThenRunMainLooperToNextTask_shouldRunOneTask() 149 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks() 150 assertThat(task2.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks() 162 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask() 163 assertThat(task2.wasRun, equalTo(false)); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask() 177 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask() [all …]
|
D | LooperTest.java | 24 final boolean[] wasRun = new boolean[]{false}; in idleMainLooper_executesScheduledTasks() 28 wasRun[0] = true; in idleMainLooper_executesScheduledTasks() 32 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks() 34 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks() 36 assertTrue(wasRun[0]); in idleMainLooper_executesScheduledTasks()
|
D | ViewTest.java | 179 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueue() 182 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueue() 203 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay() 206 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay()
|
D | FragmentManagerTest.java | 221 assertFalse(otherEnqueuedTask.wasRun); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused() 223 assertTrue(otherEnqueuedTask.wasRun); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()
|
D | ActivityTest.java | 172 assertTrue(runnable.wasRun); in shouldRunUiTasksImmediatelyByDefault() 182 assertFalse(runnable.wasRun); in shouldQueueUiTasksWhenUiThreadIsPaused() 185 assertTrue(runnable.wasRun); in shouldQueueUiTasksWhenUiThreadIsPaused()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/ |
D | SchedulerTest.java | 117 assertThat(runnable.wasRun, equalTo(false)); in removeShouldRemoveAllInstancesOfRunnableFromQueue() 127 assertThat(runnable.wasRun, equalTo(false)); in resetShouldUnPause() 131 assertThat(runnable.wasRun, equalTo(true)); in resetShouldUnPause() 141 assertThat(runnable1.wasRun, equalTo(false)); in resetShouldClearPendingRunnables() 148 assertThat(runnable1.wasRun, equalTo(false)); in resetShouldClearPendingRunnables() 149 assertThat(runnable2.wasRun, equalTo(true)); in resetShouldClearPendingRunnables()
|
D | TestRunnable.java | 4 public boolean wasRun = false; field in TestRunnable 7 wasRun = true; in run()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | JdkFutureAdaptersTest.java | 210 final CountDownLatch wasRun = new CountDownLatch(1); field in JdkFutureAdaptersTest.RecordingRunnable 215 checkState(wasRun.getCount() > 0); in run() 216 wasRun.countDown(); in run() 242 assertTrue(earlyListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException() 247 assertTrue(lateListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/ |
D | RobolectricTest.java | 128 final boolean[] wasRun = new boolean[]{false}; in idleMainLooper_executesScheduledTasks() 132 wasRun[0] = true; in idleMainLooper_executesScheduledTasks() 136 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks() 138 assertFalse(wasRun[0]); in idleMainLooper_executesScheduledTasks() 140 assertTrue(wasRun[0]); in idleMainLooper_executesScheduledTasks()
|
/external/testng/src/test/java/test/factory/ |
D | MyTest.java | 27 assert FactoryInSeparateClass.wasRun() : "Test method on factory class wasn't run"; in verifyThatTestMethodOnFactoryClassWasRun()
|
D | FactoryInSeparateClass.java | 41 public static boolean wasRun() { in wasRun() method in FactoryInSeparateClass
|
/external/llvm/lib/IR/ |
D | LegacyPassManager.cpp | 222 bool wasRun; member in llvm::legacy::FunctionPassManagerImpl 227 PMTopLevelManager(new FPPassManager()), wasRun(false) {} in FunctionPassManagerImpl() 1467 if (!wasRun) in releaseMemoryOnTheFly() 1475 wasRun = false; in releaseMemoryOnTheFly() 1493 wasRun = true; in run()
|