/external/autotest/utils/ |
D | labellib_unittest.py | 56 labels = ['webcam', 'pool:suites'] 57 mapping = labellib.LabelsMapping(labels) 58 self.assertEqual(mapping.getlabels(), labels) 61 labels = ['webcam', 'pool:suites', 'pool:party'] 62 mapping = labellib.LabelsMapping(labels) 66 labels = ['ohse:tsubame', 'webcam'] 67 mapping = labellib.LabelsMapping(labels) 71 labels = ['webcam', 'exec', 'method'] 72 mapping = labellib.LabelsMapping(labels) 76 labels = ['class:protecta', 'method:metafalica', 'exec:chronicle_key'] [all …]
|
/external/python/cpython2/Lib/encodings/ |
D | idna.py | 157 labels = dots.split(input) 158 if labels and len(labels[-1])==0: 160 del labels[-1] 163 for label in labels: 178 labels = dots.split(input) 183 labels = input.split(".") 185 if labels and len(labels[-1]) == 0: 187 del labels[-1] 192 for label in labels: 206 labels = dots.split(input) [all …]
|
/external/toolchain-utils/crosperf/ |
D | machine_image_manager_unittest.py | 61 labels = [] 70 labels.append(l) 71 return labels, duts 79 labels, duts = self.create_labels_and_duts_from_pattern(inp) 80 mim = MachineImageManager(labels, duts) 86 labels = [MockLabel('l1'), MockLabel('l2'), MockLabel('l3')] 88 mim = MachineImageManager(labels, [dut]) 93 labels = [MockLabel('l1')] 95 mim = MachineImageManager(labels, duts) 100 labels = [MockLabel('l1', ['m1', 'm2']), MockLabel('l2', ['m2', 'm3']), [all …]
|
D | results_organizer_unittest.py | 78 labels = [mock_instance.label1, mock_instance.label2] 81 benchmark_runs[0] = BenchmarkRun('b1', benchmarks[0], labels[0], 1, '', '', 83 benchmark_runs[1] = BenchmarkRun('b2', benchmarks[0], labels[0], 2, '', '', 85 benchmark_runs[2] = BenchmarkRun('b3', benchmarks[0], labels[1], 1, '', '', 87 benchmark_runs[3] = BenchmarkRun('b4', benchmarks[0], labels[1], 2, '', '', 89 benchmark_runs[4] = BenchmarkRun('b5', benchmarks[1], labels[0], 1, '', '', 91 benchmark_runs[5] = BenchmarkRun('b6', benchmarks[1], labels[0], 2, '', '', 93 benchmark_runs[6] = BenchmarkRun('b7', benchmarks[1], labels[1], 1, '', '', 95 benchmark_runs[7] = BenchmarkRun('b8', benchmarks[1], labels[1], 2, '', '', 104 organized = OrganizeResults(benchmark_runs, labels, benchmarks)
|
/external/minijail/ |
D | bpf.c | 204 int bpf_resolve_jumps(struct bpf_labels *labels, struct sock_filter *filter, in bpf_resolve_jumps() argument 224 if (instr->k >= labels->count) { in bpf_resolve_jumps() 228 if (labels->labels[instr->k].location == 0xffffffff) { in bpf_resolve_jumps() 230 labels->labels[instr->k].label); in bpf_resolve_jumps() 234 labels->labels[instr->k].location - (offset + 1); in bpf_resolve_jumps() 239 if (labels->labels[instr->k].location != 0xffffffff) { in bpf_resolve_jumps() 241 labels->labels[instr->k].label); in bpf_resolve_jumps() 244 labels->labels[instr->k].location = offset; in bpf_resolve_jumps() 255 int bpf_label_id(struct bpf_labels *labels, const char *label) in bpf_label_id() argument 257 struct __bpf_label *begin = labels->labels, *end; in bpf_label_id() [all …]
|
D | syscall_filter.c | 145 unsigned int get_label_id(struct bpf_labels *labels, const char *label_str) in get_label_id() argument 147 int label_id = bpf_label_id(labels, label_str); in get_label_id() 153 unsigned int group_end_lbl(struct bpf_labels *labels, int nr, int idx) in group_end_lbl() argument 157 return get_label_id(labels, lbl_str); in group_end_lbl() 160 unsigned int success_lbl(struct bpf_labels *labels, int nr) in success_lbl() argument 164 return get_label_id(labels, lbl_str); in success_lbl() 173 struct bpf_labels *labels, int nr, int grp_idx) in compile_atom() argument 235 unsigned int id = group_end_lbl(labels, nr, grp_idx); in compile_atom() 287 struct bpf_labels *labels, in compile_policy_line() argument 381 if (compile_atom(head, comp, labels, nr, grp_idx) < 0) { in compile_policy_line() [all …]
|
/external/autotest/server/hosts/ |
D | host_info_unittest.py | 39 labels=['label1', 'label2', 'label1'], 42 labels=['label1', 'label2', 'label1'], 51 info1 = host_info.HostInfo(labels=['label']) 60 self.info.labels = ['cros-version', 'ab-version', 'testbed-version', 67 self.info.labels = ['not-at-start-cros-version:cros1', 75 self.info.labels = ['fwrw-version:fwrw1', 'fwro-version:fwro1'] 81 self.info.labels = ['cros-version:cros1', 'cros-version:cros2'] 83 self.info.labels = ['ab-version:ab1', 'ab-version:ab2'] 85 self.info.labels = ['testbed-version:tb1', 'testbed-version:tb2'] 91 self.info.labels = ['testbed-version:tb1', 'ab-version:ab1', [all …]
|
D | afe_store.py | 54 return host_info.HostInfo(host.labels, host.attributes) 69 list(set(old_info.labels) - set(new_info.labels))) 71 list(set(new_info.labels) - set(old_info.labels))) 75 def _remove_labels_on_afe(self, labels): argument 80 if not labels: 83 logging.debug('removing labels: %s', labels) 86 labels=labels) 91 def _add_labels_on_afe(self, labels): argument 96 if not labels: 99 logging.info('adding labels: %s', labels) [all …]
|
D | host_info.py | 47 def __init__(self, labels=None, attributes=None): argument 52 self.labels = labels if labels is not None else [] 114 self.labels = [ 115 label for label in self.labels if 131 for index, label in enumerate(self.labels): 133 self.labels[index] = new_version_label 136 self.labels.append(new_version_label) 151 return [label[prefix_len:] for label in self.labels 157 % (type(self).__name__, self.labels, self.attributes)) 162 return (self.labels == other.labels [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
D | test-tree-wizard.rb | 254 @wizard.visit( tree, B ) do |node, parent, child_index, labels| 266 @wizard.visit( tree, C ) do |node, parent, child_index, labels| 278 @wizard.visit( tree, B ) do |node, parent, child_index, labels| 290 @wizard.visit( tree, A ) do |node, parent, child_index, labels| 305 @wizard.visit( tree, B ) do |node, parent, child_index, labels| 317 @wizard.visit( tree, A ) do |node, parent, child_index, labels| 328 @wizard.visit(tree, '(A B)') do |node, parent, child_index, labels| 340 @wizard.visit(tree, '(A B)') do |node, parent, child_index, labels| 347 def labeled_context(node, parent, index, labels, *names) argument 348 suffix = names.map { |n| labels[n].to_s }.join('&') [all …]
|
/external/eigen/bench/ |
D | dense_solvers.cpp | 11 std::vector<std::string> labels; variable 89 labels.push_back("LLT"); in main() 90 labels.push_back("LDLT"); in main() 91 labels.push_back("PartialPivLU"); in main() 92 labels.push_back("FullPivLU"); in main() 93 labels.push_back("HouseholderQR"); in main() 94 labels.push_back("ColPivHouseholderQR"); in main() 95 labels.push_back("CompleteOrthogonalDecomposition"); in main() 96 labels.push_back("FullPivHouseholderQR"); in main() 97 labels.push_back("JacobiSVD"); in main() [all …]
|
/external/autotest/cli/ |
D | host.py | 77 def _cleanup_labels(self, labels, platform=None): argument 80 return [label for label in labels 84 return [label for label in labels 89 return labels 165 if self.labels: 166 if len(self.labels) == 1: 168 filters['labels__name__in'] = self.labels 171 filters['multiple_labels'] = self.labels 247 labels = self.execute_rpc('get_labels', host__hostname=host) 248 results.append([[stat], acls, labels, stat['attributes']]) [all …]
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/instr/ |
D | MethodInstrumenter.java | 112 final Label dflt, final Label[] labels, final IFrame frame) { in visitTableSwitchInsnWithProbes() argument 115 LabelInfo.resetDone(labels); in visitTableSwitchInsnWithProbes() 117 final Label[] newLabels = createIntermediates(labels); in visitTableSwitchInsnWithProbes() 121 insertIntermediateProbes(dflt, labels, frame); in visitTableSwitchInsnWithProbes() 126 final int[] keys, final Label[] labels, final IFrame frame) { in visitLookupSwitchInsnWithProbes() argument 129 LabelInfo.resetDone(labels); in visitLookupSwitchInsnWithProbes() 131 final Label[] newLabels = createIntermediates(labels); in visitLookupSwitchInsnWithProbes() 135 insertIntermediateProbes(dflt, labels, frame); in visitLookupSwitchInsnWithProbes() 138 private Label[] createIntermediates(final Label[] labels) { in createIntermediates() argument 139 final Label[] intermediates = new Label[labels.length]; in createIntermediates() [all …]
|
/external/autotest/server/cros/ |
D | provision.py | 168 def run_task_actions(cls, job, host, labels): argument 180 unactionable = cls._filter_unactionable_labels(labels) 185 for action_item, value in cls._actions_and_values_iter(labels): 192 def _actions_and_values_iter(cls, labels): argument 198 actionable = cls._filter_actionable_labels(labels) 208 def _filter_unactionable_labels(cls, labels): argument 215 return {label for label in labels 220 def _filter_actionable_labels(cls, labels): argument 227 return {label for label in labels if cls.acts_on(label)} 231 def partition(cls, labels): argument [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/flow/ |
D | MethodProbesAdapterTest.java | 75 Label dflt, Label[] labels, IFrame frame) { in visitTableSwitchInsnWithProbes() argument 77 Integer.valueOf(max), dflt, labels); in visitTableSwitchInsnWithProbes() 83 Label[] labels, IFrame frame) { in visitLookupSwitchInsnWithProbes() argument 84 rec("visitLookupSwitchInsnWithProbes", dflt, keys, labels); in visitLookupSwitchInsnWithProbes() 226 final Label[] labels = new Label[] { label, label }; in testVisitLookupSwitchInsn1() local 228 adapter.visitLookupSwitchInsn(label, keys, labels); in testVisitLookupSwitchInsn1() 231 expectedVisitor.visitLookupSwitchInsnWithProbes(label, keys, labels, in testVisitLookupSwitchInsn1() 245 final Label[] labels = new Label[] { label2, label }; in testVisitLookupSwitchInsn2() local 247 adapter.visitLookupSwitchInsn(label, keys, labels); in testVisitLookupSwitchInsn2() 250 expectedVisitor.visitLookupSwitchInsnWithProbes(label, keys, labels, in testVisitLookupSwitchInsn2() [all …]
|
/external/autotest/server/cros/network/ |
D | rf_switch_client_box.py | 26 self.labels = self.client_box_host.labels 27 for s in self.labels: 38 for label in self.labels: 47 labels = list(itertools.ifilter( 48 lambda x: x in host.labels, [RF_SWITCH_DUT, rf_switch_label])) 50 if len(labels) == 2:
|
/external/owasp/sanitizer/tools/ |
D | googlecode_upload.py | 59 def upload(file, project_name, user_name, password, summary, labels=None): argument 84 if labels is not None: 85 form_fields.extend([('label', l.strip()) for l in labels]) 155 def upload_find_auth(file_path, project_name, summary, labels=None, argument 195 summary, labels) 237 if options.labels: 238 labels = options.labels.split(',') 240 labels = None 243 options.summary, labels,
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/flow/ |
D | MethodProbesAdapter.java | 139 final Label[] labels) { in visitLookupSwitchInsn() argument 140 if (markLabels(dflt, labels)) { in visitLookupSwitchInsn() 141 probesVisitor.visitLookupSwitchInsnWithProbes(dflt, keys, labels, in visitLookupSwitchInsn() 144 probesVisitor.visitLookupSwitchInsn(dflt, keys, labels); in visitLookupSwitchInsn() 150 final Label dflt, final Label... labels) { in visitTableSwitchInsn() argument 151 if (markLabels(dflt, labels)) { in visitTableSwitchInsn() 153 labels, frame(1)); in visitTableSwitchInsn() 155 probesVisitor.visitTableSwitchInsn(min, max, dflt, labels); in visitTableSwitchInsn() 159 private boolean markLabels(final Label dflt, final Label[] labels) { in markLabels() argument 161 LabelInfo.resetDone(labels); in markLabels() [all …]
|
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestTreeWizard.java | 193 public void visit(Object t, Object parent, int childIndex, Map labels) { in testRepeatsVisitWithContext() 210 public void visit(Object t, Object parent, int childIndex, Map labels) { in testRepeatsVisitWithNullParentAndContext() 242 public void visit(Object t, Object parent, int childIndex, Map labels) { in testVisitPatternMultiple() 259 public void visit(Object t, Object parent, int childIndex, Map labels) { in testVisitPatternMultipleWithLabels() 262 "["+childIndex+"]"+labels.get("a")+"&"+labels.get("b")); in testVisitPatternMultipleWithLabels() 326 Map labels = new HashMap(); in testParseLabels() local 327 boolean valid = wiz.parse(t, "(%a:A %b:B %c:C)", labels); in testParseLabels() 329 assertEquals("A", labels.get("a").toString()); in testParseLabels() 330 assertEquals("B", labels.get("b").toString()); in testParseLabels() 331 assertEquals("C", labels.get("c").toString()); in testParseLabels() [all …]
|
/external/antlr/antlr-3.4/runtime/Python/unittests/ |
D | testtreewizard.py | 375 def visitor(node, parent, childIndex, labels): argument 389 def visitor(node, parent, childIndex, labels): argument 403 def visitor(node, parent, childIndex, labels): argument 417 def visitor(node, parent, childIndex, labels): argument 431 def visitor(node, parent, childIndex, labels): argument 445 def visitor(node, parent, childIndex, labels): argument 462 def visitor(node, parent, childIndex, labels): argument 478 def visitor(node, parent, childIndex, labels): argument 495 def visitor(node, parent, childIndex, labels): argument 501 labels['a'], [all …]
|
/external/dtc/tests/ |
D | delete_reinstate_multilabel.dts | 3 /* Create some nodes and properties with multiple labels */ 13 /* Delete them, and everything that's part of them, i.e. the labels */ 21 * Re-instate them. None of the old labels should come back 23 * Note: Do not add any new/extra labels here. As of the time of writing, 24 * when dtc adds labels to an object, they are added to the head of the list 25 * of labels, and this test is specifically about ensuring the correct 26 * handling of lists of labels where the first label in the list is marked as
|
/external/autotest/site_utils/ |
D | label_cleaner.py | 106 def _delete_labels(conn, labels): argument 108 labels_str = ','.join([str(l) for l in labels]) 120 def delete_labels(conn, labels, max_delete): argument 127 if not labels: 130 while labels: 132 for i in xrange(min(len(labels), max_delete)): 133 labels_to_del.add(labels.pop()) 187 labels = fetch_labels(conn, options.label, options.prefix) 188 delete_labels(conn, labels - used_labels, options.max_delete)
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/ |
D | MethodAnalyzer.java | 246 final Label dflt, final Label... labels) { in visitTableSwitchInsn() argument 247 visitSwitchInsn(dflt, labels); in visitTableSwitchInsn() 252 final Label[] labels) { in visitLookupSwitchInsn() argument 253 visitSwitchInsn(dflt, labels); in visitLookupSwitchInsn() 256 private void visitSwitchInsn(final Label dflt, final Label[] labels) { in visitSwitchInsn() argument 258 LabelInfo.resetDone(labels); in visitSwitchInsn() 261 for (final Label l : labels) { in visitSwitchInsn() 295 final Label dflt, final Label[] labels, final IFrame frame) { in visitTableSwitchInsnWithProbes() argument 296 visitSwitchInsnWithProbes(dflt, labels); in visitTableSwitchInsnWithProbes() 301 final int[] keys, final Label[] labels, final IFrame frame) { in visitLookupSwitchInsnWithProbes() argument [all …]
|
/external/autotest/frontend/afe/ |
D | frontend_test_utils.py | 29 self.labels = [models.Label.objects.create(name=name) for name in 35 host.labels.add(platform) 38 = self.labels 42 self.hosts[0].labels.add(self.label1) 43 self.hosts[1].labels.add(self.label2) 45 self.hosts[hostnum].labels.add(self.label6) 46 self.hosts[6].labels.add(self.label7) 48 self.hosts[hostnum].labels.add(self.label6) 49 self.hosts[hostnum].labels.add(self.label7)
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/ |
D | MethodLocation.java | 54 private List<Label> labels = null; field in MethodLocation 79 if (labels == null) { in getLabels() 81 labels = new ArrayList<Label>(1); in getLabels() 82 return labels; in getLabels() 86 return labels; in getLabels() 102 if (this.labels != null || other.labels != null) { in mergeInto() 108 this.labels = null; in mergeInto() 111 if (this.debugItems != null || other.labels != null) { in mergeInto()
|