Home
last modified time | relevance | path

Searched refs:alertDialog (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupSkipDialogTest.java52 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in frpMessages_areShownCorrectly_whenNotSupported() local
53 assertThat(alertDialog).isNotNull(); in frpMessages_areShownCorrectly_whenNotSupported()
54 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in frpMessages_areShownCorrectly_whenNotSupported()
67 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in frpMessages_areShownCorrectly_whenSupported() local
68 assertThat(alertDialog).isNotNull(); in frpMessages_areShownCorrectly_whenSupported()
69 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in frpMessages_areShownCorrectly_whenSupported()
82 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly() local
83 assertThat(alertDialog).isNotNull(); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
84 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
97 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestErrorDialogFragmentTest.java69 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowTimeoutDialog() local
71 assertThat(alertDialog).isNotNull(); in display_shouldShowTimeoutDialog()
72 assertThat(alertDialog.isShowing()).isTrue(); in display_shouldShowTimeoutDialog()
74 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in display_shouldShowTimeoutDialog()
89 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowAbortDialog() local
91 assertThat(alertDialog).isNotNull(); in display_shouldShowAbortDialog()
92 assertThat(alertDialog.isShowing()).isTrue(); in display_shouldShowAbortDialog()
94 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in display_shouldShowAbortDialog()
102 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in clickPositiveButton_shouldCallStartScanningDialog() local
103 assertThat(alertDialog.isShowing()).isTrue(); in clickPositiveButton_shouldCallStartScanningDialog()
[all …]
DNetworkRequestDialogFragmentTest.java92 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowTheDialog() local
93 assertThat(alertDialog).isNotNull(); in display_shouldShowTheDialog()
94 assertThat(alertDialog.isShowing()).isTrue(); in display_shouldShowTheDialog()
100 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldShowTitleWithAppName() local
104 final TextView view = alertDialog.findViewById(R.id.network_request_title_text); in display_shouldShowTitleWithAppName()
111 AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in clickNegativeButton_shouldCloseTheDialog() local
112 assertThat(alertDialog.isShowing()).isTrue(); in clickNegativeButton_shouldCloseTheDialog()
114 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCloseTheDialog()
118 assertThat(alertDialog.isShowing()).isFalse(); in clickNegativeButton_shouldCloseTheDialog()
279 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in display_shouldNotShowNeutralButton() local
[all …]
DNetworkRequestDialogActivityTest.java51 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in launchActivity_shouldShowNetworkRequestDialog() local
53 assertThat(alertDialog.isShowing()).isTrue(); in launchActivity_shouldShowNetworkRequestDialog()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityGestureNavigationTutorial.java70 final AlertDialog alertDialog = new AlertDialog.Builder(context) in showGestureNavigationSettingsTutorialDialog() local
77 alertDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); in showGestureNavigationSettingsTutorialDialog()
78 alertDialog.setCanceledOnTouchOutside(false); in showGestureNavigationSettingsTutorialDialog()
79 alertDialog.show(); in showGestureNavigationSettingsTutorialDialog()
83 final AlertDialog alertDialog = createDialog(context, in showAccessibilityButtonTutorialDialog() local
87 updateMessageWithIcon(context, alertDialog); in showAccessibilityButtonTutorialDialog()
90 return alertDialog; in showAccessibilityButtonTutorialDialog()
152 final AlertDialog alertDialog = new AlertDialog.Builder(context) in createDialog() local
157 alertDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); in createDialog()
158 alertDialog.setCanceledOnTouchOutside(false); in createDialog()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DPreferredSimDialogFragmentTest.java77 final AlertDialog alertDialog = startDialog(); in onCreateDialog_twoSimsSelectFirst_correctMessage() local
78 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in onCreateDialog_twoSimsSelectFirst_correctMessage()
88 final AlertDialog alertDialog = startDialog(); in onCreateDialog_twoSimsSelectSecond_correctMessage() local
89 final ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in onCreateDialog_twoSimsSelectSecond_correctMessage()
99 final AlertDialog alertDialog = startDialog(); in onClick_yesClicked_callsOnSubscriptionSelected() local
105 mFragment.onClick(alertDialog, DialogInterface.BUTTON_POSITIVE); in onClick_yesClicked_callsOnSubscriptionSelected()
113 final AlertDialog alertDialog = startDialog(); in onClick_noClicked_doesNotCallOnSubscriptionSelected() local
119 mFragment.onClick(alertDialog, DialogInterface.BUTTON_NEGATIVE); in onClick_noClicked_doesNotCallOnSubscriptionSelected()
DSimListDialogFragmentTest.java70 final AlertDialog alertDialog = startDialog(); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay() local
77 mFragment.onClick(alertDialog, 1); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
106 final AlertDialog alertDialog = startDialog(); in onCreateDialog_twoSubscriptionsAskEveryTime_threeSubsForDisplay() local
114 mFragment.onClick(alertDialog, 0); in onCreateDialog_twoSubscriptionsAskEveryTime_threeSubsForDisplay()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DMigrateBlockedNumbersDialogFragment.java74 final AlertDialog alertDialog = (AlertDialog) dialog; in onCreateDialog()
75 alertDialog in onCreateDialog()
77 .setOnClickListener(newPositiveButtonOnClickListener(alertDialog)); in onCreateDialog()
88 private View.OnClickListener newPositiveButtonOnClickListener(final AlertDialog alertDialog) { in newPositiveButtonOnClickListener() argument
92 alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false); in newPositiveButtonOnClickListener()
93 alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setEnabled(false); in newPositiveButtonOnClickListener()
98 alertDialog.dismiss(); in newPositiveButtonOnClickListener()
/packages/apps/Contacts/src/com/android/contacts/
DNonPhoneActivity.java75 final AlertDialog alertDialog; in onCreateDialog() local
76 alertDialog = new AlertDialog.Builder(getActivity(), R.style.NonPhoneDialogTheme) in onCreateDialog()
78 alertDialog.setTitle(R.string.non_phone_caption); in onCreateDialog()
79 alertDialog.setMessage(getArgumentPhoneNumber()); in onCreateDialog()
80 alertDialog.setButton(DialogInterface.BUTTON_POSITIVE, in onCreateDialog()
82 alertDialog.setButton(DialogInterface.BUTTON_NEGATIVE, in onCreateDialog()
84 return alertDialog; in onCreateDialog()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DConfirmDeletionDialogTest.java35 final ConfirmDeletionDialog alertDialog = ConfirmDeletionDialog.newInstance(100L); in testOnCreateDialog_saysCorrectStrings() local
36 startFragment(alertDialog); in testOnCreateDialog_saysCorrectStrings()
38 TextView message = alertDialog.getDialog().findViewById(R.id.message); in testOnCreateDialog_saysCorrectStrings()
39 Button button1 = alertDialog.getDialog().findViewById(android.R.id.button1); in testOnCreateDialog_saysCorrectStrings()
40 Button button2 = alertDialog.getDialog().findViewById(android.R.id.button2); in testOnCreateDialog_saysCorrectStrings()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java260 AlertDialog alertDialog = showDialog(dialog); in disableSingleSimDialog_onConfirm_disablesData() local
261 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in disableSingleSimDialog_onConfirm_disablesData()
281 AlertDialog alertDialog = showDialog(dialog); in disableSingleSimDialog_onConfirm_setsUnchecked() local
282 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in disableSingleSimDialog_onConfirm_setsUnchecked()
305 AlertDialog alertDialog = showDialog(dialog); in enableMutliSimDialog_onConfirm_enablesData() local
306 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in enableMutliSimDialog_onConfirm_enablesData()
329 AlertDialog alertDialog = showDialog(dialog); in enableMutliSimDialog_onConfirm_setsChecked() local
330 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in enableMutliSimDialog_onConfirm_setsChecked()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkRequestDialogFragment.java261 final AlertDialog alertDialog = (AlertDialog) getDialog(); in showAllButton() local
262 if (alertDialog == null) { in showAllButton()
266 final Button neutralBtn = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in showAllButton()
278 final AlertDialog alertDialog = (AlertDialog) getDialog(); in updateConnectButton() local
279 if (alertDialog == null) { in updateConnectButton()
283 final Button positiveBtn = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in updateConnectButton()
290 final AlertDialog alertDialog = (AlertDialog) getDialog(); in hideProgressIcon() local
291 if (alertDialog == null) { in hideProgressIcon()
295 final View progress = alertDialog.findViewById(R.id.network_request_title_progress); in hideProgressIcon()
/packages/apps/Settings/src/com/android/settings/wifi/
DNetworkRequestDialogFragment.java260 final AlertDialog alertDialog = (AlertDialog) getDialog(); in showAllButton() local
261 if (alertDialog == null) { in showAllButton()
265 final Button neutralBtn = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in showAllButton()
277 final AlertDialog alertDialog = (AlertDialog) getDialog(); in updateConnectButton() local
278 if (alertDialog == null) { in updateConnectButton()
282 final Button positiveBtn = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in updateConnectButton()
289 final AlertDialog alertDialog = (AlertDialog) getDialog(); in hideProgressIcon() local
290 if (alertDialog == null) { in hideProgressIcon()
294 final View progress = alertDialog.findViewById(R.id.network_request_title_progress); in hideProgressIcon()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DNetworkRequestDialogFragment.java260 final AlertDialog alertDialog = (AlertDialog) getDialog(); in showAllButton() local
261 if (alertDialog == null) { in showAllButton()
265 final Button neutralBtn = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in showAllButton()
277 final AlertDialog alertDialog = (AlertDialog) getDialog(); in updateConnectButton() local
278 if (alertDialog == null) { in updateConnectButton()
282 final Button positiveBtn = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in updateConnectButton()
289 final AlertDialog alertDialog = (AlertDialog) getDialog(); in hideProgressIcon() local
290 if (alertDialog == null) { in hideProgressIcon()
294 final View progress = alertDialog.findViewById(R.id.network_request_title_progress); in hideProgressIcon()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupNameEditDialogFragment.java162 final AlertDialog alertDialog = builder.create(); in onCreateDialog() local
163 alertDialog.getWindow().setSoftInputMode( in onCreateDialog()
165 alertDialog.setOnShowListener(new DialogInterface.OnShowListener() { in onCreateDialog()
168 mGroupNameEditText = (EditText) alertDialog.findViewById(android.R.id.text1); in onCreateDialog()
170 (TextInputLayout) alertDialog.findViewById(R.id.text_input_layout); in onCreateDialog()
181 final Button createButton = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
209 return alertDialog; in onCreateDialog()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DAddContactsConfirmationDialog.java48 final AlertDialog alertDialog = new AlertDialog.Builder(mContext) in show() local
54 alertDialog.show(); in show()
56 final Button cancelButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in show()
60 final Button addButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in show()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialogTest.java80 AlertDialog alertDialog = (AlertDialog) ShadowDialog.getLatestDialog(); in positiveButtonClick_noChangeInValue_dialogListenerNotCalled() local
81 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
97 AlertDialog alertDialog = (AlertDialog) ShadowDialog.getLatestDialog(); in positiveButtonClick_changeInValue_dialogListenerCalled() local
98 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in positiveButtonClick_changeInValue_dialogListenerCalled()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DGrantPermissionsWatchViewHandler.java132 AlertDialog alertDialog = new WearableDialogHelper.DialogBuilder(mContext) in showDialog() local
142 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE) in showDialog()
144 alertDialog.getButton(DialogInterface.BUTTON_NEUTRAL) in showDialog()
146 alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE) in showDialog()
149 mDialog = alertDialog; in showDialog()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DDialogController.java90 final AlertDialog alertDialog = new MaterialAlertDialogBuilder(mActivity) in confirmDelete() local
103 alertDialog.setOnShowListener( in confirmDelete()
105 Button positive = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in confirmDelete()
109 alertDialog.show(); in confirmDelete()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DSetupFingerprintEnrollFindSensorTest.java80 final AlertDialog alertDialog = ShadowAlertDialogCompat.getLatestAlertDialog(); in fingerprintEnroll_showsAlert_whenClickingSkip() local
81 assertThat(alertDialog).isNotNull(); in fingerprintEnroll_showsAlert_whenClickingSkip()
84 alertDialog); in fingerprintEnroll_showsAlert_whenClickingSkip()
/packages/apps/Dialer/java/com/android/incallui/telecomeventui/
DInternationalCallOnWifiDialogFragment.java111 AlertDialog alertDialog = in onCreateDialog() local
123 alertDialog.setCanceledOnTouchOutside(false); in onCreateDialog()
124 return alertDialog; in onCreateDialog()
/packages/apps/Dialer/java/com/android/incallui/
DRttRequestDialogFragment.java85 AlertDialog alertDialog = in onCreateDialog() local
92 alertDialog.setCanceledOnTouchOutside(false); in onCreateDialog()
93 return alertDialog; in onCreateDialog()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallRedirectionActivity.java32 AlertDialog alertDialog = new AlertDialog.Builder(this) in onCreate() local
51 alertDialog.show(); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowAlertDialogCompat.java76 public static ShadowAlertDialogCompat shadowOf(AlertDialog alertDialog) { in shadowOf() argument
77 return (ShadowAlertDialogCompat) Shadow.extract(alertDialog); in shadowOf()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageSystemCategoryPreferenceController.java64 AlertDialog alertDialog = new AlertDialogBuilder(getContext()) in handlePreferenceClicked() local
69 alertDialog.show(); in handlePreferenceClicked()

12