Home
last modified time | relevance | path

Searched refs:lessThan (Results 1 – 25 of 81) sorted by relevance

1234

/external/skia/src/core/
DSkTSort.h42 void SkTHeapSort_SiftUp(T array[], size_t root, size_t bottom, C lessThan) { in SkTHeapSort_SiftUp() argument
47 if (j < bottom && lessThan(array[j-1], array[j])) { in SkTHeapSort_SiftUp()
56 if (lessThan(array[j-1], x)) { in SkTHeapSort_SiftUp()
76 void SkTHeapSort_SiftDown(T array[], size_t root, size_t bottom, C lessThan) { in SkTHeapSort_SiftDown() argument
80 if (child < bottom && lessThan(array[child-1], array[child])) { in SkTHeapSort_SiftDown()
83 if (lessThan(x, array[child-1])) { in SkTHeapSort_SiftDown()
101 template <typename T, typename C> void SkTHeapSort(T array[], size_t count, C lessThan) { in SkTHeapSort() argument
103 SkTHeapSort_SiftDown(array, i, count, lessThan); in SkTHeapSort()
108 SkTHeapSort_SiftUp(array, 1, i, lessThan); in SkTHeapSort()
120 template <typename T, typename C> static void SkTInsertionSort(T* left, T* right, C lessThan) { in SkTInsertionSort() argument
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/comparator/
DComparatorMatcherBuilderTest.java41 assertDescription("a value less than <1>", integerComparatorMatcherBuilder.lessThan(1)); in testDescription()
47 …n compared by <backwards integer comparator>", comparedBy(backwardsIntegerComparator).lessThan(1)); in testDescription()
53 …ertMismatchDescription("<1> was greater than <0>", integerComparatorMatcherBuilder.lessThan(0), 1); in testMismatchDescriptions()
54 … assertMismatchDescription("<2> was equal to <2>", integerComparatorMatcherBuilder.lessThan(2), 2); in testMismatchDescriptions()
58 …ompared by <backwards integer comparator>", comparedBy(backwardsIntegerComparator).lessThan(1), 0); in testMismatchDescriptions()
59 …ompared by <backwards integer comparator>", comparedBy(backwardsIntegerComparator).lessThan(2), 2); in testMismatchDescriptions()
68 assertThat(2, integerComparatorMatcherBuilder.lessThan(3)); in testComparesObjectsForLessThan()
69 assertThat(0, integerComparatorMatcherBuilder.lessThan(1)); in testComparesObjectsForLessThan()
95 …ustomInt(5), ComparatorMatcherBuilder.<CustomInt>usingNaturalOrdering().lessThan(new CustomInt(10)… in testComparesCustomTypesWhoseCompareToReturnsValuesGreaterThatOne()
99 assertThat(5, comparedBy(backwardsIntegerComparator).lessThan(4)); in testComparesByCustomComparator()
[all …]
DComparatorMatcherTest.java30 assertDescription("a value less than <1>", lessThan(1));
36 assertMismatchDescription("<1> was greater than <0>", lessThan(0), 1);
37 assertMismatchDescription("<2> was equal to <2>", lessThan(2), 2);
46 assertThat(2, lessThan(3));
47 assertThat(0, lessThan(1));
73 assertThat(new CustomInt(5), lessThan(new CustomInt(10)));
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/
DOrderingComparisonTest.java24 assertDescription("a value less than <1>", lessThan(1)); in testDescription()
30 assertMismatchDescription("<1> was greater than <0>", lessThan(0), 1); in testMismatchDescriptions()
31 assertMismatchDescription("<2> was equal to <2>", lessThan(2), 2); in testMismatchDescriptions()
40 assertThat(2, lessThan(3)); in testComparesObjectsForLessThan()
41 assertThat(0, lessThan(1)); in testComparesObjectsForLessThan()
67 assertThat(new CustomInt(5), lessThan(new CustomInt(10))); in testComparesCustomTypesWhoseCompareToReturnsValuesGreaterThatOne()
/external/javassist/src/main/javassist/bytecode/
DCodeAttribute.java485 private static void shiftIndex(CodeIterator ci, int lessThan, int delta) throws BadBytecode { in shiftIndex() argument
493 shiftIndex8(ci, index, opcode, lessThan, delta); in shiftIndex()
497 shiftIndex0(ci, index, opcode, lessThan, delta, ILOAD_0, ILOAD); in shiftIndex()
503 shiftIndex8(ci, index, opcode, lessThan, delta); in shiftIndex()
507 shiftIndex0(ci, index, opcode, lessThan, delta, ISTORE_0, ISTORE); in shiftIndex()
512 if (var < lessThan) in shiftIndex()
528 shiftIndex8(ci, index, opcode, lessThan, delta); in shiftIndex()
531 if (var < lessThan) in shiftIndex()
540 int lessThan, int delta) in shiftIndex8() argument
544 if (var < lessThan) in shiftIndex8()
[all …]
DLocalVariableAttribute.java138 public void shiftIndex(int lessThan, int delta) { in shiftIndex() argument
142 if (org >= lessThan) in shiftIndex()
/external/proguard/src/proguard/evaluation/value/
DIntegerValue.java209 public abstract int lessThan(IntegerValue other); in lessThan() method in IntegerValue
245 return -lessThan(other); in greaterThanOrEqual()
445 public int lessThan(UnknownIntegerValue other) in lessThan() method in IntegerValue
447 return lessThan((IntegerValue)other); in lessThan()
489 return -lessThan(other); in greaterThanOrEqual()
689 public int lessThan(SpecificIntegerValue other) in lessThan() method in IntegerValue
691 return lessThan((IntegerValue)other); in lessThan()
733 return -lessThan(other); in greaterThanOrEqual()
933 public int lessThan(ParticularIntegerValue other) in lessThan() method in IntegerValue
935 return lessThan((SpecificIntegerValue)other); in lessThan()
[all …]
DSpecificIntegerValue.java184 public int lessThan(IntegerValue other) in lessThan() method in SpecificIntegerValue
322 public int lessThan(SpecificIntegerValue other) in lessThan() method in SpecificIntegerValue
DParticularIntegerValue.java216 public int lessThan(IntegerValue other) in lessThan() method in ParticularIntegerValue
344 public int lessThan(ParticularIntegerValue other) in lessThan() method in ParticularIntegerValue
/external/icu/icu4c/source/common/
Dstringtriebuilder.cpp137 int32_t lessThan[kMaxSplitBranchLevels]; in writeBranchSubNode() local
145 lessThan[ltLength]=writeBranchSubNode(start, i, unitIndex, length/2); in writeBranchSubNode()
198 writeDeltaTo(lessThan[ltLength]); in writeBranchSubNode()
266 Node *lessThan[kMaxSplitBranchLevels]; in makeBranchSubNode() local
274 lessThan[ltLength]=makeBranchSubNode(start, i, unitIndex, length/2, errorCode); in makeBranchSubNode()
313 new SplitBranchNode(middleUnits[ltLength], lessThan[ltLength], node), errorCode); in makeBranchSubNode()
562 return unit==o.unit && lessThan==o.lessThan && greaterOrEqual==o.greaterOrEqual; in operator ==()
570 offset=edgeNumber=lessThan->markRightEdgesFirst(edgeNumber-1); in markRightEdgesFirst()
578 lessThan->writeUnlessInsideRightEdge(firstEdgeNumber, greaterOrEqual->getOffset(), builder); in write()
582 U_ASSERT(lessThan->getOffset()>0); in write()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DTreeRangeSetTest.java294 .has().exactly(Range.lessThan(1), Range.atLeast(6)).inOrder(); in testMergesConnectedWithOverlap()
304 .has().exactly(Range.lessThan(1), Range.atLeast(6)).inOrder(); in testMergesConnectedDisjoint()
314 .has().exactly(Range.lessThan(1), Range.greaterThan(6)).inOrder(); in testIgnoresSmallerSharingNoBound()
324 .has().exactly(Range.lessThan(1), Range.greaterThan(6)).inOrder(); in testIgnoresSmallerSharingLowerBound()
334 .has().exactly(Range.lessThan(1), Range.greaterThan(6)).inOrder(); in testIgnoresSmallerSharingUpperBound()
344 .has().exactly(Range.lessThan(1), Range.greaterThan(6)).inOrder(); in testIgnoresEqual()
354 .has().exactly(Range.lessThan(1), Range.greaterThan(6)).inOrder(); in testExtendSameLowerBound()
364 .has().exactly(Range.lessThan(1), Range.greaterThan(6)).inOrder(); in testExtendSameUpperBound()
374 .has().exactly(Range.lessThan(1), Range.greaterThan(6)).inOrder(); in testExtendBothDirections()
393 .has().exactly(Range.lessThan(1), Range.atLeast(6)).inOrder(); in testFillHoleExactly()
[all …]
DRangeTest.java187 Range<Integer> range = Range.lessThan(5); in testLessThan()
283 Cut<Integer> a = Range.lessThan(0).lowerBound; in testOrderingCuts()
321 assertFalse(range.encloses(Range.lessThan(3))); in testEncloses_open()
338 assertFalse(range.encloses(Range.lessThan(3))); in testEncloses_closed()
370 range.intersection(Range.lessThan(3)); in testIntersection_deFactoEmpty()
395 range.intersection(Range.lessThan(3))); in testIntersection_singleton()
473 assertEquals(Range.atMost(8), range.span(Range.lessThan(4))); in testSpan_general()
568 Range.lessThan(0).canonical(integers())); in testCanonical()
578 assertEquals(Range.lessThan(0), Range.lessThan(0).canonical(UNBOUNDED_DOMAIN)); in testCanonical_unboundedDomain()
579 assertEquals(Range.lessThan(1), Range.atMost(0).canonical(UNBOUNDED_DOMAIN)); in testCanonical_unboundedDomain()
[all …]
DImmutableRangeSetTest.java46 Range.lessThan(2),
179 expectedComplement.add(Range.lessThan(1)); in testSingleBoundedRange()
208 assertTrue(rangeSet.encloses(Range.lessThan(1))); in testSingleBoundedAboveRange()
232 .add(Range.lessThan(1)) in testMultipleBoundedRanges()
253 .add(Range.lessThan(1)) in testMultipleBoundedBelowRanges()
341 Range.lessThan(2), in testExhaustive()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/
DOrderingComparison.java62 public static <T extends Comparable<T>> Matcher<T> lessThan(T value) { in lessThan() method in OrderingComparison
63 return ComparatorMatcherBuilder.<T>usingNaturalOrdering().lessThan(value); in lessThan()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DPeriodTest.java40 p = p.lessThan(); in testMoreLessThan()
47 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan()
96 Period.lessThan(-1, TimeUnit.YEAR); in testInvalidCount()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DPeriodTest.java41 p = p.lessThan(); in testMoreLessThan()
48 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan()
97 Period.lessThan(-1, TimeUnit.YEAR); in testInvalidCount()
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpMath.java324 if (a.equals(a.getZero()) || a.lessThan(a.getZero()) || a.isNaN()) { in log()
570 if (x.lessThan(zero)) { in pow()
584 if (x.lessThan(one) && y.classify() == Dfp.INFINITE) { in pow()
634 if (y.lessThan(x.newInstance(100000000)) && y.greaterThan(x.newInstance(-100000000))) { in pow()
744 if (x.lessThan(zero)) { in sin()
758 if (x.lessThan(pi.divide(4))) { in sin()
795 if (x.lessThan(zero)) { in cos()
809 if (x.lessThan(pi.divide(4))) { in cos()
889 if (x.lessThan(zero)) { in atan()
954 if (a.lessThan(a.getZero())) { in acos()
DDfpDec.java310 if (this.lessThan(x)) { in nextAfter()
318 if (lessThan(getZero())) { in nextAfter()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DStringTrieBuilder.java720 lessThan=lessThanNode; in SplitBranchNode()
732 return unit==o.unit && lessThan==o.lessThan && greaterOrEqual==o.greaterOrEqual; in equals()
743 offset=edgeNumber=lessThan.markRightEdgesFirst(edgeNumber-1); in markRightEdgesFirst()
750lessThan.writeUnlessInsideRightEdge(firstEdgeNumber, greaterOrEqual.getOffset(), builder); in write()
754 assert(lessThan.getOffset()>0); in write()
755 builder.writeDeltaTo(lessThan.getOffset()); // less-than in write()
760 private Node lessThan; field in StringTrieBuilder.SplitBranchNode
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DStringTrieBuilder.java722 lessThan=lessThanNode; in SplitBranchNode()
734 return unit==o.unit && lessThan==o.lessThan && greaterOrEqual==o.greaterOrEqual; in equals()
745 offset=edgeNumber=lessThan.markRightEdgesFirst(edgeNumber-1); in markRightEdgesFirst()
752lessThan.writeUnlessInsideRightEdge(firstEdgeNumber, greaterOrEqual.getOffset(), builder); in write()
756 assert(lessThan.getOffset()>0); in write()
757 builder.writeDeltaTo(lessThan.getOffset()); // less-than in write()
762 private Node lessThan; field in StringTrieBuilder.SplitBranchNode
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DPeriod.java65 public static Period lessThan(float count, TimeUnit unit) { in lessThan() method in Period
119 public Period lessThan() { in lessThan() method in Period
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
DPeriod.java67 public static Period lessThan(float count, TimeUnit unit) { in lessThan() method in Period
121 public Period lessThan() { in lessThan() method in Period
/external/vulkan-validation-layers/libs/glm/gtc/
Depsilon.inl91 return lessThan(abs(x - y), vecType<T, P>(epsilon));
102 return lessThan(abs(x - y), vecType<T, P>(epsilon));
136 return lessThan(abs(v), detail::tvec4<T, P>(epsilon));
/external/apache-xml/src/main/java/org/apache/xpath/operations/
DLt.java47 return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE; in operate()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXObject.java537 public boolean lessThan(XObject obj2) in lessThan() method in XObject
595 return obj2.lessThan(this); in greaterThan()

1234