Home
last modified time | relevance | path

Searched refs:ShadowAlertDialogCompat (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupSkipDialogTest.java25 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
36 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class})
52 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in frpMessages_areShownCorrectly_whenNotSupported()
54 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in frpMessages_areShownCorrectly_whenNotSupported()
67 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in frpMessages_areShownCorrectly_whenSupported()
69 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in frpMessages_areShownCorrectly_whenSupported()
82 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
84 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
97 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly()
99 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly()
[all …]
DChooseLockTypeDialogFragmentTest.java35 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
47 @Config(shadows = {ShadowAlertDialogCompat.class, ShadowLockPatternUtils.class})
64 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(latestDialog); in testThatDialog_IsShown()
77 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(lockDialog); in testThat_OnClickListener_IsCalled()
98 return ShadowAlertDialogCompat.getLatestAlertDialog(); in startLockFragment()
DSetupChooseLockPatternTest.java40 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
61 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class, ShadowLockPatternUtils.class})
112 AlertDialog chooserDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in verifyScreenLockOptionsShown()
157 AlertDialog chooserDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in skipButton_shouldBeVisible_duringNonFingerprintFlow()
DSetupChooseLockPasswordTest.java36 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
66 ShadowAlertDialogCompat.class
157 final AlertDialog chooserDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in createActivity_skipButtonInIntroductionStage_shouldBeVisible()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java37 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
55 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class})
113 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
114 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
127 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
128 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
149 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
150 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
179 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
180 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestErrorDialogFragmentTest.java35 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
49 @Config(shadows = ShadowAlertDialogCompat.class)
69 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowTimeoutDialog()
74 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in display_shouldShowTimeoutDialog()
89 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowAbortDialog()
94 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in display_shouldShowAbortDialog()
102 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in clickPositiveButton_shouldCallStartScanningDialog()
114 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in clickNegativeButton_shouldCloseTheDialog()
130 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in clickNegativeButton_shouldCallReject()
DNetworkRequestDialogFragmentTest.java44 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
65 @Config(shadows = ShadowAlertDialogCompat.class)
92 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowTheDialog()
100 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowTitleWithAppName()
111 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in clickNegativeButton_shouldCloseTheDialog()
279 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldNotShowNeutralButton()
289 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in onMatchManyResult_showNeutralButton()
314 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in clickNeutralButton_hideNeutralButton()
338 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in cancelDialog_callsReject()
DWifiDialogActivityTest.java27 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
49 ShadowAlertDialogCompat.class
69 WifiDialog dialog = (WifiDialog) ShadowAlertDialogCompat.getLatestAlertDialog(); in onSubmit_shouldConnectToNetwork()
86 WifiDialog dialog = (WifiDialog) ShadowAlertDialogCompat.getLatestAlertDialog(); in onSubmit_whenConnectForCallerIsFalse_shouldNotConnectToNetwork()
107 WifiDialog dialog = (WifiDialog) ShadowAlertDialogCompat.getLatestAlertDialog(); in onSubmit_whenLaunchInSetupFlow_shouldBeLightThemeForWifiDialog()
DNetworkRequestDialogActivityTest.java25 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
37 @Config(shadows = ShadowAlertDialogCompat.class)
51 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in launchActivity_shouldShowNetworkRequestDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DButtonActionDialogFragmentTest.java33 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
46 @Config(shadows = ShadowAlertDialogCompat.class)
80 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_forceStopDialog()
84 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_forceStopDialog()
101 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_disableDialog()
105 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_disableDialog()
121 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in testOnCreateDialog_specialDisableDialog()
125 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_specialDisableDialog()
DInstantAppButtonDialogFragmentTest.java37 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
48 @Config(shadows = ShadowAlertDialogCompat.class)
78 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in onCreateDialog_clearAppDialog_shouldShowClearAppDataConfirmation()
82 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in onCreateDialog_clearAppDialog_shouldShowClearAppDataConfirmation()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DForgetDeviceDialogFragmentTest.java36 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
53 @Config(shadows = {ShadowAlertDialogCompat.class})
108 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in createDialog_untetheredDevice_showUntetheredMessage()
109 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in createDialog_untetheredDevice_showUntetheredMessage()
122 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in createDialog_normalDevice_showNormalMessage()
123 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in createDialog_normalDevice_showNormalMessage()
DBluetoothDevicePreferenceTest.java36 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
52 @Config(shadows = {ShadowAlertDialogCompat.class})
DBluetoothPairingDialogTest.java43 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
56 @Config(shadows = ShadowAlertDialogCompat.class)
443 AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in userEntryDialogExistingTextTest()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java49 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
67 @Config(shadows = ShadowAlertDialogCompat.class)
173 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in createDialogFragment_toRestrict_createRestrictDialog()
174 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in createDialogFragment_toRestrict_createRestrictDialog()
186 final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in createDialogFragment_toUnrestrict_createUnrestrictDialog()
187 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in createDialogFragment_toUnrestrict_createUnrestrictDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DPreferredSimDialogFragmentTest.java36 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
44 @Config(shadows = ShadowAlertDialogCompat.class)
78 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in onCreateDialog_twoSimsSelectFirst_correctMessage()
89 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in onCreateDialog_twoSimsSelectSecond_correctMessage()
DSimDialogFragmentTestBase.java29 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
74 return ShadowAlertDialogCompat.getLatestAlertDialog(); in startDialog()
DSimListDialogFragmentTest.java37 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
47 @Config(shadows = ShadowAlertDialogCompat.class)
DSimSelectNotificationTest.java58 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
70 @Config(shadows = ShadowAlertDialogCompat.class)
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DSetupFingerprintEnrollFindSensorTest.java32 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
49 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class})
80 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in fingerprintEnroll_showsAlert_whenClickingSkip()
83 final ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf( in fingerprintEnroll_showsAlert_whenClickingSkip()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowAlertDialogCompat.java37 public class ShadowAlertDialogCompat extends ShadowDialog { class
41 private static ShadowAlertDialogCompat latestSupportAlertDialog;
76 public static ShadowAlertDialogCompat shadowOf(AlertDialog alertDialog) { in shadowOf()
77 return (ShadowAlertDialogCompat) Shadow.extract(alertDialog); in shadowOf()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSettingsDashboardFragmentTest.java36 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
60 @Config(shadows = {ShadowUserManager.class, ShadowAlertDialogCompat.class})
198 AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog()
200 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DEditUserInfoControllerTest.java38 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
101 @Config(shadows = ShadowAlertDialogCompat.class)
109 final EditText userName = ShadowAlertDialogCompat.shadowOf(dialog).getView() in userNameView_inputLongName_shouldBeConstrained()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragmentTest.java48 import com.android.settings.testutils.shadow.ShadowAlertDialogCompat;
67 @Config(shadows = ShadowAlertDialogCompat.class)
171 return ShadowAlertDialogCompat.getLatestAlertDialog(); in startDialog()