/cts/libs/view/src/com/android/view/ |
D | Position.java | 42 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/ |
D | ProcessReference.java | 97 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/ |
D | ImageReaderArgs.java | 86 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/ |
D | Model.h | 31 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/ |
D | AdvertisingSetParametersTest.java | 269 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 …]
|
D | DistanceMeasurementMethodTest.java | 129 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()
|
D | PeriodicAdvertisingParametersTest.java | 113 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()
|
D | DistanceMeasurementResultTest.java | 225 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()
|
D | DistanceMeasurementParamsTest.java | 180 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()
|
D | ChannelSoundingParamsTest.java | 146 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/ |
D | DevicePolicyEventWrapper.java | 84 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/ |
D | FrameworkMethodWithParameter.java | 113 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/ |
D | Asn1UTCTime.java | 51 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/ |
D | CddCoverage.java | 60 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/ |
D | MyAutofillId.java | 44 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/ |
D | SmaliBuildStep.java | 60 SmaliBuildStep other = (SmaliBuildStep) obj; in equals() local 61 return inputFiles.equals(other.inputFiles) in equals() 62 && outputFile.equals(other.outputFile); in equals()
|
D | JavacBuildStep.java | 103 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()
|
D | JarBuildStep.java | 127 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()
|
D | D8BuildStep.java | 82 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/ |
D | Rollback.java | 84 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/ |
D | AttestationPackageInfo.java | 70 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/ |
D | MimeGroupAssertions.java | 106 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/ |
D | Change.java | 155 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/ |
D | Poll.java | 122 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/ |
D | BytesTransferredTest.java | 147 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()
|