Home
last modified time | relevance | path

Searched refs:positiveButton (Results 1 – 16 of 16) 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.java94 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameDisplayIsCorrect() local
95 assertThat(positiveButton.isEnabled()).isFalse(); in deviceNameDisplayIsCorrect()
109 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameEditSucceeds() local
112 assertThat(positiveButton.isEnabled()).isFalse(); in deviceNameEditSucceeds()
118 assertThat(positiveButton.isEnabled()).isTrue(); in deviceNameEditSucceeds()
119 positiveButton.performClick(); in deviceNameEditSucceeds()
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/
DSettingsTestUtil.java254 UiObject2 positiveButton = in topicsToggleDialogTestUtil() local
258 positiveButton.clickAndWait(Until.newWindow(), WINDOW_LAUNCH_TIMEOUT); in topicsToggleDialogTestUtil()
289 UiObject2 positiveButton = in topicsToggleDialogTestUtil() local
293 positiveButton.clickAndWait(Until.newWindow(), WINDOW_LAUNCH_TIMEOUT); in topicsToggleDialogTestUtil()
312 UiObject2 positiveButton = in appsToggleDialogTestUtil() local
316 positiveButton.clickAndWait(Until.newWindow(), WINDOW_LAUNCH_TIMEOUT); in appsToggleDialogTestUtil()
347 UiObject2 positiveButton = in appsToggleDialogTestUtil() local
351 positiveButton.clickAndWait(Until.newWindow(), WINDOW_LAUNCH_TIMEOUT); in appsToggleDialogTestUtil()
372 UiObject2 positiveButton = in measurementToggleDialogTestUtil() local
378 positiveButton.clickAndWait(Until.newWindow(), WINDOW_LAUNCH_TIMEOUT); in measurementToggleDialogTestUtil()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DFullScreenDialogFragment.java123 Button positiveButton = view.findViewById(R.id.positive_button); in onCreateView() local
161 positiveButton.setVisibility( in onCreateView()
163 positiveButton.setText(positiveButtonLabel); in onCreateView()
164 positiveButton.setOnClickListener((v) -> onButtonPressed(ACTION_POSITIVE)); in onCreateView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DContactDiscoveryDialogFragmentTest.java87 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in testOkEnablesDiscovery() local
88 assertThat(positiveButton).isNotNull(); in testOkEnablesDiscovery()
89 positiveButton.performClick(); in testOkEnablesDiscovery()
DRenameMobileNetworkDialogFragmentTest.java150 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in dialog_saveButtonClicked_setDisplayNameAndIconTint() local
151 positiveButton.performClick(); in dialog_saveButtonClicked_setDisplayNameAndIconTint()
/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/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/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestErrorDialogFragmentTest.java124 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in clickPositiveButton_shouldCallStartScanningDialog() local
125 assertThat(positiveButton).isNotNull(); in clickPositiveButton_shouldCallStartScanningDialog()
127 positiveButton.performClick(); in clickPositiveButton_shouldCallStartScanningDialog()
DNetworkRequestDialogFragmentTest.java142 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCloseTheDialog() local
143 assertThat(positiveButton).isNotNull(); in clickNegativeButton_shouldCloseTheDialog()
145 positiveButton.performClick(); in clickNegativeButton_shouldCloseTheDialog()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DPermissionActivity.java64 Button positiveButton = findViewById(R.id.positive); in onResume() local
65 positiveButton.setOnClickListener(v -> { in onResume()
/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/bluetooth/
DBluetoothPairingDialogFragment.java110 Button positiveButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in afterTextChanged() local
111 if (positiveButton != null) { in afterTextChanged()
112 positiveButton.setEnabled(mPairingController.isPasskeyValid(s)); in afterTextChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/privatespace/delete/
DResetOptionsDeletePrivateSpaceControllerTest.java170 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in setAlertDialog_showsDialog_onPositiveButtonClickDialogRemoved() local
172 positiveButton.performClick(); in setAlertDialog_showsDialog_onPositiveButtonClickDialogRemoved()
/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