/libcore/support/src/test/java/tests/support/ |
D | Support_GetPutFieldsDefaulted.java | 82 SimpleClass other = (SimpleClass) obj; in equals() local 83 return (a == other.getA() && b.equals(other.getB())); in equals() 104 Support_GetPutFieldsDefaulted other = (Support_GetPutFieldsDefaulted) obj; in equals() local 105 return (booleanValue == other.booleanValue && in equals() 106 byteValue == other.byteValue && in equals() 107 charValue == other.charValue && in equals() 108 doubleValue == other.doubleValue && in equals() 109 floatValue == other.floatValue && in equals() 110 longValue == other.longValue && in equals() 111 intValue == other.intValue && in equals() [all …]
|
D | Support_GetPutFields.java | 71 SimpleClass other = (SimpleClass) obj; in equals() local 72 return (a == other.getA() && b.equals(other.getB())); in equals() 93 Support_GetPutFields other = (Support_GetPutFields) obj; in equals() local 94 return (booleanValue == other.booleanValue && in equals() 95 byteValue == other.byteValue && in equals() 96 charValue == other.charValue && in equals() 97 doubleValue == other.doubleValue && in equals() 98 floatValue == other.floatValue && in equals() 99 longValue == other.longValue && in equals() 100 intValue == other.intValue && in equals() [all …]
|
D | Support_GetPutFieldsDeprecated.java | 73 SimpleClass other = (SimpleClass) obj; in equals() local 74 return (a == other.getA() && b.equals(other.getB())); in equals() 95 Support_GetPutFields other = (Support_GetPutFields) obj; in equals() local 96 return (booleanValue == other.booleanValue && in equals() 97 byteValue == other.byteValue && in equals() 98 charValue == other.charValue && in equals() 99 doubleValue == other.doubleValue && in equals() 100 floatValue == other.floatValue && in equals() 101 longValue == other.longValue && in equals() 102 intValue == other.intValue && in equals() [all …]
|
/libcore/dex/src/main/java/com/android/dex/ |
D | FieldId.java | 46 public int compareTo(FieldId other) { in compareTo() argument 47 if (declaringClassIndex != other.declaringClassIndex) { in compareTo() 48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex); in compareTo() 50 if (nameIndex != other.nameIndex) { in compareTo() 51 return Unsigned.compare(nameIndex, other.nameIndex); in compareTo() 53 return Unsigned.compare(typeIndex, other.typeIndex); // should always be 0 in compareTo()
|
D | MethodId.java | 46 public int compareTo(MethodId other) { in compareTo() argument 47 if (declaringClassIndex != other.declaringClassIndex) { in compareTo() 48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex); in compareTo() 50 if (nameIndex != other.nameIndex) { in compareTo() 51 return Unsigned.compare(nameIndex, other.nameIndex); in compareTo() 53 return Unsigned.compare(protoIndex, other.protoIndex); in compareTo()
|
D | EncodedValue.java | 44 @Override public int compareTo(EncodedValue other) { in compareTo() argument 45 int size = Math.min(data.length, other.data.length); in compareTo() 47 if (data[i] != other.data[i]) { in compareTo() 48 return (data[i] & 0xff) - (other.data[i] & 0xff); in compareTo() 51 return data.length - other.data.length; in compareTo()
|
D | TypeList.java | 37 @Override public int compareTo(TypeList other) { in compareTo() argument 38 for (int i = 0; i < types.length && i < other.types.length; i++) { in compareTo() 39 if (types[i] != other.types[i]) { in compareTo() 40 return Unsigned.compare(types[i], other.types[i]); in compareTo() 43 return Unsigned.compare(types.length, other.types.length); in compareTo()
|
D | ProtoId.java | 34 public int compareTo(ProtoId other) { in compareTo() argument 35 if (returnTypeIndex != other.returnTypeIndex) { in compareTo() 36 return Unsigned.compare(returnTypeIndex, other.returnTypeIndex); in compareTo() 38 return Unsigned.compare(parametersOffset, other.parametersOffset); in compareTo()
|
/libcore/luni/src/main/java/java/security/spec/ |
D | ECPoint.java | 88 public boolean equals(Object other) { in equals() argument 89 if (this == other) { in equals() 92 if (other instanceof ECPoint) { in equals() 94 ECPoint otherPoint = (ECPoint)other; in equals() 99 return other == POINT_INFINITY; in equals()
|
/libcore/json/src/test/java/org/json/ |
D | JSONArrayTest.java | 103 JSONArray other = new JSONArray(); in testBooleans() local 104 other.put(true); in testBooleans() 105 other.put(false); in testBooleans() 106 other.put(true); in testBooleans() 107 other.put(false); in testBooleans() 108 assertTrue(array.equals(other)); in testBooleans() 109 other.put(true); in testBooleans() 110 assertFalse(array.equals(other)); in testBooleans() 112 other = new JSONArray(); in testBooleans() 113 other.put("true"); in testBooleans() [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | LongArrayBuffer.java | 42 private static LongArrayBuffer copy(LongArrayBuffer other, int markOfOther, boolean isReadOnly) { in copy() argument 43 …LongArrayBuffer buf = new LongArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset,… in copy() 44 buf.limit = other.limit; in copy() 45 buf.position = other.position(); in copy()
|
D | FloatArrayBuffer.java | 42 …private static FloatArrayBuffer copy(FloatArrayBuffer other, int markOfOther, boolean isReadOnly) { in copy() argument 43 …FloatArrayBuffer buf = new FloatArrayBuffer(other.capacity(), other.backingArray, other.arrayOffse… in copy() 44 buf.limit = other.limit; in copy() 45 buf.position = other.position(); in copy()
|
D | DoubleArrayBuffer.java | 42 …private static DoubleArrayBuffer copy(DoubleArrayBuffer other, int markOfOther, boolean isReadOnly… in copy() argument 43 …DoubleArrayBuffer buf = new DoubleArrayBuffer(other.capacity(), other.backingArray, other.arrayOff… in copy() 44 buf.limit = other.limit; in copy() 45 buf.position = other.position(); in copy()
|
D | ShortArrayBuffer.java | 42 …private static ShortArrayBuffer copy(ShortArrayBuffer other, int markOfOther, boolean isReadOnly) { in copy() argument 43 …ShortArrayBuffer buf = new ShortArrayBuffer(other.capacity(), other.backingArray, other.arrayOffse… in copy() 44 buf.limit = other.limit; in copy() 45 buf.position = other.position(); in copy()
|
D | IntArrayBuffer.java | 42 private static IntArrayBuffer copy(IntArrayBuffer other, int markOfOther, boolean isReadOnly) { in copy() argument 43 …IntArrayBuffer buf = new IntArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, i… in copy() 44 buf.limit = other.limit; in copy() 45 buf.position = other.position(); in copy()
|
D | CharSequenceAdapter.java | 34 static CharSequenceAdapter copy(CharSequenceAdapter other) { in copy() argument 35 CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence); in copy() 36 buf.limit = other.limit; in copy() 37 buf.position = other.position; in copy() 38 buf.mark = other.mark; in copy()
|
D | CharArrayBuffer.java | 42 private static CharArrayBuffer copy(CharArrayBuffer other, int markOfOther, boolean isReadOnly) { in copy() argument 43 …CharArrayBuffer buf = new CharArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset,… in copy() 44 buf.limit = other.limit; in copy() 45 buf.position = other.position(); in copy()
|
/libcore/luni/src/main/java/java/security/cert/ |
D | X509CRLEntry.java | 48 public boolean equals(Object other) { in equals() argument 49 if (other == this) { in equals() 52 if (!(other instanceof X509CRLEntry)) { in equals() 55 X509CRLEntry obj = (X509CRLEntry) other; in equals()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | DocumentBuilderSettingStrategy.java | 15 public boolean hasConflict(DocumentBuilderSettingStrategy other) { in hasConflict() argument 16 return (other == this); in hasConflict() 147 public boolean hasConflict(DocumentBuilderSettingStrategy other) { 148 if (other == this 149 || other == DocumentBuilderSettingStrategy.namespaceAware 150 || other == DocumentBuilderSettingStrategy.validating) {
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DocumentBuilderSettingStrategy.java | 33 public boolean hasConflict(DocumentBuilderSettingStrategy other) { in hasConflict() argument 34 return (other == this); in hasConflict() 188 public boolean hasConflict(DocumentBuilderSettingStrategy other) { 189 if (other == this || 190 other == DocumentBuilderSettingStrategy.namespaceAware || 191 other == DocumentBuilderSettingStrategy.validating) {
|
/libcore/luni/src/main/java/libcore/icu/ |
D | CollationKeyICU.java | 34 @Override public int compareTo(CollationKey other) { in compareTo() argument 37 if (other instanceof CollationKeyICU) { in compareTo() 38 rhsBytes = ((CollationKeyICU) other).bytes; in compareTo() 40 rhsBytes = other.toByteArray(); in compareTo()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | IntBufferTest.java | 166 IntBuffer other = IntBuffer.allocate(buf.capacity()); in testCompareTo() local 167 loadTestData1(other); in testCompareTo() 168 assertEquals(0, buf.compareTo(other)); in testCompareTo() 169 assertEquals(0, other.compareTo(buf)); in testCompareTo() 171 assertTrue(buf.compareTo(other) > 0); in testCompareTo() 172 assertTrue(other.compareTo(buf) < 0); in testCompareTo() 173 other.position(2); in testCompareTo() 174 assertTrue(buf.compareTo(other) < 0); in testCompareTo() 175 assertTrue(other.compareTo(buf) > 0); in testCompareTo() 177 other.limit(5); in testCompareTo() [all …]
|
D | DoubleBufferTest.java | 184 DoubleBuffer other = DoubleBuffer.allocate(buf.capacity()); in testCompareTo() local 185 loadTestData1(other); in testCompareTo() 186 assertEquals(0, buf.compareTo(other)); in testCompareTo() 187 assertEquals(0, other.compareTo(buf)); in testCompareTo() 189 assertTrue(buf.compareTo(other) > 0); in testCompareTo() 190 assertTrue(other.compareTo(buf) < 0); in testCompareTo() 191 other.position(2); in testCompareTo() 192 assertTrue(buf.compareTo(other) < 0); in testCompareTo() 193 assertTrue(other.compareTo(buf) > 0); in testCompareTo() 195 other.limit(5); in testCompareTo() [all …]
|
D | FloatBufferTest.java | 174 FloatBuffer other = FloatBuffer.allocate(buf.capacity()); in testCompareTo() local 175 loadTestData1(other); in testCompareTo() 176 assertEquals(0, buf.compareTo(other)); in testCompareTo() 177 assertEquals(0, other.compareTo(buf)); in testCompareTo() 179 assertTrue(buf.compareTo(other) > 0); in testCompareTo() 180 assertTrue(other.compareTo(buf) < 0); in testCompareTo() 181 other.position(2); in testCompareTo() 182 assertTrue(buf.compareTo(other) < 0); in testCompareTo() 183 assertTrue(other.compareTo(buf) > 0); in testCompareTo() 185 other.limit(5); in testCompareTo() [all …]
|
D | LongBufferTest.java | 166 LongBuffer other = LongBuffer.allocate(buf.capacity()); in testCompareTo() local 167 loadTestData1(other); in testCompareTo() 168 assertEquals(0, buf.compareTo(other)); in testCompareTo() 169 assertEquals(0, other.compareTo(buf)); in testCompareTo() 171 assertTrue(buf.compareTo(other) > 0); in testCompareTo() 172 assertTrue(other.compareTo(buf) < 0); in testCompareTo() 173 other.position(2); in testCompareTo() 174 assertTrue(buf.compareTo(other) < 0); in testCompareTo() 175 assertTrue(other.compareTo(buf) > 0); in testCompareTo() 177 other.limit(5); in testCompareTo() [all …]
|