Searched refs:shadowDialog (Results 1 – 8 of 8) sorted by relevance
141 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_highUsageTip_fireHighUsageDialog() local143 assertThat(shadowDialog.getMessage()).isEqualTo( in testOnCreateDialog_highUsageTip_fireHighUsageDialog()155 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog() local157 assertThat(shadowDialog.getTitle()).isEqualTo("Restrict app?"); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()158 assertThat(shadowDialog.getMessage()) in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()177 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog() local179 assertThat(shadowDialog.getTitle()).isEqualTo("Restrict 2 apps?"); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()180 assertThat(shadowDialog.getMessage()) in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()185 assertThat(shadowDialog.getView()).isNotNull(); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()207 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog() local[all …]
101 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_forceStopDialog() local103 assertThat(shadowDialog.getMessage()).isEqualTo( in testOnCreateDialog_forceStopDialog()105 assertThat(shadowDialog.getTitle()).isEqualTo( in testOnCreateDialog_forceStopDialog()122 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_disableDialog() local124 assertThat(shadowDialog.getMessage()).isEqualTo( in testOnCreateDialog_disableDialog()142 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_specialDisableDialog() local144 assertThat(shadowDialog.getMessage()).isEqualTo( in testOnCreateDialog_specialDisableDialog()
82 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in onCreateDialog_clearAppDialog_shouldShowClearAppDataConfirmation() local84 assertThat(shadowDialog.getMessage()).isEqualTo( in onCreateDialog_clearAppDialog_shouldShowClearAppDataConfirmation()86 assertThat(shadowDialog.getTitle()).isEqualTo( in onCreateDialog_clearAppDialog_shouldShowClearAppDataConfirmation()
115 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in showRemoveLocaleWarningDialog_allLocaleSelected_shouldShowErrorDialog() local117 assertThat(shadowDialog.getTitle()).isEqualTo( in showRemoveLocaleWarningDialog_allLocaleSelected_shouldShowErrorDialog()137 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in showRemoveLocaleWarningDialog_mainLocaleSelected_shouldShowLocaleChangeDialog() local139 assertThat(shadowDialog.getMessage()).isEqualTo( in showRemoveLocaleWarningDialog_mainLocaleSelected_shouldShowLocaleChangeDialog()159 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in showRemoveLocaleWarningDialog_mainLocaleNotSelected_shouldShowConfirmDialog() local161 assertThat(shadowDialog.getMessage()).isNull(); in showRemoveLocaleWarningDialog_mainLocaleNotSelected_shouldShowConfirmDialog()
83 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in onCreateDialog_twoSimsSelectFirst_correctMessage() local84 final String message = (String) shadowDialog.getMessage(); in onCreateDialog_twoSimsSelectFirst_correctMessage()96 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in onCreateDialog_twoSimsSelectSecond_correctMessage() local97 final String message = (String) shadowDialog.getMessage(); in onCreateDialog_twoSimsSelectSecond_correctMessage()
174 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in createDialogFragment_toRestrict_createRestrictDialog() local175 assertThat(shadowDialog.getTitle()).isEqualTo("Restrict app?"); in createDialogFragment_toRestrict_createRestrictDialog()187 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in createDialogFragment_toUnrestrict_createUnrestrictDialog() local188 assertThat(shadowDialog.getTitle()).isEqualTo("Remove restriction?"); in createDialogFragment_toUnrestrict_createUnrestrictDialog()
110 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in createDialog_normalDevice_showNormalMessage() local112 assertThat(shadowDialog.getMessage()).isEqualTo( in createDialog_normalDevice_showNormalMessage()
209 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog() local210 assertThat(shadowDialog.getTitle()).isEqualTo( in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog()212 assertThat(shadowDialog.getMessage()).isEqualTo( in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog()