Home
last modified time | relevance | path

Searched refs:getButton (Results 1 – 25 of 83) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DButtonActionDialogFragmentTest.java90 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in testOnCreateDialog_forceStopDialog()
92 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in testOnCreateDialog_forceStopDialog()
109 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in testOnCreateDialog_disableDialog()
111 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in testOnCreateDialog_disableDialog()
129 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in testOnCreateDialog_specialDisableDialog()
131 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in testOnCreateDialog_specialDisableDialog()
DInstantAppButtonDialogFragmentTest.java88 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in onCreateDialog_clearAppDialog_shouldShowClearAppDataConfirmation()
90 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in onCreateDialog_clearAppDialog_shouldShowClearAppDataConfirmation()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragmentTests.java128 dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()); in testMultipleAccounts_noCurrentAccount()
130 dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()); in testMultipleAccounts_noCurrentAccount()
132 dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()); in testMultipleAccounts_noCurrentAccount()
150 dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()); in testMultipleAccounts_currentAccount()
152 dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()); in testMultipleAccounts_currentAccount()
154 dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()); in testMultipleAccounts_currentAccount()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DConfirmationDialogFragmentTest.java93 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()).isEqualTo( in buildDialogFragment_negativeButtonNotSet_negativeButtonNotVisible()
95 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()).isEqualTo( in buildDialogFragment_negativeButtonNotSet_negativeButtonNotVisible()
106 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()).isEqualTo( in buildDialogFragment_positiveButtonNotSet_positiveButtonNotVisible()
108 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()).isEqualTo( in buildDialogFragment_positiveButtonNotSet_positiveButtonNotVisible()
120 dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in clickPositiveButton_callsCallbackWithArgs()
134 dialog.getButton(DialogInterface.BUTTON_NEGATIVE).performClick(); in clickNegativeButton_callsCallbackWithArgs()
DSettingsPreferenceDialogFragmentTest.java81 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in dialogFieldsPopulatedWithPreferenceFields()
84 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in dialogFieldsPopulatedWithPreferenceFields()
129 dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in dialogClosed_positiveButton_callsOnDialogClosed()
139 dialog.getButton(DialogInterface.BUTTON_NEGATIVE).performClick(); in dialogClosed_negativeButton_callsOnDialogClosed()
187 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in instanceStateRetained()
189 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in instanceStateRetained()
DValidatedEditTextPreferenceDialogFragmentTest.java76 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in noValidatorSet_shouldEnablePositiveButton_and_allowEnterToSubmit()
100 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in onInvalidInput_shouldDisablePositiveButton_and_disallowEnterToSubmit()
121 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in onValidInput_shouldEnablePositiveButton_and_allowEnterToSubmit()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/settings/common/
DSettingsPreferenceDialogFragmentTest.java81 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in dialogFieldsPopulatedWithPreferenceFields()
84 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in dialogFieldsPopulatedWithPreferenceFields()
129 dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in dialogClosed_positiveButton_callsOnDialogClosed()
139 dialog.getButton(DialogInterface.BUTTON_NEGATIVE).performClick(); in dialogClosed_negativeButton_callsOnDialogClosed()
187 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in instanceStateRetained()
189 assertThat(ShadowAlertDialog.getLatestAlertDialog().getButton( in instanceStateRetained()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DRemoteDeviceNameDialogFragmentTest.java91 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameDisplayIsCorrect()
93 Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in deviceNameDisplayIsCorrect()
105 Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in deviceNameEditSucceeds()
106 Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in deviceNameEditSucceeds()
126 Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in deviceNameEditThenCancelDoesntRename()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRenameDialogFragmentTest.java74 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in noUserInput_positiveButtonDisabled()
82 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isTrue(); in userInput_positiveButtonEnabled()
90 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in userInput_emptyName_positiveButtonDisabled()
100 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in nameUpdatedByCode_positiveButtonDisabled()
143 mDialog.getButton(AlertDialog.BUTTON_POSITIVE).performClick(); in positiveButtonClicked_setsDeviceName()
DBluetoothRequestPermissionActivityTest.java201 Button button = mActivity.getCurrentDialog().getButton(DialogInterface.BUTTON_POSITIVE); in onPositiveClick_disableDialog_disables()
216 Button button = mActivity.getCurrentDialog().getButton(DialogInterface.BUTTON_POSITIVE); in onPositiveClick_discoverableDialog_scanModeSet()
232 Button button = mActivity.getCurrentDialog().getButton(DialogInterface.BUTTON_POSITIVE); in onPositiveClick_enableDialog_enables()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java485 mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE); in updateButton()
486 mAlert.getButton(DialogInterface.BUTTON_POSITIVE) in updateButton()
490 mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE); in updateButton()
491 mAlert.getButton(DialogInterface.BUTTON_POSITIVE) in updateButton()
494 mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE); in updateButton()
495 mAlert.getButton(DialogInterface.BUTTON_POSITIVE) in updateButton()
499 mAlert.getButton(DialogInterface.BUTTON_POSITIVE) in updateButton()
501 mAlert.getButton(DialogInterface.BUTTON_NEGATIVE) in updateButton()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DGrantPermissionsWatchViewHandler.java142 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE) in showDialog()
144 alertDialog.getButton(DialogInterface.BUTTON_NEUTRAL) in showDialog()
146 alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE) in showDialog()
157 acceptDenyDialog.getButton(DialogInterface.BUTTON_POSITIVE) in showDialog()
159 acceptDenyDialog.getButton(DialogInterface.BUTTON_NEGATIVE) in showDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactionInterstitialTest.java149 Assert.assertEquals(visible, getButton(R.id.hide_all).getVisibility() != View.GONE); in assertHideAllVisible()
164 return getButton(resource).isChecked(); in buttonChecked()
168 return !((RestrictedRadioButton) getButton(resource)).isDisabledByAdmin(); in buttonEnabled()
171 private RadioButton getButton(int resource) { in getButton() method in RedactionInterstitialTest
/packages/apps/Dialer/java/com/android/dialer/blocking/
DMigrateBlockedNumbersDialogFragment.java76 .getButton(AlertDialog.BUTTON_POSITIVE) in onCreateDialog()
92 alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false); in newPositiveButtonOnClickListener()
93 alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setEnabled(false); in newPositiveButtonOnClickListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java114 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCloseTheDialog()
281 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in display_shouldNotShowNeutralButton()
305 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onMatchManyResult_showNeutralButton()
327 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in clickNeutralButton_hideNeutralButton()
344 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE); in cancelDialog_callsReject()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DButtonSwitcher.java85 private Button getButton(final int status) { in getButton() method in ButtonSwitcher
132 final View oldButton = getButton(oldStatus); in animateButtonPosition()
133 final View newButton = getButton(newStatus); in animateButtonPosition()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java132 applyButton(dialog.getButton(DialogInterface.BUTTON_POSITIVE), getPositiveIcon()); in apply()
133 applyButton(dialog.getButton(DialogInterface.BUTTON_NEGATIVE), getNegativeIcon()); in apply()
134 applyButton(dialog.getButton(DialogInterface.BUTTON_NEUTRAL), getNeutralIcon()); in apply()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiDialog.java172 return getButton(BUTTON_SUBMIT); in getSubmitButton()
177 return getButton(BUTTON_FORGET); in getForgetButton()
182 return getButton(BUTTON_NEGATIVE); in getCancelButton()
DNetworkRequestDialogFragment.java147 final Button neutralBtn = dialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onCreateDialog()
158 final Button positiveBtn = dialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
265 final Button neutralBtn = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in showAllButton()
282 final Button positiveBtn = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in updateConnectButton()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialog.java183 return getButton(BUTTON_SUBMIT); in getSubmitButton()
188 return getButton(BUTTON_FORGET); in getForgetButton()
193 return getButton(BUTTON_NEGATIVE); in getCancelButton()
DNetworkRequestDialogFragment.java147 final Button neutralBtn = dialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onCreateDialog()
158 final Button positiveBtn = dialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
265 final Button neutralBtn = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in showAllButton()
282 final Button positiveBtn = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in updateConnectButton()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java261 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in disableSingleSimDialog_onConfirm_disablesData()
282 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in disableSingleSimDialog_onConfirm_setsUnchecked()
306 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in enableMutliSimDialog_onConfirm_enablesData()
330 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in enableMutliSimDialog_onConfirm_setsChecked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragmentTest.java95 final Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in dialog_subscriptionMissing_noCrash()
108 final Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in dialog_cancelButtonClicked_setDisplayNameAndIconTintNotCalled()
127 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in dialog_saveButtonClicked_setDisplayNameAndIconTint()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DAddContactsConfirmationDialog.java56 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.java81 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
98 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick(); in positiveButtonClick_changeInValue_dialogListenerCalled()

1234