Searched defs:other (Results 1 - 25 of 57) sorted by relevance

123

/libcore/dex/src/main/java/com/android/dex/
H A DAnnotation.java54 @Override public int compareTo(Annotation other) { argument
55 return encodedAnnotation.compareTo(other.encodedAnnotation);
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 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 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);
/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;
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/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;
H A DEllipticCurve.java165 * @param other
170 public boolean equals(Object other) { argument
171 if (this == other) {
174 if (!(other instanceof EllipticCurve)) {
177 EllipticCurve otherEc = (EllipticCurve) 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/libart/src/main/java/java/lang/
H A DEnum.java108 * @param other
114 public final boolean equals(Object other) { argument
115 return this == other;
/libcore/libdvm/src/main/java/java/lang/
H A DEnum.java107 * @param other
113 public final boolean equals(Object other) { argument
114 return this == other;
/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) {
/libcore/libart/src/main/java/java/lang/reflect/
H A DAbstractMethod.java143 * Returns true if {@code other} has the same declaring class, name,
146 @Override public boolean equals(Object other) { argument
147 if (!(other instanceof AbstractMethod)) {
151 return this.artMethod == ((AbstractMethod) other).artMethod;
H A DConstructor.java128 * Returns true if {@code other} has the same declaring class and parameters
131 @Override public boolean equals(Object other) { argument
132 return super.equals(other);
H A DMethod.java197 * Returns true if {@code other} has the same declaring class, name,
200 @Override public boolean equals(Object other) { argument
201 return super.equals(other);
207 * one method's return types is assignable to the other.
/libcore/luni/src/main/java/java/nio/
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 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 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 DDoubleBuffer.java141 * @return a negative value if this is less than {@code other}; 0 if this
142 * equals to {@code other}; a positive value if this is greater
143 * than {@code other}.
145 * if {@code other} is not a double buffer.
176 * buffer's change of content will be visible to the other. The two buffers'
183 * other} is not a {@code DoubleBuffer} then {@code false} is returned.
193 * @param other
195 * @return {@code true} if this double buffer is equal to {@code other},
199 public boolean equals(Object other) { argument
200 if (!(other instanceo
[all...]

Completed in 537 milliseconds

123