/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/ |
D | name.py | 103 def _validate_labels(labels): argument 111 l = len(labels) 115 for label in labels: 139 def __init__(self, labels): argument 145 super(Name, self).__setattr__('labels', tuple(labels)) 146 _validate_labels(self.labels) 156 return len(self.labels) > 0 and self.labels[-1] == '' 163 return len(self.labels) > 0 and self.labels[0] == '*' 171 for label in self.labels: 200 l1 = len(self.labels) [all …]
|
D | reversename.py | 56 labels = list(name.labels) 57 labels.reverse() 58 text = '.'.join(labels) 63 labels = list(name.labels) 64 labels.reverse() 67 l = len(labels) 69 parts.append(''.join(labels[i:i+4]))
|
/external/chromium-trace/catapult/third_party/graphy/graphy/ |
D | formatters.py | 37 labels = [] 40 labels.append('') 42 labels.append(series.label) 45 chart._legend_labels = labels 138 if len(axis.labels) <= 1: # Nothing to adjust 143 maximum_possible_spacing = (axis.max - axis.min) / (len(axis.labels) - 1) 147 labels = [list(x) for x in zip(axis.label_positions, axis.labels)] 148 labels = sorted(labels, reverse=True) 151 for i in range(1, len(labels)): 152 if labels[i - 1][0] - labels[i][0] < minimum_label_spacing: [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/asm/tree/ |
D | LookupSwitchInsnNode.java | 62 public List labels; field in LookupSwitchInsnNode 75 final LabelNode[] labels) in LookupSwitchInsnNode() argument 80 this.labels = new ArrayList(labels == null ? 0 : labels.length); in LookupSwitchInsnNode() 86 if (labels != null) { in LookupSwitchInsnNode() 87 this.labels.addAll(Arrays.asList(labels)); in LookupSwitchInsnNode() 100 Label[] labels = new Label[this.labels.size()]; in accept() local 101 for (int i = 0; i < labels.length; ++i) { in accept() 102 labels[i] = ((LabelNode) this.labels.get(i)).getLabel(); in accept() 104 mv.visitLookupSwitchInsn(dflt.getLabel(), keys, labels); in accept() local 107 public AbstractInsnNode clone(final Map labels) { in clone() argument [all …]
|
D | TableSwitchInsnNode.java | 67 public List labels; field in TableSwitchInsnNode 82 final LabelNode[] labels) in TableSwitchInsnNode() argument 88 this.labels = new ArrayList(); in TableSwitchInsnNode() 89 if (labels != null) { in TableSwitchInsnNode() 90 this.labels.addAll(Arrays.asList(labels)); in TableSwitchInsnNode() 99 Label[] labels = new Label[this.labels.size()]; in accept() local 100 for (int i = 0; i < labels.length; ++i) { in accept() 101 labels[i] = ((LabelNode) this.labels.get(i)).getLabel(); in accept() 103 mv.visitTableSwitchInsn(min, max, dflt.getLabel(), labels); in accept() 106 public AbstractInsnNode clone(final Map labels) { in clone() argument [all …]
|
/external/autotest/contrib/ |
D | crbug_crawler.py | 66 def __init__(self, comment='', labels='', status=''): argument 68 self.labels = labels if labels else [] 74 if self.labels: 75 msg = '%s labels: %s' % (msg, self.labels) 106 self.present[issue_id].labels, 123 labels=old_issue.labels, status=old_issue.status) 139 label_update=update.labels, 192 for label in issue.labels: 252 def filter_labels(issues, labels): argument 261 if not labels: [all …]
|
/external/minijail/ |
D | bpf.c | 187 int bpf_resolve_jumps(struct bpf_labels *labels, in bpf_resolve_jumps() argument 204 if (labels->labels[filter->k].location == 0xffffffff) { in bpf_resolve_jumps() 206 labels->labels[filter->k].label); in bpf_resolve_jumps() 209 filter->k = labels->labels[filter->k].location - in bpf_resolve_jumps() 215 if (labels->labels[filter->k].location != 0xffffffff) { in bpf_resolve_jumps() 217 labels->labels[filter->k].label); in bpf_resolve_jumps() 220 labels->labels[filter->k].location = insn; in bpf_resolve_jumps() 231 int bpf_label_id(struct bpf_labels *labels, const char *label) in bpf_label_id() argument 233 struct __bpf_label *begin = labels->labels, *end; in bpf_label_id() 235 if (labels->count == 0) { in bpf_label_id() [all …]
|
D | syscall_filter.c | 134 unsigned int get_label_id(struct bpf_labels *labels, const char *label_str) in get_label_id() argument 136 int label_id = bpf_label_id(labels, label_str); in get_label_id() 142 unsigned int group_end_lbl(struct bpf_labels *labels, int nr, int idx) in group_end_lbl() argument 146 return get_label_id(labels, lbl_str); in group_end_lbl() 149 unsigned int success_lbl(struct bpf_labels *labels, int nr) in success_lbl() argument 153 return get_label_id(labels, lbl_str); in success_lbl() 157 struct bpf_labels *labels, int nr, int group_idx) in compile_atom() argument 194 unsigned int id = group_end_lbl(labels, nr, group_idx); in compile_atom() 240 unsigned int entry_lbl_id, struct bpf_labels *labels) in compile_section() argument 324 if (compile_atom(head, comp, labels, nr, group_idx) < 0) in compile_section() [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/autotest/cli/ |
D | site_host.py | 36 locked=False, lock_reason='', labels=[], acls=[], argument 66 obj.labels = labels 85 labels = set(self.labels) 86 if host_info.labels: 87 labels.update(host_info.labels) 93 labels.add(platform) 95 if len(labels): 96 self.execute_rpc('host_add_labels', id=host, labels=list(labels)) 149 labels_to_check_and_create = self.labels[:] 151 labels_to_check_and_create = (host_info.labels + [all …]
|
D | host.py | 73 def _cleanup_labels(self, labels, platform=None): argument 76 return [label for label in labels 80 return [label for label in labels 85 return labels 160 if self.labels: 161 if len(self.labels) == 1: 163 filters['labels__name__in'] = self.labels 166 filters['multiple_labels'] = self.labels 236 labels = self.execute_rpc('get_labels', host__hostname=host) 237 results.append([[stat], acls, labels, stat['attributes']]) [all …]
|
/external/autotest/frontend/afe/ |
D | frontend_test_utils.py | 27 self.labels = [models.Label.objects.create(name=name) for name in 33 host.labels.add(platform) 40 self.label3 = self.labels[2] 43 self.label4 = self.labels[3] 46 self.label5 = self.labels[4] 49 self.hosts[0].labels.add(self.labels[0]) # label1 50 self.hosts[1].labels.add(self.labels[1]) # label2 51 self.label6 = self.labels[5] 52 self.label7 = self.labels[6] 53 self.label8 = self.labels[7] [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/chromium-trace/catapult/telemetry/telemetry/story/ |
D | story.py | 29 def __init__(self, shared_state_class, name='', labels=None, argument 47 if labels is None: 48 labels = set([]) 49 elif isinstance(labels, list): 50 labels = set(labels) 52 assert isinstance(labels, set) 53 self._labels = labels 62 def labels(self): member in Story
|
/external/opencv3/modules/ml/test/ |
D | test_emknearestkmeans.cpp | 77 void generateData( Mat& data, Mat& labels, const vector<int>& sizes, const Mat& _means, const vecto… in generateData() argument 87 labels.create( data.rows, 1, labelType ); in generateData() 107 labels.at<float>(p, 0) = (float)l; in generateData() 109 labels.at<int>(p, 0) = l; in generateData() 137 bool getLabelsMap( const Mat& labels, const vector<int>& sizes, vector<int>& labelsMap, bool checkC… in getLabelsMap() argument 143 assert( !labels.empty() ); in getLabelsMap() 144 assert( labels.total() == total && (labels.cols == 1 || labels.rows == 1)); in getLabelsMap() 145 assert( labels.type() == CV_32SC1 || labels.type() == CV_32FC1 ); in getLabelsMap() 147 bool isFlt = labels.type() == CV_32FC1; in getLabelsMap() 158 int lbl = isFlt ? (int)labels.at<float>(i) : labels.at<int>(i); in getLabelsMap() [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/site_utils/ |
D | host_label_utils.py | 33 def get_all_boards(labels=None): argument 42 host_labels = get_host_labels(labels=labels) 43 board_labels = [[label[6:] for label in labels 45 for labels in host_labels.values()] 50 def get_host_labels(days_back=0, hostname=None, labels=None): argument 84 if labels: 85 for label in labels: 110 'labels': [label.name for label in host.labels.all()], 158 options.labels)
|
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/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/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/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/analysis/ |
D | MethodAnalyzer.java | 180 final Label dflt, final Label... labels) { in visitTableSwitchInsn() argument 181 visitSwitchInsn(dflt, labels); in visitTableSwitchInsn() 186 final Label[] labels) { in visitLookupSwitchInsn() argument 187 visitSwitchInsn(dflt, labels); in visitLookupSwitchInsn() 190 private void visitSwitchInsn(final Label dflt, final Label[] labels) { in visitSwitchInsn() argument 192 LabelInfo.resetDone(labels); in visitSwitchInsn() 195 for (final Label l : labels) { in visitSwitchInsn() 229 final Label dflt, final Label[] labels, final IFrame frame) { in visitTableSwitchInsnWithProbes() argument 230 visitSwitchInsnWithProbes(dflt, labels); in visitTableSwitchInsnWithProbes() 235 final int[] keys, final Label[] labels, final IFrame frame) { in visitLookupSwitchInsnWithProbes() argument [all …]
|
/external/chromium-trace/catapult/dashboard/dashboard/ |
D | file_bug.py | 70 labels = self.request.get_all('label') 80 self._CreateBug(summary, description, labels, components, keys) 93 labels, components = _FetchLabelsAndComponents(alert_keys) 99 'labels': labels, 104 def _CreateBug(self, summary, description, labels, components, urlsafe_keys): argument 122 labels.append(milestone_label) 136 summary, description, labels=labels, components=components, owner=owner) 185 labels = set(_DEFAULT_LABELS) 192 labels.add('Restrict-View-Google') 199 labels.add(item) [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/opencv3/samples/python2/ |
D | digits_adjust.py | 36 def cross_validate(model_class, params, samples, labels, kfold = 3, pool = None): argument 45 train_samples, train_labels = samples[train_idx], labels[train_idx] 46 test_samples, test_labels = samples[test_idx], labels[test_idx] 77 digits, labels = load_digits(DIGITS_FN) 79 digits, labels = digits[shuffle], labels[shuffle] 82 return samples, labels 108 samples, labels = self.get_dataset() 110 score = cross_validate(SVM, params, samples, labels) 131 samples, labels = self.get_dataset() 132 err = cross_validate(KNearest, dict(k=k), samples, labels)
|