Home
last modified time | relevance | path

Searched refs:getButton (Results 1 – 25 of 77) 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()
DValidatedEditTextPreferenceDialogFragmentTest.java81 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in noValidatorSet_shouldEnablePositiveButton_and_allowEnterToSubmit()
105 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( in onInvalidInput_shouldDisablePositiveButton_and_disallowEnterToSubmit()
126 Button positiveButton = ShadowAlertDialog.getLatestAlertDialog().getButton( 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()
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/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/Bluetooth/src/com/android/bluetooth/
DAlertActivity.java103 mAlert.getButton(identifier).setVisibility(visibility); in changeButtonVisibility()
108 mAlert.getButton(identifier).setText(text); in changeButtonText()
113 mAlert.getButton(identifier).setEnabled(enable); in changeButtonEnabled()
/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()
DNetworkRequestErrorDialogFragmentTest.java105 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in clickPositiveButton_shouldCallStartScanningDialog()
117 Button negativeButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCloseTheDialog()
131 final Button negativeButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCallReject()
/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.java116 final Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in dialog_subscriptionMissing_noCrash()
127 final Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in dialog_cancelButtonClicked_setDisplayNameAndIconTintNotCalled()
143 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in dialog_saveButtonClicked_setDisplayNameAndIconTint()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkRequestDialogFragment.java148 final Button neutralBtn = dialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onCreateDialog()
159 final Button positiveBtn = dialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
266 final Button neutralBtn = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in showAllButton()
283 final Button positiveBtn = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in updateConnectButton()
/packages/apps/Settings/src/com/android/settings/development/
DAdbWirelessDialog.java140 return getButton(BUTTON_SUBMIT); in getSubmitButton()
145 return getButton(BUTTON_NEGATIVE); in getCancelButton()
/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()

1234