Home
last modified time | relevance | path

Searched refs:onKeyUpWasCalled (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowActivity.java58 private boolean onKeyUpWasCalled; field in ShadowActivity
358 onKeyUpWasCalled = true; in onKeyUp()
366 public boolean onKeyUpWasCalled() { in onKeyUpWasCalled() method in ShadowActivity
367 return onKeyUpWasCalled; in onKeyUpWasCalled()
371 onKeyUpWasCalled = false; in resetKeyUpWasCalled()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DActivityTest.java383 assertTrue(shadowOf(activity).onKeyUpWasCalled()); in onKeyUp_recordsThatItWasCalled()
386 assertFalse(shadowOf(activity).onKeyUpWasCalled()); in onKeyUp_recordsThatItWasCalled()
395 assertTrue(shadowOf(activity).onKeyUpWasCalled()); in onKeyUp_callsOnBackPressedWhichFinishesTheActivity()