/external/python/cpython2/Demo/tkinter/guido/ |
dialog.py | 3 # A Python function that generates dialog boxes with a text message, 11 def dialog(master, title, text, bitmap, default, *args): function 16 w = Toplevel(master, class_='Dialog') 18 w.iconname('Dialog') 34 # 3. Create a row of buttons at the bottom of the dialog. 77 i = dialog(mainWidget, 85 i = dialog(mainWidget,
|
/packages/apps/Contacts/src/com/android/contacts/dialog/ |
ClearFrequentsDialog.java | 17 package com.android.contacts.dialog; 20 import android.app.Dialog; 35 * Dialog that clears the frequently contacted list after confirming with the user. 38 /** Preferred way to show this dialog */ 40 ClearFrequentsDialog dialog = new ClearFrequentsDialog(); local 41 dialog.show(fragmentManager, "clearFrequents"); 45 public Dialog onCreateDialog(Bundle savedInstanceState) { 50 public void onClick(DialogInterface dialog, int which) {
|
/packages/apps/Dialer/java/com/android/contacts/common/dialog/ |
ClearFrequentsDialog.java | 17 package com.android.contacts.common.dialog; 20 import android.app.Dialog; 34 /** Dialog that clears the frequently contacted list after confirming with the user. */ 37 /** Preferred way to show this dialog */ 39 ClearFrequentsDialog dialog = new ClearFrequentsDialog(); local 40 dialog.show(fragmentManager, "clearFrequents"); 44 public Dialog onCreateDialog(Bundle savedInstanceState) { 50 public void onClick(DialogInterface dialog, int which) {
|
/packages/apps/Settings/src/com/android/settings/development/ |
ClearAdbKeysWarningDialog.java | 20 import android.app.Dialog; 38 final ClearAdbKeysWarningDialog dialog = local 40 dialog.setTargetFragment(host, 0 /* requestCode */); 41 dialog.show(manager, TAG); 51 public Dialog onCreateDialog(Bundle savedInstanceState) { 60 public void onClick(DialogInterface dialog, int which) {
|
OemLockInfoDialog.java | 20 import android.app.Dialog; 36 final OemLockInfoDialog dialog = new OemLockInfoDialog(); local 37 dialog.show(manager, TAG); 47 public Dialog onCreateDialog(Bundle savedInstanceState) {
|
BluetoothA2dpHwOffloadRebootDialog.java | 20 import android.app.Dialog; 40 final BluetoothA2dpHwOffloadRebootDialog dialog = local 42 dialog.setTargetFragment(host, 0 /* requestCode */); 43 dialog.show(manager, TAG); 53 public Dialog onCreateDialog(Bundle savedInstanceState) { 65 public void onClick(DialogInterface dialog, int which) { 80 * Called when the user presses reboot on the warning dialog.
|
DisableLogPersistWarningDialog.java | 20 import android.app.Dialog; 42 final DisableLogPersistWarningDialog dialog = local 44 dialog.setTargetFragment(hostFragment, 0 /* requestCode */); 45 dialog.show(manager, TAG); 55 public Dialog onCreateDialog(Bundle savedInstanceState) { 65 public void onClick(DialogInterface dialog, int which) {
|
EnableAdbWarningDialog.java | 20 import android.app.Dialog; 38 final EnableAdbWarningDialog dialog = new EnableAdbWarningDialog(); local 39 dialog.setTargetFragment(host, 0 /* requestCode */); 40 dialog.show(manager, TAG); 50 public Dialog onCreateDialog(Bundle savedInstanceState) { 60 public void onClick(DialogInterface dialog, int which) { 73 public void onDismiss(DialogInterface dialog) { 74 super.onDismiss(dialog);
|
EnableDevelopmentSettingWarningDialog.java | 20 import android.app.Dialog; 36 final EnableDevelopmentSettingWarningDialog dialog = local 38 dialog.setTargetFragment(host, 0 /* requestCode */); 41 dialog.show(manager, TAG); 51 public Dialog onCreateDialog(Bundle savedInstanceState) { 61 public void onClick(DialogInterface dialog, int which) {
|
EnableOemUnlockSettingWarningDialog.java | 20 import android.app.Dialog; 38 final EnableOemUnlockSettingWarningDialog dialog = local 40 dialog.setTargetFragment(host, 0 /* requestCode */); 41 dialog.show(manager, TAG); 51 public Dialog onCreateDialog(Bundle savedInstanceState) { 61 public void onClick(DialogInterface dialog, int which) { 74 public void onDismiss(DialogInterface dialog) { 75 super.onDismiss(dialog);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/aboutphone/ |
DeviceNameWarningDialog.java | 20 import android.app.Dialog; 30 * Warning dialog to let the user know where the device name will be shown before setting it. 43 final DeviceNameWarningDialog dialog = new DeviceNameWarningDialog(); local 44 dialog.setTargetFragment(host, 0 /* requestCode */); 45 dialog.show(manager, TAG); 54 public Dialog onCreateDialog(Bundle savedInstanceState) { 65 public void onClick(DialogInterface dialog, int which) {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
SecureDialogActivity.java | 29 * <h3>Secure Dialog Activity</h3> 32 * This activity demonstrates how to create a dialog whose window is backed by 70 // Handle click events on the button to show the dialog. 76 * Called when the button to show the dialog is clicked. 80 // Create a dialog. 81 AlertDialog dialog = new AlertDialog.Builder(this) local 86 // Make the dialog secure. This must be done at the time the dialog is 87 // created. It cannot be changed after the dialog has been shown. 88 dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
AppErrorDialogTest.java | 72 AppErrorDialog dialog = new AppErrorDialog(mContext, mService, data); local 74 dialog.create();
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
AppCompatNightModeAlertDialog.java | 40 AlertDialog dialog = createAlertDialog(); local 41 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 42 dialog.show(); 46 AlertDialog dialog = createAlertDialog(); local 47 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 48 dialog.show(); 52 AlertDialog dialog = createAlertDialog(); local 53 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_AUTO); 54 dialog.show();
|
AppCompatNightModeDialog.java | 29 * This demonstrates idiomatic usage of Dialog with Theme.AppCompat.DayNight 40 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); local 41 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 42 dialog.setTitle(R.string.dialog_title); 43 dialog.setContentView(R.layout.dialog_content); 44 dialog.show(); 48 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); local 49 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 50 dialog.setTitle(R.string.dialog_title); 51 dialog.setContentView(R.layout.dialog_content) 56 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
CancelEditDialogFragment.java | 19 import android.app.Dialog; 36 * target of the dialog. 39 final CancelEditDialogFragment dialog = new CancelEditDialogFragment(); local 40 dialog.setTargetFragment(fragment, 0); 41 dialog.show(fragment.getFragmentManager(), TAG); 45 public Dialog onCreateDialog(Bundle savedInstanceState) {
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
MigrateBlockedNumbersDialogFragment.java | 20 import android.app.Dialog; 30 * Dialog fragment shown to users when they need to migrate to use {@link 58 public Dialog onCreateDialog(Bundle savedInstanceState) { 60 AlertDialog dialog = local 67 // The Dialog's buttons aren't available until show is called, so an OnShowListener 69 dialog.setOnShowListener( 72 public void onShow(DialogInterface dialog) { 73 final AlertDialog alertDialog = (AlertDialog) dialog; 79 return dialog; 83 * Creates a new View.OnClickListener to be used as the positive button in this dialog. Th [all...] |
/packages/apps/Settings/src/com/android/settings/ |
RemoteBugreportActivity.java | 32 * UI for the remote bugreport dialog. Shows one of 3 possible dialogs: 51 AlertDialog dialog = new AlertDialog.Builder(this) local 55 public void onDismiss(DialogInterface dialog) { 61 public void onClick(DialogInterface dialog, int which) { 66 dialog.show(); 70 AlertDialog dialog = new AlertDialog.Builder(this) local 78 public void onDismiss(DialogInterface dialog) { 85 public void onClick(DialogInterface dialog, int which) { 96 public void onClick(DialogInterface dialog, int which) { 105 dialog.show() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/ |
NetworkOverLimitActivity.java | 24 import android.app.Dialog; 58 public void onClick(DialogInterface dialog, int which) { 63 final Dialog dialog = builder.create(); local 64 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 65 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { 66 public void onDismiss(DialogInterface dialog) { 71 dialog.show();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
TunerService.java | 89 SystemUIDialog dialog = new SystemUIDialog(context); local 90 dialog.setShowForAllUsers(true); 91 dialog.setMessage(R.string.remove_from_settings_prompt); 92 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getString(R.string.cancel), 94 dialog.setButton(DialogInterface.BUTTON_POSITIVE, 97 public void onClick(DialogInterface dialog, int which) { 102 // Make them sit through the warning dialog again. 110 dialog.show();
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
Utils.java | 62 // Create (or recycle existing) and show disconnect dialog. 64 AlertDialog dialog, 67 if (dialog == null) { 68 dialog = new AlertDialog.Builder(context) 73 if (dialog.isShowing()) { 74 dialog.dismiss(); 78 dialog.setButton(DialogInterface.BUTTON_POSITIVE, 81 dialog.setTitle(title); 82 dialog.setMessage(message); 83 dialog.show() [all...] |
/external/mdnsresponder/mDNSWindows/DNSServiceBrowser/Windows/Sources/ |
Application.cpp | 88 // Create the chooser dialog. 90 ChooserDialog * dialog; local 93 dialog = new ChooserDialog; 94 dialog->Create( IDD_CHOOSER_DIALOG ); 95 m_pMainWnd = dialog; 96 dialog->ShowWindow( SW_SHOW );
|
/external/mdnsresponder/mDNSWindows/DNSServiceBrowser/WindowsCE/Sources/ |
Application.cpp | 66 BrowserDialog dialog; local 79 // Display the main browser dialog. 81 m_pMainWnd = &dialog; 82 dialog.DoModal(); 84 // Dialog has been closed. Return false to exit the app and not start the app's message pump.
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPreferenceScreen.java | 3 import android.app.Dialog; 12 private Dialog dialog; field in class:ShadowPreferenceScreen 15 public Dialog getDialog() { 16 return dialog; 19 public void setDialog(Dialog dialog) { 20 this.dialog = dialog;
|
/external/toybox/kconfig/lxdialog/ |
yesno.c | 22 #include "dialog.h" 27 static void print_buttons(WINDOW * dialog, int height, int width, int selected) 32 print_button(dialog, " Yes ", y, x, selected == 0); 33 print_button(dialog, " No ", y, x + 13, selected == 1); 35 wmove(dialog, y, x + 1 + 13 * selected); 36 wrefresh(dialog); 40 * Display a dialog box with two buttons - Yes and No 45 WINDOW *dialog; local 53 /* center dialog box on screen */ 59 dialog = newwin(height, width, y, x) [all...] |