Home
last modified time | relevance | path

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

1234

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DActionButtonsPreferenceTest.java78 mPref.getButton(ActionButtons.BUTTON1).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
79 mPref.getButton(ActionButtons.BUTTON2).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
80 mPref.getButton(ActionButtons.BUTTON3).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
81 mPref.getButton(ActionButtons.BUTTON4).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
97 mPref.getButton(ActionButtons.BUTTON1).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
98 mPref.getButton(ActionButtons.BUTTON2).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
99 mPref.getButton(ActionButtons.BUTTON3).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
100 mPref.getButton(ActionButtons.BUTTON4).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
130 mPref.getButton(ActionButtons.BUTTON1).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
131 mPref.getButton(ActionButtons.BUTTON2).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
[all …]
DConfirmationDialogFragmentTest.java99 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()).isEqualTo( in buildDialogFragment_positiveButtonSet_negativeAndNeutralButtonNotVisible()
101 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()).isEqualTo( in buildDialogFragment_positiveButtonSet_negativeAndNeutralButtonNotVisible()
103 assertThat(dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()).isEqualTo( in buildDialogFragment_positiveButtonSet_negativeAndNeutralButtonNotVisible()
115 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()).isEqualTo( in buildDialogFragment_negativeButtonSet_positiveAndNeutralButtonNotVisible()
117 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()).isEqualTo( in buildDialogFragment_negativeButtonSet_positiveAndNeutralButtonNotVisible()
119 assertThat(dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()).isEqualTo( in buildDialogFragment_negativeButtonSet_positiveAndNeutralButtonNotVisible()
131 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()).isEqualTo( in buildDialogFragment_neutralButtonSet_positiveAndNegativeButtonNotVisible()
133 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()).isEqualTo( in buildDialogFragment_neutralButtonSet_positiveAndNegativeButtonNotVisible()
135 assertThat(dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()).isEqualTo( in buildDialogFragment_neutralButtonSet_positiveAndNegativeButtonNotVisible()
148 dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick()); in clickPositiveButton_callsCallbackWithArgs()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiDetailsActionButtonsPreferenceControllerTest.java100 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).isVisible()).isTrue(); in updateState_connectNotNeeded_disconnectButtonShown()
101 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).getText().toString()) in updateState_connectNotNeeded_disconnectButtonShown()
112 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).isVisible()).isTrue(); in updateState_needConnect_connectButtonShown()
113 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).getText().toString()) in updateState_needConnect_connectButtonShown()
123 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON1).isVisible()).isTrue(); in updateState_canForget_forgetButtonShown()
132 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON1).isVisible()).isFalse(); in updateState_canNotForget_forgetButtonHidden()
/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()
/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/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModePrioritySendersPreferenceControllerTest.java111 RadioButtonPreference allSendersRb = getButton(KEY_ANY); in clickAnySenders()
124 RadioButtonPreference starredRb = getButton(KEY_STARRED); in clickStarredSenders()
137 RadioButtonPreference contactsRb = getButton(KEY_CONTACTS); in clickContactsSenders()
150 RadioButtonPreference noSenders = getButton(KEY_NONE); in clickNoSenders()
163 RadioButtonPreference anySenders = getButton(KEY_ANY); in clickSameOptionMultipleTimes()
185 private RadioButtonPreference getButton(String key) { in getButton() method in ZenModePrioritySendersPreferenceControllerTest
DZenModePriorityConversationsPreferenceControllerTest.java105 RadioButtonPreference allConversationsRb = getButton(KEY_ALL); in clickAllConversations()
113 RadioButtonPreference importantConversationsRb = getButton(KEY_IMPORTANT); in clickImportantConversations()
121 RadioButtonPreference noConversationsRb = getButton(KEY_NONE); in clickNoConversations()
141 private RadioButtonPreference getButton(String key) { in getButton() method in ZenModePriorityConversationsPreferenceControllerTest
/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()
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DGrantPermissionsWearViewHandler.java159 alertDialog.getButton(DialogInterface.BUTTON_POSITIVE) in showDialog()
161 alertDialog.getButton(DialogInterface.BUTTON_NEUTRAL) in showDialog()
163 alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE) in showDialog()
174 acceptDenyDialog.getButton(DialogInterface.BUTTON_POSITIVE) in showDialog()
176 acceptDenyDialog.getButton(DialogInterface.BUTTON_NEGATIVE) in showDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactionInterstitialTest.java154 Assert.assertEquals(visible, getButton(R.id.hide_all).getVisibility() != View.GONE); in assertHideAllVisible()
169 return getButton(resource).isChecked(); in buttonChecked()
173 return !((RestrictedRadioButton) getButton(resource)).isDisabledByAdmin(); in buttonEnabled()
176 private RadioButton getButton(int resource) { in getButton() method in RedactionInterstitialTest
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceActionButtonsPreferenceController.java49 updateConnectionButton(getPreference().getButton(ActionButtons.BUTTON1)); in onCreateInternal()
50 updateForgetButton(getPreference().getButton(ActionButtons.BUTTON2)); in onCreateInternal()
55 updateConnectionButton(preference.getButton(ActionButtons.BUTTON1)); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java102 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCloseTheDialog()
206 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in display_shouldNotShowNeutralButton()
230 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onMatchManyResult_showNeutralButton()
251 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in clickNeutralButton_hideNeutralButton()
267 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE); in cancelDialog_callsReject()
DNetworkRequestErrorDialogFragmentTest.java112 Button positiveButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in clickPositiveButton_shouldCallStartScanningDialog()
124 Button negativeButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCloseTheDialog()
138 final Button negativeButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in clickNegativeButton_shouldCallReject()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceController.java123 ActionButtonInfo renameButton = getPreference().getButton(ActionButtons.BUTTON1); in onStartInternal()
124 ActionButtonInfo makeAdminButton = getPreference().getButton(ActionButtons.BUTTON2); in onStartInternal()
125 ActionButtonInfo profilesButton = getPreference().getButton(ActionButtons.BUTTON3); in onStartInternal()
126 ActionButtonInfo deleteButton = getPreference().getButton(ActionButtons.BUTTON4); in onStartInternal()
/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.java109 mAlert.getButton(identifier).setVisibility(visibility); in changeButtonVisibility()
114 mAlert.getButton(identifier).setText(text); in changeButtonText()
119 mAlert.getButton(identifier).setEnabled(enable); in changeButtonEnabled()
/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/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java133 applyButton(dialog.getButton(DialogInterface.BUTTON_POSITIVE), getPositiveIcon()); in apply()
134 applyButton(dialog.getButton(DialogInterface.BUTTON_NEGATIVE), getNegativeIcon()); in apply()
135 applyButton(dialog.getButton(DialogInterface.BUTTON_NEUTRAL), getNeutralIcon()); in apply()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
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/src/com/android/settings/wifi/
DWifiDialog2.java190 return getButton(BUTTON_SUBMIT); in getSubmitButton()
195 return getButton(BUTTON_FORGET); in getForgetButton()
200 return getButton(BUTTON_NEGATIVE); in getCancelButton()
DWifiDialog.java179 return getButton(BUTTON_SUBMIT); in getSubmitButton()
184 return getButton(BUTTON_FORGET); in getForgetButton()
189 return getButton(BUTTON_NEGATIVE); in getCancelButton()
/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.java127 final Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in dialog_subscriptionMissing_noCrash()
138 final Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in dialog_cancelButtonClicked_setDisplayNameAndIconTintNotCalled()
154 final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE); in dialog_saveButtonClicked_setDisplayNameAndIconTint()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/networkrequest/
DNetworkRequestDialogFragment.java179 Button neutralBtn = dialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onCreateDialog()
190 Button positiveBtn = dialog.getButton(AlertDialog.BUTTON_POSITIVE); in onCreateDialog()
289 Button neutralBtn = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in showAllButton()
306 Button positiveBtn = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); in updateConnectButton()

1234