Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DDialogTest.java59 ShadowDialog shadow = Robolectric.shadowOf(dialog); in shouldSetCancelable()
75 ShadowDialog shadow = Robolectric.shadowOf(dialog); in shouldDefaultCancelableToTrueAsTheSDKDoes()
103 assertNull(ShadowDialog.getLatestDialog()); in show_setsLatestDialog()
107 assertEquals(dialog, ShadowDialog.getLatestDialog()); in show_setsLatestDialog()
113 assertThat(ShadowDialog.getLatestDialog(), nullValue()); in getLatestDialog_shouldReturnARealDialog()
117 assertThat(ShadowDialog.getLatestDialog(), sameInstance(dialog)); in getLatestDialog_shouldReturnARealDialog()
122 assertEquals(0, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()
127 assertEquals(1, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()
128 assertEquals(dialog, ShadowDialog.getShownDialogs().get(0)); in shouldKeepListOfOpenedDialogs()
133 assertEquals(2, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()
[all …]
DDialogFragmentTest.java81 Dialog dialog = ShadowDialog.getLatestDialog(); in show_shouldShowDialogThatWasReturnedFromOnCreateDialog_whenOnCreateDialogReturnsADialog()
91 Dialog dialog = ShadowDialog.getLatestDialog(); in show_shouldShowDialogThatWasAutomaticallyCreated_whenOnCreateDialogReturnsNull()
104 Dialog dialog = ShadowDialog.getLatestDialog(); in dismiss_shouldDismissTheDialog()
117 Dialog dialog = ShadowDialog.getLatestDialog(); in removeUsingTransaction_shouldDismissTheDialog()
DActivityTest.java240 Dialog firstDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()
244 final Dialog secondDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()
253 Dialog dialog = ShadowDialog.getLatestDialog(); in showDialog_shouldShowDialog()
262 Dialog dialog = ShadowDialog.getLatestDialog(); in dismissDialog_shouldDismissPreviouslyShownDialog()
277 Dialog firstDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()
283 Dialog secondDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()
293 assertThat(ShadowDialog.getLatestDialog(), CoreMatchers.<Object>notNullValue()); in shouldCallOnCreateDialogFromShowDialog()
DProgressDialogTest.java128 assertNull(ShadowDialog.getLatestDialog()); in assertLatestDialogsSet()
134 assertEquals(dialog, ShadowDialog.getLatestDialog()); in assertLatestDialogsSet()
DAlertDialogTest.java271 assertNull(ShadowDialog.getLatestDialog()); in show_setsLatestAlertDialogAndLatestDialog()
276 assertEquals(alertDialog, ShadowDialog.getLatestDialog()); in show_setsLatestAlertDialogAndLatestDialog()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowDialog.java26 public class ShadowDialog { class
52 ShadowDialog dialog = Robolectric.getShadowApplication().getLatestDialog(); in getLatestDialog()
56 public static void setLatestDialog(ShadowDialog latestDialog) { in setLatestDialog()
DShadowApplication.java87 private ShadowDialog latestDialog;
498 public ShadowDialog getLatestDialog() { in getLatestDialog()
502 public void setLatestDialog(ShadowDialog latestDialog) { in setLatestDialog()
DShadowAlertDialog.java26 public class ShadowAlertDialog extends ShadowDialog {
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java198 ShadowDialog.class, in getDefaultShadowClasses()
375 ShadowDialog.reset(); in resetStaticState()
609 public static ShadowDialog shadowOf(Dialog instance) { in shadowOf()
610 return (ShadowDialog) shadowOf_(instance); in shadowOf()