Searched refs:choice (Results 1 - 25 of 215) sorted by relevance

123456789

/external/adhd/adhdinfo/
H A Dmain.c39 const int choice = getopt_long(argc, argv, "", options, &option_index); local
41 if (choice == -1) {
45 switch (choice) {
55 printf("?? getopt returned character code 0%o ??\n", choice);
/external/autotest/frontend/client/src/autotest/afe/
H A DRadioChooser.java8 public IRadioButton generateRadioButton(String groupName, String choice); argument
27 public void addChoice(String choice) { argument
28 IRadioButton button = display.generateRadioButton(groupName, choice);
56 public void setSelectedChoice(String choice) { argument
57 findButtonForChoice(choice).setValue(true);
60 private IRadioButton findButtonForChoice(String choice) { argument
62 if (button.getText().equals(choice)) {
66 throw new RuntimeException("No such choice found: " + choice);
H A DIRadioButton.java15 public RadioButtonImpl(String name, String choice) { argument
16 super(name, choice);
H A DRadioChooserDisplay.java17 public IRadioButton generateRadioButton(String groupName, String choice) { argument
18 RadioButtonImpl radioButton = new RadioButtonImpl(groupName, choice);
/external/python/cpython3/Modules/_decimal/tests/
H A Drandfloat.py131 s = random.choice(signs)
133 s += ''.join(random.choice(digits) for _ in range(intpart_len))
134 if random.choice([True, False]):
137 s += ''.join(random.choice(digits)
141 if random.choice([True, False]):
142 s += random.choice(['e', 'E'])
143 s += random.choice(signs)
145 s += ''.join(random.choice(digits)
234 l = random.choice(TESTCASES[:6])
235 yield random.choice(
[all...]
/external/libcups/cups/
H A Dtestconflicts.c37 *cptr; /* Pointer to first choice */
41 *choice; /* Current choice */ local
65 choice = NULL;
72 if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options))
91 if (choice)
93 free(choice);
94 choice = NULL;
112 choice = strdup(cptr);
115 ppdMarkOption(ppd, option, choice);
[all...]
H A Dppd-conflicts.c48 const char *choice,
58 * "choice" were marked in the PPD. You would typically call this function
73 const char *choice, /* I - Choice to test */
81 ppd_choice_t *marked; /* Marked choice */
91 if (!ppd || !option || !choice || !options)
98 active = ppd_test_constraints(ppd, option, choice, 0, NULL,
114 if (cptr->choice)
116 cptr->choice->choice, num_options,
120 num_options = cupsAddOption(cptr->option->keyword, marked->choice,
70 cupsGetConflicts( ppd_file_t *ppd, const char *option, const char *choice, cups_option_t **options) argument
169 cupsResolveConflicts( ppd_file_t *ppd, const char *option, const char *choice, int *num_options, cups_option_t **options) argument
641 ppdInstallableConflict( ppd_file_t *ppd, const char *option, const char *choice) argument
714 choice[PPD_MAX_NAME], /* Choice/OptionKeyword */ local
949 ppd_test_constraints( ppd_file_t *ppd, const char *option, const char *choice, int num_options, cups_option_t *options, int which) argument
[all...]
H A Dppd-mark.c38 const char *choice);
366 * 'ppdFindChoice()' - Return a pointer to an option choice.
371 const char *choice) /* I - Name of choice */
374 ppd_choice_t *c; /* Current choice */
377 if (!o || !choice)
380 if (choice[0] == '{' || !_cups_strncasecmp(choice, "Custom.", 7))
381 choice = "Custom";
384 if (!_cups_strcasecmp(c->choice, choic
370 ppdFindChoice(ppd_option_t *o, const char *choice) argument
476 ppdIsMarked(ppd_file_t *ppd, const char *option, const char *choice) argument
545 ppdMarkOption(ppd_file_t *ppd, const char *option, const char *choice) argument
628 choice[PPD_MAX_NAME], /* Current choice/value */ local
771 ppd_mark_option(ppd_file_t *ppd, const char *option, const char *choice) argument
[all...]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/parser/
H A DParser.java35 * @param choice
43 public boolean checkEvent(Event.ID choice); argument
/external/toolchain-utils/binary_search_tool/android/
H A Dtest_setup.sh34 read -p "Was the flashing of the image successful? " choice
35 case $choice in
89 read -p "Which method would you like to do? " choice
90 case $choice in
/external/toybox/kconfig/lxdialog/
H A Dchecklist.c31 static void print_item(WINDOW * win, int choice, int selected) argument
37 wmove(win, choice, 0);
41 wmove(win, choice, check_x);
47 mvwaddch(win, choice, item_x, item_str()[0]);
51 wmove(win, choice, check_x + 1);
59 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, argument
79 if ((height < item_no) && (scroll + choice < item_no - 1)) {
115 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; local
121 choice = item_n();
123 choice
[all...]
H A Dmenubox.c102 #define print_item(index, choice, selected) \
105 do_print_item(menu, item_str(), choice, selected, !item_is_tag(':')); \
187 int key = 0, button = 0, scroll = 0, choice = 0; local
245 /* Set choice to default item */
248 choice = item_n();
251 if ((scroll <= choice) && (scroll + max_choice > choice) &&
254 choice = choice - scroll;
258 if ((choice >
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/
H A DCertStatus.java43 ASN1TaggedObject choice)
45 this.tagNo = choice.getTagNo();
47 switch (choice.getTagNo())
53 value = RevokedInfo.getInstance(choice, false);
59 throw new IllegalArgumentException("Unknown tag encountered: " + choice.getTagNo());
42 CertStatus( ASN1TaggedObject choice) argument
/external/protobuf/csharp/src/AddressBook/
H A DProgram.cs63 char choice = Console.ReadKey().KeyChar;
67 switch (choice)
82 Console.WriteLine("Unknown option: {0}", choice);
/external/python/cpython2/Demo/scripts/
H A Dmarkov.py4 def __init__(self, histsize, choice):
6 self.choice = choice
21 choice = self.choice
24 seq = choice(trans[None])
28 next = choice(options)
67 m = Markov(histsize, random.choice)
/external/python/cpython3/Lib/
H A Dsecrets.py9 __all__ = ['choice', 'randbelow', 'randbits', 'SystemRandom',
25 choice = _sysrand.choice variable
/external/python/cpython3/Tools/demo/
H A Dmarkov.py8 def __init__(self, histsize, choice):
10 self.choice = choice
25 choice = self.choice
28 seq = choice(trans[None])
32 next = choice(options)
71 m = Markov(histsize, random.choice)
/external/selinux/libselinux/src/
H A Dquery_user_context.c15 int choice = 0; /* index of the user's choice */ local
22 while ((choice < 1) || (choice > i)) {
23 printf("Enter number of choice: ");
28 choice = strtol(response, NULL, 10);
31 return (choice - 1);
41 int choice; /* The index in the list of the sid chosen by local
56 choice = context_menu(list);
57 *usercon = strdup(list[choice]);
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
H A DUPropertyAliasesTest.java36 int p, v, choice, rev;
39 for (choice=0; ; ++choice) {
42 name = UCharacter.getPropertyName(p, choice);
45 log(" " + choice + "=" + n);
48 if (choice > 0) break;
76 for (choice=0; ; ++choice) {
79 vname = UCharacter.getPropertyValueName(p, v, choice);
82 log(" " + choice
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DUPropertyAliasesTest.java33 int p, v, choice, rev;
36 for (choice=0; ; ++choice) {
39 name = UCharacter.getPropertyName(p, choice);
42 log(" " + choice + "=" + n);
45 if (choice > 0) break;
73 for (choice=0; ; ++choice) {
76 vname = UCharacter.getPropertyValueName(p, v, choice);
79 log(" " + choice
[all...]
/external/libcups/filter/
H A Drastertolabel.c158 ppd_choice_t *choice; /* Marked choice */ local
206 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL &&
207 strcmp(choice->choice, "Default"))
208 printf("\033S%.0f", atof(choice->choice) * 2.0 - 2.0);
249 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL &&
250 strcmp(choice->choice, "Defaul
445 ppd_choice_t *choice; /* Marked choice */ local
[all...]
/external/python/cpython2/Lib/distutils/command/
H A Dregister.py131 choice = '1'
135 choice = 'x'
140 while choice not in choices:
149 choice = raw_input()
150 if not choice:
151 choice = '1'
152 elif choice not in choices:
155 if choice == '1':
183 choice = 'X'
184 while choice
[all...]
/external/python/cpython3/Lib/distutils/command/
H A Dregister.py130 choice = '1'
134 choice = 'x'
139 while choice not in choices:
147 choice = input()
148 if not choice:
149 choice = '1'
150 elif choice not in choices:
153 if choice == '1':
181 choice = 'X'
182 while choice
[all...]
/external/toolchain-utils/binary_search_tool/cros_pkg/
H A Dtest_setup_usb.sh44 read -p "Was the installation of the image successful? " choice
45 case $choice in
/external/parameter-framework/upstream/tools/clientSimulator/clientsimulator/userInteraction/
H A DUserInteractor.py68 print("\nPlease Make a choice : ")
75 choice = input("Your Choice : ")
77 choice = int(choice)
78 if choice == len(options):
81 if choice < 0:
83 raise KeyError(choice)
85 options[choice][1]()

Completed in 555 milliseconds

123456789