Home
last modified time | relevance | path

Searched refs:DialogInterface (Results 1 – 25 of 122) sorted by relevance

12345

/frameworks/base/core/java/android/content/
DDialogInterface.java24 public interface DialogInterface { interface
77 public void onCancel(DialogInterface dialog); in onCancel()
91 public void onDismiss(DialogInterface dialog); in onDismiss()
105 public void onShow(DialogInterface dialog); in onShow()
122 public void onClick(DialogInterface dialog, int which); in onClick()
137 public void onClick(DialogInterface dialog, int which, boolean isChecked); in onClick()
156 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event); in onKey()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DIPSettings.java23 import android.content.DialogInterface;
43 new DialogInterface.OnMultiChoiceClickListener() { in onCreateDialog()
45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { in onCreateDialog()
51 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { in onCreateDialog()
53 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
57 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
59 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DIPSettings.java23 import android.content.DialogInterface;
43 new DialogInterface.OnMultiChoiceClickListener() { in onCreateDialog()
45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { in onCreateDialog()
51 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { in onCreateDialog()
53 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
57 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
59 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
/frameworks/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBlasSettings.java23 import android.content.DialogInterface;
43 new DialogInterface.OnMultiChoiceClickListener() { in onCreateDialog()
45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { in onCreateDialog()
51 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { in onCreateDialog()
53 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
57 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
59 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAlertDialogTest.java19 import android.content.DialogInterface;
350 DialogInterface.OnCancelListener mockCancelListener = in testCancelCancelableDialog()
351 mock(DialogInterface.OnCancelListener.class); in testCancelCancelableDialog()
371 DialogInterface.OnCancelListener mockCancelListener = in testCancelNonCancelableDialog()
372 mock(DialogInterface.OnCancelListener.class); in testCancelNonCancelableDialog()
392 DialogInterface.OnClickListener onClickListener) { in verifySimpleItemsContent()
415 verify(onClickListener, never()).onClick(any(DialogInterface.class), any(int.class)); in verifySimpleItemsContent()
428 final DialogInterface.OnClickListener mockClickListener = in testCustomAdapter()
429 mock(DialogInterface.OnClickListener.class); in testCustomAdapter()
444 final DialogInterface.OnClickListener mockClickListener = in testSimpleItemsFromRuntimeArray()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSafetyWarningDialog.java21 import android.content.DialogInterface;
32 implements DialogInterface.OnDismissListener, DialogInterface.OnClickListener {
52 setButton(DialogInterface.BUTTON_POSITIVE, in SafetyWarningDialog()
54 setButton(DialogInterface.BUTTON_NEGATIVE, in SafetyWarningDialog()
84 public void onClick(DialogInterface dialog, int which) { in onClick()
95 public void onDismiss(DialogInterface unused) { in onDismiss()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DUserUtil.java22 import android.content.DialogInterface;
33 DialogInterface.OnClickListener {
43 setButton(DialogInterface.BUTTON_NEGATIVE, in RemoveUserDialog()
45 setButton(DialogInterface.BUTTON_POSITIVE, in RemoveUserDialog()
53 public void onClick(DialogInterface dialog, int which) { in onClick()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java21 import android.content.DialogInterface;
31 public class MenuDialogHelper implements MenuHelper, DialogInterface.OnKeyListener,
32 DialogInterface.OnClickListener, DialogInterface.OnDismissListener,
89 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey()
143 public void onDismiss(DialogInterface dialog) { in onDismiss()
165 public void onClick(DialogInterface dialog, int which) { in onClick()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuDialogHelper.java20 import android.content.DialogInterface;
32 class MenuDialogHelper implements DialogInterface.OnKeyListener,
33 DialogInterface.OnClickListener,
34 DialogInterface.OnDismissListener,
91 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey()
143 public void onDismiss(DialogInterface dialog) { in onDismiss()
165 public void onClick(DialogInterface dialog, int which) { in onClick()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentAlertDialogSupport.java26 import android.content.DialogInterface;
93 new DialogInterface.OnClickListener() { in onCreateDialog()
94 public void onClick(DialogInterface dialog, int whichButton) { in onCreateDialog()
100 new DialogInterface.OnClickListener() { in onCreateDialog()
101 public void onClick(DialogInterface dialog, int whichButton) { in onCreateDialog()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAlertController.java20 import android.content.DialogInterface;
144 private WeakReference<DialogInterface> mDialog;
146 public ButtonHandler(DialogInterface dialog) { in ButtonHandler()
154 case DialogInterface.BUTTON_POSITIVE: in handleMessage()
155 case DialogInterface.BUTTON_NEGATIVE: in handleMessage()
156 case DialogInterface.BUTTON_NEUTRAL: in handleMessage()
157 ((DialogInterface.OnClickListener) msg.obj).onClick(mDialog.get(), msg.what); in handleMessage()
161 ((DialogInterface) msg.obj).dismiss(); in handleMessage()
301 DialogInterface.OnClickListener listener, Message msg) { in setButton()
309 case DialogInterface.BUTTON_POSITIVE: in setButton()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java26 import android.content.DialogInterface;
68 private final DialogInterface mDialogInterface;
153 private WeakReference<DialogInterface> mDialog;
155 public ButtonHandler(DialogInterface dialog) { in ButtonHandler()
163 case DialogInterface.BUTTON_POSITIVE: in handleMessage()
164 case DialogInterface.BUTTON_NEGATIVE: in handleMessage()
165 case DialogInterface.BUTTON_NEUTRAL: in handleMessage()
166 ((DialogInterface.OnClickListener) msg.obj).onClick(mDialog.get(), msg.what); in handleMessage()
170 ((DialogInterface) msg.obj).dismiss(); in handleMessage()
181 public static final AlertController create(Context context, DialogInterface di, Window window) { in create()
[all …]
DUnlaunchableAppActivity.java27 import android.content.DialogInterface;
50 implements DialogInterface.OnDismissListener, DialogInterface.OnClickListener {
107 public void onDismiss(DialogInterface dialog) { in onDismiss()
112 public void onClick(DialogInterface dialog, int which) { in onClick()
113 if (mReason == UNLAUNCHABLE_REASON_QUIET_MODE && which == DialogInterface.BUTTON_POSITIVE) { in onClick()
DDumpHeapActivity.java24 import android.content.DialogInterface;
89 b.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() { in onCreate()
91 public void onClick(DialogInterface dialog, int which) { in onCreate()
97 b.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { in onCreate()
99 public void onClick(DialogInterface dialog, int which) { in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java23 import android.content.DialogInterface;
59 R.string.data_usage_disabled_dialog_enable, new DialogInterface.OnClickListener() { in onCreate()
60 public void onClick(DialogInterface dialog, int which) { in onCreate()
67 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { in onCreate()
68 public void onDismiss(DialogInterface dialog) { in onCreate()
/frameworks/opt/chips/src/com/android/ex/chips/
DCopyDialog.java9 import android.content.DialogInterface;
15 public class CopyDialog extends DialogFragment implements DialogInterface.OnClickListener {
44 public void onClick(DialogInterface dialog, int which) { in onClick()
45 if (which == DialogInterface.BUTTON_POSITIVE) { in onClick()
/frameworks/base/core/java/android/webkit/
DJsDialogHelper.java23 import android.content.DialogInterface;
131 private class CancelListener implements DialogInterface.OnCancelListener,
132 DialogInterface.OnClickListener {
134 public void onCancel(DialogInterface dialog) { in onCancel()
138 public void onClick(DialogInterface dialog, int which) { in onClick()
143 private class PositiveListener implements DialogInterface.OnClickListener {
151 public void onClick(DialogInterface dialog, int which) { in onClick()
/frameworks/support/v14/preference/src/android/support/v14/preference/
DListPreferenceDialogFragment.java20 import android.content.DialogInterface;
82 new DialogInterface.OnClickListener() { in onPrepareDialogBuilder()
83 public void onClick(DialogInterface dialog, int which) { in onPrepareDialogBuilder()
91 DialogInterface.BUTTON_POSITIVE); in onPrepareDialogBuilder()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoLockedActivity.java19 import android.content.DialogInterface;
20 import android.content.DialogInterface.OnDismissListener;
42 public void onDismiss(DialogInterface dialog) { in onDismiss()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java21 import android.content.DialogInterface;
46 implements DialogInterface.OnClickListener, CheckBox.OnCheckedChangeListener,
47 DialogInterface.OnCancelListener {
146 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true); in onCreate()
163 public void onClick(DialogInterface dialog, int which) { in onClick()
195 public void onCancel(DialogInterface dialog) { in onCancel()
/frameworks/base/docs/html-intl/intl/ja/guide/topics/ui/
Ddialogs.jd127 .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {
128 public void onClick(DialogInterface dialog, int id) {
132 .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
133 public void onClick(DialogInterface dialog, int id) {
220 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
221 public void onClick(DialogInterface dialog, int id) {
225 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
226 public void onClick(DialogInterface dialog, int id) {
237 …字列リソースで指定</a>)と、ユーザーがボタンを押したときに実行するアクションを定義する {@link android.content.DialogInterface.OnClickListen…
282 .setItems(R.array.colors_array, new DialogInterface.OnClickListener() {
[all …]
/frameworks/base/docs/html-intl/intl/ko/guide/topics/ui/
Ddialogs.jd127 .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {
128 public void onClick(DialogInterface dialog, int id) {
132 .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
133 public void onClick(DialogInterface dialog, int id) {
220 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
221 public void onClick(DialogInterface dialog, int id) {
225 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
226 public void onClick(DialogInterface dialog, int id) {
239 {@link android.content.DialogInterface.OnClickListener}가
282 .setItems(R.array.colors_array, new DialogInterface.OnClickListener() {
[all …]
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/ui/
Ddialogs.jd127 .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {
128 public void onClick(DialogInterface dialog, int id) {
132 .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
133 public void onClick(DialogInterface dialog, int id) {
220 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
221 public void onClick(DialogInterface dialog, int id) {
225 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
226 public void onClick(DialogInterface dialog, int id) {
237 …ce.html">字串資源</a>提供的按鈕標題,以及可定義使用者點擊按鈕後需要完成的動作的{@link android.content.DialogInterface.OnClickListen…
282 .setItems(R.array.colors_array, new DialogInterface.OnClickListener() {
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/ui/
Ddialogs.jd127 .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {
128 public void onClick(DialogInterface dialog, int id) {
132 .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
133 public void onClick(DialogInterface dialog, int id) {
220 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
221 public void onClick(DialogInterface dialog, int id) {
225 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
226 public void onClick(DialogInterface dialog, int id) {
239 {@link android.content.DialogInterface.OnClickListener},后者用于定义用户按下该按钮时执行的操作。
282 .setItems(R.array.colors_array, new DialogInterface.OnClickListener() {
[all …]
/frameworks/base/docs/html-intl/intl/ru/guide/topics/ui/
Ddialogs.jd127 .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {
128 public void onClick(DialogInterface dialog, int id) {
132 .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
133 public void onClick(DialogInterface dialog, int id) {
220 builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
221 public void onClick(DialogInterface dialog, int id) {
225 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
226 public void onClick(DialogInterface dialog, int id) {
239 {@link android.content.DialogInterface.OnClickListener}, который определяет действие,
282 .setItems(R.array.colors_array, new DialogInterface.OnClickListener() {
[all …]

12345