Home
last modified time | relevance | path

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

123456

/third_party/typescript/tests/baselines/reference/
H A DcontrolFlowManyConsecutiveConditionsNoTimeout.js7 const choice: Choice = Choice.One;
10 if (choice === choiceOne) {}
11 if (choice === choiceOne) {}
12 if (choice === choiceOne) {}
13 if (choice === choiceOne) {}
14 if (choice === choiceOne) {}
15 if (choice === choiceOne) {}
16 if (choice === choiceOne) {}
17 if (choice === choiceOne) {}
18 if (choice
144 var choice = Choice.One; global() variable
[all...]
H A DstrictNullLogicalAndOr.js5 let choice = sinOrCos && Math.sin || Math.cos;
7 choice(Math.PI);
19 var choice = sinOrCos && Math.sin || Math.cos; variable
20 choice(Math.PI);
/third_party/python/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...]
H A Dformathelper.py245 s += random.choice('<>=^')
248 s += random.choice('+- ')
261 s += random.choice(c)
277 type = random.choice(('', 'E', 'e', 'G', 'g', 'F', 'f', '%'))
299 s += random.choice('<>=^')
302 s += random.choice('+- ')
313 s += random.choice(c)
320 loc = random.choice(locale_list)
330 s += random.choice('<>=^')
333 s += random.choice('
[all...]
/third_party/toybox/kconfig/lxdialog/
H A Dchecklist.c31 static void print_item(WINDOW * win, int choice, int selected) in print_item() argument
37 wmove(win, choice, 0); in print_item()
41 wmove(win, choice, check_x); in print_item()
47 mvwaddch(win, choice, item_x, item_str()[0]); in print_item()
51 wmove(win, choice, check_x + 1); in print_item()
59 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, in print_arrows() argument
79 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows()
115 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
121 choice = item_n(); in dialog_checklist()
123 choice in dialog_checklist()
[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; in dialog_menu() local
245 /* Set choice to default item */ in dialog_menu()
248 choice = item_n(); in dialog_menu()
251 if ((scroll <= choice) && (scroll + max_choice > choice) && in dialog_menu()
254 choice = choice - scroll; in dialog_menu()
258 if ((choice > in dialog_menu()
[all...]
/third_party/node/deps/openssl/openssl/crypto/x509/
H A Dv3_asid.c63 ASIdentifierChoice *choice,
68 if (choice == NULL)
71 switch (choice->type) {
76 for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) {
78 sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i);
156 ASIdentifierChoice **choice;
161 choice = &asid->asnum;
164 choice = &asid->rdi;
169 if (*choice == NULL) {
170 if ((*choice
[all...]
/third_party/openssl/crypto/x509/
H A Dv3_asid.c63 ASIdentifierChoice *choice,
68 if (choice == NULL)
71 switch (choice->type) {
76 for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) {
78 sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i);
156 ASIdentifierChoice **choice;
161 choice = &asid->asnum;
164 choice = &asid->rdi;
169 if (*choice == NULL) {
170 if ((*choice
[all...]
/third_party/backends/backend/
H A Dhp-accessor.c35 If you write modifications of your own for SANE, it is your choice
383 HpChoice choice = *(HpChoice *)hp_data_data(data, this->data_offset); in hp_accessor_choice_get() local
384 strcpy(valp, choice->name); in hp_accessor_choice_get()
392 HpChoice choice; in hp_accessor_choice_set() local
395 for (choice = this->choices; choice; choice = choice->next) in hp_accessor_choice_set()
398 if (!*strlist || strcmp(*strlist, choice->name) != 0) in hp_accessor_choice_set()
402 if (strcmp((const char *)valp, choice in hp_accessor_choice_set()
415 HpChoice choice = *(HpChoice *)hp_data_data(data, this->data_offset); hp_accessor_choice_getint() local
423 HpChoice choice; hp_accessor_choice_setint() local
453 HpChoice choice; sanei_hp_accessor_choice_maxsize() local
470 HpChoice choice; sanei_hp_accessor_choice_strlist() local
492 HpChoice choice; sanei_hp_accessor_choice_new() local
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/
H A DUPropertyAliasesTest.java36 int p, v, choice, rev; in TestPropertyNames()
39 for (choice=0; ; ++choice) { in TestPropertyNames()
42 name = UCharacter.getPropertyName(p, choice); in TestPropertyNames()
45 log(" " + choice + "=" + n); in TestPropertyNames()
48 if (choice > 0) break; in TestPropertyNames()
76 for (choice=0; ; ++choice) { in TestPropertyNames()
79 vname = UCharacter.getPropertyValueName(p, v, choice); in TestPropertyNames()
82 log(" " + choice in TestPropertyNames()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DUPropertyAliasesTest.java33 int p, v, choice, rev; in TestPropertyNames()
36 for (choice=0; ; ++choice) { in TestPropertyNames()
39 name = UCharacter.getPropertyName(p, choice); in TestPropertyNames()
42 log(" " + choice + "=" + n); in TestPropertyNames()
45 if (choice > 0) break; in TestPropertyNames()
73 for (choice=0; ; ++choice) { in TestPropertyNames()
76 vname = UCharacter.getPropertyValueName(p, v, choice); in TestPropertyNames()
79 log(" " + choice in TestPropertyNames()
[all...]
/third_party/ltp/lib/
H A Dtst_kconfig.c161 vars[i].choice = 'n'; in kconfig_parse_line()
184 vars[i].choice = 'y'; in kconfig_parse_line()
187 vars[i].choice = 'm'; in kconfig_parse_line()
192 vars[i].choice = 'v'; in kconfig_parse_line()
417 vars[cnt].choice = 0; in populate_vars()
436 if (var->choice == 0) in map()
443 return var->choice == 'y' || var->choice == 'm'; in map()
448 char choice = 'v'; in map() local
451 choice in map()
[all...]
/third_party/python/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...]
/third_party/cups-filters/filter/foomatic-rip/
H A Doptions.c251 choice_t *choice; in free_option() local
264 choice = opt->choicelist; in free_option()
266 free(choice); in free_option()
484 choice_t *choice; in option_find_choice() local
486 for (choice = opt->choicelist; choice; choice = choice->next) { in option_find_choice()
487 if (!strcasecmp(choice->value, name)) in option_find_choice()
488 return choice; in option_find_choice()
721 choice_t *choice; get_valid_value_string() local
817 choice_t *choice = option_find_choice(opt, "Custom"); build_foomatic_custom_command() local
937 choice_t *choice = NULL; option_get_command() local
1023 choice_t *choice; option_set_value() local
1061 option_has_choice(option_t *opt, const char *choice) option_has_choice() argument
1131 choice_t *choice, *last = NULL; option_assure_choice() local
1307 choice_t *choice; option_set_choice() local
1897 choice_t *choice; ppd_supports_pdf() local
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DUCharacterName.java71 * Depending on <code>choice</code>, the character name written into the
78 * @param choice Selector for which name to get.
81 public String getName(int ch, int choice) in getName() argument
84 choice > UCharacterNameChoice.CHAR_NAME_CHOICE_COUNT) { in getName()
90 result = getAlgName(ch, choice); in getName()
94 if (choice == UCharacterNameChoice.EXTENDED_CHAR_NAME) { in getName()
97 result = getGroupName(ch, choice); in getName()
106 * @param choice selector to indicate if argument name is a Unicode 1.0
111 public int getCharFromName(int choice, String name) in getCharFromName() argument
114 if (choice > in getCharFromName()
237 getGroupName(int index, int length, int choice) getGroupName() argument
506 getGroupName(int ch, int choice) getGroupName() argument
1184 getAlgName(int ch, int choice) getAlgName() argument
1212 getGroupChar(String name, int choice) getGroupChar() argument
1241 getGroupChar(int index, char length[], String name, int choice) getGroupChar() argument
1344 getExtendedChar(String name, int choice) getExtendedChar() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DUCharacterName.java72 * Depending on <code>choice</code>, the character name written into the
79 * @param choice Selector for which name to get.
82 public String getName(int ch, int choice) in getName() argument
85 choice > UCharacterNameChoice.CHAR_NAME_CHOICE_COUNT) { in getName()
91 result = getAlgName(ch, choice); in getName()
95 if (choice == UCharacterNameChoice.EXTENDED_CHAR_NAME) { in getName()
98 result = getGroupName(ch, choice); in getName()
107 * @param choice selector to indicate if argument name is a Unicode 1.0
112 public int getCharFromName(int choice, String name) in getCharFromName() argument
115 if (choice > in getCharFromName()
238 getGroupName(int index, int length, int choice) getGroupName() argument
507 getGroupName(int ch, int choice) getGroupName() argument
1185 getAlgName(int ch, int choice) getAlgName() argument
1213 getGroupChar(String name, int choice) getGroupChar() argument
1242 getGroupChar(int index, char length[], String name, int choice) getGroupChar() argument
1345 getExtendedChar(String name, int choice) getExtendedChar() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DNumberFormatServiceShim.java78 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
82 // return NumberFormat.createInstance(desiredLocale, choice); in createInstance()
86 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance()
95 if ( choice == NumberFormat.CURRENCYSTYLE || in createInstance()
96 choice == NumberFormat.ISOCURRENCYSTYLE || in createInstance()
97 choice == NumberFormat.PLURALCURRENCYSTYLE || in createInstance()
98 choice == NumberFormat.ACCOUNTINGCURRENCYSTYLE || in createInstance()
99 choice == NumberFormat.CASHCURRENCYSTYLE || in createInstance()
100 choice == NumberFormat.STANDARDCURRENCYSTYLE) { in createInstance()
H A DNumberFormat.java1414 * @param choice number format style
1415 * @throws IllegalArgumentException if choice is not one of
1423 public static NumberFormat getInstance(ULocale desiredLocale, int choice) { in getInstance() argument
1424 if (choice < NUMBERSTYLE || choice > STANDARDCURRENCYSTYLE) { in getInstance()
1426 "choice should be from NUMBERSTYLE to STANDARDCURRENCYSTYLE"); in getInstance()
1429 // return createInstance(desiredLocale, choice); in getInstance()
1432 // return getShim().createInstance(desiredLocale, choice); in getInstance()
1434 return getShim().createInstance(desiredLocale, choice); in getInstance()
1439 static NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
1542 getPattern(Locale forLocale, int choice) getPattern() argument
1553 getPattern(ULocale forLocale, int choice) getPattern() argument
1566 getPatternForStyle(ULocale forLocale, int choice) getPatternForStyle() argument
1582 getPatternForStyleAndNumberingSystem(ULocale forLocale, String nsName, int choice) getPatternForStyleAndNumberingSystem() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DNumberFormatServiceShim.java79 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
83 // return NumberFormat.createInstance(desiredLocale, choice); in createInstance()
87 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance()
96 if ( choice == NumberFormat.CURRENCYSTYLE || in createInstance()
97 choice == NumberFormat.ISOCURRENCYSTYLE || in createInstance()
98 choice == NumberFormat.PLURALCURRENCYSTYLE || in createInstance()
99 choice == NumberFormat.ACCOUNTINGCURRENCYSTYLE || in createInstance()
100 choice == NumberFormat.CASHCURRENCYSTYLE || in createInstance()
101 choice == NumberFormat.STANDARDCURRENCYSTYLE) { in createInstance()
H A DNumberFormat.java1327 * @param choice number format style
1328 * @throws IllegalArgumentException if choice is not one of
1335 public static NumberFormat getInstance(ULocale desiredLocale, int choice) { in getInstance() argument
1336 if (choice < NUMBERSTYLE || choice > STANDARDCURRENCYSTYLE) { in getInstance()
1338 "choice should be from NUMBERSTYLE to STANDARDCURRENCYSTYLE"); in getInstance()
1341 // return createInstance(desiredLocale, choice); in getInstance()
1344 // return getShim().createInstance(desiredLocale, choice); in getInstance()
1346 return getShim().createInstance(desiredLocale, choice); in getInstance()
1351 static NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
1455 getPattern(Locale forLocale, int choice) getPattern() argument
1465 getPattern(ULocale forLocale, int choice) getPattern() argument
1478 getPatternForStyle(ULocale forLocale, int choice) getPatternForStyle() argument
1494 getPatternForStyleAndNumberingSystem(ULocale forLocale, String nsName, int choice) getPatternForStyleAndNumberingSystem() argument
[all...]
/third_party/python/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)
/third_party/selinux/libselinux/src/
H A Dquery_user_context.c15 int choice = 0; /* index of the user's choice */ in context_menu() local
22 while ((choice < 1) || (choice > i)) { in context_menu()
23 printf("Enter number of choice: "); in context_menu()
28 choice = strtol(response, NULL, 10); in context_menu()
31 return (choice - 1); in context_menu()
41 int choice; /* The index in the list of the sid chosen by in query_user_context() local
56 choice = context_menu(list); in query_user_context()
57 *usercon = strdup(list[choice]); in query_user_context()
[all...]
/third_party/cups-filters/filter/pdftopdf/
H A Dpdftopdf.cc59 ppd_choice_t *choice; in setFinalPPD() local
60 if ((choice=ppdFindMarkedChoice(ppd,"MirrorPrint")) != NULL) { in setFinalPPD()
61 choice->marked=0; in setFinalPPD()
65 // for choice, only overwrites ret if found in ppd
69 ppd_choice_t *choice=ppdFindMarkedChoice(ppd,name); // !ppd is ok. in ppdGetInt() local
70 if (choice) { in ppdGetInt()
71 *ret=atoi(choice->choice); in ppdGetInt()
126 const char **option, **choice; in ppdGetDuplex() local
144 for (choice in ppdGetDuplex()
154 ppd_choice_t *choice; ppdDefaultOrder() local
553 ppd_choice_t *choice; getParameters() local
799 ppd_choice_t *choice; printerWillCollate() local
[all...]
/third_party/cups-filters/filter/
H A Dimagetopdf.c190 if ((attr = ppdFindAttr(ppd,buf,choices[i]->choice)) != NULL) { in emitJCLOptions()
196 choices[i]->choice); in emitJCLOptions()
682 ppd_choice_t *choice; /* PPD option choice */ in main() local
791 && (choice = ppdFindMarkedChoice(ppd,"Copies")) != NULL) { in main()
792 Copies = atoi(choice->choice); in main()
824 if ((choice = ppdFindMarkedChoice(ppd,"OutputOrder")) != 0) { in main()
825 Reverse = !strcasecmp(choice->choice,"Revers in main()
[all...]
/third_party/python/Lib/test/
H A Dtest_strtod.py224 s = random.choice(signs)
226 s += ''.join(random.choice(digits) for _ in range(intpart_len))
227 if random.choice([True, False]):
230 s += ''.join(random.choice(digits)
234 if random.choice([True, False]):
235 s += random.choice(['e', 'E'])
236 s += random.choice(signs)
238 s += ''.join(random.choice(digits)

Completed in 17 milliseconds

123456