/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...] |
inputbox.c | 22 #include "dialog.h" 29 static void print_buttons(WINDOW * dialog, int height, int width, int selected) 34 print_button(dialog, " Ok ", y, x, selected == 0); 35 print_button(dialog, " Help ", y, x + 14, selected == 1); 37 wmove(dialog, y, x + 1 + 14 * selected); 38 wrefresh(dialog); 42 * Display a dialog box for inputing a string 50 WINDOW *dialog; local 63 /* center dialog box on screen */ 69 dialog = newwin(height, width, y, x) [all...] |
textbox.c | 22 #include "dialog.h" 38 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, 42 print_position(dialog); 43 wmove(dialog, cur_y, cur_x); /* Restore cursor position */ 44 wrefresh(dialog); 49 * Display text from a file in a dialog box. 57 WINDOW *dialog, *box; local 85 /* center dialog box on screen */ 91 dialog = newwin(height, width, y, x); 92 keypad(dialog, TRUE) [all...] |
checklist.c | 24 #include "dialog.h" 95 static void print_buttons(WINDOW * dialog, int height, int width, int selected) 100 print_button(dialog, "Select", y, x, selected == 0); 101 print_button(dialog, " Help ", y, x + 14, selected == 1); 103 wmove(dialog, y, x + 1 + 14 * selected); 104 wrefresh(dialog); 108 * Display a dialog box with a list of options that can be turned on or off 116 WINDOW *dialog, *list; local 136 /* center dialog box on screen */ 142 dialog = newwin(height, width, y, x) [all...] |
/external/u-boot/scripts/kconfig/lxdialog/ |
inputbox.c | 9 #include "dialog.h" 16 static void print_buttons(WINDOW * dialog, int height, int width, int selected) 21 print_button(dialog, gettext(" Ok "), y, x, selected == 0); 22 print_button(dialog, gettext(" Help "), y, x + 14, selected == 1); 24 wmove(dialog, y, x + 1 + 14 * selected); 25 wrefresh(dialog); 29 * Display a dialog box for inputing a string 38 WINDOW *dialog; local 51 /* center dialog box on screen */ 57 dialog = newwin(height, width, y, x) [all...] |
yesno.c | 9 #include "dialog.h" 14 static void print_buttons(WINDOW * dialog, int height, int width, int selected) 19 print_button(dialog, gettext(" Yes "), y, x, selected == 0); 20 print_button(dialog, gettext(" No "), y, x + 13, selected == 1); 22 wmove(dialog, y, x + 1 + 13 * selected); 23 wrefresh(dialog); 27 * Display a dialog box with two buttons - Yes and No 32 WINDOW *dialog; local 40 /* center dialog box on screen */ 46 dialog = newwin(height, width, y, x) [all...] |
textbox.c | 9 #include "dialog.h" 26 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, 31 print_position(dialog); 32 wmove(dialog, cur_y, cur_x); /* Restore cursor position */ 33 wrefresh(dialog); 38 * Display text from a file in a dialog box. 49 WINDOW *dialog, *box; local 87 /* center dialog box on screen */ 93 dialog = newwin(height, width, y, x); 94 keypad(dialog, TRUE) [all...] |
checklist.c | 11 #include "dialog.h" 88 static void print_buttons(WINDOW * dialog, int height, int width, int selected) 93 print_button(dialog, gettext("Select"), y, x, selected == 0); 94 print_button(dialog, gettext(" Help "), y, x + 14, selected == 1); 96 wmove(dialog, y, x + 1 + 14 * selected); 97 wrefresh(dialog); 101 * Display a dialog box with a list of options that can be turned on or off 109 WINDOW *dialog, *list; local 129 /* center dialog box on screen */ 135 dialog = newwin(height, width, y, x) [all...] |
/external/python/cpython3/Lib/idlelib/idle_test/ |
test_query.py | 46 dialog = self.Dummy_Query(' ') 47 self.assertEqual(dialog.entry_ok(), None) 48 self.assertEqual((dialog.result, dialog.destroyed), (None, False)) 49 self.assertIn('blank line', dialog.entry_error['text']) 52 dialog = self.Dummy_Query(' good ') 54 Equal(dialog.entry_ok(), 'good') 55 Equal((dialog.result, dialog.destroyed), (None, False)) 56 Equal(dialog.entry_error['text'], '' [all...] |
test_searchbase.py | 40 self.dialog = sdb.SearchDialogBase(root=self.root, engine=self.engine) 43 self.dialog.close() 47 self.dialog.default_command = None 51 self.dialog.open('text') 52 self.assertEqual(self.dialog.top.state(), 'normal') 53 self.dialog.close() 54 self.assertEqual(self.dialog.top.state(), 'withdrawn') 56 self.dialog.open('text', searchphrase="hello") 57 self.assertEqual(self.dialog.ent.get(), 'hello') 58 self.dialog.close( [all...] |
test_config_key.py | 3 Coverage is effectively 100%. Tkinter dialog is mocked, Mac-only line 37 cls.dialog = cls.Validator( 42 cls.dialog.cancel() 45 del cls.dialog, cls.root 48 self.dialog.showerror.message = '' 53 self.dialog.key_string.set(' ') 54 self.dialog.ok() 55 self.assertEqual(self.dialog.result, '') 56 self.assertEqual(self.dialog.showerror.message, 'No key specified.') 59 self.dialog.key_string.set('<Key-F11>' [all...] |
test_help_about.py | 29 cls.dialog = About(cls.root, 'About IDLE', _utest=True) 33 del cls.dialog 42 """Test about dialog title""" 43 self.assertEqual(self.dialog.title(), 'About IDLE') 46 """Test about dialog logo.""" 47 path, file = os.path.split(self.dialog.icon_image['file']) 53 dialog = self.dialog 54 button_sources = [(dialog.py_license, license, 'license'), 55 (dialog.py_copyright, copyright, 'copyright') 153 dialog = Dummy_about_dialog() variable in class:DisplayFileTest [all...] |
test_search.py | 29 self.dialog = search.SearchDialog(self.root, self.engine) 30 self.dialog.bell = lambda: None 39 self.assertFalse(self.dialog.find_again(text)) 40 self.dialog.bell = lambda: None 43 self.assertTrue(self.dialog.find_again(text)) 46 self.assertFalse(self.dialog.find_again(text)) 49 self.assertTrue(self.dialog.find_again(text)) 52 self.assertTrue(self.dialog.find_again(text)) 57 self.assertTrue(self.dialog.find_again(text)) 66 self.assertTrue(self.dialog.find_selection(text) [all...] |
/cts/tests/app/src/android/app/cts/ |
ProgressDialogTest.java | 101 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, false); local 107 assertTrue(dialog.isIndeterminate()); 109 dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true); 110 assertTrue(dialog.isIndeterminate()); 115 public void onCancel(DialogInterface dialog) { 123 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true, false); 125 dialog.setOnCancelListener(cL); 126 dialog.onBackPressed(); 127 dialog.dismiss(); 137 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true, true) 216 ProgressDialog dialog = buildDialog(); local 232 ProgressDialog dialog = buildDialog(); local 251 ProgressDialog dialog = new ProgressDialog(mContext); local 266 ProgressDialog dialog = new ProgressDialog(mContext); local 280 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE); local 295 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE); local 310 ProgressDialog dialog = new ProgressDialog(mContext); local 321 ProgressDialog dialog = new ProgressDialog(mContext); local [all...] |
/external/nist-sip/java/javax/sip/ |
DialogTerminatedEvent.java | 6 private Dialog mDialog; 8 public DialogTerminatedEvent(Object source, Dialog dialog) { 10 mDialog = dialog; 13 public Dialog getDialog() {
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowProgressDialogTest.java | 18 private ProgressDialog dialog; field in class:ShadowProgressDialogTest 23 dialog = new ProgressDialog(ApplicationProvider.getApplicationContext()); 24 shadow = Shadows.shadowOf(dialog); 39 dialog.setMessage(message); 45 assertThat(dialog.isIndeterminate()).isFalse(); 47 dialog.setIndeterminate(true); 48 assertThat(dialog.isIndeterminate()).isTrue(); 50 dialog.setIndeterminate(false); 51 assertThat(dialog.isIndeterminate()).isFalse(); 56 assertThat(dialog.getMax()).isEqualTo(0) [all...] |
ShadowDialogTest.java | 13 import android.app.Dialog; 43 final Dialog dialog = new Dialog(context); local 44 dialog.show(); 45 dialog.setOnDismissListener( 47 assertThat(dialogInListener).isSameAs(dialog); 51 dialog.dismiss(); 59 final Dialog dialog = new Dialog(context) local 69 Dialog dialog = new Dialog(context); local 75 TestDialog dialog = new TestDialog(context); local 83 Dialog dialog = new Dialog(context); local 92 TestDialog dialog = new TestDialog(context); local 99 Dialog dialog = new Dialog(context); local 109 Dialog dialog = local 129 Dialog dialog = new Dialog(context); local 142 Dialog dialog = new Dialog(context); local 151 TestDialog dialog = new TestDialog(context); local 181 Dialog dialog = new Dialog(context); local 189 Dialog dialog = new Dialog(context); local 195 Dialog dialog = new Dialog(context); local [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 );
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ProgressBar3.java | 22 import android.app.Dialog; 64 protected Dialog onCreateDialog(int id) { 67 ProgressDialog dialog = new ProgressDialog(this); local 68 dialog.setTitle("Indeterminate"); 69 dialog.setMessage("Please wait while loading..."); 70 dialog.setIndeterminate(true); 71 dialog.setCancelable(true); 72 return dialog; 75 ProgressDialog dialog = new ProgressDialog(this); local 76 dialog.setMessage("Please wait while loading...") [all...] |
/external/python/cpython2/Lib/idlelib/idle_test/ |
test_searchdialogbase.py | 39 self.dialog = sdb.SearchDialogBase(root=self.root, engine=self.engine) 42 self.dialog.close() 46 self.dialog.default_command = None 50 self.dialog.open('text') 51 self.assertEqual(self.dialog.top.state(), 'normal') 52 self.dialog.close() 53 self.assertEqual(self.dialog.top.state(), 'withdrawn') 55 self.dialog.open('text', searchphrase="hello") 56 self.assertEqual(self.dialog.ent.get(), 'hello') 57 self.dialog.close( [all...] |
test_config_name.py | 28 dialog = Dummy_name_dialog() variable in class:ConfigNameTest 39 self.dialog.name.set(' ') 40 self.assertEqual(self.dialog.name_ok(), '') 45 self.dialog.name.set('used') 46 self.assertEqual(self.dialog.name_ok(), '') 51 self.dialog.name.set('good'*8) 52 self.assertEqual(self.dialog.name_ok(), '') 57 self.dialog.name.set(' good ') 59 self.assertEqual(self.dialog.name_ok(), 'good') 63 self.dialog.destroyed = Fals [all...] |
/external/openssh/contrib/ |
gnome-ssh-askpass1.c | 73 GtkWidget *dialog, *entry, *label; local 78 dialog = gnome_dialog_new("OpenSSH", GNOME_STOCK_BUTTON_OK, 85 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), 90 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), entry, FALSE, 96 gtk_object_set(GTK_OBJECT(dialog), "type", GTK_WINDOW_POPUP, NULL); 97 gnome_dialog_set_default(GNOME_DIALOG(dialog), 0); 98 gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); 99 gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, TRUE); 100 gnome_dialog_close_hides(GNOME_DIALOG(dialog), TRUE); 101 gtk_container_set_border_width(GTK_CONTAINER(GNOME_DIALOG(dialog)->vbox) [all...] |
gnome-ssh-askpass2.c | 78 ok_dialog(GtkWidget *entry, gpointer dialog) 80 g_return_if_fail(GTK_IS_DIALOG(dialog)); 81 gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK); 90 GtkWidget *parent_window, *dialog, *entry; local 101 dialog = gtk_message_dialog_new(GTK_WINDOW(parent_window), 0, 109 GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), entry, 115 gtk_window_set_title(GTK_WINDOW(dialog), "OpenSSH"); 116 gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); 117 gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE); 119 /* Make <enter> close dialog */ 122 G_CALLBACK(ok_dialog), dialog); local [all...] |
/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.
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
DialogFrameTests.java | 91 WindowState dialog = getSingleWindow(DIALOG_WINDOW_NAME); local 94 t.doTest(parent, dialog); 101 doParentChildTest(TEST_MATCH_PARENT, (parent, dialog) -> 102 assertEquals(parent.getContentFrame(), dialog.getFrame()) 115 doParentChildTest(TEST_MATCH_PARENT_LAYOUT_IN_OVERSCAN, (parent, dialog) -> 116 assertEquals(parent.getFrame(), dialog.getFrame()) 125 doParentChildTest(TEST_EXPLICIT_SIZE, (parent, dialog) -> { 132 assertEquals(expectedFrame, dialog.getFrame()); 138 doParentChildTest(TEST_EXPLICIT_SIZE_TOP_LEFT_GRAVITY, (parent, dialog) -> { 145 assertEquals(expectedFrame, dialog.getFrame()) [all...] |