Home
last modified time | relevance | path

Searched refs:natural (Results 1 – 25 of 119) sorted by relevance

12345

/external/guava/guava-tests/test/com/google/common/collect/
DBstRangeOpsTest.java64 countAggregate, GeneralRange.downTo(Ordering.natural(), c, type), ROOT); in testCountInRangeLowerBound()
78 countAggregate, GeneralRange.upTo(Ordering.natural(), c, type), ROOT); in testCountInRangeUpperBound()
98 Ordering.natural(), chars.charAt(i), lb, chars.charAt(j), ub), ROOT); in testCountInRangeBothBounds()
119 countAggregate, GeneralRange.<Character>all(Ordering.natural()), ROOT)); in testCountInRangeAll()
124 GeneralRange<Character> range = GeneralRange.all(Ordering.natural()); in testCountInRangeEmpty()
142 GeneralRange<Character> range1 = GeneralRange.downTo(Ordering.natural(), 'f', CLOSED); in testClearRangeLowerBound()
145 GeneralRange<Character> range2 = GeneralRange.downTo(Ordering.natural(), 'f', OPEN); in testClearRangeLowerBound()
148 GeneralRange<Character> range3 = GeneralRange.downTo(Ordering.natural(), 'a', CLOSED); in testClearRangeLowerBound()
151 GeneralRange<Character> range4 = GeneralRange.downTo(Ordering.natural(), 'a', OPEN); in testClearRangeLowerBound()
154 GeneralRange<Character> range5 = GeneralRange.downTo(Ordering.natural(), 'c', OPEN); in testClearRangeLowerBound()
[all …]
DSortedIterablesTest.java37 ASSERT.that(SortedIterables.sortedCounts(Ordering.natural(), list)) in testSortedCounts()
47 ASSERT.that(SortedIterables.sortedCounts(Ordering.natural(), list.iterator())) in testSortedCountsIterator()
55 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet())); in testSameComparator()
59 SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet())); in testSameComparator()
61 assertTrue(SortedIterables.hasSameComparator(Ordering.natural().reverse(), in testSameComparator()
62 Sets.newTreeSet(Ordering.natural().reverse()))); in testSameComparator()
DTreeMultimapNaturalTest.java149 assertSame(Ordering.natural(), multimap.get("foo").comparator()); in testComparatorFromGet()
150 assertSame(Ordering.natural(), multimap.get("missing").comparator()); in testComparatorFromGet()
200 Ordering.natural();
203 Ordering.natural().reverse().nullsFirst();
218 assertSame(Ordering.natural(), copyFromTree.keyComparator()); in testCreateFromTreeMultimap()
219 assertSame(Ordering.natural(), copyFromTree.valueComparator()); in testCreateFromTreeMultimap()
220 assertSame(Ordering.natural(), copyFromTree.get(1.0).comparator()); in testCreateFromTreeMultimap()
236 assertEquals(Ordering.natural(), copyFromHash.keyComparator()); in testCreateFromHashMultimap()
237 assertEquals(Ordering.natural(), copyFromHash.valueComparator()); in testCreateFromHashMultimap()
254 assertSame(Ordering.natural(), copyFromSorted.keyComparator()); in testCreateFromSortedSetMultimap()
[all …]
DBstOperationsTest.java60 assertEquals(a, BstOperations.seek(Ordering.natural(), d, 'a')); in testSeek1()
61 assertEquals(b, BstOperations.seek(Ordering.natural(), d, 'b')); in testSeek1()
62 assertNull(BstOperations.seek(Ordering.natural(), d, 'c')); in testSeek1()
63 assertEquals(d, BstOperations.seek(Ordering.natural(), d, 'd')); in testSeek1()
64 assertNull(BstOperations.seek(Ordering.natural(), d, 'e')); in testSeek1()
65 assertEquals(f, BstOperations.seek(Ordering.natural(), d, 'f')); in testSeek1()
66 assertEquals(g, BstOperations.seek(Ordering.natural(), d, 'g')); in testSeek1()
80 assertNull(BstOperations.seek(Ordering.natural(), d, 'a')); in testSeek2()
81 assertEquals(b, BstOperations.seek(Ordering.natural(), d, 'b')); in testSeek2()
82 assertEquals(c, BstOperations.seek(Ordering.natural(), d, 'c')); in testSeek2()
[all …]
DImmutableTableTest.java224 = builder.orderRowsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
225 .orderColumnsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
236 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
237 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
259 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
260 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
281 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_sparse()
299 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_dense()
316 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_sparse()
334 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_dense()
DOrderingTest.java59 Ordering<Integer> comparator = Ordering.natural(); in testNatural()
87 Ordering.from(Ordering.<String>natural()); in testFrom()
90 .addEqualityGroup(orderingFromOrdering, Ordering.natural()) in testFrom()
223 return Ordering.natural().onResultOf(CharAtFunction.values()[index]);
300 .addEqualityGroup(Ordering.natural().reverse())
321 = Ordering.natural().reverse();
325 = Ordering.natural().onResultOf(StringLengthFunction.StringLength);
333 Ordering.natural().onResultOf(StringLengthFunction.StringLength))
354 .addEqualityGroup(Ordering.natural())
363 Ordering<String> ordering = Ordering.natural();
[all …]
DGeneralRangeTest.java38 private static final Ordering<Integer> ORDERING = Ordering.natural().nullsFirst();
174 assertEquals(GeneralRange.all(Ordering.natural()), GeneralRange.from(Ranges.all()));
179 assertEquals(GeneralRange.upTo(Ordering.natural(), 3, endpointType),
182 assertEquals(GeneralRange.downTo(Ordering.natural(), 3, endpointType),
190 assertEquals(GeneralRange.range(Ordering.natural(), 3, lowerType, 4, upperType),
DBstNodeTest.java98 new SimpleNode(MIDDLE_KEY, left, right).orderingInvariantHolds(Ordering.natural())); in testOrderingInvariantHoldsForGood()
107 new SimpleNode(MIDDLE_KEY, left, right).orderingInvariantHolds(Ordering.natural())); in testOrderingInvariantBadLeft()
116 new SimpleNode(MIDDLE_KEY, left, right).orderingInvariantHolds(Ordering.natural())); in testOrderingInvariantBadRight()
DTreeMultimapExplicitTest.java66 Ordering.<Integer>natural().reverse().nullsFirst();
106 assertEquals(Ordering.natural(), copy.keyComparator()); in testMultimapCreateFromTreeMultimap()
107 assertEquals(Ordering.natural(), copy.valueComparator()); in testMultimapCreateFromTreeMultimap()
108 assertEquals(Ordering.natural(), copy.get("google").comparator()); in testMultimapCreateFromTreeMultimap()
DSubMapMultimapAsMapImplementsMapTest.java41 = TreeMultimap.create(Ordering.<String>natural().nullsFirst(), in createMultimap()
42 Ordering.<Integer>natural().nullsFirst()); in createMultimap()
DImmutableSortedMapTest.java543 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfEmptyMap()
551 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfSingletonMap()
564 assertSame(Ordering.natural(), copy.comparator()); in testCopyOf()
568 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfExplicitComparator()
582 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfImmutableSortedSetDifferentComparator()
602 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfSortedNatural()
606 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfSortedExplicit()
677 assertEquals(Ordering.natural().reverse(), map.comparator()); in testBuilderReverseOrder()
681 Comparator<String> comparator = Ordering.natural().reverse(); in testBuilderComparator()
DMultimapCollectionTest.java127 return new TreeSet<String>(Ordering.natural().nullsLast());
307 TreeMultimap.create(Ordering.natural().nullsFirst(), in suite()
308 Ordering.natural().nullsLast()); in suite()
424 TreeMultimap.create(Ordering.natural().nullsFirst(), in suite()
425 Ordering.natural().nullsLast()); in suite()
531 = TreeMultimap.create(Ordering.natural().nullsFirst(), in suite()
532 Ordering.natural().nullsLast()); in suite()
629 = TreeMultimap.create(Ordering.natural().nullsFirst(), in suite()
630 Ordering.natural().nullsLast()); in suite()
636 Collections.sort(insertionOrder, Ordering.natural().nullsFirst()); in suite()
[all …]
DImmutableSortedMultisetTest.java62 return Ordering.natural().sortedCopy(insertionOrder); in suite()
76 return Ordering.natural().sortedCopy(insertionOrder); in suite()
92 return Ordering.natural().immutableSortedCopy(insertionOrder); in suite()
155 Ordering.natural().lexicographical() in testCreation_arrayOfArray()
379 new ImmutableSortedMultiset.Builder<String>(Ordering.natural().nullsFirst()); in testBuilderSetCountHandlesNullsCorrectly()
396 tester.setDefault(Comparator.class, Ordering.natural()); in testNullPointers()
DMultisetCollectionTest.java75 return Ordering.natural().sortedCopy(insertionOrder); in suite()
89 Multiset<String> result = TreeMultiset.create(Ordering.natural().nullsFirst()); in suite()
96 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java51 private static final Comparator NATURAL_ORDER = Ordering.natural();
78 return ofInternal(Ordering.natural(), element); in of()
84 return ofInternal(Ordering.natural(), e1, e2); in of()
90 return ofInternal(Ordering.natural(), e1, e2, e3); in of()
96 return ofInternal(Ordering.natural(), e1, e2, e3, e4); in of()
102 return ofInternal(Ordering.natural(), e1, e2, e3, e4, e5); in of()
113 return ofInternal(Ordering.natural(), (E[]) all.toArray(new Comparable[0])); in of()
141 return copyOfInternal(Ordering.natural(), elements, false); in copyOf()
146 return copyOfInternal(Ordering.natural(), elements, false); in copyOf()
151 return copyOfInternal(Ordering.natural(), elements); in copyOf()
[all …]
DTreeMultimap.java77 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural()); in create()
103 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural(), in create()
DImmutableSortedMap.java46 private static final Comparator NATURAL_ORDER = Ordering.natural();
94 return create(Ordering.natural(), entryOf(k1, v1)); in of()
99 return new Builder<K, V>(Ordering.natural()) in of()
105 return new Builder<K, V>(Ordering.natural()) in of()
111 return new Builder<K, V>(Ordering.natural()) in of()
117 return new Builder<K, V>(Ordering.natural()) in of()
123 return copyOfInternal(map, Ordering.natural()); in copyOf()
183 return new Builder<K, V>(Ordering.natural()); in naturalOrder()
191 return new Builder<K, V>(Ordering.natural().reverse()); in reverseOrder()
/external/guava/guava/src/com/google/common/collect/
DImmutableSortedSet.java93 Ordering.natural();
125 ImmutableList.of(element), Ordering.natural()); in of()
138 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); in of()
151 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); in of()
164 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); in of()
177 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); in of()
195 return copyOf(Ordering.natural(), all); in of()
210 return copyOf(Ordering.natural(), Arrays.asList(elements)); in copyOf()
244 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
282 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
[all …]
DImmutableSortedMultiset.java79 private static final Comparator<Comparable> NATURAL_ORDER = Ordering.natural();
108 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); in of()
119 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); in of()
131 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); in of()
143 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); in of()
165 return copyOf(Ordering.natural(), all); in of()
175 return copyOf(Ordering.natural(), Arrays.asList(elements)); in copyOf()
204 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
222 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
432 return new Builder<E>(Ordering.natural().reverse()); in reverseOrder()
[all …]
DTreeMultimap.java81 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural()); in create()
107 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural(), in create()
DRange.java230 if (Ordering.natural().equals(comparator) || comparator == null) { in containsAll()
314 Cut<C> newLower = Ordering.natural().max(lowerBound, other.lowerBound); in intersection()
315 Cut<C> newUpper = Ordering.natural().min(upperBound, other.upperBound); in intersection()
370 Cut<C> newLower = Ordering.natural().min(lowerBound, other.lowerBound); in span()
371 Cut<C> newUpper = Ordering.natural().max(upperBound, other.upperBound); in span()
DImmutableSortedMap.java72 Ordering.natural();
106 ImmutableList.of(entryOf(k1, v1)), Ordering.natural()); in of()
118 return new Builder<K, V>(Ordering.natural()) in of()
131 return new Builder<K, V>(Ordering.natural()) in of()
144 return new Builder<K, V>(Ordering.natural()) in of()
157 return new Builder<K, V>(Ordering.natural()) in of()
183 Ordering<K> naturalOrder = (Ordering<K>) Ordering.<Comparable>natural(); in copyOf()
303 return new Builder<K, V>(Ordering.natural()); in naturalOrder()
328 return new Builder<K, V>(Ordering.natural().reverse()); in reverseOrder()
/external/qemu/audio/
Dmixeng.c32 #define ENDIAN_CONVERSION natural
68 #define ENDIAN_CONVERSION natural
89 #define ENDIAN_CONVERSION natural
110 #define ENDIAN_CONVERSION natural
131 #define ENDIAN_CONVERSION natural
/external/clang/test/Parser/
Dpragma-options.c9 #pragma options align=natural
19 #pragma align=natural
/external/mksh/src/
Dexpr.c137 bool natural; /* unsigned arithmetic calculation */ member
140 #define bivui(x, op, y) (es->natural ? \
145 if (es->natural) \
198 curstate.natural = false; in v_evaluate()
226 if (es->arith && es->natural) in v_evaluate()
490 es->natural = true; /* switch to unsigned */ in exprtoken()
586 if (es->natural) in do_ppmm()
591 if (es->natural) in do_ppmm()

12345