Home
last modified time | relevance | path

Searched refs:ShadowDialog (Results 1 – 7 of 7) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDialogTest.java84 ShadowDialog shadow = shadowOf(dialog); in shouldSetCancelable()
100 ShadowDialog shadow = shadowOf(dialog); in shouldDefaultCancelableToTrueAsTheSDKDoes()
130 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()
149 assertEquals(0, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()
154 assertEquals(1, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()
155 assertEquals(dialog, ShadowDialog.getShownDialogs().get(0)); in shouldKeepListOfOpenedDialogs()
160 assertEquals(2, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()
[all …]
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.java27 import org.robolectric.shadows.ShadowDialog;
88 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()
179 private static ShadowDialog shadowOf(Dialog dialog) { in shadowOf()
180 return (ShadowDialog) Shadow.extract(dialog); in shadowOf()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDialog.java26 public class ShadowDialog { class
51 ShadowDialog dialog = ShadowApplication.getInstance().getLatestDialog(); in getLatestDialog()
55 public static void setLatestDialog(ShadowDialog latestDialog) { in setLatestDialog()
DShadowApplication.java43 private ShadowDialog latestDialog;
172 public ShadowDialog getLatestDialog() { in getLatestDialog()
176 protected void setLatestDialog(ShadowDialog latestDialog) { in setLatestDialog()
DShadowAlertDialog.java17 public class ShadowAlertDialog extends ShadowDialog {