Home
last modified time | relevance | path

Searched refs:setButton (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/dialog/
DExitGuestDialog.kt100 setButton(
105 setButton(
113 setButton(
118 setButton(
123 setButton(
DAddUserDialog.kt92 setButton(
98 setButton(
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DTestableAlertDialogTest.kt207 dialog.setButton(BUTTON_POSITIVE, "", listener) in positiveButtonClick()
219 dialog.setButton(BUTTON_POSITIVE, "", listener) in positiveButtonListener_noCalledWhenClickOtherButtons()
232 dialog.setButton(BUTTON_NEGATIVE, "", listener) in negativeButtonClick()
244 dialog.setButton(BUTTON_NEGATIVE, "", listener) in negativeButtonListener_noCalledWhenClickOtherButtons()
257 dialog.setButton(BUTTON_NEUTRAL, "", listener) in neutralButtonClick()
269 dialog.setButton(BUTTON_NEUTRAL, "", listener) in neutralButtonListener_noCalledWhenClickOtherButtons()
282 dialog.setButton(BUTTON_POSITIVE, "", listener) in sameClickListenerCalledCorrectly()
283 dialog.setButton(BUTTON_NEUTRAL, "", listener) in sameClickListenerCalledCorrectly()
284 dialog.setButton(BUTTON_NEGATIVE, "", listener) in sameClickListenerCalledCorrectly()
/frameworks/base/core/java/android/app/
DAlertDialog.java323 public void setButton(int whichButton, CharSequence text, Message msg) { in setButton() method in AlertDialog
324 mAlert.setButton(whichButton, text, null, msg); in setButton()
337 public void setButton(int whichButton, CharSequence text, OnClickListener listener) { in setButton() method in AlertDialog
338 mAlert.setButton(whichButton, text, listener, null); in setButton()
346 public void setButton(CharSequence text, Message msg) { in setButton() method in AlertDialog
347 setButton(BUTTON_POSITIVE, text, msg); in setButton()
356 setButton(BUTTON_NEGATIVE, text, msg); in setButton2()
365 setButton(BUTTON_NEUTRAL, text, msg); in setButton3()
378 public void setButton(CharSequence text, final OnClickListener listener) { in setButton() method in AlertDialog
379 setButton(BUTTON_POSITIVE, text, listener); in setButton()
[all …]
DTimePickerDialog.java124 setButton(BUTTON_POSITIVE, themeContext.getString(R.string.ok), this); in TimePickerDialog()
125 setButton(BUTTON_NEGATIVE, themeContext.getString(R.string.cancel), this); in TimePickerDialog()
DDatePickerDialog.java124 setButton(BUTTON_POSITIVE, themeContext.getString(R.string.ok), this); in DatePickerDialog()
125 setButton(BUTTON_NEGATIVE, themeContext.getString(R.string.cancel), this); in DatePickerDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResetOrExitSessionReceiver.java165 dialog.setButton( in create()
169 dialog.setButton(DialogInterface.BUTTON_POSITIVE, in create()
241 dialog.setButton( in create()
245 dialog.setButton( in create()
257 dialog.setButton( in create()
261 dialog.setButton( in create()
266 dialog.setButton( in create()
DGuestResumeSessionReceiver.java165 setButton(BUTTON_WIPE, in ResetSessionDialog()
167 setButton(BUTTON_DONTWIPE, in ResetSessionDialog()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DCustomDialogHelper.java101 setButton(POSITIVE_BUTTON, resid, onClickListener); in setPositiveButton()
118 setButton(NEGATIVE_BUTTON, resid, onClickListener); in setNegativeButton()
135 setButton(BACK_BUTTON, resid, onClickListener); in setBackButton()
147 private void setButton(@LayoutButton int whichButton, @StringRes int resid, in setButton() method in CustomDialogHelper
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DTestableAlertDialog.kt111 override fun setButton( in setButton() method
116 super.setButton(whichButton, text, listener) in setButton()
/frameworks/base/services/core/java/com/android/server/am/
DStrictModeViolationDialog.java66 setButton(DialogInterface.BUTTON_POSITIVE, in StrictModeViolationDialog()
71 setButton(DialogInterface.BUTTON_NEGATIVE, in StrictModeViolationDialog()
DAppWaitingForDebuggerDialog.java56 setButton(DialogInterface.BUTTON_POSITIVE, "Force Close", mHandler.obtainMessage(1, app)); in AppWaitingForDebuggerDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIDialog.java406 setButton(BUTTON_POSITIVE, resId, onClick, dismissOnClick); in setPositiveButton()
422 setButton(BUTTON_NEGATIVE, resId, onClick, dismissOnClick); in setNegativeButton()
438 setButton(BUTTON_NEUTRAL, resId, onClick, dismissOnClick); in setNeutralButton()
441 private void setButton(int whichButton, int resId, OnClickListener onClick, in setButton() method in SystemUIDialog
444 setButton(whichButton, mContext.getString(resId), onClick); in setButton()
447 setButton(whichButton, mContext.getString(resId), (OnClickListener) null); in setButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/
DSensorUseDialog.kt66 setButton(BUTTON_POSITIVE,
69 setButton(BUTTON_NEGATIVE,
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSafetyWarningDialog.java59 setButton(DialogInterface.BUTTON_POSITIVE, in SafetyWarningDialog()
61 setButton(DialogInterface.BUTTON_NEGATIVE, in SafetyWarningDialog()
DCsdWarningDialog.java125 setButton(DialogInterface.BUTTON_POSITIVE, in CsdWarningDialog()
127 setButton(DialogInterface.BUTTON_NEGATIVE, in CsdWarningDialog()
/frameworks/base/services/core/java/com/android/server/wm/
DFactoryErrorDialog.java33 setButton(DialogInterface.BUTTON_POSITIVE, in FactoryErrorDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/settings/
DControlsSettingsDialogManager.kt217 setButton(DialogInterface.BUTTON_NEUTRAL, context.getText(msgId), listener) in AlertDialog()
224 setButton(DialogInterface.BUTTON_POSITIVE, context.getText(msgId), listener) in AlertDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DChallengeDialogs.kt88 setButton( in <lambda>()
100 setButton( in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/devicepolicy/
DScreenCaptureDisabledDialogDelegate.kt53 dialog.setButton(BUTTON_POSITIVE, resources.getString(android.R.string.ok)) { _, _ -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java311 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, mContext.getString(R.string.cancel), in showResetRequest()
313 dialog.setButton(DialogInterface.BUTTON_POSITIVE, in showResetRequest()
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java377 public void setButton(int whichButton, CharSequence text, in setButton() method in AlertController
1131 dialog.setButton(DialogInterface.BUTTON_POSITIVE, mPositiveButtonText, in apply()
1135 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, mNegativeButtonText, in apply()
1139 dialog.setButton(DialogInterface.BUTTON_NEUTRAL, mNeutralButtonText, in apply()
DMediaRouteControllerDialog.java141 setButton(BUTTON_NEGATIVE, res.getString(R.string.media_route_controller_disconnect), in onCreate()
/frameworks/base/packages/SystemUI/docs/
Ddialogs.md25 * `SystemUIDialog.set<Positive|Negative|Neutral>Button` or `AlertDialog.setButton`: this will use
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooterUtils.java454 mDialog.setButton(DialogInterface.BUTTON_POSITIVE, getPositiveButton(), this); in createDialog()
455 mDialog.setButton(DialogInterface.BUTTON_NEGATIVE, mShouldUseSettingsButton.get() in createDialog()

12