Lines Matching refs:attribute
48 * Gathers statistics about attribute usage in layout files. This is how the "topAttrs"
67 /** Map from view id to map from attribute to frequency count */
92 System.err.println("computes statistics about attribute frequencies.");
255 Node attribute = attributes.item(i);
256 String name = attribute.getNodeName();
297 Node attribute = attributes.item(i);
298 String name = attribute.getNodeName();
365 System.out.println(" Rank Count Share Attribute");
379 System.out.println(" Rank Count Share Attribute");
432 percentage, usage.attribute);
444 String name = usage.attribute;
498 // It's a layout attribute
561 // System.out.println("Only found *one* usage of " + usage.attribute);
564 // System.out.println("Only found " + usage.count + " usage of " + usage.attribute);
567 String attribute = usage.attribute;
568 int index = attribute.indexOf(':');
569 if (index == -1 || attribute.startsWith("android:")) {
570 Usage merged = mergedUsages.get(attribute);
572 merged = new Usage(attribute);
574 mergedUsages.put(attribute, merged);
583 String attribute = usage.attribute;
585 System.out.println("Only found " + usage.count + " usage of " + usage.attribute);
588 int index = attribute.indexOf(':');
590 attribute = attribute.substring(index + 1); // +1: skip ':'
592 keys.add(attribute);
599 for (String attribute : sorted) {
600 System.out.println(attribute);
607 public String attribute;
611 public Usage(String attribute) {
613 this.attribute = attribute;
629 return attribute.compareTo(o.attribute);
635 return attribute + ": " + count;
642 result = prime * result + ((attribute == null) ? 0 : attribute.hashCode());
655 if (attribute == null) {
656 if (other.attribute != null)
658 } else if (!attribute.equals(other.attribute))