Home
last modified time | relevance | path

Searched refs:equivalence (Results 1 – 25 of 257) sorted by relevance

1234567891011

/external/guava/android/guava/src/com/google/common/base/
DEquivalence.java176 private final Equivalence<? super T> equivalence; field in Equivalence.Wrapper
179 private Wrapper(Equivalence<? super T> equivalence, @NullableDecl T reference) { in Wrapper() argument
180 this.equivalence = checkNotNull(equivalence); in Wrapper()
203 if (this.equivalence.equals(that.equivalence)) { in equals()
209 Equivalence<Object> equivalence = (Equivalence<Object>) this.equivalence; in equals() local
210 return equivalence.equivalent(this.reference, that.reference); in equals()
219 return equivalence.hash(reference); in hashCode()
228 return equivalence + ".wrap(" + reference + ")"; in toString()
264 private final Equivalence<T> equivalence; field in Equivalence.EquivalentToPredicate
267 EquivalentToPredicate(Equivalence<T> equivalence, @NullableDecl T target) { in EquivalentToPredicate() argument
[all …]
/external/guava/guava/src/com/google/common/base/
DEquivalence.java186 private final Equivalence<? super T> equivalence; field in Equivalence.Wrapper
189 private Wrapper(Equivalence<? super T> equivalence, @Nullable T reference) { in Wrapper() argument
190 this.equivalence = checkNotNull(equivalence); in Wrapper()
212 if (this.equivalence.equals(that.equivalence)) { in equals()
218 Equivalence<Object> equivalence = (Equivalence<Object>) this.equivalence; in equals() local
219 return equivalence.equivalent(this.reference, that.reference); in equals()
228 return equivalence.hash(reference); in hashCode()
237 return equivalence + ".wrap(" + reference + ")"; in toString()
273 private final Equivalence<T> equivalence; field in Equivalence.EquivalentToPredicate
276 EquivalentToPredicate(Equivalence<T> equivalence, @Nullable T target) { in EquivalentToPredicate() argument
[all …]
/external/guava/guava-testlib/src/com/google/common/testing/
DEquivalenceTester.java57 private final Equivalence<? super T> equivalence; field in EquivalenceTester
61 private EquivalenceTester(Equivalence<? super T> equivalence) { in EquivalenceTester() argument
62 this.equivalence = checkNotNull(equivalence); in EquivalenceTester()
64 new RelationshipTester<T>(equivalence, "equivalent", "hash", new ItemReporter()); in EquivalenceTester()
67 public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) { in of() argument
68 return new EquivalenceTester<T>(equivalence); in of()
101 assertTrue(item + " must be inequivalent to null", !equivalence.equivalent(item, null)); in testItems()
102 assertTrue("null must be inequivalent to " + item, !equivalence.equivalent(null, item)); in testItems()
103 assertTrue(item + " must be equivalent to itself", equivalence.equivalent(item, item)); in testItems()
106 equivalence.hash(item), in testItems()
[all …]
DRelationshipTester.java50 private final Equivalence<? super T> equivalence; field in RelationshipTester
58 Equivalence<? super T> equivalence, in RelationshipTester() argument
62 this.equivalence = checkNotNull(equivalence); in RelationshipTester()
111 equivalence.equivalent(item, related)); in assertRelated()
113 int itemHash = equivalence.hash(item); in assertRelated()
114 int relatedHash = equivalence.hash(related); in assertRelated()
135 !equivalence.equivalent(itemInfo.value, unrelatedInfo.value)); in assertUnrelated()
DCollectorTester.java65 Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) { in of() argument
66 return new CollectorTester<>(collector, equivalence); in of()
70 private final BiPredicate<? super R, ? super R> equivalence; field in CollectorTester
73 Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) { in CollectorTester() argument
75 this.equivalence = checkNotNull(equivalence); in CollectorTester()
165 "Expected " + expected + " got " + actual + " modulo equivalence " + equivalence, in assertEquivalent()
166 equivalence.test(expected, actual)); in assertEquivalent()
/external/guava/android/guava-testlib/src/com/google/common/testing/
DEquivalenceTester.java57 private final Equivalence<? super T> equivalence; field in EquivalenceTester
61 private EquivalenceTester(Equivalence<? super T> equivalence) { in EquivalenceTester() argument
62 this.equivalence = checkNotNull(equivalence); in EquivalenceTester()
64 new RelationshipTester<T>(equivalence, "equivalent", "hash", new ItemReporter()); in EquivalenceTester()
67 public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) { in of() argument
68 return new EquivalenceTester<T>(equivalence); in of()
101 assertTrue(item + " must be inequivalent to null", !equivalence.equivalent(item, null)); in testItems()
102 assertTrue("null must be inequivalent to " + item, !equivalence.equivalent(null, item)); in testItems()
103 assertTrue(item + " must be equivalent to itself", equivalence.equivalent(item, item)); in testItems()
106 equivalence.hash(item), in testItems()
[all …]
DRelationshipTester.java50 private final Equivalence<? super T> equivalence; field in RelationshipTester
58 Equivalence<? super T> equivalence, in RelationshipTester() argument
62 this.equivalence = checkNotNull(equivalence); in RelationshipTester()
111 equivalence.equivalent(item, related)); in assertRelated()
113 int itemHash = equivalence.hash(item); in assertRelated()
114 int relatedHash = equivalence.hash(related); in assertRelated()
135 !equivalence.equivalent(itemInfo.value, unrelatedInfo.value)); in assertUnrelated()
/external/llvm-project/llvm/test/tools/llvm-cov/
Dmultithreaded-report.test4 RUN: -path-equivalence=/tmp,%S/Inputs \
9 RUN: -path-equivalence=/tmp,%S/Inputs \
17 RUN: -path-equivalence=/tmp,%S/Inputs \
22 RUN: -path-equivalence=/tmp,%S/Inputs \
30 RUN: -path-equivalence=/tmp,%S/Inputs \
35 RUN: -path-equivalence=/tmp,%S/Inputs \
43 RUN: -path-equivalence=/tmp,%S/Inputs \
48 RUN: -path-equivalence=/tmp,%S/Inputs \
56 RUN: -path-equivalence=/tmp,%S/Inputs \
61 RUN: -path-equivalence=/tmp,%S/Inputs \
[all …]
Dignore-filename-regex.test6 RUN: -path-equivalence=/tmp,%S/Inputs -ignore-filename-regex='.*\.h$' \
17 RUN: -path-equivalence=/tmp,%S/Inputs -ignore-filename-regex='.*extra[/\\].*' \
29 RUN: -path-equivalence=/tmp,%S/Inputs -ignore-filename-regex='.*extra[/\\].*' \
45 RUN: -path-equivalence=/tmp,%S/Inputs -ignore-filename-regex='.*\.cc$' \
61 RUN: -path-equivalence=/tmp,%S/Inputs -ignore-filename-regex='.*...\.h$' \
Ddemangle.test1 …ateInstantiations.profdata -Xdemangler sed -Xdemangler 's/_/X/g' -path-equivalence=/tmp,%S %S/show…
5 …-instr-profile %t.profdata -Xdemangler sed -Xdemangler 's/_/X/g' -path-equivalence=/tmp,%S %S/show…
8 …ateInstantiations.profdata -Xdemangler sed -Xdemangler 's/_/X/g' -path-equivalence=/tmp,%S %S/show…
Duniversal_bin_wrapping_archives.test20 RUN: -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs/universal_bin_wrapping_archives …
24 RUN: -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs/universal_bin_wrapping_archives …
33 RUN: -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs/universal_bin_wrapping_archives …
37 RUN: -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs/universal_bin_wrapping_archives …
Dcov-comdat.test8 ….v1.linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -path-equivalence=/tmp,%S/Inputs …
12 ….v2.linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -path-equivalence=/root/llvm/test…
13 ….v2.linux32l -instr-profile %S/Inputs/elf_binary_comdat.profdata -path-equivalence=/root/llvm/R/..…
Ddir-with-filtering.test5 …-with-filtering.covmapping -o %t.text -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs …
27 …tering.covmapping -o %t.text_one_file -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs …
37 …tering.covmapping -o %t.text_one_func -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs …
46 …ng.covmapping -format html -o %t.html -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs …
70 …ping -format html -o %t.html_one_file -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs …
81 …ping -format html -o %t.html_one_func -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs …
Dsources-specified.test2 RUN: -path-equivalence=/tmp,%S/Inputs \
8 RUN: -path-equivalence=/tmp,%S/Inputs \
15 RUN: -path-equivalence=/tmp,%S/Inputs \
38 RUN: -path-equivalence=/tmp,%S/Inputs \
Dstyle.test1 …mapping -instr-profile %S/Inputs/templateInstantiations.profdata -path-equivalence=/tmp,%S %S/show…
3 …mapping -instr-profile %S/Inputs/templateInstantiations.profdata -path-equivalence=/tmp,%S -name=_…
5 …mapping -instr-profile %S/Inputs/templateInstantiations.profdata -path-equivalence=/tmp,%S %S/show…
Dname_whitelist.test3 RUN: llvm-cov show %S/Inputs/name_whitelist.covmapping -instr-profile=%t.profdata -path-equivalence
13 RUN: llvm-cov show %S/Inputs/name_whitelist.covmapping -instr-profile=%t.profdata -path-equivalence
/external/selinux/python/sepolicy/sepolicy/help/
Dfile_equiv.txt1 …her setup labeling directory using the Application/files screen, or you can setup file equivalence.
7 …nt in a location other then /var/www like /srv/www. He could define an equivalence between /srv/ww…
9 libselinux reads the equivalence rules and does the substitution when ever the matchpathcon functio…
15 Another common case where you might want to use file equivalence, is if you put your users home dir…
17 If you setup an equivalence between /home and /export/home
/external/auto/common/src/main/java/com/google/auto/common/
DAnnotationMirrors.java48 return MoreTypes.equivalence().equivalent(left.getAnnotationType(),
49 right.getAnnotationType()) && AnnotationValues.equivalence().pairwise().equivalent(
58 return Arrays.hashCode(new int[] {MoreTypes.equivalence().hash(type),
59 AnnotationValues.equivalence().pairwise().hash(annotationValues)});
68 public static Equivalence<AnnotationMirror> equivalence() { in equivalence() method in AnnotationMirrors
DAnnotationValues.java62 return AnnotationMirrors.equivalence().equivalent(left, right);
82 return AnnotationValues.equivalence().pairwise().equivalent(
98 return MoreTypes.equivalence().equivalent(left, right);
108 return AnnotationMirrors.equivalence().hash(value);
114 return AnnotationValues.equivalence().pairwise().hash((List<AnnotationValue>) values);
118 return MoreTypes.equivalence().hash(value);
136 public static Equivalence<AnnotationValue> equivalence() { in equivalence() method in AnnotationValues
/external/guava/guava-tests/test/com/google/common/collect/
DTablesTest.java41 Equivalence<Table<String, String, Integer>> equivalence = in testToTable() local
43 CollectorTester.of(collector, equivalence) in testToTable()
63 Equivalence<Table<String, String, Integer>> equivalence = in testToTableNullMerge() local
65 CollectorTester.of(collector, equivalence) in testToTableNullMerge()
105 Equivalence<Table<String, String, Integer>> equivalence = in testToTableMerging() local
107 CollectorTester.of(collector, equivalence) in testToTableMerging()
DImmutableEnumMapTest.java111 Equivalence<ImmutableMap<AnEnum, Integer>> equivalence = in testToImmutableEnumMap() local
113 CollectorTester.of(collector, equivalence) in testToImmutableEnumMap()
134 Equivalence<ImmutableMap<AnEnum, Integer>> equivalence = in testToImmutableMapMerging() local
136 CollectorTester.of(collector, equivalence) in testToImmutableMapMerging()
/external/llvm/test/tools/llvm-cov/
Dcov-comdat.test10 …linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence %S/Inputs/instr…
11 …linux64l -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence %S/Inputs/instr…
12 …linux32l -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence %S/Inputs/instr…
/external/llvm-project/compiler-rt/test/fuzzer/
Dequivalence.test9 CHECK: ERROR: libFuzzer: equivalence-mismatch. Sizes: {{.*}}; offset 2
10 CHECK: SUMMARY: libFuzzer: equivalence-mismatch
/external/auto/value/src/main/java/com/google/auto/value/extension/serializable/processor/
DSerializableAutoValueExtension.java187 .map(MoreTypes.equivalence()::wrap) in buildSerializersMap()
191 Function.identity(), equivalence -> factory.getSerializer(equivalence.get()))); in buildSerializersMap()
252 .get(MoreTypes.equivalence().wrap(propertyMirror.getType())) in properties()
266 serializersMap.get(MoreTypes.equivalence().wrap(propertyMirror.getType())); in constructor()
296 .get(MoreTypes.equivalence().wrap(propertyMirror.getType())) in resolve()
/external/dagger2/java/dagger/internal/codegen/validation/
DTypeHierarchyValidator.java43 queued.add(MoreTypes.equivalence().wrap(type)); in validateTypeHierarchy()
50 if (queued.add(MoreTypes.equivalence().wrap(superType))) { in validateTypeHierarchy()

1234567891011