Home
last modified time | relevance | path

Searched refs:getLatestDialog (Results 1 – 6 of 6) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDialogTest.java130 assertNull(ShadowDialog.getLatestDialog()); in show_setsLatestDialog()
134 assertSame(dialog, ShadowDialog.getLatestDialog()); in show_setsLatestDialog()
140 assertThat(ShadowDialog.getLatestDialog()).isNull(); in getLatestDialog_shouldReturnARealDialog()
144 assertThat(ShadowDialog.getLatestDialog()).isSameInstanceAs(dialog); in getLatestDialog_shouldReturnARealDialog()
176 assertEquals(TestDialog.class, ShadowDialog.getLatestDialog().getClass()); in shouldPopulateListOfRecentDialogsInCorrectOrder()
DShadowAlertDialogTest.java244 assertNull(ShadowDialog.getLatestDialog()); in show_setsLatestAlertDialogAndLatestDialog()
249 assertEquals(alertDialog, ShadowDialog.getLatestDialog()); in show_setsLatestAlertDialogAndLatestDialog()
310 assertThat(ShadowDialog.getLatestDialog()).isEqualTo(dialog); in shouldNotExplodeWhenNestingAlerts()
313 assertThat(ShadowDialog.getLatestDialog()).isEqualTo(nestedDialog); in shouldNotExplodeWhenNestingAlerts()
DShadowActivityTest.java385 Dialog firstDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()
388 Dialog secondDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()
396 Dialog dialog = ShadowDialog.getLatestDialog(); in showDialog_shouldShowDialog()
405 Dialog dialog = ShadowDialog.getLatestDialog(); in dismissDialog_shouldDismissPreviouslyShownDialog()
419 Dialog firstDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()
425 Dialog secondDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()
435 assertThat(ShadowDialog.getLatestDialog()).isNotNull(); in shouldCallOnCreateDialogFromShowDialog()
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowDialogFragmentTest.java88 Dialog dialog = ShadowDialog.getLatestDialog(); in show_shouldShowDialogThatWasReturnedFromOnCreateDialog_whenOnCreateDialogReturnsADialog()
98 Dialog dialog = ShadowDialog.getLatestDialog(); in show_shouldShowDialogThatWasAutomaticallyCreated_whenOnCreateDialogReturnsNull()
113 Dialog dialog = ShadowDialog.getLatestDialog(); in removeUsingTransaction_shouldDismissTheDialog()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDialog.java50 public static Dialog getLatestDialog() { in getLatestDialog() method in ShadowDialog
51 ShadowDialog dialog = ShadowApplication.getInstance().getLatestDialog(); in getLatestDialog()
DShadowApplication.java172 public ShadowDialog getLatestDialog() { in getLatestDialog() method in ShadowApplication