/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | ActionButtonsPreferenceTest.java | 78 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 …]
|
D | ConfirmationDialogFragmentTest.java | 99 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/ |
D | WifiDetailsActionButtonsPreferenceControllerTest.java | 100 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/ |
D | ButtonActionDialogFragmentTest.java | 90 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/ |
D | AccountsSettingsFragmentTests.java | 128 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/ |
D | ZenModePrioritySendersPreferenceControllerTest.java | 111 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
|
D | ZenModePriorityConversationsPreferenceControllerTest.java | 105 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/ |
D | BluetoothRenameDialogFragmentTest.java | 74 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/ |
D | RemoteDeviceNameDialogFragmentTest.java | 91 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/ |
D | GrantPermissionsWearViewHandler.java | 159 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/ |
D | RedactionInterstitialTest.java | 154 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/ |
D | BluetoothDeviceActionButtonsPreferenceController.java | 49 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/ |
D | NetworkRequestDialogFragmentTest.java | 102 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()
|
D | NetworkRequestErrorDialogFragmentTest.java | 112 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/ |
D | ProfileDetailsActionButtonsPreferenceController.java | 123 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/ |
D | MigrateBlockedNumbersDialogFragment.java | 76 .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/ |
D | AlertActivity.java | 109 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/ |
D | ButtonSwitcher.java | 85 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/ |
D | WearableDialogHelper.java | 133 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/ |
D | ValidatedEditTextPreferenceDialogFragmentTest.java | 81 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/ |
D | WifiDialog2.java | 190 return getButton(BUTTON_SUBMIT); in getSubmitButton() 195 return getButton(BUTTON_FORGET); in getForgetButton() 200 return getButton(BUTTON_NEGATIVE); in getCancelButton()
|
D | WifiDialog.java | 179 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/ |
D | MobileDataTogglePreferenceControllerTest.java | 261 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/ |
D | RenameMobileNetworkDialogFragmentTest.java | 127 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/ |
D | NetworkRequestDialogFragment.java | 179 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()
|