Home
last modified time | relevance | path

Searched refs:eq (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/runtime/
DObjectMethods.java170 private static boolean eq(Object a, Object b) { return a == b; } in eq() method in ObjectMethods
171 private static boolean eq(byte a, byte b) { return a == b; } in eq() method in ObjectMethods
172 private static boolean eq(short a, short b) { return a == b; } in eq() method in ObjectMethods
173 private static boolean eq(char a, char b) { return a == b; } in eq() method in ObjectMethods
174 private static boolean eq(int a, int b) { return a == b; } in eq() method in ObjectMethods
175 private static boolean eq(long a, long b) { return a == b; } in eq() method in ObjectMethods
176 private static boolean eq(float a, float b) { return Float.compare(a, b) == 0; } in eq() method in ObjectMethods
177 private static boolean eq(double a, double b) { return Double.compare(a, b) == 0; } in eq() method in ObjectMethods
178 private static boolean eq(boolean a, boolean b) { return a == b; } in eq() method in ObjectMethods
/libcore/ojluni/src/main/java/java/util/
DAbstractMap.java581 private static boolean eq(Object o1, Object o2) { in eq() method in AbstractMap
694 && eq(key, e.getKey()) in equals()
695 && eq(value, e.getValue()); in equals()
841 && eq(key, e.getKey()) in equals()
842 && eq(value, e.getValue()); in equals()
DArrays.java4670 boolean eq = deepEquals0(e1, e2); in deepEquals()
4672 if (!eq) in deepEquals()
4680 boolean eq; in deepEquals0()
4682 eq = deepEquals ((Object[]) e1, (Object[]) e2); in deepEquals0()
4684 eq = equals((byte[]) e1, (byte[]) e2); in deepEquals0()
4686 eq = equals((short[]) e1, (short[]) e2); in deepEquals0()
4688 eq = equals((int[]) e1, (int[]) e2); in deepEquals0()
4690 eq = equals((long[]) e1, (long[]) e2); in deepEquals0()
4692 eq = equals((char[]) e1, (char[]) e2); in deepEquals0()
4694 eq = equals((float[]) e1, (float[]) e2); in deepEquals0()
[all …]
DCollections.java959 if (!eq(target.get(i), source.get(j))) in indexOfSubList()
969 if (!eq(ti.next(), si.next())) { in indexOfSubList()
1012 if (!eq(target.get(i), source.get(j))) in lastIndexOfSubList()
1024 if (!eq(ti.next(), si.next())) { in lastIndexOfSubList()
1872 return eq(e.getKey(), t.getKey()) &&
1873 eq(e.getValue(), t.getValue());
4983 public boolean contains(Object o) {return eq(o, element);}
5038 public boolean contains(Object obj) {return eq(obj, element);}
5109 public boolean containsKey(Object key) {return eq(key, k);}
5110 public boolean containsValue(Object value) {return eq(value, v);}
[all …]
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java56 eq(now, MILLISECONDS, now, MILLISECONDS); in main()
57 eq(now, MILLISECONDS, now*1000L, MICROSECONDS); in main()
61 eq(nowInstant, now, MILLISECONDS); in main()
62 eq(nowInstant, now*1000L, MICROSECONDS); in main()
277 static void eq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in eq() method in FileTimeTest
286 static void eq(Instant ins, long v2, TimeUnit u2) { in eq() method in FileTimeTest
/libcore/ojluni/src/test/java/nio/Buffer/
DEqualsCompareTest.java88 final MethodHandle eq; field in EqualsCompareTest.BufferType
102eq = lookup.findVirtual(bufferType, "equals", MethodType.methodType(boolean.class, Object.class)); in BufferType()
160 return (boolean) eq.invoke(a, b); in equals()
643 boolean eq = bt.pairWiseEquals(as, bs); in testBufferType()
644 Assert.assertEquals(bt.equals(as, bs), eq); in testBufferType() local
645 Assert.assertEquals(bt.equals(bs, as), eq); in testBufferType() local
646 if (eq) { in testBufferType()
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java69 import static org.mockito.Mockito.eq;
203 verify(mockOsDelegate, times(1)).connect(eq(udpSocket), any(), anyInt()); in test_connect_networkPolicy()
213 verify(mockOsDelegate, times(1)).connect(eq(tcpSocket), any(), anyInt()); in test_connect_networkPolicy()
/libcore/ojluni/src/test/java/util/Arrays/
DArraysEqCmpTest.java82 final MethodHandle eq; field in ArraysEqCmpTest.ArrayType
116 eq = l.findStatic(Arrays.class, "equals", eqt); in ArrayType()
142 eq = l.findStatic(Arrays.class, "equals", eqt); in ArrayType()
210 return (boolean) eq.invoke(a, b); in equals()
857 boolean eq = isEqual(at, a, aFrom, aTo, b, bFrom, bTo); in testArrayType()
858 Assert.assertEquals(at.equals(a, aFrom, aTo, b, bFrom, bTo), eq); in testArrayType() local
859 Assert.assertEquals(at.equals(b, bFrom, bTo, a, aFrom, aTo), eq); in testArrayType() local
860 Assert.assertEquals(at.equals(anr, bnr), eq); in testArrayType() local
861 Assert.assertEquals(at.equals(bnr, anr), eq); in testArrayType() local
862 if (eq) { in testArrayType()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTreeSetTest.java1006 static boolean eq(Integer i, int j) { in eq() method in TreeSetTest
DConcurrentSkipListSetTest.java1012 static boolean eq(Integer i, int j) { in eq() method in ConcurrentSkipListSetTest
DTreeMapTest.java1108 static boolean eq(Integer i, int j) {
DConcurrentSkipListMapTest.java1303 static boolean eq(Integer i, int j) {
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSetTest.java981 static boolean eq(Integer i, int j) { in eq() method in ConcurrentSkipListSetTest
DTreeSetTest.java982 static boolean eq(Integer i, int j) { in eq() method in TreeSetTest
DTreeMapTest.java1085 static boolean eq(Integer i, int j) {
DConcurrentSkipListMapTest.java1280 static boolean eq(Integer i, int j) {
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java367 static boolean eq(java.lang.Object o1, java.lang.Object o2) { in eq() method in Collections