Home
last modified time | relevance | path

Searched refs:ordering (Results 1 – 25 of 805) sorted by relevance

12345678910>>...33

/external/python/cpython3/Lib/unittest/test/
Dtest_runner.py40 def cleanup(ordering, blowUp=False): argument
42 ordering.append('cleanup_good')
44 ordering.append('cleanup_exc')
104 ordering = []
108 ordering.append('setUp')
113 ordering.append('test')
116 ordering.append('tearDown')
121 ordering.append('cleanup1')
123 ordering.append('cleanup2')
129 ordering.append('success')
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_ordering_test.cc85 DependencyHloOrdering ordering(module.get()); in TEST_F() local
86 EXPECT_TRUE(ordering.ExecutesBefore(x, y)); in TEST_F()
87 EXPECT_FALSE(ordering.ExecutesBefore(y, x)); in TEST_F()
89 EXPECT_TRUE(ordering.ExecutesBefore(a, b)); in TEST_F()
90 EXPECT_FALSE(ordering.ExecutesBefore(b, a)); in TEST_F()
92 EXPECT_FALSE(ordering.ExecutesBefore(a, x)); in TEST_F()
93 EXPECT_TRUE(ordering.ExecutesBefore(a, y)); in TEST_F()
94 EXPECT_FALSE(ordering.ExecutesBefore(x, a)); in TEST_F()
95 EXPECT_FALSE(ordering.ExecutesBefore(y, a)); in TEST_F()
97 EXPECT_FALSE(ordering.ExecutesBefore(b, x)); in TEST_F()
[all …]
/external/guava/guava/src/com/google/common/collect/
DNullsLastOrdering.java26 final Ordering<? super T> ordering; field in NullsLastOrdering
28 NullsLastOrdering(Ordering<? super T> ordering) { in NullsLastOrdering() argument
29 this.ordering = ordering; in NullsLastOrdering()
43 return ordering.compare(left, right); in compare()
49 return ordering.reverse().nullsFirst(); in reverse()
54 return ordering.nullsFirst(); in nullsFirst()
70 return this.ordering.equals(that.ordering); in equals()
77 return ordering.hashCode() ^ -921210296; // meaningless in hashCode()
82 return ordering + ".nullsLast()"; in toString()
DNullsFirstOrdering.java26 final Ordering<? super T> ordering; field in NullsFirstOrdering
28 NullsFirstOrdering(Ordering<? super T> ordering) { in NullsFirstOrdering() argument
29 this.ordering = ordering; in NullsFirstOrdering()
43 return ordering.compare(left, right); in compare()
49 return ordering.reverse().nullsLast(); in reverse()
60 return ordering.nullsLast(); in nullsLast()
70 return this.ordering.equals(that.ordering); in equals()
77 return ordering.hashCode() ^ 957692532; // meaningless in hashCode()
82 return ordering + ".nullsFirst()"; in toString()
DByFunctionOrdering.java34 final Ordering<T> ordering; field in ByFunctionOrdering
36 ByFunctionOrdering(Function<F, ? extends T> function, Ordering<T> ordering) { in ByFunctionOrdering() argument
38 this.ordering = checkNotNull(ordering); in ByFunctionOrdering()
43 return ordering.compare(function.apply(left), function.apply(right)); in compare()
53 return this.function.equals(that.function) && this.ordering.equals(that.ordering); in equals()
60 return Objects.hashCode(function, ordering); in hashCode()
65 return ordering + ".onResultOf(" + function + ")"; in toString()
/external/guava/android/guava/src/com/google/common/collect/
DNullsLastOrdering.java26 final Ordering<? super T> ordering; field in NullsLastOrdering
28 NullsLastOrdering(Ordering<? super T> ordering) { in NullsLastOrdering() argument
29 this.ordering = ordering; in NullsLastOrdering()
43 return ordering.compare(left, right); in compare()
49 return ordering.reverse().nullsFirst(); in reverse()
54 return ordering.nullsFirst(); in nullsFirst()
70 return this.ordering.equals(that.ordering); in equals()
77 return ordering.hashCode() ^ -921210296; // meaningless in hashCode()
82 return ordering + ".nullsLast()"; in toString()
DNullsFirstOrdering.java26 final Ordering<? super T> ordering; field in NullsFirstOrdering
28 NullsFirstOrdering(Ordering<? super T> ordering) { in NullsFirstOrdering() argument
29 this.ordering = ordering; in NullsFirstOrdering()
43 return ordering.compare(left, right); in compare()
49 return ordering.reverse().nullsLast(); in reverse()
60 return ordering.nullsLast(); in nullsLast()
70 return this.ordering.equals(that.ordering); in equals()
77 return ordering.hashCode() ^ 957692532; // meaningless in hashCode()
82 return ordering + ".nullsFirst()"; in toString()
DByFunctionOrdering.java34 final Ordering<T> ordering; field in ByFunctionOrdering
36 ByFunctionOrdering(Function<F, ? extends T> function, Ordering<T> ordering) { in ByFunctionOrdering() argument
38 this.ordering = checkNotNull(ordering); in ByFunctionOrdering()
43 return ordering.compare(function.apply(left), function.apply(right)); in compare()
53 return this.function.equals(that.function) && this.ordering.equals(that.ordering); in equals()
60 return Objects.hashCode(function, ordering); in hashCode()
65 return ordering + ".onResultOf(" + function + ")"; in toString()
/external/python/cpython2/Lib/unittest/test/
Dtest_runner.py74 ordering = []
78 ordering.append('setUp')
83 ordering.append('test')
86 ordering.append('tearDown')
91 ordering.append('cleanup1')
93 ordering.append('cleanup2')
99 ordering.append('success')
105 self.assertEqual(ordering, ['setUp', 'test', 'tearDown',
109 ordering = []
113 self.assertEqual(ordering, ['setUp', 'cleanup1'])
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DX509Extensions.java210 private Vector ordering = new Vector(); field in X509Extensions
272 ordering.addElement(s.getObjectAt(0)); in X509Extensions()
294 Vector ordering, in X509Extensions() argument
299 if (ordering == null) in X509Extensions()
305 e = ordering.elements(); in X509Extensions()
310 this.ordering.addElement(ASN1ObjectIdentifier.getInstance(e.nextElement())); in X509Extensions()
313 e = this.ordering.elements(); in X509Extensions()
339 this.ordering.addElement(e.nextElement()); in X509Extensions()
344 e = this.ordering.elements(); in X509Extensions()
361 return ordering.elements(); in oids()
[all …]
DX509Name.java353 private Vector ordering = new Vector(); field in X509Name
425 ordering.addElement(ASN1ObjectIdentifier.getInstance(s.getObjectAt(0))); in X509Name()
483 Vector ordering, in X509Name() argument
486 this(ordering, attributes, new X509DefaultEntryConverter()); in X509Name()
502 Vector ordering, in X509Name() argument
508 if (ordering != null) in X509Name()
510 for (int i = 0; i != ordering.size(); i++) in X509Name()
512 this.ordering.addElement(ordering.elementAt(i)); in X509Name()
522 this.ordering.addElement(e.nextElement()); in X509Name()
527 for (int i = 0; i != this.ordering.size(); i++) in X509Name()
[all …]
DExtensions.java30 private Vector ordering = new Vector(); field in Extensions
85 ordering.addElement(ext.getExtnId()); in Extensions()
97 this.ordering.addElement(extension.getExtnId()); in Extensions()
113 this.ordering.addElement(ext.getExtnId()); in Extensions()
123 return ordering.elements(); in oids()
168 ASN1EncodableVector vec = new ASN1EncodableVector(ordering.size()); in toASN1Primitive()
170 Enumeration e = ordering.elements(); in toASN1Primitive()
207 return toOidArray(ordering); in getExtensionOIDs()
224 for (int i = 0; i != ordering.size(); i++) in getExtensionOIDs()
226 Object oid = ordering.elementAt(i); in getExtensionOIDs()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DX509Extensions.java212 private Vector ordering = new Vector(); field in X509Extensions
274 ordering.addElement(s.getObjectAt(0)); in X509Extensions()
296 Vector ordering, in X509Extensions() argument
301 if (ordering == null) in X509Extensions()
307 e = ordering.elements(); in X509Extensions()
312 this.ordering.addElement(ASN1ObjectIdentifier.getInstance(e.nextElement())); in X509Extensions()
315 e = this.ordering.elements(); in X509Extensions()
341 this.ordering.addElement(e.nextElement()); in X509Extensions()
346 e = this.ordering.elements(); in X509Extensions()
363 return ordering.elements(); in oids()
[all …]
DX509Name.java356 private Vector ordering = new Vector(); field in X509Name
429 ordering.addElement(ASN1ObjectIdentifier.getInstance(s.getObjectAt(0))); in X509Name()
487 Vector ordering, in X509Name() argument
490 this(ordering, attributes, new X509DefaultEntryConverter()); in X509Name()
506 Vector ordering, in X509Name() argument
512 if (ordering != null) in X509Name()
514 for (int i = 0; i != ordering.size(); i++) in X509Name()
516 this.ordering.addElement(ordering.elementAt(i)); in X509Name()
526 this.ordering.addElement(e.nextElement()); in X509Name()
531 for (int i = 0; i != this.ordering.size(); i++) in X509Name()
[all …]
DExtensions.java32 private Vector ordering = new Vector(); field in Extensions
87 ordering.addElement(ext.getExtnId()); in Extensions()
99 this.ordering.addElement(extension.getExtnId()); in Extensions()
115 this.ordering.addElement(ext.getExtnId()); in Extensions()
125 return ordering.elements(); in oids()
170 ASN1EncodableVector vec = new ASN1EncodableVector(ordering.size()); in toASN1Primitive()
172 Enumeration e = ordering.elements(); in toASN1Primitive()
209 return toOidArray(ordering); in getExtensionOIDs()
226 for (int i = 0; i != ordering.size(); i++) in getExtensionOIDs()
228 Object oid = ordering.elementAt(i); in getExtensionOIDs()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/
DX509Extensions.java212 private Vector ordering = new Vector(); field in X509Extensions
274 ordering.addElement(s.getObjectAt(0)); in X509Extensions()
296 Vector ordering, in X509Extensions() argument
301 if (ordering == null) in X509Extensions()
307 e = ordering.elements(); in X509Extensions()
312 this.ordering.addElement(ASN1ObjectIdentifier.getInstance(e.nextElement())); in X509Extensions()
315 e = this.ordering.elements(); in X509Extensions()
341 this.ordering.addElement(e.nextElement()); in X509Extensions()
346 e = this.ordering.elements(); in X509Extensions()
363 return ordering.elements(); in oids()
[all …]
DX509Name.java355 private Vector ordering = new Vector(); field in X509Name
427 ordering.addElement(ASN1ObjectIdentifier.getInstance(s.getObjectAt(0))); in X509Name()
485 Vector ordering, in X509Name() argument
488 this(ordering, attributes, new X509DefaultEntryConverter()); in X509Name()
504 Vector ordering, in X509Name() argument
510 if (ordering != null) in X509Name()
512 for (int i = 0; i != ordering.size(); i++) in X509Name()
514 this.ordering.addElement(ordering.elementAt(i)); in X509Name()
524 this.ordering.addElement(e.nextElement()); in X509Name()
529 for (int i = 0; i != this.ordering.size(); i++) in X509Name()
[all …]
DExtensions.java32 private Vector ordering = new Vector(); field in Extensions
87 ordering.addElement(ext.getExtnId()); in Extensions()
99 this.ordering.addElement(extension.getExtnId()); in Extensions()
115 this.ordering.addElement(ext.getExtnId()); in Extensions()
125 return ordering.elements(); in oids()
170 ASN1EncodableVector vec = new ASN1EncodableVector(ordering.size()); in toASN1Primitive()
172 Enumeration e = ordering.elements(); in toASN1Primitive()
209 return toOidArray(ordering); in getExtensionOIDs()
226 for (int i = 0; i != ordering.size(); i++) in getExtensionOIDs()
228 Object oid = ordering.elementAt(i); in getExtensionOIDs()
/external/junit/src/main/java/org/junit/internal/requests/
DOrderingRequest.java12 private final Ordering ordering; field in OrderingRequest
14 public OrderingRequest(Request request, Ordering ordering) { in OrderingRequest() argument
16 this.ordering = ordering; in OrderingRequest()
23 ordering.apply(runner); in createRunner()
25 return new ErrorReportingRunner(ordering.getClass(), e); in createRunner()
/external/guava/guava-tests/test/com/google/common/collect/
DOrderingTest.java242 Ordering<Object> ordering = Ordering.usingToString();
243 Helpers.testComparator(ordering, 1, 12, 124, 2);
244 assertEquals("Ordering.usingToString()", ordering.toString());
245 assertSame(ordering, reserialize(ordering));
402 Ordering<String> ordering = Ordering.natural();
403 Ordering<Iterable<String>> lexy = ordering.lexicographical();
414 .addEqualityGroup(lexy, ordering.lexicographical())
421 Ordering<Integer> ordering = Ordering.natural().nullsFirst();
422 Helpers.testComparator(ordering, null, Integer.MIN_VALUE, 0, 1);
425 .addEqualityGroup(ordering, Ordering.natural().nullsFirst())
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DOrderingTest.java242 Ordering<Object> ordering = Ordering.usingToString();
243 Helpers.testComparator(ordering, 1, 12, 124, 2);
244 assertEquals("Ordering.usingToString()", ordering.toString());
245 assertSame(ordering, reserialize(ordering));
402 Ordering<String> ordering = Ordering.natural();
403 Ordering<Iterable<String>> lexy = ordering.lexicographical();
414 .addEqualityGroup(lexy, ordering.lexicographical())
421 Ordering<Integer> ordering = Ordering.natural().nullsFirst();
422 Helpers.testComparator(ordering, null, Integer.MIN_VALUE, 0, 1);
425 .addEqualityGroup(ordering, Ordering.natural().nullsFirst())
[all …]
/external/llvm-project/lld/test/ELF/
Dsymbol-ordering-file-warnings.s3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symbol-ordering-file-warnings1.s -o …
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symbol-ordering-file-warnings2.s -o …
9 # RUN: ld.lld %t1.o -o %t --symbol-ordering-file %t-order-missing.txt \
13 # RUN: ld.lld %t1.o -o %t --symbol-ordering-file %t-order-missing.txt \
14 # RUN: --unresolved-symbols=ignore-all --no-warn-symbol-ordering 2>&1 | \
18 # RUN: ld.lld %t1.o -o %t --symbol-ordering-file %t-order-missing.txt \
19 # RUN: --unresolved-symbols=ignore-all --no-warn-symbol-ordering --warn-symbol-ordering 2>&1 | \
24 # RUN: ld.lld %t1.o %t.so -o %t --symbol-ordering-file %t-order-shared.txt \
29 # RUN: ld.lld %t1.o -o %t --symbol-ordering-file %t-order-absolute.txt \
34 # RUN: ld.lld %t1.o -o %t --symbol-ordering-file %t-order-gc.txt --gc-sections \
[all …]
Dsymbol-ordering-file.s25 ## Show that both --symbol-ordering-file and --symbol-ordering-file= work.
29 # RUN: ld.lld --symbol-ordering-file %t_order.txt %t.o -o %t2.out 2>&1 | \
32 # RUN: ld.lld --symbol-ordering-file=%t_order.txt %t.o -o %t2.out
42 ## Show that a nonexistent symbol ordering file causes an error.
43 # RUN: not ld.lld --symbol-ordering-file=%t.nonexistent %t.o -o %t3.out 2>&1 | \
48 ## Show that an empty ordering file can be handled (symbols remain in their
51 # RUN: ld.lld --symbol-ordering-file=%t.empty %t.o -o %t4.out
/external/cldr/tools/java/org/unicode/cldr/util/
DDiscreteComparator.java43 private Map<T, Integer> ordering; field in DiscreteComparator
46 private DiscreteComparator(Map<T, Integer> ordering, Comparator<T> backupOrdering) { in DiscreteComparator() argument
48 this.ordering = ordering; in DiscreteComparator()
68 Integer a = ordering.get(o1); in compare()
69 Integer b = ordering.get(o2); in compare()
96 return new ArrayList<>(ordering.keySet()); in getOrdering()
101 return ordering.keySet().toString(); in toString()
241 Map<T, Integer> ordering = new LinkedHashMap<>(); in get() local
245 subNode.visit(ordering); in get()
250 + "\n\tordering:" + ordering, in get()
[all …]
DMapComparator.java31 private Map<K, Integer> ordering = new TreeMap<>(); // maps from name to rank field in MapComparator
94 Integer already = ordering.get(newObject); in add()
97 ordering.put(newObject, new Integer(rankToName.size())); in add()
104 return ordering.get(object); in getNumericOrder()
130 Integer aa = ordering.get(a); in compare()
131 Integer bb = ordering.get(b); in compare()
243 result.ordering = (Map<K, Integer>) ((TreeMap<K, Integer>) ordering).clone(); in cloneAsThawed()
252 Integer result = ordering.get(item); in getOrdering()

12345678910>>...33