Home
last modified time | relevance | path

Searched refs:prompt (Results 1 – 25 of 256) sorted by relevance

1234567891011

/external/autotest/site_utils/tester_feedback/
Dsequenced_request.py25 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 …]
Daudio_query_delegate_impl.py66 prompt='Choose your playback method')
103 prompt='Did you hear audible sound?')
111 prompt=('Was the audio produced identical to the refernce '
149 prompt='Did you hear silence?')
235 prompt='Did the recording capture the sound produced?')
/external/toybox/kconfig/
Dmenu.c122 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 …]
Dmconf.c438 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/curl/src/
Dtool_getpass.c64 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
87 prompt, strlen(prompt)); in getpass_r()
105 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
108 fputs(prompt, stderr); in getpass_r()
138 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
140 return getpassword(prompt, buffer, buflen); in getpass_r()
143 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
147 printf("%s", prompt); in getpass_r()
224 char *getpass_r(const char *prompt, /* prompt to display */ in getpass_r() argument
236 fputs(prompt, stderr); in getpass_r()
/external/autotest/client/site_tests/firmware_TouchMTB/
Dtest_conf.py330 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 …]
Dtest_flow.py166 prompt = '\n'.join(
172 return prompt
176 prompt = ("You need to perform the specified gestures "
178 return prompt + self._prompt_result
283 prompt = test.prompt
293 color_prompt = prompt
294 monochrome_prompt = prompt
296 color_prompt = mini_color.color_string(prompt, '{', '}', 'green')
298 monochrome_prompt = prompt.format(*subprompt)
309 glog.prompt = monochrome_prompt
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSpinner.java11 private CharSequence prompt; field in ShadowSpinner
14 public void setPrompt(CharSequence prompt) { in setPrompt() argument
15 this.prompt = prompt; in setPrompt()
20 return prompt; in getPrompt()
/external/syslinux/com32/hdt/
Dhdt-cli.c131 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_HDT); in set_mode()
139 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_PXE); in set_mode()
143 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_KERNEL); in set_mode()
147 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_SYSLINUX); in set_mode()
151 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_VESA); in set_mode()
155 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_PCI); in set_mode()
159 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_CPU); in set_mode()
167 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_DMI); in set_mode()
171 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_DISK); in set_mode()
179 snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_VPD); in set_mode()
[all …]
/external/toybox/toys/pending/
Dsh.c271 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/openssh/
Dreadpass.c119 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()
Dsshconnect1.c404 char prompt[1024]; in try_challenge_response_authentication() local
427 snprintf(prompt, sizeof prompt, "%s%s", challenge, in try_challenge_response_authentication()
435 response = read_passphrase(prompt, 0); in try_challenge_response_authentication()
461 try_password_authentication(char *prompt) in try_password_authentication() argument
472 password = read_passphrase(prompt, 0); in try_password_authentication()
756 char prompt[80]; in ssh_userauth1() local
758 snprintf(prompt, sizeof(prompt), "%.30s@%.128s's password: ", in ssh_userauth1()
760 if (try_password_authentication(prompt)) in ssh_userauth1()
/external/fsck_msdos/
Dmain.c136 char prompt[256]; in ask() local
148 vsnprintf(prompt, sizeof(prompt), fmt, ap); in ask()
150 printf("%s? %s\n", prompt, rdonly ? "no" : "yes"); in ask()
154 printf("%s? [yn] ", prompt); in ask()
/external/gptfdisk/
Dgpttext.cc150 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/libmtp/examples/
Dsendtr.c64 static char *prompt (const char *prompt, char *buffer, size_t bufsz, int required) in prompt() function
69 fprintf(stdout, "%s> ", prompt); in prompt()
202 ptitle = prompt("Title", title, 80, 0); in sendtrack_function()
208 palbum = prompt("Album", album, 80, 0); in sendtrack_function()
214 palbumartist = prompt("Album artist", albumartist, 80, 0); in sendtrack_function()
217 partist = prompt("Artist", artist, 80, 0); in sendtrack_function()
223 pcomposer = prompt("Writer or Composer", composer, 80, 0); in sendtrack_function()
229 pgenre = prompt("Genre", genre, 80, 0); in sendtrack_function()
236 if ( (pnum = prompt("Track number", num, 80, 0)) == NULL ) in sendtrack_function()
247 if ( (pnum = prompt("Year", num, 80, 0)) == NULL ) in sendtrack_function()
[all …]
/external/jline/src/src/main/java/jline/
DUnsupportedTerminal.java59 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
DConsoleReader.java29 String prompt; field in ConsoleReader
427 return getStrippedAnsiLength(prompt) + buf.cursor; in getCursorPosition()
456 public String readLine(final String prompt) throws IOException { in readLine() argument
457 return readLine(prompt, null); in readLine()
463 public void setDefaultPrompt(String prompt) { in setDefaultPrompt() argument
464 this.prompt = prompt; in setDefaultPrompt()
471 return prompt; in getDefaultPrompt()
483 public String readLine(final String prompt, final Character mask) in readLine() argument
486 if (prompt != null) { in readLine()
487 this.prompt = prompt; in readLine()
[all …]
/external/toybox/kconfig/lxdialog/
Ddialog.h195 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
203 int dialog_yesno(const char *title, const char *prompt, int height, int width);
204 int dialog_msgbox(const char *title, const char *prompt, int height,
207 int dialog_menu(const char *title, const char *prompt,
209 int dialog_checklist(const char *title, const char *prompt, int height,
212 int dialog_inputbox(const char *title, const char *prompt, int height,
/external/syslinux/gpxe/src/usr/
Dpxemenu.c63 const char *prompt; member
175 (*menu)->prompt = raw_menu_prompt->prompt; in pxe_menu_parse()
292 if ( menu->prompt ) in pxe_menu_prompt_and_select()
293 printf ( "%s\n", menu->prompt ); in pxe_menu_prompt_and_select()
298 if ( menu->prompt ) in pxe_menu_prompt_and_select()
299 printf ( "%s", menu->prompt ); in pxe_menu_prompt_and_select()
/external/autotest/site_utils/deployment/
Dcommandline.py291 def _read_with_prompt(input, prompt): argument
298 full_prompt = '%s> ' % prompt
347 prompt = 'build version (optional)'
349 build = _read_with_prompt(input, prompt)
385 prompt = 'More hosts? [y/N]'
386 y_n = _read_with_prompt(input, prompt).lower() or 'no'
408 prompt = '%s build %s? [Y/n]' % (
410 y_n = _read_with_prompt(input, prompt).lower() or 'yes'
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/
Dtest_rendering.c53 …v, unsigned int *output_width, unsigned int *output_height, double *acceptable_error, int *prompt);
55 …gv, unsigned int *output_width, unsigned int *output_height, double *acceptable_error, int *prompt) in ParseArgs() argument
63 *prompt = 1; in ParseArgs()
83 *prompt = 0; in ParseArgs()
135 int prompt; in main() local
152 ParseArgs(argc, argv, &output_width, &output_height, &acceptable_error, &prompt); in main()
278 if (prompt) in main()
/external/e2fsprogs/lib/ss/
Dinvocation.c62 new_table->prompt = malloc((unsigned)strlen(subsystem_name)+4); in ss_create_invocation()
63 strcpy(new_table->prompt, subsystem_name); in ss_create_invocation()
64 strcat(new_table->prompt, ": "); in ss_create_invocation()
97 free(t->prompt); in ss_delete_invocation()
/external/openssh/openbsd-compat/
Dreadpassphrase.c62 readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) in readpassphrase() argument
135 (void)write(output, prompt, strlen(prompt)); in readpassphrase()
200 getpass(const char *prompt)
204 return(readpassphrase(prompt, buf, sizeof(buf), RPP_ECHO_OFF));
/external/libyuv/files/
Dsetup_links.py105 prompt = " [%s/%%s]: "
106 prompt = prompt % ('Y' if default is True else 'y')
107 prompt = prompt % ('N' if default is False else 'n')
113 sys.stdout.write(question + prompt)
250 def __init__(self, links_db, force=False, dry_run=False, prompt=False): argument
253 self._prompt = prompt
484 options.dry_run, options.prompt)
/external/webrtc/
Dsetup_links.py126 prompt = " [%s/%%s]: "
127 prompt = prompt % ('Y' if default is True else 'y')
128 prompt = prompt % ('N' if default is False else 'n')
134 sys.stdout.write(question + prompt)
271 def __init__(self, links_db, force=False, dry_run=False, prompt=False): argument
274 self._prompt = prompt
505 options.dry_run, options.prompt)

1234567891011