Searched refs:other (Results 1 - 25 of 90) sorted by relevance

1234

/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValue.java44 @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 DFieldId.java46 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 DMethodId.java46 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 DTypeList.java37 @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 DProtoId.java34 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 DAnnotation.java54 @Override public int compareTo(Annotation other) { argument
55 return encodedAnnotation.compareTo(other.encodedAnnotation);
/libcore/luni/src/main/java/java/security/spec/
H A DECPoint.java83 * @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 DSupport_GetPutFields.java71 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 DSupport_GetPutFieldsDefaulted.java82 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 DSupport_GetPutFieldsDeprecated.java73 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 DX509CRLEntry.java40 * @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 DX509PublicKey.java76 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 DOpenSSLDSAParams.java112 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 DOpenSSLRSAPrivateCrtKey.java201 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 DOpenSSLSecretKey.java100 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 DCollationKeyICU.java34 @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 DCharSequenceAdapter.java34 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 DCharArrayBuffer.java42 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 DDoubleArrayBuffer.java42 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 DFloatArrayBuffer.java42 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 DIntArrayBuffer.java42 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 DLongArrayBuffer.java42 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 DShortArrayBuffer.java42 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 DDocumentBuilderSettingStrategy.java33 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 DDocumentBuilderSettingStrategy.java15 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) {

Completed in 408 milliseconds

1234