/libcore/dex/src/main/java/com/android/dex/ |
H A D | EncodedValue.java | 44 @Override public int compareTo(EncodedValue other) { argument 45 int size = Math.min(data.length, other.data.length); 47 if (data[i] != other.data[i]) { 48 return (data[i] & 0xff) - (other.data[i] & 0xff); 51 return data.length - other.data.length;
|
H A D | FieldId.java | 46 public int compareTo(FieldId other) { argument 47 if (declaringClassIndex != other.declaringClassIndex) { 48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex); 50 if (nameIndex != other.nameIndex) { 51 return Unsigned.compare(nameIndex, other.nameIndex); 53 return Unsigned.compare(typeIndex, other.typeIndex); // should always be 0
|
H A D | MethodId.java | 46 public int compareTo(MethodId other) { argument 47 if (declaringClassIndex != other.declaringClassIndex) { 48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex); 50 if (nameIndex != other.nameIndex) { 51 return Unsigned.compare(nameIndex, other.nameIndex); 53 return Unsigned.compare(protoIndex, other.protoIndex);
|
H A D | TypeList.java | 37 @Override public int compareTo(TypeList other) { argument 38 for (int i = 0; i < types.length && i < other.types.length; i++) { 39 if (types[i] != other.types[i]) { 40 return Unsigned.compare(types[i], other.types[i]); 43 return Unsigned.compare(types.length, other.types.length);
|
H A D | ProtoId.java | 34 public int compareTo(ProtoId other) { argument 35 if (returnTypeIndex != other.returnTypeIndex) { 36 return Unsigned.compare(returnTypeIndex, other.returnTypeIndex); 38 return Unsigned.compare(parametersOffset, other.parametersOffset);
|
H A D | Annotation.java | 54 @Override public int compareTo(Annotation other) { argument 55 return encodedAnnotation.compareTo(other.encodedAnnotation);
|
/libcore/luni/src/main/java/java/security/spec/ |
H A D | ECPoint.java | 83 * @param other 88 public boolean equals(Object other) { argument 89 if (this == other) { 92 if (other instanceof ECPoint) { 94 ECPoint otherPoint = (ECPoint)other; 99 return other == POINT_INFINITY;
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_GetPutFields.java | 71 SimpleClass other = (SimpleClass) obj; 72 return (a == other.getA() && b.equals(other.getB())); 93 Support_GetPutFields other = (Support_GetPutFields) obj; 94 return (booleanValue == other.booleanValue && 95 byteValue == other.byteValue && 96 charValue == other.charValue && 97 doubleValue == other.doubleValue && 98 floatValue == other.floatValue && 99 longValue == other [all...] |
H A D | Support_GetPutFieldsDefaulted.java | 82 SimpleClass other = (SimpleClass) obj; 83 return (a == other.getA() && b.equals(other.getB())); 104 Support_GetPutFieldsDefaulted other = (Support_GetPutFieldsDefaulted) obj; 105 return (booleanValue == other.booleanValue && 106 byteValue == other.byteValue && 107 charValue == other.charValue && 108 doubleValue == other.doubleValue && 109 floatValue == other.floatValue && 110 longValue == other [all...] |
H A D | Support_GetPutFieldsDeprecated.java | 73 SimpleClass other = (SimpleClass) obj; 74 return (a == other.getA() && b.equals(other.getB())); 95 Support_GetPutFields other = (Support_GetPutFields) obj; 96 return (booleanValue == other.booleanValue && 97 byteValue == other.byteValue && 98 charValue == other.charValue && 99 doubleValue == other.doubleValue && 100 floatValue == other.floatValue && 101 longValue == other [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
H A D | X509CRLEntry.java | 43 * @param other 48 public boolean equals(Object other) { argument 49 if (other == this) { 52 if (!(other instanceof X509CRLEntry)) { 55 X509CRLEntry obj = (X509CRLEntry) other;
|
H A D | CertPath.java | 72 * @param other 76 public boolean equals(Object other) { argument 77 if (this == other) { 80 if (other instanceof CertPath) { 81 CertPath o = (CertPath)other;
|
H A D | Certificate.java | 69 * @param other 75 public boolean equals(Object other) { argument 77 if (this == other) { 80 if (other instanceof Certificate) { 84 ((Certificate)other).getEncoded());
|
H A D | X509CRL.java | 54 * @param other 59 public boolean equals(Object other) { argument 60 if (other == this) { 63 if (!(other instanceof X509CRL)) { 66 X509CRL obj = (X509CRL) other;
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | CollationKeyICU.java | 34 @Override public int compareTo(CollationKey other) { argument 35 // Get the bytes from the other collation key. 37 if (other instanceof CollationKeyICU) { 38 rhsBytes = ((CollationKeyICU) other).bytes; 40 rhsBytes = other.toByteArray();
|
/libcore/luni/src/main/java/java/nio/ |
H A D | CharSequenceAdapter.java | 34 static CharSequenceAdapter copy(CharSequenceAdapter other) { argument 35 CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence); 36 buf.limit = other.limit; 37 buf.position = other.position; 38 buf.mark = other.mark;
|
H A D | CharArrayBuffer.java | 42 private static CharArrayBuffer copy(CharArrayBuffer other, int markOfOther, boolean isReadOnly) { argument 43 CharArrayBuffer buf = new CharArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 44 buf.limit = other.limit; 45 buf.position = other.position();
|
H A D | DoubleArrayBuffer.java | 42 private static DoubleArrayBuffer copy(DoubleArrayBuffer other, int markOfOther, boolean isReadOnly) { argument 43 DoubleArrayBuffer buf = new DoubleArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 44 buf.limit = other.limit; 45 buf.position = other.position();
|
H A D | FloatArrayBuffer.java | 42 private static FloatArrayBuffer copy(FloatArrayBuffer other, int markOfOther, boolean isReadOnly) { argument 43 FloatArrayBuffer buf = new FloatArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 44 buf.limit = other.limit; 45 buf.position = other.position();
|
H A D | IntArrayBuffer.java | 42 private static IntArrayBuffer copy(IntArrayBuffer other, int markOfOther, boolean isReadOnly) { argument 43 IntArrayBuffer buf = new IntArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 44 buf.limit = other.limit; 45 buf.position = other.position();
|
H A D | LongArrayBuffer.java | 42 private static LongArrayBuffer copy(LongArrayBuffer other, int markOfOther, boolean isReadOnly) { argument 43 LongArrayBuffer buf = new LongArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 44 buf.limit = other.limit; 45 buf.position = other.position();
|
H A D | ShortArrayBuffer.java | 42 private static ShortArrayBuffer copy(ShortArrayBuffer other, int markOfOther, boolean isReadOnly) { argument 43 ShortArrayBuffer buf = new ShortArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 44 buf.limit = other.limit; 45 buf.position = other.position();
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DocumentBuilderSettingStrategy.java | 33 public boolean hasConflict(DocumentBuilderSettingStrategy other) { argument 34 return (other == this); 188 public boolean hasConflict(DocumentBuilderSettingStrategy other) { 189 if (other == this || 190 other == DocumentBuilderSettingStrategy.namespaceAware || 191 other == DocumentBuilderSettingStrategy.validating) {
|
H A D | DocumentBuilderSetting.java | 221 * @param other 222 * other setting, may not be null. 225 public final boolean hasConflict(DocumentBuilderSetting other) { argument 226 if (other == null) { 227 throw new NullPointerException("other"); 229 if (other == this) { 232 return strategy.hasConflict(other.strategy);
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | DocumentBuilderSettingStrategy.java | 15 public boolean hasConflict(DocumentBuilderSettingStrategy other) { argument 16 return (other == this); 147 public boolean hasConflict(DocumentBuilderSettingStrategy other) { 148 if (other == this 149 || other == DocumentBuilderSettingStrategy.namespaceAware 150 || other == DocumentBuilderSettingStrategy.validating) {
|