Home
last modified time | relevance | path

Searched refs:positiveButton (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DValidatedEditTextPreferenceDialogFragmentTest.java81 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in noValidatorSet_shouldEnablePositiveButton_and_allowEnterToSubmit() local
86 assertThat(positiveButton.isEnabled()).isTrue(); in noValidatorSet_shouldEnablePositiveButton_and_allowEnterToSubmit()
90 assertThat(positiveButton.isEnabled()).isTrue(); in noValidatorSet_shouldEnablePositiveButton_and_allowEnterToSubmit()
105 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in onInvalidInput_shouldDisablePositiveButton_and_disallowEnterToSubmit() local
111 assertThat(positiveButton.isEnabled()).isFalse(); in onInvalidInput_shouldDisablePositiveButton_and_disallowEnterToSubmit()
126 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in onValidInput_shouldEnablePositiveButton_and_allowEnterToSubmit() local
132 assertThat(positiveButton.isEnabled()).isTrue(); in onValidInput_shouldEnablePositiveButton_and_allowEnterToSubmit()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DRemoteDeviceNameDialogFragmentTest.java91 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameDisplayIsCorrect() local
92 assertThat(positiveButton.isEnabled()).isFalse(); in deviceNameDisplayIsCorrect()
105 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameEditSucceeds() local
108 assertThat(positiveButton.isEnabled()).isFalse(); in deviceNameEditSucceeds()
114 assertThat(positiveButton.isEnabled()).isTrue(); in deviceNameEditSucceeds()
115 positiveButton.performClick(); in deviceNameEditSucceeds()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DContactDiscoveryDialogFragmentTest.java85 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in testOkEnablesDiscovery() local
86 assertThat(positiveButton).isNotNull(); in testOkEnablesDiscovery()
87 positiveButton.performClick(); in testOkEnablesDiscovery()
DRenameMobileNetworkDialogFragmentTest.java154 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in dialog_saveButtonClicked_setDisplayNameAndIconTint() local
155 positiveButton.performClick(); in dialog_saveButtonClicked_setDisplayNameAndIconTint()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestErrorDialogFragmentTest.java112 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in clickPositiveButton_shouldCallStartScanningDialog() local
113 assertThat(positiveButton).isNotNull(); in clickPositiveButton_shouldCallStartScanningDialog()
115 positiveButton.performClick(); in clickPositiveButton_shouldCallStartScanningDialog()
DNetworkRequestDialogFragmentTest.java102 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCloseTheDialog() local
103 assertThat(positiveButton).isNotNull(); in clickNegativeButton_shouldCloseTheDialog()
105 positiveButton.performClick(); in clickNegativeButton_shouldCloseTheDialog()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DDialogTestUtils.java35 Button positiveButton = dialogFragment.getDialog().getWindow().findViewById( in clickPositiveButton() local
37 positiveButton.callOnClick(); in clickPositiveButton()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DDialogTestUtils.java35 Button positiveButton = dialogFragment.getDialog().getWindow().findViewById( in clickPositiveButton() local
37 positiveButton.callOnClick(); in clickPositiveButton()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialogFragment.java96 Button positiveButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in afterTextChanged() local
97 if (positiveButton != null) { in afterTextChanged()
98 positiveButton.setEnabled(mPairingController.isPasskeyValid(s)); in afterTextChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingDialogFragment.java99 Button positiveButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in afterTextChanged() local
100 if (positiveButton != null) { in afterTextChanged()
101 positiveButton.setEnabled(mPairingController.isPasskeyValid(s)); in afterTextChanged()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityDialogUtils.java234 final Button positiveButton = contentView.findViewById( in setCustomButtonsClickListener() local
239 if (positiveButton != null) { in setCustomButtonsClickListener()
240 positiveButton.setOnClickListener(v -> { in setCustomButtonsClickListener()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DPhoneCallDetailsHelper.java404 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in showVoicemailDonationPromo() local
405 if (positiveButton != null) { in showVoicemailDonationPromo()
406 positiveButton.setTextColor(ThemeComponent.get(context).theme().getColorPrimary()); in showVoicemailDonationPromo()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java106 public void onClick(View positiveButton) { in onClick() argument