Home
last modified time | relevance | path

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

123456

/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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DProcessReference.java97 ProcessReference other = mPackage.runningProcess(mUser); in kill()
98 return other == null ? -1 : other.pid(); in kill()
138 ProcessReference other = (ProcessReference) obj; in equals() local
139 return other.mUser.equals(mUser) in equals()
140 && other.mPid == mPid in equals()
141 && other.mPackage.equals(mPackage); in equals()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DImageReaderArgs.java86 ImageReaderArgs other = (ImageReaderArgs) obj; in equals() local
87 return (Arrays.equals(mOutputSizes, other.mOutputSizes) && in equals()
88 Arrays.equals(mOutputFormats, other.mOutputFormats) && in equals()
89 Objects.equals(mInputSize, other.mInputSize) && in equals()
90 mInputFormat == other.mInputFormat && in equals()
91 mMaxInputBuffers == other.mMaxInputBuffers && in equals()
92 mHas10bitOutput == other.mHas10bitOutput); in equals()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DModel.h31 Vector3 operator+(Vector3 const &other) {
32 return Vector3{{x + other.x, y + other.y, z + other.z}};
34 Vector3 operator-(Vector3 const &other) {
35 return Vector3{{x - other.x, y - other.y, z - other.z}};
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DAdvertisingSetParametersTest.java269 private void assertParamsEquals(AdvertisingSetParameters p, AdvertisingSetParameters other) { in assertParamsEquals() argument
270 if (p == null && other == null) { in assertParamsEquals()
274 if (p == null || other == null) { in assertParamsEquals()
275 fail("Cannot compare null with non-null value: p=" + p + ", other=" + other); in assertParamsEquals()
278 assertEquals(p.isConnectable(), other.isConnectable()); in assertParamsEquals()
279 assertEquals(p.isDiscoverable(), other.isDiscoverable()); in assertParamsEquals()
280 assertEquals(p.isScannable(), other.isScannable()); in assertParamsEquals()
281 assertEquals(p.isLegacy(), other.isLegacy()); in assertParamsEquals()
282 assertEquals(p.isAnonymous(), other.isAnonymous()); in assertParamsEquals()
283 assertEquals(p.includeTxPower(), other.includeTxPower()); in assertParamsEquals()
[all …]
DDistanceMeasurementMethodTest.java129 private void assertMethodEquals(DistanceMeasurementMethod p, DistanceMeasurementMethod other) { in assertMethodEquals() argument
130 if (p == null && other == null) { in assertMethodEquals()
134 if (p == null || other == null) { in assertMethodEquals()
135 fail("Cannot compare null with non-null value: p=" + p + ", other=" + other); in assertMethodEquals()
138 assertEquals(p.getId(), other.getId(), 0.0); in assertMethodEquals()
139 assertEquals(p.isAzimuthAngleSupported(), other.isAzimuthAngleSupported()); in assertMethodEquals()
140 assertEquals(p.isAltitudeAngleSupported(), other.isAltitudeAngleSupported()); in assertMethodEquals()
DPeriodicAdvertisingParametersTest.java113 PeriodicAdvertisingParameters other) { in assertParamsEquals() argument
114 if (p == null && other == null) { in assertParamsEquals()
118 if (p == null || other == null) { in assertParamsEquals()
119 fail("Cannot compare null with non-null value: p=" + p + ", other=" + other); in assertParamsEquals()
122 assertEquals(p.getIncludeTxPower(), other.getIncludeTxPower()); in assertParamsEquals()
123 assertEquals(p.getInterval(), other.getInterval()); in assertParamsEquals()
DDistanceMeasurementResultTest.java225 private void assertResultEquals(DistanceMeasurementResult p, DistanceMeasurementResult other) { in assertResultEquals() argument
226 if (p == null && other == null) { in assertResultEquals()
230 if (p == null || other == null) { in assertResultEquals()
231 fail("Cannot compare null with non-null value: p=" + p + ", other=" + other); in assertResultEquals()
234 assertEquals(p.getResultMeters(), other.getResultMeters(), 0.0); in assertResultEquals()
235 assertEquals(p.getErrorMeters(), other.getErrorMeters(), 0.0); in assertResultEquals()
236 assertEquals(p.getAzimuthAngle(), other.getAzimuthAngle(), 0.0); in assertResultEquals()
237 assertEquals(p.getErrorAzimuthAngle(), other.getErrorAzimuthAngle(), 0.0); in assertResultEquals()
238 assertEquals(p.getAltitudeAngle(), other.getAltitudeAngle(), 0.0); in assertResultEquals()
239 assertEquals(p.getErrorAltitudeAngle(), other.getErrorAltitudeAngle(), 0.0); in assertResultEquals()
DDistanceMeasurementParamsTest.java180 private void assertParamsEquals(DistanceMeasurementParams p, DistanceMeasurementParams other) { in assertParamsEquals() argument
181 if (p == null && other == null) { in assertParamsEquals()
185 if (p == null || other == null) { in assertParamsEquals()
186 fail("Cannot compare null with non-null value: p=" + p + ", other=" + other); in assertParamsEquals()
189 assertEquals(p.getDevice(), other.getDevice()); in assertParamsEquals()
190 assertEquals(p.getDurationSeconds(), other.getDurationSeconds()); in assertParamsEquals()
191 assertEquals(p.getFrequency(), other.getFrequency()); in assertParamsEquals()
192 assertEquals(p.getMethodId(), other.getMethodId()); in assertParamsEquals()
DChannelSoundingParamsTest.java146 private void assertParamsEquals(ChannelSoundingParams p, ChannelSoundingParams other) { in assertParamsEquals() argument
147 if (p == null && other == null) { in assertParamsEquals()
151 if (p == null || other == null) { in assertParamsEquals()
152 fail("Cannot compare null with non-null value: p=" + p + ", other=" + other); in assertParamsEquals()
155 assertEquals(p.getSightType(), other.getSightType()); in assertParamsEquals()
156 assertEquals(p.getLocationType(), other.getLocationType()); in assertParamsEquals()
157 assertEquals(p.getCsSecurityLevel(), other.getCsSecurityLevel()); in assertParamsEquals()
/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/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DFrameworkMethodWithParameter.java113 public boolean isShadowedBy(FrameworkMethod other) { in isShadowedBy() argument
114 return mWrappedFrameworkMethod.isShadowedBy(other); in isShadowedBy()
124 FrameworkMethodWithParameter other = (FrameworkMethodWithParameter) obj; in equals() local
125 return Objects.equals(mWrappedFrameworkMethod, other.mWrappedFrameworkMethod) in equals()
126 && Objects.equals(mInjectedParam, other.mInjectedParam); in equals()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/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/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCddCoverage.java60 public boolean equals(Object other) { in equals() argument
61 if (other == null) { in equals()
63 } else if (!(other instanceof CddRequirement)) { in equals()
66 return mRequirementId.equals(((CddRequirement)other).mRequirementId); in equals()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
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/tools/vm-tests-tf/build/src/util/build/
DSmaliBuildStep.java60 SmaliBuildStep other = (SmaliBuildStep) obj; in equals() local
61 return inputFiles.equals(other.inputFiles) in equals()
62 && outputFile.equals(other.outputFile); in equals()
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()
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()
DD8BuildStep.java82 D8BuildStep other = (D8BuildStep) obj; in equals() local
84 return inputFile.equals(other.inputFile) && outputFile.equals(other.outputFile); in equals()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollback.java84 public boolean equals(Object other) { in equals() argument
85 if (!(other instanceof Rollback)) { in equals()
89 Rollback r = (Rollback) other; 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/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/
DMimeGroupAssertions.java106 protected final MimeGroupAssertions mergeWith(MimeGroupAssertions other) {
110 other.assertMatchedByMimeGroup(mimeGroup, mimeType);
116 other.assertNotMatchedByMimeGroup(mimeGroup, mimeType);
122 other.assertMimeGroupInternal(mimeGroup, mimeTypes);
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DChange.java155 public boolean equals(Object other) { in equals() argument
156 if (this == other) { in equals()
159 if (other == null || !(other instanceof Change)) { in equals()
162 Change that = (Change) other; in equals()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DPoll.java122 public Poll<E> toBeEqualTo(E other) { in toBeEqualTo() argument
123 toMeet(v -> Objects.equals(v, other)); in toBeEqualTo()
125 "Expected " + valueName + " to be equal to " + other + ". Was " + value); in toBeEqualTo()
131 public Poll<E> toNotBeEqualTo(E other) { in toNotBeEqualTo() argument
132 toMeet(v -> !Objects.equals(v, other)); in toNotBeEqualTo()
134 "Expected " + valueName + " to not be equal to " + other + ". Was " + value); in toNotBeEqualTo()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DBytesTransferredTest.java147 TransferredBytes plus(TransferredBytes other) { in plus() argument
148 return new TransferredBytes(this.mRxBytes + other.mRxBytes, in plus()
149 this.mTxBytes + other.mTxBytes, this.mRxPackets + other.mRxPackets, in plus()
150 this.mTxPackets + other.mTxPackets, other.mAppUid); in plus()

123456