Home
last modified time | relevance | path

Searched refs:dialog (Results 1 – 25 of 131) sorted by relevance

123456

/frameworks/base/core/java/android/preference/
DPreferenceScreen.java161 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); in showDialog() local
163 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); in showDialog()
165 dialog.setTitle(title); in showDialog()
167 dialog.setContentView(mListView); in showDialog()
168 dialog.setOnDismissListener(this); in showDialog()
170 dialog.onRestoreInstanceState(state); in showDialog()
174 getPreferenceManager().addPreferencesScreen(dialog); in showDialog()
176 dialog.show(); in showDialog()
179 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
181 getPreferenceManager().removePreferencesScreen(dialog); in onDismiss()
[all …]
DDialogPreference.java298 final Dialog dialog = mDialog = mBuilder.create(); in showDialog() local
300 dialog.onRestoreInstanceState(state); in showDialog()
303 requestInputMethod(dialog); in showDialog()
305 dialog.setOnDismissListener(this); in showDialog()
306 dialog.show(); in showDialog()
322 private void requestInputMethod(Dialog dialog) { in requestInputMethod() argument
323 Window window = dialog.getWindow(); in requestInputMethod()
372 public void onClick(DialogInterface dialog, int which) { in onClick() argument
376 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
DListPreference.java239 public void onClick(DialogInterface dialog, int which) { in onPrepareDialogBuilder()
246 ListPreference.this.onClick(dialog, DialogInterface.BUTTON_POSITIVE); in onPrepareDialogBuilder()
247 dialog.dismiss(); in onPrepareDialogBuilder()
DVolumePreference.java129 Dialog dialog = getDialog(); in cleanup() local
130 if (dialog != null && dialog.isShowing()) { in cleanup()
131 View view = dialog.getWindow().getDecorView() in cleanup()
/frameworks/base/core/java/android/content/
DDialogInterface.java77 public void onCancel(DialogInterface dialog); in onCancel() argument
91 public void onDismiss(DialogInterface dialog); in onDismiss() argument
105 public void onShow(DialogInterface dialog); in onShow() argument
122 public void onClick(DialogInterface dialog, int which); in onClick() argument
137 public void onClick(DialogInterface dialog, int which, boolean isChecked); in onClick() argument
156 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event); in onKey() argument
/frameworks/base/docs/html/guide/topics/ui/
Ddialogs.jd43 <p>A dialog is usually a small window that appears in front of the current Activity.
44 The underlying Activity loses focus and the dialog accepts all user interaction. Dialogs are
53 <dd>A dialog that can manage zero, one, two, or three buttons, and/or a list of
55 is capable of constructing most dialog user interfaces and is the suggested dialog type.
58 <dd>A dialog that displays a progress wheel or progress bar. Because it's an extension of
62 <dd>A dialog that allows the user to select a date. See the
65 <dd>A dialog that allows the user to select a time. See the
69 <p>If you would like to customize your own dialog, you can extend the
76 <p>A dialog is always created and displayed as a part of an {@link android.app.Activity}.
80 each dialog and hooks them to the Activity, effectively making it the "owner" of each dialog.
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java60 public void onClick(DialogInterface dialog, int which) { in onCreate()
65 final Dialog dialog = builder.create(); in onCreate() local
66 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { in onCreate()
67 public void onDismiss(DialogInterface dialog) { in onCreate()
72 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in onCreate()
73 dialog.show(); in onCreate()
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java155 public ButtonHandler(DialogInterface dialog) { in ButtonHandler() argument
156 mDialog = new WeakReference<DialogInterface>(dialog); in ButtonHandler()
796 public void apply(AlertController dialog) { in apply() argument
798 dialog.setCustomTitle(mCustomTitleView); in apply()
801 dialog.setTitle(mTitle); in apply()
804 dialog.setIcon(mIcon); in apply()
807 dialog.setIcon(mIconId); in apply()
811 dialog.setMessage(mMessage); in apply()
814 dialog.setButton(DialogInterface.BUTTON_POSITIVE, mPositiveButtonText, in apply()
818 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, mNegativeButtonText, in apply()
[all …]
DShutdownThread.java111 final AlertDialog dialog = new AlertDialog.Builder(context) in shutdown() local
115 public void onClick(DialogInterface dialog, int which) { in shutdown()
121 closer.dialog = dialog; in shutdown()
122 dialog.setOnDismissListener(closer); in shutdown()
123 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in shutdown()
124 dialog.show(); in shutdown()
133 public Dialog dialog; field in ShutdownThread.CloseDialogReceiver
143 dialog.cancel(); in onReceive()
/frameworks/base/docs/html/guide/developing/tools/
DMonkeyRunner.jd33 Displays an alert dialog to the process running the current
54 Displays a dialog with a list of choices to the process running the current program.
95 Displays a dialog that accepts input.
161 Displays an alert dialog to the process running the current
162 program. The dialog is modal, so the program pauses until the user clicks the dialog's
172 The message to display in the dialog.
178 The dialog's title. The default value is "Alert".
184 The text displayed in the dialog button. The default value is "OK".
208 Displays a dialog with a list of choices to the process running the current program. The
209 dialog is modal, so the program pauses until the user clicks one of the dialog's
[all …]
/frameworks/base/core/java/android/app/
DProgressDialog.java110 ProgressDialog dialog = new ProgressDialog(context); in show() local
111 dialog.setTitle(title); in show()
112 dialog.setMessage(message); in show()
113 dialog.setIndeterminate(indeterminate); in show()
114 dialog.setCancelable(cancelable); in show()
115 dialog.setOnCancelListener(cancelListener); in show()
116 dialog.show(); in show()
117 return dialog; in show()
DAlertDialog.java913 final AlertDialog dialog = new AlertDialog(P.mContext, mTheme, false); in create() local
914 P.apply(dialog.mAlert); in create()
915 dialog.setCancelable(P.mCancelable); in create()
917 dialog.setCanceledOnTouchOutside(true); in create()
919 dialog.setOnCancelListener(P.mOnCancelListener); in create()
921 dialog.setOnKeyListener(P.mOnKeyListener); in create()
923 return dialog; in create()
931 AlertDialog dialog = create(); in show() local
932 dialog.show(); in show()
933 return dialog; in show()
/frameworks/base/docs/html/guide/topics/search/
Dsearch-dialog.jd11 <li>The Android system sends search queries from the search dialog or widget to an activity you
30 <li><a href="#InvokingTheSearchDialog">Invoking the search dialog</a></li>
31 <li><a href="#LifeCycle">The impact of the search dialog on your activity lifecycle</a></li>
39 <li><a href="#UsingBoth">Using both the widget and the dialog</a></li>
78 the user interface with either a search dialog that appears at the top of the activity window or a
79 search widget that you can insert in your layout. Both the search dialog and the widget can deliver
81 a search from any activity where the search dialog or widget is available, and the system starts the
84 <p>Other features available for the search dialog and widget include:</p>
94 search dialog or the search widget.</p>
101 <p class="img-caption"><strong>Figure 1.</strong> Screenshot of an application's search dialog.</p>
[all …]
Dindex.jd8 <li><a href="search-dialog.html">Creating a Search Interface</a></li>
32 <p class="img-caption"><strong>Figure 1.</strong> Screenshot of a search dialog with custom
36 <p>The search framework offers two modes of search input: a search dialog at the top of the
40 the search dialog or widget to provide search suggestions as the user types. Figure 1 shows an
41 example of the search dialog with optional search suggestions.</p>
43 <p>Once you've set up either the search dialog or the search widget, you can:</p>
58 search interface in your application. When using the search dialog or a custom interface, you
60 information, see <a href="search-dialog.html#InvokingTheSearchDialog">Invoking the search
61 dialog</a>.</p>
66 <dt><strong><a href="search-dialog.html">Creating a Search Interface</a></strong></dt>
[all …]
Dadding-recent-query-suggestions.jd31 <p>When using the Android search dialog or search widget, you can provide search suggestions based
34 suggestion once he or she begins typing the same query. Figure 1 shows an example of a search dialog
37 <p>Before you begin, you need to implement the search dialog or a search widget for basic searches
39 If you haven't, see <a href="search-dialog.html">Creating a Search Interface</a>.</p>
47 <p class="img-caption"><strong>Figure 1.</strong> Screenshot of a search dialog with recent query
54 searchable activity already handles (as described in <a href="search-dialog.html">Creating a Search
61 href="{@docRoot}guide/topics/search/search-dialog.html">Creating a Search Interface</a>.</li>
69 <p>Just as the Android system displays the search dialog, it also displays the
70 search suggestions below the dialog or search widget. All you need to do is provide a source from
234 preference item, or button. You should also provide a confirmation dialog to
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pService.java480 public void onClick(DialogInterface dialog, int which) { in processMessage()
493 AlertDialog dialog = new AlertDialog.Builder(mContext) in processMessage() local
499 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in processMessage()
500 dialog.show(); in processMessage()
1054 AlertDialog dialog = new AlertDialog.Builder(mContext) in notifyP2pEnableFailure() local
1059 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in notifyP2pEnableFailure()
1060 dialog.show(); in notifyP2pEnableFailure()
1065 AlertDialog dialog = new AlertDialog.Builder(mContext) in notifyWpsPin() local
1070 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in notifyWpsPin()
1071 dialog.show(); in notifyWpsPin()
[all …]
/frameworks/base/voip/java/com/android/server/sip/
DSipHelper.java312 public ClientTransaction sendReinvite(Dialog dialog, in sendReinvite() argument
315 Request request = dialog.createRequest(Request.INVITE); in sendReinvite()
330 dialog.sendRequest(clientTransaction); in sendReinvite()
426 public void sendInviteAck(ResponseEvent event, Dialog dialog) in sendInviteAck() argument
431 Request ack = dialog.createAck(cseq); in sendInviteAck()
433 dialog.sendAck(ack); in sendInviteAck()
436 public void sendBye(Dialog dialog) throws SipException { in sendBye() argument
437 Request byeRequest = dialog.createRequest(Request.BYE); in sendBye()
439 dialog.sendRequest(mSipProvider.getNewClientTransaction(byeRequest)); in sendBye()
465 public void sendReferNotify(Dialog dialog, String content) in sendReferNotify() argument
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java92 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey() argument
115 dialog.dismiss(); in onKey()
144 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
166 public void onClick(DialogInterface dialog, int which) { in onClick() argument
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ui/
DDirListActivity.java283 Dialog dialog = null; in onCreateDialog() local
296 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
305 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
310 dialog = builder.create(); in onCreateDialog()
311 dialog.setOnCancelListener(new DialogInterface.OnCancelListener() { in onCreateDialog()
313 public void onCancel(DialogInterface dialog) { in onCreateDialog()
320 return dialog; in onCreateDialog()
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_dialog.jd32 <p>Dialog icons are shown in pop-up dialog boxes that prompt the user for
45 <p class="table-caption"><strong>Table 1.</strong> Summary of finished dialog
88 <p>The following guidelines describe how to design dialog icons for all versions
108 <img src="{@docRoot}images/icon_design/dialog_icon.png" alt="A view of dialog
113 <p><strong>Figure 1. </strong>Safeframe and fill gradient for dialog icons.
130 effects, and shadows for dialog icons."/>
134 <p><strong>Figure 2. </strong>Light, effects, and shadows for dialog
/frameworks/base/policy/src/com/android/internal/policy/impl/
DGlobalActions.java222 final AlertDialog dialog = ab.create(); in createDialog() local
223 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG); in createDialog()
225 dialog.setOnDismissListener(this); in createDialog()
227 return dialog; in createDialog()
246 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
250 public void onClick(DialogInterface dialog, int which) { in onClick() argument
251 dialog.dismiss(); in onClick()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DFileList.java132 public void onClick(DialogInterface dialog, int which) { in onListItemClick()
135 dialog.dismiss(); in onListItemClick()
141 dialog.dismiss(); in onListItemClick()
/frameworks/base/docs/html/guide/practices/design/
Dresponsiveness.jd18 <img src="{@docRoot}images/anr.png" alt="Screenshot of ANR dialog box" width="240" height="320"/>
19 <p><strong>Figure 1.</strong> An ANR dialog displayed to the user.</p>
29 responsive for a period of time by displaying a dialog to the user, called the
30 Application Not Responding (ANR) dialog, shown at right in Figure 1. The user
32 to act on this dialog every time he or she uses your application. It's critical
34 cause to display an ANR dialog to the user. </p>
64 and Window Manager system services. Android will display the ANR dialog
81 takes a long time to complete can trigger the ANR dialog because your
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java104 public void onClick(DialogInterface dialog, int which) { in onClick() argument
115 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
/frameworks/base/docs/html/resources/tutorials/views/
Dhello-timepicker.jd10 time picker in a floating dialog box at the press of a button. When the time is set by
48 The <code>TIME_DIALOG_ID</code> is a static integer that uniquely identifies the dialog.</p>
85 dialog. Using {@link android.app.Activity#showDialog(int)} allows the {@link
86 android.app.Activity} to manage the life-cycle of the dialog and will call the {@link
120 // the callback received when the user "sets" the time in the dialog

123456