Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/content/
DDialogInterface.java25 public interface DialogInterface { interface
75 void onCancel(DialogInterface dialog); in onCancel()
89 void onDismiss(DialogInterface dialog); in onDismiss()
103 void onShow(DialogInterface dialog); in onShow()
119 void onClick(DialogInterface dialog, int which); in onClick()
135 void onClick(DialogInterface dialog, int which, boolean isChecked); in onClick()
155 boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event); in onKey()
/frameworks/rs/tests/java_api/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/rs/tests/java_api/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/tests/java_api/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/base/packages/SettingsLib/src/com/android/settingslib/
DCustomDialogPreferenceCompat.java20 import android.content.DialogInterface;
32 private DialogInterface.OnShowListener mOnShowListener;
59 public void setOnShowListener(DialogInterface.OnShowListener listner) { in setOnShowListener()
64 DialogInterface.OnClickListener listener) { in onPrepareDialogBuilder()
70 protected void onClick(DialogInterface dialog, int which) { in onClick()
80 private DialogInterface.OnShowListener getOnShowListener() { in getOnShowListener()
124 public void onClick(DialogInterface dialog, int which) { in onClick()
DCustomDialogPreference.java21 import android.content.DialogInterface;
38 private DialogInterface.OnShowListener mOnShowListener;
65 public void setOnShowListener(DialogInterface.OnShowListener listner) { in setOnShowListener()
70 DialogInterface.OnClickListener listener) { in onPrepareDialogBuilder()
76 protected void onClick(DialogInterface dialog, int which) { in onClick()
86 private DialogInterface.OnShowListener getOnShowListener() { in getOnShowListener()
130 public void onClick(DialogInterface dialog, int which) { in onClick()
DCustomEditTextPreference.java24 import android.content.DialogInterface;
80 DialogInterface.OnClickListener listener) { in onPrepareDialogBuilder()
86 protected void onClick(DialogInterface dialog, int which) { in onClick()
136 public void onClick(DialogInterface dialog, int which) { in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSafetyWarningDialog.java21 import android.content.DialogInterface;
33 implements DialogInterface.OnDismissListener, DialogInterface.OnClickListener {
59 setButton(DialogInterface.BUTTON_POSITIVE, in SafetyWarningDialog()
61 setButton(DialogInterface.BUTTON_NEGATIVE, in SafetyWarningDialog()
92 public void onClick(DialogInterface dialog, int which) { in onClick()
103 public void onDismiss(DialogInterface unused) { in onDismiss()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DUserUtil.java20 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/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java27 import android.content.DialogInterface;
128 builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { in callIsAppInactive()
130 public void onClick(DialogInterface dialog, int which) { in callIsAppInactive()
137 builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { in callIsAppInactive()
139 public void onClick(DialogInterface dialog, int which) { in callIsAppInactive()
155 builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { in callSetAppLimit()
157 public void onClick(DialogInterface dialog, int which) { in callSetAppLimit()
171 builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { in callSetAppLimit()
173 public void onClick(DialogInterface dialog, int which) { in callSetAppLimit()
189 builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { in callSetAppUsageLimit()
[all …]
/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
DUsageReporterActivity.java24 import android.content.DialogInterface;
149 builder.setPositiveButton(getString(R.string.ok), new DialogInterface.OnClickListener() { in callAddToken()
151 public void onClick(DialogInterface dialog, int which) { in callAddToken()
166 new DialogInterface.OnClickListener() { in callAddToken()
168 public void onClick(DialogInterface dialog, int which) { in callAddToken()
184 new DialogInterface.OnClickListener() { in callAddManyTokens()
186 public void onClick(DialogInterface dialog, int which) { in callAddManyTokens()
200 new DialogInterface.OnClickListener() { in callAddManyTokens()
202 public void onClick(DialogInterface dialog, int which) { in callAddManyTokens()
214 builder.setPositiveButton(getString(R.string.ok), new DialogInterface.OnClickListener() { in callStopAll()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java22 import android.content.DialogInterface;
32 public class MenuDialogHelper implements MenuHelper, DialogInterface.OnKeyListener,
33 DialogInterface.OnClickListener, DialogInterface.OnDismissListener,
92 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey()
147 public void onDismiss(DialogInterface dialog) { in onDismiss()
169 public void onClick(DialogInterface dialog, int which) { in onClick()
/frameworks/base/core/java/com/android/internal/app/
DUnlaunchableAppActivity.java25 import android.content.DialogInterface;
41 implements DialogInterface.OnDismissListener, DialogInterface.OnClickListener {
93 public void onDismiss(DialogInterface dialog) { in onDismiss()
98 public void onClick(DialogInterface dialog, int which) { in onClick()
99 if (mReason == UNLAUNCHABLE_REASON_QUIET_MODE && which == DialogInterface.BUTTON_POSITIVE) { in onClick()
DAlertController.java25 import android.content.DialogInterface;
69 private final DialogInterface mDialogInterface;
161 private WeakReference<DialogInterface> mDialog;
163 public ButtonHandler(DialogInterface dialog) { in ButtonHandler()
171 case DialogInterface.BUTTON_POSITIVE: in handleMessage()
172 case DialogInterface.BUTTON_NEGATIVE: in handleMessage()
173 case DialogInterface.BUTTON_NEUTRAL: in handleMessage()
174 ((DialogInterface.OnClickListener) msg.obj).onClick(mDialog.get(), msg.what); in handleMessage()
178 ((DialogInterface) msg.obj).dismiss(); in handleMessage()
189 public static final AlertController create(Context context, DialogInterface di, Window window) { in create()
[all …]
DHarmfulAppWarningActivity.java20 import android.content.DialogInterface;
38 DialogInterface.OnClickListener {
96 public void onClick(DialogInterface dialog, int which) { in onClick()
98 case DialogInterface.BUTTON_POSITIVE: in onClick()
103 case DialogInterface.BUTTON_NEGATIVE: in onClick()
DDumpHeapActivity.java24 import android.content.DialogInterface;
103 b.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() { in onCreate()
105 public void onClick(DialogInterface dialog, int which) { in onCreate()
111 b.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { in onCreate()
113 public void onClick(DialogInterface dialog, int which) { in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java26 import android.content.DialogInterface;
57 R.string.data_usage_disabled_dialog_enable, new DialogInterface.OnClickListener() { in onCreate()
58 public void onClick(DialogInterface dialog, int which) { in onCreate()
65 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { in onCreate()
66 public void onDismiss(DialogInterface dialog) { in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSlicePermissionActivity.java23 import android.content.DialogInterface;
24 import android.content.DialogInterface.OnClickListener;
25 import android.content.DialogInterface.OnDismissListener;
88 public void onClick(DialogInterface dialog, int which) { in onClick()
89 if (which == DialogInterface.BUTTON_POSITIVE) { in onClick()
97 public void onDismiss(DialogInterface dialog) { in onDismiss()
DForegroundServicesDialog.java22 import android.content.DialogInterface;
52 AdapterView.OnItemSelectedListener, DialogInterface.OnClickListener,
64 private DialogInterface.OnClickListener mAppClickListener =
65 new DialogInterface.OnClickListener() {
66 public void onClick(DialogInterface dialog, int which) {
148 public void onClick(DialogInterface dialog, int which) { in onClick()
/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/base/packages/SystemUI/src/com/android/systemui/tuner/
DCustomListPreference.java21 import android.content.DialogInterface;
22 import android.content.DialogInterface.OnClickListener;
99 public void onClick(DialogInterface dialog, int which) { in onPrepareDialogBuilder()
131 public void onClick(DialogInterface dialog, int which) { in getOnItemClickListener()
154 onClick(getDialog(), DialogInterface.BUTTON_POSITIVE); in onItemConfirmed()
DTunerService.java21 import android.content.DialogInterface;
22 import android.content.DialogInterface.OnClickListener;
90 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getString(R.string.cancel), in showResetRequest()
92 dialog.setButton(DialogInterface.BUTTON_POSITIVE, in showResetRequest()
95 public void onClick(DialogInterface dialog, int which) { in showResetRequest()
/frameworks/base/core/java/android/preference/
DDialogPreference.java28 import android.content.DialogInterface;
63 DialogInterface.OnClickListener, DialogInterface.OnDismissListener,
315 mWhichButtonClicked = DialogInterface.BUTTON_NEGATIVE; in showDialog()
343 dialog.setOnShowListener(new DialogInterface.OnShowListener() { in showDialog()
345 public void onShow(DialogInterface dialog) { in showDialog()
446 public void onClick(DialogInterface dialog, int which) { in onClick()
451 public void onDismiss(DialogInterface dialog) { in onDismiss()
456 onDialogClosed(mWhichButtonClicked == DialogInterface.BUTTON_POSITIVE); in onDismiss()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java23 import android.content.DialogInterface;
50 implements DialogInterface.OnClickListener, DialogInterface.OnCancelListener {
158 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true); in onCreate()
176 public void onClick(DialogInterface dialog, int which) { in onClick()
202 public void onCancel(DialogInterface dialog) { in onCancel()

12345