Home
last modified time | relevance | path

Searched refs:compareTo (Results 1 – 25 of 49) sorted by relevance

12

/external/jdiff/src/jdiff/
DAPIHandler.java77 if (localName.compareTo("api") == 0) { in startElement()
81 } else if (localName.compareTo("package") == 0) { in startElement()
85 } else if (localName.compareTo("class") == 0) { in startElement()
90 if (attributes.getValue("abstract").compareTo("true") == 0) in startElement()
93 } else if (localName.compareTo("interface") == 0) { in startElement()
98 if (attributes.getValue("abstract").compareTo("true") == 0) in startElement()
101 } else if (localName.compareTo("implements") == 0) { in startElement()
104 } else if (localName.compareTo("constructor") == 0) { in startElement()
108 } else if (localName.compareTo("method") == 0) { in startElement()
113 if (attributes.getValue("abstract").compareTo("true") == 0) in startElement()
[all …]
DOptions.java277 if (level.compareTo("public") != 0 && in validOptions()
278 level.compareTo("protected") != 0 && in validOptions()
279 level.compareTo("package") != 0 && in validOptions()
280 level.compareTo("private") != 0) { in validOptions()
293 if (level.compareTo("public") != 0 && in validOptions()
294 level.compareTo("protected") != 0 && in validOptions()
295 level.compareTo("package") != 0 && in validOptions()
296 level.compareTo("private") != 0) { in validOptions()
326 if (level.compareTo("all") != 0 && in validOptions()
327 level.compareTo("remove") != 0 && in validOptions()
[all …]
DMethodAPI.java86 public int compareTo(Object o) { in compareTo() method in MethodAPI
88 int comp = name_.compareTo(oMethod.name_); in compareTo()
91 comp = returnType_.compareTo(oMethod.returnType_); in compareTo()
107 comp = exceptions_.compareTo(oMethod.exceptions_); in compareTo()
110 comp = modifiers_.compareTo(oMethod.modifiers_); in compareTo()
113 comp = getSignature().compareTo(oMethod.getSignature()); in compareTo()
125 if (name_.compareTo(((MethodAPI)o).name_) == 0) in equals()
134 if (getSignature().compareTo(((MethodAPI)o).getSignature()) == 0) in equalSignatures()
DParamAPI.java29 public int compareTo(Object o) { in compareTo() method in ParamAPI
31 int comp = name_.compareTo(oParamAPI.name_); in compareTo()
34 comp = type_.compareTo(oParamAPI.type_); in compareTo()
44 if (name_.compareTo(((ParamAPI)o).name_) == 0) in equals()
51 if (type_.compareTo("void") == 0) in toString()
DConstructorAPI.java42 public int compareTo(Object o) { in compareTo() method in ConstructorAPI
44 int comp = type_.compareTo(constructorAPI.type_); in compareTo()
47 comp = exceptions_.compareTo(constructorAPI.exceptions_); in compareTo()
50 comp = modifiers_.compareTo(constructorAPI.modifiers_); in compareTo()
62 if (type_.compareTo(((ConstructorAPI)o).type_) == 0) in equals()
DFieldAPI.java70 public int compareTo(Object o) { in compareTo() method in FieldAPI
72 int comp = name_.compareTo(oFieldAPI.name_); in compareTo()
75 comp = type_.compareTo(oFieldAPI.type_); in compareTo()
87 comp = value_.compareTo(oFieldAPI.value_); in compareTo()
91 comp = modifiers_.compareTo(oFieldAPI.modifiers_); in compareTo()
103 if (name_.compareTo(((FieldAPI)o).name_) == 0) in equals()
DCommentsHandler.java62 if (localName.compareTo("comments") == 0) { in startElement()
74 if (filename2.compareTo(commentsName) != 0) { in startElement()
77 } else if (localName.compareTo("comment") == 0) { in startElement()
79 } else if (localName.compareTo("identifier") == 0) { in startElement()
85 } else if (localName.compareTo("text") == 0) { in startElement()
103 if (localName.compareTo("text") == 0) { in endElement()
134 currentText.compareTo(Comments.placeHolderText) != 0) { in addTextToComments()
DClassAPI.java64 public int compareTo(Object o) { in compareTo() method in ClassAPI
66 int comp = name_.compareTo(oClassAPI.name_); in compareTo()
73 comp = modifiers_.compareTo(oClassAPI.modifiers_); in compareTo()
86 if (name_.compareTo(((ClassAPI)o).name_) == 0) in equals()
DModifiers.java37 public int compareTo(Object o) { in compareTo() method in Modifiers
46 int comp = visibility.compareTo(oModifiers.visibility); in compareTo()
92 int comp = visibility.compareTo(newModifiers.visibility); in diff()
101 if (res.compareTo("") == 0) in diff()
DHTMLIndexes.java96 if (programElementType.compareTo("Package") == 0) { in emitBottomLeftFile()
98 } else if (programElementType.compareTo("Class") == 0) { in emitBottomLeftFile()
100 } else if (programElementType.compareTo("Constructor") == 0) { in emitBottomLeftFile()
102 } else if (programElementType.compareTo("Method") == 0) { in emitBottomLeftFile()
104 } else if (programElementType.compareTo("Field") == 0) { in emitBottomLeftFile()
106 } else if (programElementType.compareTo("All") == 0) { in emitBottomLeftFile()
169 if (indexName.compareTo("All Differences") == 0) { in emitIndexHeader()
329 if (nextIndex.name_.compareTo(currIndex.name_) == 0) { in emitIndexEntries()
387 if (programElementType.compareTo("class") == 0) { in emitMissingSinces()
393 } else if (programElementType.compareTo("constructor") == 0) { in emitMissingSinces()
[all …]
DPackageAPI.java34 public int compareTo(Object o) { in compareTo() method in PackageAPI
38 return name_.compareTo(oPackageAPI.name_); in compareTo()
45 if (name_.compareTo(((PackageAPI)o).name_) == 0) in equals()
DDiffOutput.java43 public int compareTo(Object o) { in compareTo() method in DiffOutput
45 int comp = pkgName_.compareTo(oDiffOutput.pkgName_); in compareTo()
51 return id_.compareTo(oDiffOutput.id_); in compareTo()
DXMLToAPI.java147 if (localM.name_.compareTo(m.name_) == 0 && in addInheritedElements()
148 localM.getSignature().compareTo(m.getSignature()) == 0) in addInheritedElements()
153 m.modifiers_.visibility.compareTo("private") != 0) { in addInheritedElements()
167 f.modifiers_.visibility.compareTo("private") != 0) { in addInheritedElements()
210 if (filename2.compareTo(api_.name_) != 0) { in nameAPI()
350 if (currElement.compareTo("method") == 0) { in addException()
351 if (api_.currMethod_.exceptions_.compareTo("no exceptions") == 0) in addException()
356 if (api_.currCtor_.exceptions_.compareTo("no exceptions") == 0) in addException()
DDiff.java72 if (tok.compareTo("<") == 0) { in parseDoc()
90 if (tok.compareTo(">") == 0) { in parseDoc()
138 oldDocWords[first0 - 1].compareTo(" ") == 0 && in mergeDiffs()
139 newDocWords[first1 - 1].compareTo(" ") == 0 && in mergeDiffs()
280 currPkgName.compareTo(diffOutput.pkgName_) != 0) { in emitDocDiffs()
296 if (currPkgName.compareTo(docDiffsArr[j].pkgName_) != 0) { in emitDocDiffs()
419 diffOutput.className_.compareTo(docDiffsArr[i+1].className_) != 0) in emitDocDiffs()
519 if (firstPackage || diffOutput.pkgName_.compareTo(docDiffsArr[i-1].pkgName_) != 0) { in emitDocDiffIndex()
540 diffOutput.className_.compareTo(docDiffsArr[i-1].className_) != 0)) { in emitDocDiffIndex()
DSingleComment.java31 public int compareTo(Object o) { in compareTo() method in SingleComment
32 return id_.compareTo(((SingleComment)o).id_); in compareTo()
DJDiff.java180 if (args[0].compareTo("-help") == 0 || in main()
181 args[0].compareTo("-h") == 0 || in main()
182 args[0].compareTo("?") == 0) { in main()
184 } else if (args[0].compareTo("-version") == 0) { in main()
DHTMLReportGenerator.java555 if (ctorType.compareTo("void") == 0) in reportAllCtors()
571 if (ctorType.compareTo("void") == 0) in reportAllCtors()
1320 if (newSignature.compareTo("void") == 0) in writeCtorChangedTableEntry()
1337 if (newType.compareTo("void") == 0) in writeCtorChangedTableEntry()
1363 if (oldType.compareTo("void") == 0) in writeCtorChangedTableEntry()
1403 if (signature.compareTo("void") == 0) in writeMethodTableEntry()
1566 if (fieldType.compareTo("void") == 0) in writeFieldTableEntry()
1700 if (memberDiff.oldType_.compareTo(memberDiff.newType_) != 0) { in emitChanges()
1708 if (shortOldType.compareTo(shortNewType) == 0) { in emitChanges()
1723 memberDiff.oldSignature_.compareTo(memberDiff.newSignature_) != 0) { in emitChanges()
[all …]
/external/proguard/src/proguard/classfile/editor/
DComparableConstant.java88 public int compareTo(Object other) in compareTo() method in ComparableConstant
126 …result = new Integer(integerConstant.getValue()).compareTo(new Integer(((IntegerConstant)otherCons… in visitIntegerConstant()
132 …result = new Long(longConstant.getValue()).compareTo(new Long(((LongConstant)otherConstant).getVal… in visitLongConstant()
138 …result = new Float(floatConstant.getValue()).compareTo(new Float(((FloatConstant)otherConstant).ge… in visitFloatConstant()
144 …result = new Double(doubleConstant.getValue()).compareTo(new Double(((DoubleConstant)otherConstant… in visitDoubleConstant()
149 …result = stringConstant.getString(clazz).compareTo(((StringConstant)otherConstant).getString(clazz… in visitStringConstant()
154 result = utf8Constant.getString().compareTo(((Utf8Constant)otherConstant).getString()); in visitUtf8Constant()
163 .compareTo in visitAnyRefConstant()
171 … result = classConstant.getName(clazz).compareTo(((ClassConstant)otherConstant).getName(clazz)); in visitClassConstant()
179 .compareTo in visitNameAndTypeConstant()
[all …]
/external/webkit/WebCore/platform/graphics/
DPen.cpp65 bool Pen::operator==(const Pen &compareTo) const in operator ==()
67 return (m_width == compareTo.m_width) && in operator ==()
68 (m_style == compareTo.m_style) && in operator ==()
69 (m_color == compareTo.m_color); in operator ==()
72 bool Pen::operator!=(const Pen &compareTo) const in operator !=()
74 return !(*this == compareTo); in operator !=()
/external/icu4c/test/intltest/
Dmnkytst.cpp95 int32_t result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey()
96 int32_t revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey()
102 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey()
103 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey()
109 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey()
110 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey()
119 result = collationKey1.compareTo(collationKey2); in TestCollationKey()
131 result = collationKey2.compareTo(collationKey1); in TestCollationKey()
/external/webkit/WebCore/plugins/
DPluginPackage.cpp83 int PluginPackage::compare(const PluginPackage& compareTo) const in compare()
87 …bool BallowsMultipleInstances = !compareTo.quirks().contains(PluginQuirkDontAllowMultipleInstances… in compare()
93 …bool BisInPreferredDirectory = PluginDatabase::isPreferredPluginDirectory(compareTo.parentDirector… in compare()
97 int diff = strcmp(name().utf8().data(), compareTo.name().utf8().data()); in compare()
101 diff = compareFileVersion(compareTo.version()); in compare()
105 return strcmp(parentDirectory().utf8().data(), compareTo.parentDirectory().utf8().data()); in compare()
/external/webkit/V8Binding/v8/benchmarks/
Dcrypto.js478 if(r.compareTo(t) >= 0) {
508 if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);
515 if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);
570 if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);
599 if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
661 BigInteger.prototype.compareTo = bnCompareTo; method in BigInteger
808 function bnEquals(a) { return(this.compareTo(a)==0); }
809 function bnMin(a) { return(this.compareTo(a)<0)?this:a; }
810 function bnMax(a) { return(this.compareTo(a)>0)?this:a; }
1068 else if(x.compareTo(this.m) < 0) return x;
[all …]
/external/webkit/SunSpider/tests/
Dv8-crypto.js470 if(r.compareTo(t) >= 0) {
500 if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);
507 if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);
562 if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);
591 if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
653 BigInteger.prototype.compareTo = bnCompareTo; method in BigInteger
800 function bnEquals(a) { return(this.compareTo(a)==0); }
801 function bnMin(a) { return(this.compareTo(a)<0)?this:a; }
802 function bnMax(a) { return(this.compareTo(a)>0)?this:a; }
1060 else if(x.compareTo(this.m) < 0) return x;
[all …]
/external/emma/core/java12/com/vladium/jcd/cls/
DClassDef.java641 public final int compareTo (final Object obj) in compareTo() method in ClassDef.FieldDescriptor
643 return m_name.compareTo (((FieldDescriptor) obj).m_name); in compareTo()
665 public final int compareTo (final Object obj) in compareTo() method in ClassDef.ConstructorDescriptor
667 return m_descriptor.compareTo (((ConstructorDescriptor) obj).m_descriptor); in compareTo()
687 public final int compareTo (final Object obj) in compareTo() method in ClassDef.MethodDescriptor
691 int result = m_name.compareTo (rhs.m_name); in compareTo()
693 result = m_descriptor.compareTo (rhs.m_descriptor); in compareTo()
/external/junit/src/junit/runner/
DSorter.java20 while (((String)(values.elementAt(left))).compareTo(mid) < 0) in sortStrings()
22 while (mid.compareTo((String)(values.elementAt(right))) < 0) in sortStrings()

12