Home
last modified time | relevance | path

Searched refs:cmds (Results 1 – 25 of 202) sorted by relevance

123456789

/external/clang/bindings/python/tests/cindex/
Dtest_cdb.py32 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
33 assert len(cmds) != 0
38 cmds = cdb.getAllCompileCommands()
39 assert len(cmds) == 3
55 for i in range(len(cmds)):
56 assert cmds[i].directory == expected[i]['wd']
57 assert cmds[i].filename == expected[i]['file']
58 for arg, exp in zip(cmds[i].arguments, expected[i]['line']):
65 cmds = cdb.getCompileCommands(file)
66 assert len(cmds) == 1
[all …]
/external/llvm-project/clang/bindings/python/tests/cindex/
Dtest_cdb.py48 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
49 self.assertNotEqual(len(cmds), 0)
55 cmds = cdb.getCompileCommands(str_to_path('/home/john.doe/MyProject/project.cpp'))
56 self.assertNotEqual(len(cmds), 0)
61 cmds = cdb.getAllCompileCommands()
62 self.assertEqual(len(cmds), 3)
79 for i in range(len(cmds)):
80 self.assertEqual(cmds[i].directory, expected[i]['wd'])
81 self.assertEqual(cmds[i].filename, expected[i]['file'])
82 for arg, exp in zip(cmds[i].arguments, expected[i]['line']):
[all …]
/external/skqp/src/compute/tests/groups/
Dgroups.c195 skc_styling_cmd_t cmds[3 + 1]; in groups_layers_decode() local
199 skc_styling_background_over_encoder(cmds,background); in groups_layers_decode()
201 cmds[3] = SKC_STYLING_OPCODE_SURFACE_COMPOSITE | SKC_STYLING_OPCODE_IS_FINAL; in groups_layers_decode()
205 SKC_STYLING_CMDS(cmds)); in groups_layers_decode()
244 skc_styling_cmd_t cmds[1 + 1 + 1]; in groups_layers_decode() local
246 cmds[0] = SKC_STYLING_OPCODE_COVER_NONZERO; in groups_layers_decode()
250 cmds[1] = SKC_STYLING_OPCODE_COVER_WIP_MOVE_TO_MASK; in groups_layers_decode()
251 cmds[2] = SKC_STYLING_OPCODE_COVER_MASK_INVERT | SKC_STYLING_OPCODE_IS_FINAL; in groups_layers_decode()
255 cmds[1] = SKC_STYLING_OPCODE_COVER_WIP_MOVE_TO_MASK | SKC_STYLING_OPCODE_IS_FINAL; in groups_layers_decode()
261 _countof(cmds),cmds); in groups_layers_decode()
[all …]
/external/scapy/scapy/
Dautorun.py41 def autorun_commands(cmds, my_globals=None, ignore_globals=None, verb=0): argument
53 cmds = cmds.splitlines()
54 cmds.append("") # ensure we finish multi-line commands
55 cmds.reverse()
63 l = cmds.pop()
71 if len(cmds) <= 1:
79 def autorun_get_interactive_session(cmds, **kargs): argument
93 res = autorun_commands(cmds, **kargs)
101 def autorun_get_text_interactive_session(cmds, **kargs): argument
105 s,res = autorun_get_interactive_session(cmds, **kargs)
[all …]
/external/vboot_reference/cgpt/
Dcgpt.c30 } cmds[] = { variable
49 for (i = 0; i < sizeof(cmds)/sizeof(cmds[0]); ++i) { in Usage()
50 printf(" %-15s %s\n", cmds[i].name, cmds[i].comment); in Usage()
76 for (i = 0; command && i < sizeof(cmds)/sizeof(cmds[0]); ++i) { in main()
78 if (0 == strcmp(cmds[i].name, command)) { in main()
84 else if (0 == strncmp(cmds[i].name, command, strlen(command))) { in main()
91 return cmds[match_index].fp(argc, argv); in main()
/external/skqp/src/compute/skc/
Dstyling.c102 skc_styling_cmd_t const * cmds) in skc_styling_group_enter() argument
106 styling->groups.extent[group_id].cmds.enter = styling->extras.count; in skc_styling_group_enter()
108 memcpy(styling->extras.extent + styling->extras.count,cmds,n * sizeof(*cmds)); in skc_styling_group_enter()
119 skc_styling_cmd_t const * cmds) in skc_styling_group_leave() argument
123 styling->groups.extent[group_id].cmds.leave = styling->extras.count; in skc_styling_group_leave()
125 memcpy(styling->extras.extent + styling->extras.count,cmds,n * sizeof(*cmds)); in skc_styling_group_leave()
181 skc_styling_cmd_t const * cmds) in skc_styling_group_layer() argument
187 .cmds = styling->extras.count, in skc_styling_group_layer()
191 memcpy(styling->extras.extent + styling->extras.count,cmds,n * sizeof(*cmds)); in skc_styling_group_layer()
231 skc_styling_layer_cmd_rgba_encoder(skc_styling_cmd_t * const cmds, in skc_styling_layer_cmd_rgba_encoder() argument
[all …]
/external/skqp/src/compute/skc/platforms/cl_12/
Dcomposition_cl_12.c110 struct skc_extent_phw1g_tdrNs_snap cmds; member
155 skc_extent_phw1g_tdrNs_free(runtime,&impl->cmds.extent); in skc_composition_pfn_release()
182 skc_extent_phw1g_tdrNs_snap_free(runtime,&place->cmds); in skc_composition_place_grid_pfn_dispose()
234 skc_uint const work_size = skc_extent_ring_snap_count(place->cmds.snap); in skc_composition_place_grid_pfn_execute()
241 cl(SetKernelArg(impl->kernels.place,3,SKC_CL_ARG(place->cmds.drN))); in skc_composition_place_grid_pfn_execute()
296 skc_extent_ring_checkpoint(&impl->cmds.ring); in skc_composition_snap()
299 skc_extent_phw1g_tdrNs_snap_init(impl->runtime,&impl->cmds.ring,&place->cmds); in skc_composition_snap()
303 &impl->cmds.extent, in skc_composition_snap()
304 &place->cmds, in skc_composition_snap()
336 skc_uint const count = skc_extent_ring_wip_count(&impl->cmds.ring); in skc_composition_pfn_seal()
[all …]
/external/mesa3d/src/freedreno/drm/
Dmsm_ringbuffer.c116 DECLARE_ARRAY(struct msm_cmd *, cmds);
312 struct drm_msm_gem_submit_cmd cmds[nr_cmds]; in msm_submit_flush() local
329 cmds[i].type = MSM_SUBMIT_CMD_IB_TARGET_BUF; in msm_submit_flush()
330 cmds[i].submit_idx = in msm_submit_flush()
332 cmds[i].submit_offset = msm_ring->offset; in msm_submit_flush()
333 cmds[i].size = offset_bytes(ring->cur, ring->start); in msm_submit_flush()
334 cmds[i].pad = 0; in msm_submit_flush()
335 cmds[i].nr_relocs = msm_ring->cmd->nr_relocs; in msm_submit_flush()
336 cmds[i].relocs = VOID2U64(relocs); in msm_submit_flush()
342 cmds[i].type = MSM_SUBMIT_CMD_BUF; in msm_submit_flush()
[all …]
Dmsm_ringbuffer_sp.c94 DECLARE_ARRAY(struct msm_cmd_sp, cmds);
241 struct drm_msm_gem_submit_cmd cmds[primary->u.nr_cmds]; in msm_submit_sp_flush() local
244 cmds[i].type = MSM_SUBMIT_CMD_BUF; in msm_submit_sp_flush()
245 cmds[i].submit_idx = msm_submit_append_bo(msm_submit, in msm_submit_sp_flush()
246 primary->u.cmds[i].ring_bo); in msm_submit_sp_flush()
247 cmds[i].submit_offset = primary->offset; in msm_submit_sp_flush()
248 cmds[i].size = primary->u.cmds[i].size; in msm_submit_sp_flush()
249 cmds[i].pad = 0; in msm_submit_sp_flush()
250 cmds[i].nr_relocs = 0; in msm_submit_sp_flush()
265 req.cmds = VOID2U64(cmds), in msm_submit_sp_flush()
[all …]
/external/igt-gpu-tools/tools/null_state_gen/
Dintel_batchbuffer.c104 batch->cmds = calloc(1, sizeof(struct bb_area)); in intel_batchbuffer_create()
105 if (batch->cmds == NULL) { in intel_batchbuffer_create()
112 free(batch->cmds); in intel_batchbuffer_create()
138 for (i = 0; i < batch->cmds->num_items; i++) in reloc_exists()
139 if ((batch->cmds->item[i].type == RELOC || in reloc_exists()
140 batch->cmds->item[i].type == RELOC_STATE) && in reloc_exists()
154 bb_area_align(batch->cmds, align); in intel_batch_cmd_align()
164 return bb_area_items(batch->cmds); in intel_batch_num_cmds()
174 return bb_area_get(batch->cmds, i); in intel_batch_cmd_get()
236 batch->cmds_end_offset = bb_area_used(batch->cmds) - 4; in intel_batch_relocate_state()
[all …]
Dintel_null_state_gen.c51 unsigned long cmds; in print_state() local
63 for (i = 0; i < batch->cmds->num_items; i++) { in print_state()
83 cmds = i + 1; in print_state()
101 fprintf(stderr, "Commands %lu (%lu bytes)\n", cmds, cmds * 4); in print_state()
103 fprintf(stderr, "Total %lu (%lu bytes)\n", batch->cmds->num_items, batch->cmds->num_items * 4); in print_state()
Dintel_batchbuffer.h64 struct bb_area *cmds; member
75 #define OUT_BATCH(d) bb_area_emit(batch->cmds, d, CMD, #d)
76 #define OUT_BATCH_STATE_OFFSET(d) bb_area_emit(batch->cmds, d, STATE_OFFSET, #d)
77 #define OUT_RELOC(batch, read_domain, write_domain, d) bb_area_emit(batch->cmds, d, RELOC, #d)
78 #define OUT_RELOC_STATE(batch, read_domain, write_domain, d) bb_area_emit(batch->cmds, d, RELOC_STA…
/external/skia/modules/canvaskit/tests/
Dpath.spec.js70 const cmds = path.toCmds(); constant
71 expect(cmds).toBeTruthy();
74 expect(cmds.length).toBe(6);
75 expect(cmds).toEqual([[CanvasKit.MOVE_VERB, 205, 5],
93 const cmds = path.toCmds(); constant
94 expect(cmds).toBeTruthy();
95 expect(cmds).toEqual([[CanvasKit.MOVE_VERB, 15, 15],
106 const cmds = [[CanvasKit.MOVE_VERB, 205, 5], variable
112 const path = CanvasKit.Path.MakeFromCmds(cmds);
140 let cmds = path.toCmds();
[all …]
/external/skia/modules/pathkit/tests/
Dsvg.spec.js8 let cmds = path.toCmds();
9 expect(cmds).toBeTruthy();
12 expect(cmds.length).toBe(6);
13 expect(cmds).toEqual([[PathKit.MOVE_VERB, 205, 5],
26 let cmds = [[PathKit.MOVE_VERB, 205, 5],
32 let path = PathKit.FromCmds(cmds);
44 let cmds = [[PathKit.MOVE_VERB, "0x15e80300", "0x400004dc"], // 9.37088e-26f, 2.0003f
50 let path = PathKit.FromCmds(cmds);
/external/autotest/client/profilers/cmdprofile/
Dcmdprofile.py22 def initialize(self, cmds=['ps'], interval=60, outputfile='cmdprofile', argument
30 elif outputfiles and len(outputfiles) != len(cmds):
34 (len(outputfiles), len(cmds)))
37 self.cmds = cmds
42 self.outputfiles = [outputfile] * len(cmds)
51 for cmd, outputfile in zip(self.cmds, self.outputfiles):
/external/skqp/modules/pathkit/tests/
Dsvg.spec.js24 let cmds = path.toCmds();
25 expect(cmds).toBeTruthy();
28 expect(cmds.length).toBe(6);
29 expect(cmds).toEqual([[PathKit.MOVE_VERB, 205, 5],
42 let cmds = [[PathKit.MOVE_VERB, 205, 5],
48 let path = PathKit.FromCmds(cmds);
60 let cmds = [[PathKit.MOVE_VERB, "0x15e80300", "0x400004dc"], // 9.37088e-26f, 2.0003f
66 let path = PathKit.FromCmds(cmds);
/external/deqp-deps/amber/src/vkscript/
Dcommand_parser_test.cc40 auto& cmds = cp.Commands(); in TEST_F() local
41 ASSERT_EQ(3U, cmds.size()); in TEST_F()
42 ASSERT_TRUE(cmds[0]->IsDrawRect()); in TEST_F()
44 auto* draw_cmd = cmds[0]->AsDrawRect(); in TEST_F()
52 ASSERT_TRUE(cmds[1]->IsClearColor()); in TEST_F()
54 auto* clear_cmd = cmds[1]->AsClearColor(); in TEST_F()
60 ASSERT_TRUE(cmds[2]->IsClear()); in TEST_F()
78 auto& cmds = cp.Commands(); in TEST_F() local
79 ASSERT_EQ(1U, cmds.size()); in TEST_F()
80 ASSERT_TRUE(cmds[0]->IsDrawRect()); in TEST_F()
[all …]
/external/skqp/modules/pathkit/
Dpathkit_wasm_bindings.cpp58 JSArray cmds = emscripten::val::array(); in ToCmds() local
60 VisitPath(path, [&cmds](SkPath::Verb verb, const SkPoint pts[4], SkPath::RawIter iter) { in ToCmds()
90 cmds.call<void>("push", cmd); in ToCmds()
92 return cmds; in ToCmds()
106 const auto* cmds = reinterpret_cast<const float*>(cptr); in FromCmds() local
118 switch (sk_float_floor2int(cmds[i++])) { in FromCmds()
121 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
126 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
131 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
132 x2 = cmds[i++], y2 = cmds[i++]; in FromCmds()
[all …]
/external/brotli/c/enc/
Dblock_splitter.c40 static size_t CountLiterals(const Command* cmds, const size_t num_commands) { in CountLiterals() argument
45 total_length += cmds[i].insert_len_; in CountLiterals()
50 static void CopyLiteralsToByteArray(const Command* cmds, in CopyLiteralsToByteArray() argument
60 size_t insert_len = cmds[i].insert_len_; in CopyLiteralsToByteArray()
72 from_pos = (from_pos + insert_len + CommandCopyLen(&cmds[i])) & mask; in CopyLiteralsToByteArray()
123 const Command* cmds, in BrotliSplitBlock() argument
133 size_t literals_count = CountLiterals(cmds, num_commands); in BrotliSplitBlock()
137 CopyLiteralsToByteArray(cmds, num_commands, data, pos, mask, literals); in BrotliSplitBlock()
155 insert_and_copy_codes[i] = cmds[i].cmd_prefix_; in BrotliSplitBlock()
175 const Command* cmd = &cmds[i]; in BrotliSplitBlock()
/external/skia/modules/pathkit/
Dpathkit_wasm_bindings.cpp49 JSArray cmds = emscripten::val::array(); in ToCmds() local
77 cmds.call<void>("push", cmd); in ToCmds()
79 return cmds; in ToCmds()
93 const auto* cmds = reinterpret_cast<const float*>(cptr); in FromCmds() local
105 switch (sk_float_floor2int(cmds[i++])) { in FromCmds()
108 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
113 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
118 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
119 x2 = cmds[i++], y2 = cmds[i++]; in FromCmds()
124 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
[all …]
/external/libdrm/freedreno/msm/
Dmsm_ringbuffer.c67 DECLARE_ARRAY(struct drm_msm_gem_submit_cmd, cmds);
75 DECLARE_ARRAY(struct msm_cmd *, cmds);
280 cmd = &msm_ring->submit.cmds[i]; in get_cmd()
292 i = APPEND(&msm_ring->submit, cmds); in get_cmd()
293 APPEND(msm_ring, cmds); in get_cmd()
294 msm_ring->cmds[i] = target_cmd; in get_cmd()
295 cmd = &msm_ring->submit.cmds[i]; in get_cmd()
344 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in flush_reset()
404 struct drm_msm_gem_submit_cmd *cmd = &msm_ring->submit.cmds[i]; in dump_submit()
444 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in handle_stateobj_relocs()
[all …]
/external/autotest/client/site_tests/cellular_ModemControl/
Dcellular_ModemControl.py161 cmds = self.PickRandomCommands()
162 logging.info('Enable with %s' % cmds)
163 cmds.Enable()
166 cmds = self.PickRandomCommands()
167 logging.info('Disable with %s' % cmds)
168 cmds.Disable()
171 cmds = self.PickRandomCommands()
172 logging.info('Connect with %s' % cmds)
173 cmds.Connect(**kwargs)
176 cmds = self.PickRandomCommands()
[all …]
/external/icu/icu4c/source/python/icutools/databuilder/renderers/
Dmakefile.py63 if len(rule.cmds) == 0:
69 RULE_LINES = "\n".join("\t%s" % cmd for cmd in rule.cmds)
100 cmds = [
118 cmds = ["cp %s %s" % (
163 cmds = [
178 cmds = []
196 cmds = [cmd]
207 cmds = [cmd]
240 cmds = [cmd]
/external/selinux/sandbox/
Dsandbox377 self.__options, cmds = parser.parse_args()
398 if len(cmds) > 0:
408 if len(cmds) == 0:
410 cmds[0] = fullpath(cmds[0])
411 if not os.access(cmds[0], os.X_OK):
412 self.usage(_("%s is not an executable") % cmds[0])
414 self.__cmds = cmds
416 for f in cmds:
451 cmds = [SEUNSHARE, "-Z", self.__execcon]
453 cmds.append('-C')
[all …]
/external/iproute2/tipc/
Dpeer.c67 const struct cmd cmds[] = { in cmd_peer_rm() local
72 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer_rm()
87 const struct cmd cmds[] = { in cmd_peer() local
92 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer()

123456789