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()).isSameAs(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.java384 Dialog firstDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()
387 Dialog secondDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()
395 Dialog dialog = ShadowDialog.getLatestDialog(); in showDialog_shouldShowDialog()
404 Dialog dialog = ShadowDialog.getLatestDialog(); in dismissDialog_shouldDismissPreviouslyShownDialog()
418 Dialog firstDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()
424 Dialog secondDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()
434 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