/external/libcups/cups/ |
D | ppd-conflicts.c | 47 const char *choice, 72 const char *choice, /* I - Choice to test */ in cupsGetConflicts() argument 90 if (!ppd || !option || !choice || !options) in cupsGetConflicts() 97 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in cupsGetConflicts() 113 if (cptr->choice) in cupsGetConflicts() 115 cptr->choice->choice, num_options, in cupsGetConflicts() 119 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts() 171 const char *choice, /* I - Newly selected choice or @code NULL@ for none */ in cupsResolveConflicts() argument 202 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts() 216 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts() [all …]
|
D | ppd-mark.c | 38 const char *choice); 371 const char *choice) /* I - Name of choice */ in ppdFindChoice() argument 377 if (!o || !choice) in ppdFindChoice() 380 if (choice[0] == '{' || !_cups_strncasecmp(choice, "Custom.", 7)) in ppdFindChoice() 381 choice = "Custom"; in ppdFindChoice() 384 if (!_cups_strcasecmp(c->choice, choice)) in ppdFindChoice() 414 marked ? marked->choice : "NULL")); in ppdFindMarkedChoice() 478 const char *choice) /* I - Choice name */ in ppdIsMarked() argument 493 return (!strcmp(c->choice, choice)); in ppdIsMarked() 547 const char *choice) /* I - Option name */ in ppdMarkOption() argument [all …]
|
D | testconflicts.c | 41 *choice; /* Current choice */ in main() local 65 choice = NULL; in main() 72 if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options)) in main() 91 if (choice) in main() 93 free(choice); in main() 94 choice = NULL; in main() 112 choice = strdup(cptr); in main() 115 ppdMarkOption(ppd, option, choice); in main() 123 if (choice) in main() 124 free(choice); in main()
|
D | ppd-cache.c | 80 ppd_choice_t *choice; /* Marked choice */ in _cupsConvertOptions() local 246 if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL) in _cupsConvertOptions() 247 keyword = _ppdCacheGetBin(pc, choice->choice); in _cupsConvertOptions() 257 if ((choice = ppdFindMarkedChoice(ppd, "ColorModel")) != NULL) in _cupsConvertOptions() 259 if (!_cups_strcasecmp(choice->choice, "Gray")) in _cupsConvertOptions() 279 else if ((choice = ppdFindMarkedChoice(ppd, "cupsPrintQuality")) != NULL) in _cupsConvertOptions() 281 if (!_cups_strcasecmp(choice->choice, "draft")) in _cupsConvertOptions() 283 else if (!_cups_strcasecmp(choice->choice, "normal")) in _cupsConvertOptions() 285 else if (!_cups_strcasecmp(choice->choice, "high")) in _cupsConvertOptions() 291 else if (pc->sides_option && (choice = ppdFindMarkedChoice(ppd, pc->sides_option)) != NULL) in _cupsConvertOptions() [all …]
|
/external/u-boot/scripts/kconfig/tests/choice/ |
D | Kconfig | 6 choice 7 prompt "boolean choice" 11 bool "choice 0" 14 bool "choice 1" 18 choice 19 prompt "optional boolean choice" 24 bool "choice 0" 27 bool "choice 1" 31 choice 32 prompt "tristate choice" [all …]
|
D | oldask1_expected_stdout | 2 boolean choice 3 1. choice 0 (BOOL_CHOICE0) (NEW) 4 > 2. choice 1 (BOOL_CHOICE1) (NEW) 5 choice[1-2?]: 6 optional boolean choice [Y/n/?] (NEW) 7 optional boolean choice 8 > 1. choice 0 (OPT_BOOL_CHOICE0) 9 2. choice 1 (OPT_BOOL_CHOICE1) (NEW) 10 choice[1-2?]: 11 tristate choice [all …]
|
D | oldask0_expected_stdout | 2 boolean choice 3 1. choice 0 (BOOL_CHOICE0) (NEW) 4 > 2. choice 1 (BOOL_CHOICE1) (NEW) 5 choice[1-2?]: 6 optional boolean choice [N/y/?] (NEW) 7 tristate choice [M/y/?] (NEW) 8 choice 0 (TRI_CHOICE0) [N/m/?] (NEW) 9 choice 1 (TRI_CHOICE1) [N/m/?] (NEW) 10 optional tristate choice [N/m/y/?] (NEW)
|
/external/toybox/kconfig/lxdialog/ |
D | menubox.c | 102 #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 …]
|
D | checklist.c | 31 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/u-boot/scripts/kconfig/lxdialog/ |
D | menubox.c | 89 #define print_item(index, choice, selected) \ argument 92 do_print_item(menu, item_str(), choice, selected, !item_is_tag(':')); \ 176 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local 237 choice = item_n(); in dialog_menu() 240 if ((scroll <= choice) && (scroll + max_choice > choice) && in dialog_menu() 243 choice = choice - scroll; in dialog_menu() 247 if ((choice >= max_choice)) { in dialog_menu() 248 if (choice >= item_count() - max_choice / 2) in dialog_menu() 251 scroll = first_item = choice - max_choice / 2; in dialog_menu() 252 choice = choice - scroll; in dialog_menu() [all …]
|
D | checklist.c | 18 static void print_item(WINDOW * win, int choice, int selected) in print_item() argument 28 wmove(win, choice, 0); in print_item() 32 wmove(win, choice, check_x); in print_item() 39 mvwaddch(win, choice, item_x, list_item[0]); in print_item() 43 wmove(win, choice, check_x + 1); in print_item() 52 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, in print_arrows() argument 72 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows() 108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local 114 choice = item_n(); in dialog_checklist() 116 choice = item_n(); in dialog_checklist() [all …]
|
/external/python/cpython3/Modules/_decimal/tests/ |
D | randfloat.py | 131 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/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | DnsNameResolverTest.java | 535 Map<String, Object> choice = new LinkedHashMap<String, Object>(); in maybeChooseServiceConfig_clientLanguageMatchesJava() local 538 choice.put("clientLanguage", langs); in maybeChooseServiceConfig_clientLanguageMatchesJava() 539 choice.put("serviceConfig", serviceConfig); in maybeChooseServiceConfig_clientLanguageMatchesJava() 541 assertNotNull(DnsNameResolver.maybeChooseServiceConfig(choice, new Random(), "host")); in maybeChooseServiceConfig_clientLanguageMatchesJava() 546 Map<String, Object> choice = new LinkedHashMap<String, Object>(); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo() local 549 choice.put("clientLanguage", langs); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo() 550 choice.put("serviceConfig", serviceConfig); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo() 552 assertNull(DnsNameResolver.maybeChooseServiceConfig(choice, new Random(), "host")); in maybeChooseServiceConfig_clientLanguageDoesntMatchGo() 557 Map<String, Object> choice = new LinkedHashMap<String, Object>(); in maybeChooseServiceConfig_clientLanguageCaseInsensitive() local 560 choice.put("clientLanguage", langs); in maybeChooseServiceConfig_clientLanguageCaseInsensitive() [all …]
|
/external/libcups/filter/ |
D | rastertolabel.c | 158 ppd_choice_t *choice; /* Marked choice */ in StartPage() local 206 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && in StartPage() 207 strcmp(choice->choice, "Default")) in StartPage() 208 printf("\033S%.0f", atof(choice->choice) * 2.0 - 2.0); in StartPage() 249 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && in StartPage() 250 strcmp(choice->choice, "Default")) in StartPage() 252 double val = atof(choice->choice); in StartPage() 379 if ((choice = ppdFindMarkedChoice(ppd, "inPrintMode")) != NULL) in StartPage() 381 if (!strcmp(choice->choice, "Standard")) in StartPage() 383 else if (!strcmp(choice->choice, "Tear")) in StartPage() [all …]
|
/external/libxml2/test/relaxng/ |
D | tutorA.rng | 10 <choice> 12 <choice> 17 </choice> 23 <choice> 28 </choice> 44 <element name="choice"> 140 </choice> 147 <choice> 161 </choice> 170 <choice> [all …]
|
/external/python/cpython2/Lib/distutils/command/ |
D | register.py | 131 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UPropertyAliasesTest.java | 33 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/ |
D | UPropertyAliasesTest.java | 36 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/python/cpython3/Lib/distutils/command/ |
D | register.py | 130 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/autotest/frontend/client/src/autotest/afe/ |
D | RadioChooser.java | 8 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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UCharacterName.java | 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() 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/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | UCharacterName.java | 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() 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/u-boot/scripts/kconfig/tests/rand_nested_choice/ |
D | Kconfig | 1 choice 2 prompt "choice" 11 choice 12 prompt "sub choice" 21 choice 22 prompt "subsub choice"
|
/external/selinux/libselinux/src/ |
D | query_user_context.c | 15 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/python/cpython3/Tools/demo/ |
D | markov.py | 8 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)
|