Searched refs:other (Results 1 - 25 of 79) 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.java43 * @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 DCertPath.java72 * @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 DCertificate.java69 * @param other
75 public boolean equals(Object other) { argument
77 if (this == other) {
80 if (other instanceof Certificate) {
84 ((Certificate)other).getEncoded());
H A DX509CRL.java54 * @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 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) {
H A DDocumentBuilderSetting.java221 * @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 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 534 milliseconds

1234