/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ValidatedEditTextPreferenceDialogFragmentTest.java | 81 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/ |
D | RemoteDeviceNameDialogFragmentTest.java | 94 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/ |
D | SettingsTestUtil.java | 254 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/ |
D | FullScreenDialogFragment.java | 123 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/ |
D | ContactDiscoveryDialogFragmentTest.java | 87 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in testOkEnablesDiscovery() local 88 assertThat(positiveButton).isNotNull(); in testOkEnablesDiscovery() 89 positiveButton.performClick(); in testOkEnablesDiscovery()
|
D | RenameMobileNetworkDialogFragmentTest.java | 150 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/ |
D | DialogTestUtils.java | 35 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/ |
D | DialogTestUtils.java | 35 Button positiveButton = dialogFragment.getDialog().getWindow().findViewById( in clickPositiveButton() local 37 positiveButton.callOnClick(); in clickPositiveButton()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | NetworkRequestErrorDialogFragmentTest.java | 124 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in clickPositiveButton_shouldCallStartScanningDialog() local 125 assertThat(positiveButton).isNotNull(); in clickPositiveButton_shouldCallStartScanningDialog() 127 positiveButton.performClick(); in clickPositiveButton_shouldCallStartScanningDialog()
|
D | NetworkRequestDialogFragmentTest.java | 142 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/ |
D | PermissionActivity.java | 64 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/ |
D | BluetoothPairingDialogFragment.java | 99 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/ |
D | BluetoothPairingDialogFragment.java | 110 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/ |
D | ResetOptionsDeletePrivateSpaceControllerTest.java | 170 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/ |
D | PhoneCallDetailsHelper.java | 404 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/ |
D | ConfigDialogFragment.java | 106 public void onClick(View positiveButton) { in onClick() argument
|