/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 | 40 * @param other 45 public boolean equals(Object other) { argument 46 if (other == this) { 49 if (!(other instanceof X509CRLEntry)) { 52 X509CRLEntry obj = (X509CRLEntry) other;
|
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | X509PublicKey.java | 76 X509PublicKey other = (X509PublicKey) obj; 78 if (other.algorithm != null) 80 } else if (!algorithm.equals(other.algorithm)) 82 if (!Arrays.equals(encoded, other.encoded))
|
H A D | OpenSSLDSAParams.java | 112 OpenSSLDSAParams other = (OpenSSLDSAParams) o; 118 if (key == other.getOpenSSLKey()) { 129 DSAParams other = (DSAParams) o; 130 return g.equals(other.getG()) && p.equals(other.getP()) && q.equals(other.getQ());
|
H A D | OpenSSLRSAPrivateCrtKey.java | 201 OpenSSLRSAPrivateKey other = (OpenSSLRSAPrivateKey) o; 202 return getOpenSSLKey().equals(other.getOpenSSLKey()); 207 RSAPrivateCrtKey other = (RSAPrivateCrtKey) o; 210 return getModulus().equals(other.getModulus()) 211 && publicExponent.equals(other.getPublicExponent()); 213 return getModulus().equals(other.getModulus()) 214 && publicExponent.equals(other.getPublicExponent()) 215 && getPrivateExponent().equals(other.getPrivateExponent()) 216 && primeP.equals(other.getPrimeP()) && primeQ.equals(other [all...] |
H A D | OpenSSLSecretKey.java | 100 SecretKey other = (SecretKey) o; 101 if (!algorithm.equals(other.getAlgorithm())) { 112 if (!getFormat().equals(other.getFormat())) { 116 return Arrays.equals(encoded, other.getEncoded());
|
/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) {
|
/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) {
|