Home
last modified time | relevance | path

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

123

/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java59 assertEquals(0, cfg1.compareTo(cfg2)); in testCompareTo()
63 assertEquals(-1, cfg1.compareTo(cfg2)); in testCompareTo()
66 assertEquals(1, cfg1.compareTo(cfg2)); in testCompareTo()
70 assertEquals(-1, cfg1.compareTo(cfg2)); in testCompareTo()
73 assertEquals(1, cfg1.compareTo(cfg2)); in testCompareTo()
77 assertEquals(-1, cfg1.compareTo(cfg2)); in testCompareTo()
80 assertEquals(1, cfg1.compareTo(cfg2)); in testCompareTo()
84 assertEquals(-1, cfg1.compareTo(cfg2)); in testCompareTo()
87 assertEquals(1, cfg1.compareTo(cfg2)); in testCompareTo()
91 assertEquals(-1, cfg1.compareTo(cfg2)); in testCompareTo()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_AudioTest.java59 assertTrue(Audio.keyFor("areosmith").compareTo(mKeyForBeatles) < 0); in testKeyFor()
60 assertTrue(Audio.keyFor("coldplay").compareTo(mKeyForBeatles) > 0); in testKeyFor()
63 assertTrue(Audio.keyFor("¿Cómo esto funciona?").compareTo(mKeyForBeatles) < 0); in testKeyFor()
64 assertTrue(Audio.keyFor("Le passé composé").compareTo(mKeyForBeatles) > 0); in testKeyFor()
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
DTest.java37 public int compareTo(Test another) { in compareTo() method in Test
38 return getName().compareTo(another.getName()); in compareTo()
DTestCase.java46 public int compareTo(TestCase another) { in compareTo() method in TestCase
47 return getName().compareTo(another.getName()); in compareTo()
DTestSuite.java66 public int compareTo(TestSuite another) { in compareTo() method in TestSuite
67 return getName().compareTo(another.getName()); in compareTo()
/cts/tools/signature-tools/src/signature/io/html/
DClassByNameComparator.java29 return a.getFrom().getName().compareTo(b.getFrom().getName()); in compare()
31 return a.getTo().getName().compareTo(b.getTo().getName()); in compare()
DExecutableMemberComparator.java53 int returnValue = aMember.getName().compareTo(bMember.getName()); in compare()
66 returnValue += getTypeName(aIt.next().getType()).compareTo( in compareParameterLists()
DPackageByNameComparator.java38 return aPackage.getName().compareTo(bPackage.getName()); in compare()
DFieldByNameComparator.java41 return aField.getName().compareTo(bField.getName()); in compare()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiMethod.java64 public int compareTo(ApiMethod another) { in compareTo() method in ApiMethod
65 return mName.compareTo(another.mName); in compareTo()
DApiConstructor.java41 public int compareTo(ApiConstructor another) { in compareTo() method in ApiConstructor
DApiClass.java61 public int compareTo(ApiClass another) { in compareTo() method in ApiClass
62 return mName.compareTo(another.mName); in compareTo()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_interface_range/d/
DT_invoke_interface_range_1.java22 return c.compareTo(o); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_interface/d/
DT_invoke_interface_1.java22 return c.compareTo(o); in run()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java235 msg, expected, actual), actual.compareTo(expected) > 0); in expectGreater()
249 msg, expected, actual), actual.compareTo(expected) >= 0); in expectGreaterOrEqual()
263 msg, expected, actual), actual.compareTo(expected) < 0); in expectLess()
277 msg, expected, actual), actual.compareTo(expected) <= 0); in expectLessOrEqual()
338 min.toString()), value.compareTo(min) >= 0); in expectValuesGreaterOrEqual()
368 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectValuesInRange()
416 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectInRange()
614 int compareResult = array[i + 1].compareTo(array[i]); in checkArrayMonotonicityAndNotAllEqual()
625 array[0].compareTo(array[array.length - 1]) != 0); in checkArrayMonotonicityAndNotAllEqual()
/cts/tools/vm-tests-tf/src/util/build/
DBuildStep.java119 public int compareTo(BuildStep o) { in compareTo() method in BuildStep
121 ? (o.inputFile != null ? inputFile.getPath().compareTo( in compareTo()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/const_string_jumbo/
DTest_const_string_jumbo.java30 assertEquals(0, s.compareTo("android jumbo")); in testN1()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/const_string/
DTest_const_string.java30 assertEquals(s.compareTo("android"), 0); in testN1()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
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 …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DDeqpTestRunner.java459 if (code.compareTo("Pass") == 0) { in handleTestCaseResult()
461 } else if (code.compareTo("NotSupported") == 0) { in handleTestCaseResult()
463 } else if (code.compareTo("QualityWarning") == 0) { in handleTestCaseResult()
465 } else if (code.compareTo("CompatibilityWarning") == 0) { in handleTestCaseResult()
467 } else if (code.compareTo("Fail") == 0 || code.compareTo("ResourceError") == 0 in handleTestCaseResult()
468 || code.compareTo("InternalError") == 0 || code.compareTo("Crash") == 0 in handleTestCaseResult()
469 || code.compareTo("Timeout") == 0) { in handleTestCaseResult()
524 if (eventType.compareTo("BeginSession") == 0) { in handleStatus()
526 } else if (eventType.compareTo("EndSession") == 0) { in handleStatus()
528 } else if (eventType.compareTo("BeginTestCase") == 0) { in handleStatus()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/const_class/
DTest_const_class.java33 assertEquals(0, c.getCanonicalName().compareTo("java.lang.String")); in testN1()
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java422 left.compareTo(right) < 0); in assertLessThan()
424 right.compareTo(left) > 0); in assertLessThan()
429 left.compareTo(right) > 0); in assertGreaterThan()
431 right.compareTo(left) < 0); in assertGreaterThan()
436 left.compareTo(right) == 0); in assertCompareEquals()
438 right.compareTo(left) == 0); in assertCompareEquals()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DBaseObjTest.java57 assertTrue(B.getName().compareTo("int32_t") == 0); in testBaseObj()
/cts/hostsidetests/usb/src/com/android/cts/usb/
DTestUsbTest.java102 if (adbSerial.compareTo(currentSerial) == 0) { in testUsbSerial()
127 if (usbSerial.compareTo(currentSerial) == 0) { in testUsbSerial()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/
DTest_new_instance.java38 assertEquals(0, s.compareTo("abc")); in testN1()

123