/external/python/parse_type/parse_type/ |
D | builder.py | 120 def _normalize_choices(choices, transform): argument 123 choices = [transform(value) for value in choices] 125 choices = list(choices) 126 return choices 129 def make_choice(cls, choices, transform=None, strict=None): argument 142 choices = cls._normalize_choices(choices, transform) 149 if strict and text not in convert_choice.choices: 150 values = ", ".join(convert_choice.choices) 153 convert_choice.pattern = r"|".join(choices) 154 convert_choice.choices = choices [all …]
|
/external/libcups/cups/ |
D | ppd-emit.c | 55 ppd_choice_t ***choices) /* O - Pointers to choices */ in ppdCollect() argument 57 return (ppdCollect2(ppd, section, 0.0, choices)); in ppdCollect() 75 ppd_choice_t ***choices) /* O - Pointers to choices */ in ppdCollect2() argument 86 ppd, section, min_order, choices)); in ppdCollect2() 88 if (!ppd || !choices) in ppdCollect2() 90 if (choices) in ppdCollect2() 91 *choices = NULL; in ppdCollect2() 104 *choices = NULL; in ppdCollect2() 110 *choices = NULL; in ppdCollect2() 208 *choices = collect; in ppdCollect2() [all …]
|
/external/llvm-project/llvm/utils/ |
D | abtest.py | 95 def check_sanity(choices, perform_test): argument 97 all_a = {name: a_b[0] for name, a_b in choices} 104 all_b = {name: a_b[1] for name, a_b in choices} 111 def check_sequentially(choices, perform_test): argument 113 all_a = {name: a_b[0] for name, a_b in choices} 115 for name, a_b in sorted(choices): 118 announce_test("checking %s [%d/%d]" % (name, n, len(choices))) 126 def check_bisect(choices, perform_test): argument 128 if len(choices) == 0: 131 choice_map = dict(choices) [all …]
|
/external/python/cpython2/Demo/tkinter/matt/ |
D | menu-all-types-of-entries.py | 110 Cascade_button.menu.choices = Menu(Cascade_button.menu) 113 Cascade_button.menu.choices.weirdones = Menu(Cascade_button.menu.choices) 116 Cascade_button.menu.choices.weirdones.add_command(label='avacado') 117 Cascade_button.menu.choices.weirdones.add_command(label='belgian endive') 118 Cascade_button.menu.choices.weirdones.add_command(label='beefaroni') 121 Cascade_button.menu.choices.add_command(label='Chocolate') 122 Cascade_button.menu.choices.add_command(label='Vanilla') 123 Cascade_button.menu.choices.add_command(label='TuttiFruiti') 124 Cascade_button.menu.choices.add_command(label='WopBopaLoopBapABopBamBoom') 125 Cascade_button.menu.choices.add_command(label='Rocky Road') [all …]
|
/external/llvm-project/libcxx/utils/libcxx/test/ |
D | params.py | 42 Parameter(name='std', choices=_allStandards, type=str, 50 Parameter(name='enable_exceptions', choices=[True, False], type=bool, default=True, 57 Parameter(name='enable_rtti', choices=[True, False], type=bool, default=True, 64 Parameter(name='stdlib', choices=['libc++', 'libstdc++', 'msvc'], type=str, default='libc++', 70 Parameter(name='enable_warnings', choices=[True, False], type=bool, default=True, 76 Parameter(name='use_system_cxx_lib', choices=[True, False], type=bool, default=False, 89 Parameter(name='enable_filesystem', choices=[True, False], type=bool, default=True, 95 Parameter(name='enable_experimental', choices=[True, False], type=bool, default=False, 102 Parameter(name='long_tests', choices=[True, False], type=bool, default=True, 108 Parameter(name='enable_debug_tests', choices=[True, False], type=bool, default=True,
|
/external/libdrm/ |
D | meson_options.txt | 25 choices : ['true', 'false', 'auto'], 32 choices : ['true', 'false', 'auto'], 39 choices : ['true', 'false', 'auto'], 46 choices : ['true', 'false', 'auto'], 53 choices : ['true', 'false', 'auto'], 60 choices : ['true', 'false', 'auto'], 67 choices : ['true', 'false', 'auto'], 74 choices : ['true', 'false', 'auto'], 81 choices : ['true', 'false', 'auto'], 88 choices : ['true', 'false', 'auto'], [all …]
|
/external/mesa3d/ |
D | meson_options.txt | 25 choices : [ 41 choices : ['auto', 'true', 'false', 'disabled', 'enabled'], 48 choices : ['auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'], 67 choices : [ 84 choices : ['auto', 'true', 'false', 'enabled', 'disabled'], 97 choices : ['auto', 'true', 'false', 'enabled', 'disabled'], 110 choices : ['auto', 'disabled', 'bellagio', 'tizonia'], 123 choices : ['auto', 'true', 'false', 'enabled', 'disabled'], 136 choices : ['auto', 'true', 'false', 'enabled', 'disabled'], 148 choices : ['icd', 'standalone', 'disabled'], [all …]
|
/external/libcups/ppdc/ |
D | ppdc-option.cxx | 35 choices = new ppdcArray(); in ppdcOption() 58 choices = new ppdcArray(o->choices); in ppdcOption() 75 choices->release(); in ~ppdcOption() 89 for (c = (ppdcChoice *)choices->first(); c; c = (ppdcChoice *)choices->next()) in find_choice()
|
/external/mesa3d/bin/ |
D | meson-options.py | 44 choices = '[' + ', '.join(["'" + v + "'" for v in value.choices]) + ']' variable 48 "You can set it to any one of those values: " + choices) 50 choices = '[' + ', '.join(["'" + v + "'" for v in value.choices]) + ']' variable 55 "You can set it to one or more of those values: " + choices)
|
/external/python/cpython3/Lib/test/ |
D | test_random.py | 238 choices = self.gen.choices 246 choices(data, k=5), 247 choices(data, range(4), k=5), 248 choices(k=5, population=data, weights=range(4)), 249 choices(k=5, population=data, cum_weights=range(4)), 257 choices(2) 259 self.assertEqual(choices(data, k=0), []) # k == 0 260 …self.assertEqual(choices(data, k=-1), []) # negative k behaves like ``[0] *… 262 choices(data, k=2.5) # k is a float 264 … self.assertTrue(set(choices(str_data, k=5)) <= set(str_data)) # population is a string sequence [all …]
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_adjust_selection_controls.cpp | 52 std::vector<uint32_t> choices; in Apply() local 59 choices.push_back(control); in Apply() 65 block.id(), choices[GetFuzzerContext()->RandomIndex(choices)]); in Apply()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_adjust_selection_controls.cpp | 52 std::vector<uint32_t> choices; in Apply() local 59 choices.push_back(control); in Apply() 65 block.id(), choices[GetFuzzerContext()->RandomIndex(choices)]); in Apply()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | VettingViewer.java | 141 …public static <T extends Appendable> T appendDisplay(Set<Choice> choices, String htmlMessage, T ta… in appendDisplay() argument 144 for (Choice item : choices) { in appendDisplay() 190 public static Appendable appendRowStyles(Set<Choice> choices, Appendable target) { in appendRowStyles() argument 193 for (Choice item : choices) { in appendRowStyles() 481 …public void generateHtmlErrorTables(Appendable output, EnumSet<Choice> choices, String localeID, T… in generateHtmlErrorTables() argument 501 …FileInfo fileInfo = new FileInfo().getFileInfo(sourceFile, baselineFile, sorted, choices, localeID… in generateHtmlErrorTables() 505 writeTables(output, sourceFile, baselineFile, sorted, choices, fileInfo, quick); in generateHtmlErrorTables() 521 …<SectionId, PageId>, WritingInfo> generateFileInfoReview(EnumSet<Choice> choices, String localeID,… in generateFileInfoReview() argument 529 new FileInfo().getFileInfo(sourceFile, baselineFile, sorted, choices, localeID, user, in generateFileInfoReview() 551 EnumSet<Choice> choices, String localeID, in getFileInfo() argument [all …]
|
/external/llvm-project/libcxx/test/libcxx/selftest/dsl/ |
D | dsl.sh.py | 338 …self.assertRaises(ValueError, lambda: dsl.Parameter(name='', choices=['c++03'], type=str, help='',… 341 …self.assertRaises(ValueError, lambda: dsl.Parameter(name='std', choices=[], type=str, help='', act… 344 … param = dsl.Parameter(name='std', choices=['c++03'], type=str, help='', actions=lambda _: []) 348 … param = dsl.Parameter(name='std', choices=['c++03'], type=str, help='', actions=lambda _: []) 352 param = dsl.Parameter(name='std', choices=['c++03'], type=str, help='', default='c++03', 360 param = dsl.Parameter(name='std', choices=['c++03'], type=str, help='', 369 … param = dsl.Parameter(name='std', choices=['c++03', 'c++11'], type=str, default='c++03', help='', 379 … param = dsl.Parameter(name='std', choices=['c++03', 'c++11'], type=str, default='c++03', help='', 390 param = dsl.Parameter(name='std', choices=['c++03', 'c++11'], type=str, help='', 399 param = dsl.Parameter(name='std', choices=['c++03'], type=str, help='', [all …]
|
/external/libcups/templates/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
/external/libcups/templates/pt_BR/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
/external/libcups/templates/ru/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
/external/libcups/templates/da/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
/external/libcups/templates/es/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
/external/libcups/templates/ja/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
D | option-boolean.tmpl | 4 {[choices]<INPUT TYPE="RADIO" NAME="{keyword-1}" ID="{keyword-1}" {choices={defchoice-1}?CHECKED:} …
|
/external/libcups/templates/de/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
D | option-boolean.tmpl | 4 {[choices]<INPUT TYPE="RADIO" NAME="{keyword-1}" ID="{keyword-1}" {choices={defchoice-1}?CHECKED:} …
|
/external/libcups/templates/fr/ |
D | option-pickmany.tmpl | 4 {[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/benchmarks/ |
D | gen_synthetic_protos.py | 47 def choices(k): function 49 return random.choices(population=population, weights=weights, k=k) 75 for field in choices(100): 88 for field in choices(200):
|