Home
last modified time | relevance | path

Searched refs:other (Results 1 – 25 of 66) sorted by relevance

123

/cts/tools/dasm/src/java_cup/
Dterminal_set.java28 public terminal_set(terminal_set other) in terminal_set() argument
31 not_null(other); in terminal_set()
32 _elements = (BitSet)other._elements.clone(); in terminal_set()
98 public boolean is_subset_of(terminal_set other) in is_subset_of() argument
101 not_null(other); in is_subset_of()
104 BitSet copy_other = (BitSet)other._elements.clone(); in is_subset_of()
110 return copy_other.equals(other._elements); in is_subset_of()
118 public boolean is_superset_of(terminal_set other) in is_superset_of() argument
121 not_null(other); in is_superset_of()
122 return other.is_subset_of(this); in is_superset_of()
[all …]
Dsymbol_set.java26 public symbol_set(symbol_set other) throws internal_error in symbol_set() argument
28 not_null(other); in symbol_set()
29 _all = (Hashtable)other._all.clone(); in symbol_set()
72 public boolean is_subset_of(symbol_set other) throws internal_error in is_subset_of() argument
74 not_null(other); in is_subset_of()
78 if (!other.contains((symbol)e.nextElement())) in is_subset_of()
90 public boolean is_superset_of(symbol_set other) throws internal_error in is_superset_of() argument
92 not_null(other); in is_superset_of()
93 return other.is_subset_of(this); in is_superset_of()
132 public boolean add(symbol_set other) throws internal_error in add() argument
[all …]
Dlalr_item_set.java35 public lalr_item_set(lalr_item_set other) in lalr_item_set() argument
38 not_null(other); in lalr_item_set()
39 _all = (Hashtable)other._all.clone(); in lalr_item_set()
86 public boolean is_subset_of(lalr_item_set other) throws internal_error in is_subset_of() argument
88 not_null(other); in is_subset_of()
92 if (!other.contains((lalr_item)e.nextElement())) in is_subset_of()
104 public boolean is_superset_of(lalr_item_set other) throws internal_error in is_superset_of() argument
106 not_null(other); in is_superset_of()
107 return other.is_subset_of(this); in is_superset_of()
119 lalr_item other; in add() local
[all …]
Dproduction_part.java51 public boolean equals(production_part other) in equals() argument
53 if (other == null) return false; in equals()
57 return label().equals(other.label()); in equals()
59 return other.label() == null; in equals()
65 public boolean equals(Object other) in equals() argument
67 if (!(other instanceof production_part)) in equals()
70 return equals((production_part)other); in equals()
Daction_part.java57 public boolean equals(action_part other) in equals() argument
60 return other != null && super.equals(other) && in equals()
61 other.code_string().equals(code_string()); in equals()
67 public boolean equals(Object other) in equals() argument
69 if (!(other instanceof action_part)) in equals()
72 return equals((action_part)other); in equals()
Dsymbol_part.java61 public boolean equals(symbol_part other) in equals() argument
63 return other != null && super.equals(other) && in equals()
64 the_symbol().equals(other.the_symbol()); in equals()
70 public boolean equals(Object other) in equals() argument
72 if (!(other instanceof symbol_part)) in equals()
75 return equals((symbol_part)other); in equals()
Dparse_action.java55 public boolean equals(parse_action other) in equals() argument
58 return other != null && other.kind() == ERROR; in equals()
64 public boolean equals(Object other) in equals() argument
66 if (other instanceof parse_action) in equals()
67 return equals((parse_action)other); in equals()
Dshift_action.java50 public boolean equals(shift_action other) in equals() argument
52 return other != null && other.shift_to() == shift_to(); in equals()
58 public boolean equals(Object other) in equals() argument
60 if (other instanceof shift_action) in equals()
61 return equals((shift_action)other); in equals()
Dreduce_action.java50 public boolean equals(reduce_action other) in equals() argument
52 return other != null && other.reduce_with() == reduce_with(); in equals()
58 public boolean equals(Object other) in equals() argument
60 if (other instanceof reduce_action) in equals()
61 return equals((reduce_action)other); in equals()
Dlr_item_core.java162 public boolean core_equals(lr_item_core other) in core_equals() argument
164 return other != null && in core_equals()
165 _the_production.equals(other._the_production) && in core_equals()
166 _dot_pos == other._dot_pos; in core_equals()
172 public boolean equals(lr_item_core other) {return core_equals(other);} in equals() argument
177 public boolean equals(Object other) in equals() argument
179 if (!(other instanceof lr_item_core)) in equals()
182 return equals((lr_item_core)other); in equals()
Dlalr_item.java268 public boolean equals(lalr_item other) in equals() argument
270 if (other == null) return false; in equals()
271 return super.equals(other); in equals()
277 public boolean equals(Object other) in equals() argument
279 if (!(other instanceof lalr_item)) in equals()
282 return equals((lalr_item)other); in equals()
/cts/libs/view/src/com/android/view/
DPosition.java42 public double dotProduct(Position other) { in dotProduct() argument
43 return (mX * other.mX) + (mY * other.mY); in dotProduct()
49 public double distanceTo(Position other) { in distanceTo() argument
50 return Math.sqrt(Math.pow((mX - other.mX), 2) + Math.pow((mY - other.mY), 2)); in distanceTo()
62 public double arcAngleTo(Position other, Position origin) { in arcAngleTo() argument
65 double originToOtherAngle = Math.atan2(origin.mY - other.mY, other.mX - origin.mX); in arcAngleTo()
83 public double angleTo(Position other) { in angleTo() argument
84 return Math.atan2(other.mY - mY, other.mX - mX); in angleTo()
97 Position other = (Position) o; in equals() local
98 return (Float.compare(other.mX, mX) == 0) && (Float.compare(other.mY, mY) == 0); in equals()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java949 public static boolean keyEventEquals(KeyEvent event, KeyEvent other) { in keyEventEquals() argument
950 if (event == other) return true; in keyEventEquals()
951 if (event == null || other == null) return false; in keyEventEquals()
952 return event.getDownTime() == other.getDownTime() in keyEventEquals()
953 && event.getEventTime() == other.getEventTime() in keyEventEquals()
954 && event.getAction() == other.getAction() in keyEventEquals()
955 && event.getKeyCode() == other.getKeyCode() in keyEventEquals()
956 && event.getRepeatCount() == other.getRepeatCount() in keyEventEquals()
957 && event.getMetaState() == other.getMetaState() in keyEventEquals()
958 && event.getDeviceId() == other.getDeviceId() in keyEventEquals()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DDevicePolicyEventWrapper.java84 final DevicePolicyEventWrapper other = (DevicePolicyEventWrapper) obj; in equals() local
85 return mEventId == other.mEventId in equals()
86 && mIntValue == other.mIntValue in equals()
87 && mBooleanValue == other.mBooleanValue in equals()
88 && mTimePeriodMs == other.mTimePeriodMs in equals()
89 && Objects.equals(mAdminPackageName, other.mAdminPackageName) in equals()
90 && Arrays.equals(mStringArrayValue, other.mStringArrayValue); in equals()
/cts/suite/audio_quality/lib/src/
DStringUtil.cpp57 int StringUtil::compare(const android::String8& str, const char* other) in compare() argument
59 return strcmp(str.string(), other); in compare()
62 bool StringUtil::endsWith(const android::String8& str, const char* other) in endsWith() argument
65 size_t l2 = strlen(other); in endsWith()
73 if (data[iStr] != other[iOther]) { in endsWith()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1UTCTime.java51 public void assignTo(Asn1UTCTime other) { in assignTo() argument
52 year = other.year; in assignTo()
53 month = other.month; in assignTo()
54 day = other.day; in assignTo()
55 hour = other.hour; in assignTo()
56 minute = other.minute; in assignTo()
57 second = other.second; in assignTo()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationInfo.java376 public boolean equals(Object other) { in equals() argument
377 if (other instanceof AllocationInfo) { in equals()
378 return equals((AllocationInfo)other); in equals()
394 public boolean equals(AllocationInfo other) { in equals() argument
395 if (other == null) { in equals()
400 return mType.equals(other.mType) && mUsage == other.mUsage; in equals()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCddCoverage.java59 public boolean equals(Object other) { in equals() argument
60 if (other == null) { in equals()
62 } else if (!(other instanceof CddRequirement)) { in equals()
65 return mRequirementId.equals(((CddRequirement)other).mRequirementId); in equals()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollback.java62 public boolean equals(Object other) { in equals() argument
63 if (!(other instanceof Rollback)) { in equals()
67 Rollback r = (Rollback) other; in equals()
/cts/tools/vm-tests-tf/build/src/util/build/
DJavacBuildStep.java103 JavacBuildStep other = (JavacBuildStep) obj; in equals() local
104 return destPath.equals(other.destPath) in equals()
105 && classPath.equals(other.classPath) in equals()
106 && sourceFiles.equals(other.sourceFiles); in equals()
DSmaliBuildStep.java60 SmaliBuildStep other = (SmaliBuildStep) obj; in equals() local
61 return inputFiles.equals(other.inputFiles) in equals()
62 && outputFile.equals(other.outputFile); in equals()
DJarBuildStep.java127 JarBuildStep other = (JarBuildStep) obj; in equals() local
128 return inputFile.equals(other.inputFile) in equals()
129 && outputFile.equals(other.outputFile) in equals()
130 && outputJarEntryName.equals(other.outputJarEntryName); in equals()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMyAutofillId.java44 MyAutofillId other = (MyAutofillId) obj; in equals()
46 if (other.mId != null) return false; in equals()
47 } else if (!mId.equals(other.mId)) { in equals()
/cts/tests/security/src/android/keystore/cts/
DAttestationPackageInfo.java70 public int compareTo(AttestationPackageInfo other) { in compareTo() argument
71 int res = packageName.compareTo(other.packageName); in compareTo()
73 res = Long.compare(version, other.version); in compareTo()
/cts/suite/audio_quality/lib/include/
DStringUtil.h35 static int compare(const android::String8& str, const char* other);
36 static bool endsWith(const android::String8& str, const char* other);

123