Home
last modified time | relevance | path

Searched refs:choice (Results 1 – 25 of 1031) sorted by relevance

12345678910>>...42

/external/libcups/cups/
Dppd-conflicts.c43 const char *choice,
68 const char *choice, /* I - Choice to test */ in cupsGetConflicts() argument
86 if (!ppd || !option || !choice || !options) in cupsGetConflicts()
93 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in cupsGetConflicts()
109 if (cptr->choice) in cupsGetConflicts()
111 cptr->choice->choice, num_options, in cupsGetConflicts()
115 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts()
167 const char *choice, /* I - Newly selected choice or @code NULL@ for none */ in cupsResolveConflicts() argument
198 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts()
212 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
[all …]
Dtestconflicts.c35 *choice; /* Current choice */ in main() local
59 choice = NULL; in main()
66 if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options)) in main()
85 if (choice) in main()
87 free(choice); in main()
88 choice = NULL; in main()
106 choice = strdup(cptr); in main()
109 ppdMarkOption(ppd, option, choice); in main()
117 if (choice) in main()
118 free(choice); in main()
Dppd-mark.c34 const char *choice);
367 const char *choice) /* I - Name of choice */ in ppdFindChoice() argument
373 if (!o || !choice) in ppdFindChoice()
376 if (choice[0] == '{' || !_cups_strncasecmp(choice, "Custom.", 7)) in ppdFindChoice()
377 choice = "Custom"; in ppdFindChoice()
380 if (!_cups_strcasecmp(c->choice, choice)) in ppdFindChoice()
410 marked ? marked->choice : "NULL")); in ppdFindMarkedChoice()
474 const char *choice) /* I - Choice name */ in ppdIsMarked() argument
489 return (!strcmp(c->choice, choice)); in ppdIsMarked()
543 const char *choice) /* I - Option name */ in ppdMarkOption() argument
[all …]
Dppd-cache.c80 ppd_choice_t *choice; /* Marked choice */ in _cupsConvertOptions() local
248 if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL) in _cupsConvertOptions()
249 keyword = _ppdCacheGetBin(pc, choice->choice); in _cupsConvertOptions()
259 if ((choice = ppdFindMarkedChoice(ppd, "ColorModel")) != NULL) in _cupsConvertOptions()
261 if (!_cups_strcasecmp(choice->choice, "Gray")) in _cupsConvertOptions()
281 else if ((choice = ppdFindMarkedChoice(ppd, "cupsPrintQuality")) != NULL) in _cupsConvertOptions()
283 if (!_cups_strcasecmp(choice->choice, "draft")) in _cupsConvertOptions()
285 else if (!_cups_strcasecmp(choice->choice, "normal")) in _cupsConvertOptions()
287 else if (!_cups_strcasecmp(choice->choice, "high")) in _cupsConvertOptions()
293 else if (pc->sides_option && (choice = ppdFindMarkedChoice(ppd, pc->sides_option)) != NULL) in _cupsConvertOptions()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DDnsNameResolverTest.java380 Map<String, Object> choice = new LinkedHashMap<String, Object>(); in maybeChooseServiceConfig_clientLanguageMatchesJava() local
383 choice.put("clientLanguage", langs); in maybeChooseServiceConfig_clientLanguageMatchesJava()
384 choice.put("serviceConfig", serviceConfig); in maybeChooseServiceConfig_clientLanguageMatchesJava()
386 assertNotNull(DnsNameResolver.maybeChooseServiceConfig(choice, new Random(), "host")); in maybeChooseServiceConfig_clientLanguageMatchesJava()
391 Map<String, Object> choice = new LinkedHashMap<String, Object>(); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo() local
394 choice.put("clientLanguage", langs); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo()
395 choice.put("serviceConfig", serviceConfig); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo()
397 assertNull(DnsNameResolver.maybeChooseServiceConfig(choice, new Random(), "host")); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo()
402 Map<String, Object> choice = new LinkedHashMap<String, Object>(); in maybeChooseServiceConfig_clientLanguageCaseInsensitive() local
405 choice.put("clientLanguage", langs); in maybeChooseServiceConfig_clientLanguageCaseInsensitive()
[all …]
/external/python/cpython3/Modules/_decimal/tests/
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(l)
[all …]
/external/toybox/kconfig/lxdialog/
Dmenubox.c102 #define print_item(index, choice, selected) \ argument
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
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 >= max_choice)) { in dialog_menu()
259 if (choice >= item_count() - max_choice / 2) in dialog_menu()
262 scroll = first_item = choice - max_choice / 2; in dialog_menu()
263 choice = choice - scroll; in dialog_menu()
[all …]
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 = item_n(); in dialog_checklist()
[all …]
/external/libcups/filter/
Drastertolabel.c153 ppd_choice_t *choice; /* Marked choice */ in StartPage() local
202 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && in StartPage()
203 strcmp(choice->choice, "Default")) in StartPage()
204 printf("\033S%.0f", atof(choice->choice) * 2.0 - 2.0); in StartPage()
245 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && in StartPage()
246 strcmp(choice->choice, "Default")) in StartPage()
248 double val = atof(choice->choice); in StartPage()
375 if ((choice = ppdFindMarkedChoice(ppd, "inPrintMode")) != NULL) in StartPage()
377 if (!strcmp(choice->choice, "Standard")) in StartPage()
379 else if (!strcmp(choice->choice, "Tear")) in StartPage()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUPropertyAliasesTest.java33 int p, v, choice, rev; in TestPropertyNames() local
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 + "=" + n); in TestPropertyNames()
83 if (choice>0) break; in TestPropertyNames()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUPropertyAliasesTest.java36 int p, v, choice, rev; in TestPropertyNames() local
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 + "=" + n); in TestPropertyNames()
86 if (choice>0) break; in TestPropertyNames()
/external/autotest/frontend/client/src/autotest/afe/
DRadioChooser.java8 public IRadioButton generateRadioButton(String groupName, String choice); in generateRadioButton() argument
27 public void addChoice(String choice) { in addChoice() argument
28 IRadioButton button = display.generateRadioButton(groupName, choice); in addChoice()
56 public void setSelectedChoice(String choice) { in setSelectedChoice() argument
57 findButtonForChoice(choice).setValue(true); in setSelectedChoice()
60 private IRadioButton findButtonForChoice(String choice) { in findButtonForChoice() argument
62 if (button.getText().equals(choice)) { in findButtonForChoice()
66 throw new RuntimeException("No such choice found: " + choice); in findButtonForChoice()
/external/python/cpython2/Lib/distutils/command/
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.lower() not in 'yn':
[all …]
/external/libxml2/test/relaxng/
DtutorA.rng10 <choice>
12 <choice>
17 </choice>
23 <choice>
28 </choice>
44 <element name="choice">
140 </choice>
147 <choice>
161 </choice>
170 <choice>
[all …]
/external/python/cpython3/Lib/distutils/command/
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.lower() not in 'yn':
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUCharacterName.java82 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()
112 public int getCharFromName(int choice, String name) in getCharFromName() argument
115 if (choice >= UCharacterNameChoice.CHAR_NAME_CHOICE_COUNT || in getCharFromName()
121 int result = getExtendedChar(name.toLowerCase(Locale.ENGLISH), choice); in getCharFromName()
130 if (choice == UCharacterNameChoice.UNICODE_CHAR_NAME || in getCharFromName()
131 choice == UCharacterNameChoice.EXTENDED_CHAR_NAME in getCharFromName()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterName.java81 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()
111 public int getCharFromName(int choice, String name) in getCharFromName() argument
114 if (choice >= UCharacterNameChoice.CHAR_NAME_CHOICE_COUNT || in getCharFromName()
120 int result = getExtendedChar(name.toLowerCase(Locale.ENGLISH), choice); in getCharFromName()
129 if (choice == UCharacterNameChoice.UNICODE_CHAR_NAME || in getCharFromName()
130 choice == UCharacterNameChoice.EXTENDED_CHAR_NAME in getCharFromName()
[all …]
/external/selinux/libselinux/src/
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()
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()
/external/libcups/systemv/
Dcupstestppd.c145 ppd_choice_t *choice; /* Standard UI option choice */ in main() local
1097 for (j = option->num_choices, choice = option->choices; in main()
1099 j --, choice ++) in main()
1106 xdpi = strtol(choice->choice, (char **)&ptr, 10); in main()
1107 if (ptr > choice->choice && xdpi > 0) in main()
1128 option->keyword, choice->choice); in main()
1267 option->choices[j].choice); in main()
1556 for (m = option->num_choices, choice = option->choices; in main()
1558 m --, choice ++) in main()
1560 size = ppdPageSize(ppd, choice->choice); in main()
[all …]
/external/python/cpython3/Tools/demo/
Dmarkov.py8 def __init__(self, histsize, choice): argument
10 self.choice = choice
25 choice = self.choice
28 seq = choice(trans[None])
32 next = choice(options)
71 m = Markov(histsize, random.choice)
/external/python/cpython2/Demo/scripts/
Dmarkov.py4 def __init__(self, histsize, choice): argument
6 self.choice = choice
21 choice = self.choice
24 seq = choice(trans[None])
28 next = choice(options)
67 m = Markov(histsize, random.choice)
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberFormatServiceShim.java78 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
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()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNumberFormatServiceShim.java79 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
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()
/external/parameter-framework/upstream/tools/clientSimulator/clientsimulator/userInteraction/
DUserInteractor.py75 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]()
/external/tensorflow/tensorflow/python/kernel_tests/
Dshape_ops_test.py153 self._testAll(np.random.choice((False, True), size=(2,)))
154 self._testAll(np.random.choice((False, True), size=(2, 3)))
155 self._testAll(np.random.choice((False, True), size=(2, 3, 5)))
156 self._testAll(np.random.choice((False, True), size=(2, 3, 5, 7)))
157 self._testAll(np.random.choice((False, True), size=(2, 3, 5, 7, 11)))
158 self._testAll(np.random.choice((False, True), size=(2, 3, 5, 7, 11, 13)))
211 choice = lambda s: np.random.choice((False, True), size=s) function
212 self._compareExpandDimsAll(choice([2]), 0)
213 self._compareExpandDimsAll(choice([2]), 1)
214 self._compareExpandDimsAll(choice([2]), -1)
[all …]

12345678910>>...42