/external/autotest/site_utils/tester_feedback/ |
D | sequenced_request.py | 25 def __init__(self, blurb, input_handler, prompt=None): argument 35 if prompt is None: 36 prompt = '' 38 if prompt: 39 prompt += ' ' 40 prompt += prompt_supp 41 self.prompt = self._format_text(prompt) 42 if self.prompt: 43 self.prompt += ' ' 52 print(self.blurb, end=('\n' if self.prompt else ' ')) [all …]
|
/external/python/cpython3/Lib/ |
D | getpass.py | 29 def unix_getpass(prompt='Password: ', stream=None): argument 62 passwd = fallback_getpass(prompt, stream) 77 passwd = _raw_input(prompt, stream, input=input) 91 passwd = fallback_getpass(prompt, stream) 97 def win_getpass(prompt='Password: ', stream=None): argument 100 return fallback_getpass(prompt, stream) 102 for c in prompt: 120 def fallback_getpass(prompt='Password: ', stream=None): argument 126 return _raw_input(prompt, stream) 129 def _raw_input(prompt="", stream=None, input=None): argument [all …]
|
/external/python/cpython2/Lib/ |
D | getpass.py | 26 def unix_getpass(prompt='Password: ', stream=None): argument 55 passwd = fallback_getpass(prompt, stream) 71 passwd = _raw_input(prompt, stream, input=input) 83 passwd = fallback_getpass(prompt, stream) 89 def win_getpass(prompt='Password: ', stream=None): argument 92 return fallback_getpass(prompt, stream) 94 for c in prompt: 112 def fallback_getpass(prompt='Password: ', stream=None): argument 118 return _raw_input(prompt, stream) 121 def _raw_input(prompt="", stream=None, input=None): argument [all …]
|
/external/toybox/kconfig/ |
D | menu.c | 122 struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *d… in menu_add_prop() argument 130 if (prompt) { in menu_add_prop() 131 if (isspace(*prompt)) { in menu_add_prop() 133 while (isspace(*prompt)) in menu_add_prop() 134 prompt++; in menu_add_prop() 136 if (current_entry->prompt) in menu_add_prop() 138 current_entry->prompt = prop; in menu_add_prop() 140 prop->text = prompt; in menu_add_prop() 145 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep) in menu_add_prompt() argument 147 return menu_add_prop(type, prompt, NULL, dep); in menu_add_prompt() [all …]
|
D | mconf.c | 438 prop = menu->prompt; in build_conf() 441 const char *prompt = menu_get_prompt(menu); in build_conf() local 448 indent + 1, ' ', prompt); in build_conf() 450 item_make(" %*c%s --->", indent + 1, ' ', prompt); in build_conf() 458 if (prompt) { in build_conf() 460 item_make("---%*c%s", indent + 1, ' ', prompt); in build_conf() 570 if (menu->prompt->type == P_MENU) { in build_conf() 586 const char *prompt = menu_get_prompt(menu); in conf() local 607 res = dialog_menu(prompt ? prompt : _("Main Menu"), in conf() 636 else if (submenu->prompt->type == P_MENU) in conf() [all …]
|
/external/python/cpython2/Parser/ |
D | myreadline.c | 19 extern char* vms__StdioReadline(FILE *sys_stdin, FILE *sys_stdout, char *prompt); 108 PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) in PyOS_StdioReadline() argument 117 if (prompt) in PyOS_StdioReadline() 118 fprintf(stderr, "%s", prompt); in PyOS_StdioReadline() 120 if (prompt) { in PyOS_StdioReadline() 122 fprintf(stderr, "\x0cr%s\x0c", prompt); in PyOS_StdioReadline() 124 fprintf(stderr, "%s", prompt); in PyOS_StdioReadline() 168 PyOS_Readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) in PyOS_Readline() argument 205 rv = PyOS_StdioReadline (sys_stdin, sys_stdout, prompt); in PyOS_Readline() 208 prompt); in PyOS_Readline()
|
/external/curl/src/ |
D | tool_getpass.c | 68 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument 91 prompt, strlen(prompt)); in getpass_r() 109 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument 112 fputs(prompt, stderr); in getpass_r() 142 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument 144 return getpassword(prompt, buffer, buflen); in getpass_r() 147 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument 151 printf("%s", prompt); in getpass_r() 226 char *getpass_r(const char *prompt, /* prompt to display */ in getpass_r() argument 238 fputs(prompt, stderr); in getpass_r()
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | test_conf.py | 330 prompt='Hold one finger on the {3} of the touch surface with a ' 365 prompt='Draw a straight line from {3} with a {0} {1} {2} in noise.', 402 prompt='Hold one finger on the {3} of the touch surface with a ' 423 prompt='Take {2} to draw a straight, {0} line {1} using a ruler.', 453 prompt='Take {2} to draw a striaght {0} line {1}.', 478 prompt='Take {2} to draw a {0} line {1} using a ruler ' 511 prompt='Place one stationary finger near the center of the ' 541 prompt='Use ONE finger to quickly swipe {0}.', 558 prompt='Use TWO fingers to quickly swipe {0}.', 577 prompt='Using two fingers, preform a "{0}" pinch by bringing' [all …]
|
/external/u-boot/scripts/kconfig/ |
D | menu.c | 127 static struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct … in menu_add_prop() argument 135 if (prompt) { in menu_add_prop() 136 if (isspace(*prompt)) { in menu_add_prop() 138 while (isspace(*prompt)) in menu_add_prop() 139 prompt++; in menu_add_prop() 141 if (current_entry->prompt && current_entry != &rootmenu) in menu_add_prop() 170 current_entry->prompt = prop; in menu_add_prop() 172 prop->text = prompt; in menu_add_prop() 177 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep) in menu_add_prompt() argument 179 return menu_add_prop(type, prompt, NULL, dep); in menu_add_prompt() [all …]
|
D | mconf.c | 303 "%s - %s", config_filename, rootmenu.prompt->text); in set_config_filename() 487 prop = menu->prompt; in build_conf() 490 const char *prompt = menu_get_prompt(menu); in build_conf() local 494 prompt = _(prompt); in build_conf() 498 indent + 1, ' ', prompt); in build_conf() 501 indent + 1, ' ', prompt, in build_conf() 509 if (prompt) { in build_conf() 511 item_make(" %*c*** %s ***", indent + 1, ' ', _(prompt)); in build_conf() 517 if (prompt) { in build_conf() 519 item_make("---%*c%s", indent + 1, ' ', _(prompt)); in build_conf() [all …]
|
D | zconf.y | 87 %type <string> prompt 116 mainmenu_stmt: T_MAINMENU prompt nl 190 if (current_entry->prompt) 191 current_entry->prompt->type = P_MENU; 215 config_option: T_PROMPT prompt if_expr T_EOL 268 | T_EQUAL prompt { $$ = $2; } 308 choice_option: T_PROMPT prompt if_expr T_EOL 376 menu: T_MENU prompt T_EOL 406 source_stmt: T_SOURCE prompt T_EOL 415 comment: T_COMMENT prompt T_EOL [all …]
|
D | nconf.c | 635 "%s - %s", config_filename, rootmenu.prompt->text); in set_config_filename() 748 prop = menu->prompt; in build_conf() 751 const char *prompt = menu_get_prompt(menu); in build_conf() local 753 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in build_conf() 757 prompt = _(prompt); in build_conf() 762 indent + 1, ' ', prompt); in build_conf() 766 indent + 1, ' ', prompt, in build_conf() 773 if (prompt) { in build_conf() 778 _(prompt)); in build_conf() 782 if (prompt) { in build_conf() [all …]
|
/external/python/cpython2/Lib/lib-tk/ |
D | tkSimpleDialog.py | 174 def __init__(self, title, prompt, argument 183 self.prompt = prompt 197 w = Label(master, text=self.prompt, justify=LEFT) 251 def askinteger(title, prompt, **kw): argument 262 d = _QueryInteger(title, prompt, **kw) 270 def askfloat(title, prompt, **kw): argument 281 d = _QueryFloat(title, prompt, **kw) 302 def askstring(title, prompt, **kw): argument 313 d = _QueryString(title, prompt, **kw)
|
/external/toybox/toys/pending/ |
D | sh.c | 271 char *prompt = getenv("PS1"), *s, c, cc; in do_prompt() local 273 if (!prompt) prompt = "\\$ "; in do_prompt() 274 while (*prompt) { in do_prompt() 275 c = *(prompt++); in do_prompt() 278 if (*prompt=='!') prompt++; in do_prompt() 284 cc = *(prompt++); in do_prompt() 300 prompt--; in do_prompt()
|
/external/u-boot/common/ |
D | cli_readline.c | 244 static int cread_line(const char *const prompt, char *buf, unsigned int *len, in cread_line() argument 479 col = strlen(prompt) + eol_num; in cread_line() 481 if (cmd_auto_complete(prompt, buf, &num2, &col)) { in cread_line() 509 int cli_readline(const char *const prompt) in cli_readline() argument 517 return cli_readline_into_buffer(prompt, console_buffer, 0); in cli_readline() 521 int cli_readline_into_buffer(const char *const prompt, char *buffer, in cli_readline_into_buffer() argument 542 if (prompt) in cli_readline_into_buffer() 543 puts(prompt); in cli_readline_into_buffer() 545 rc = cread_line(prompt, p, &len, timeout); in cli_readline_into_buffer() 557 if (prompt) { in cli_readline_into_buffer() [all …]
|
/external/gptfdisk/ |
D | gpttext.cc | 150 ostringstream prompt; in GetPartNum() local 153 prompt << "Partition number (" << low + 1 << "-" << high + 1 << "): "; in GetPartNum() 154 partNum = GetNumber(low + 1, high + 1, low, prompt.str()); in GetPartNum() 162 ostringstream prompt; in ResizePartitionTable() local 171 prompt << "Enter new size (" << curHigh << " up, default " << NUM_GPT_ENTRIES << "): "; in ResizePartitionTable() 172 newSize = GetNumber(4, 65535, 128, prompt.str()); in ResizePartitionTable() 251 ostringstream prompt; in DeletePartition() local 254 prompt << "Partition number (" << low + 1 << "-" << high + 1 << "): "; in DeletePartition() 255 partNum = GetNumber(low + 1, high + 1, low, prompt.str()); in DeletePartition() 334 ostringstream prompt; in SwapPartitions() local [all …]
|
/external/openssh/ |
D | readpass.c | 119 read_passphrase(const char *prompt, int flags) in read_passphrase() argument 152 if ((ret = ssh_askpass(askpass, prompt)) == NULL) in read_passphrase() 158 if (readpassphrase(prompt, buf, sizeof buf, rppflags) == NULL) { in read_passphrase() 173 char *p, prompt[1024]; in ask_permission() local 177 vsnprintf(prompt, sizeof(prompt), fmt, args); in ask_permission() 180 p = read_passphrase(prompt, RP_USE_ASKPASS|RP_ALLOW_EOF); in ask_permission()
|
/external/python/cpython3/Parser/ |
D | myreadline.c | 209 PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt) in PyOS_StdioReadline() argument 225 if (prompt) { in PyOS_StdioReadline() 229 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline() 237 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline() 248 fprintf(stderr, "%s", prompt); in PyOS_StdioReadline() 266 if (prompt) in PyOS_StdioReadline() 267 fprintf(stderr, "%s", prompt); in PyOS_StdioReadline() 322 PyOS_Readline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt) in PyOS_Readline() argument 356 rv = PyOS_StdioReadline (sys_stdin, sys_stdout, prompt); in PyOS_Readline() 359 prompt); in PyOS_Readline()
|
/external/fsck_msdos/ |
D | main.c | 129 char prompt[256]; in ask() local 142 vsnprintf(prompt, sizeof(prompt), fmt, ap); in ask() 145 printf("%s? %s\n", prompt, def ? "yes" : "no"); in ask() 149 printf("%s? [yn] ", prompt); in ask()
|
/external/python/cpython3/Lib/venv/ |
D | __init__.py | 44 symlinks=False, upgrade=False, with_pip=False, prompt=None): argument 50 self.prompt = prompt 105 prompt = self.prompt if self.prompt is not None else context.env_name 106 context.prompt = '(%s) ' % prompt 301 text = text.replace('__VENV_PROMPT__', context.prompt) 358 symlinks=False, with_pip=False, prompt=None): argument 362 prompt=prompt) 433 prompt=options.prompt)
|
/external/libmtp/examples/ |
D | sendtr.c | 62 static char *prompt (const char *prompt, char *buffer, size_t bufsz, int required) in prompt() function 67 fprintf(stdout, "%s> ", prompt); in prompt() 235 if ( (ptitle = prompt("Title", title, 80, 0)) != NULL ) in sendtrack_function() 240 if ( (palbum = prompt("Album", album, 80, 0)) != NULL ) in sendtrack_function() 245 if ( (palbumartist = prompt("Album artist", albumartist, 80, 0)) != NULL ) in sendtrack_function() 250 if ( (partist = prompt("Artist", artist, 80, 0)) != NULL ) in sendtrack_function() 255 if ( (pcomposer = prompt("Writer or Composer", composer, 80, 0)) != NULL ) in sendtrack_function() 260 if ( (pgenre = prompt("Genre", genre, 80, 0)) != NULL ) in sendtrack_function() 266 if ( (pnum = prompt("Track number", num, 80, 0)) == NULL ) in sendtrack_function() 274 if ( (pnum = prompt("Year", num, 80, 0)) == NULL ) in sendtrack_function() [all …]
|
/external/autotest/site_utils/deployment/ |
D | cmdvalidate.py | 289 def _read_with_prompt(input, prompt): argument 296 full_prompt = '%s> ' % prompt 345 prompt = 'build version (optional)' 347 build = _read_with_prompt(input, prompt) 417 prompt = 'More hosts? [y/N]' 418 y_n = _read_with_prompt(input, prompt).lower() or 'no' 441 prompt = '%s build %s? [Y/n]' % ( 443 y_n = _read_with_prompt(input, prompt).lower() or 'yes'
|
/external/jline/src/src/main/java/jline/ |
D | UnsupportedTerminal.java | 59 public void beforeReadLine(final ConsoleReader reader, final String prompt, in beforeReadLine() argument 62 final String fullPrompt = "\r" + prompt in beforeReadLine() 66 + "\r" + prompt; in beforeReadLine() 90 public void afterReadLine(final ConsoleReader reader, final String prompt, in afterReadLine() argument
|
/external/autotest/client/site_tests/policy_DefaultGeolocationSetting/ |
D | control.prompt | 6 NAME = 'policy_DefaultGeolocationSetting.prompt' 14 Verify setting 'DefaultGeolocationSetting' to 'prompt' (3) will prompt the user 20 case='prompt')
|
/external/python/cpython3/Lib/tkinter/ |
D | simpledialog.py | 257 def __init__(self, title, prompt, argument 265 self.prompt = prompt 279 w = Label(master, text=self.prompt, justify=LEFT) 330 def askinteger(title, prompt, **kw): argument 341 d = _QueryInteger(title, prompt, **kw) 349 def askfloat(title, prompt, **kw): argument 360 d = _QueryFloat(title, prompt, **kw) 381 def askstring(title, prompt, **kw): argument 392 d = _QueryString(title, prompt, **kw)
|