/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 26 private static final float DELTA = 0.01f; field in MotionEventUtils 137 assertEquals("X coordinates should be the same", that.getX(), this.x, DELTA); in verifyMatches() 139 that.getAxisValue(MotionEvent.AXIS_X), this.x, DELTA); in verifyMatches() 141 assertEquals("Y coordinates should be the same", that.getY(), this.y, DELTA); in verifyMatches() 143 that.getAxisValue(MotionEvent.AXIS_Y), this.y, DELTA); in verifyMatches() 145 assertEquals("Pressure should be the same", that.getPressure(), this.pressure, DELTA); in verifyMatches() 147 that.getAxisValue(MotionEvent.AXIS_PRESSURE), this.pressure, DELTA); in verifyMatches() 149 assertEquals("Size should be the same", that.getSize(), this.size, DELTA); in verifyMatches() 151 that.getAxisValue(MotionEvent.AXIS_SIZE), this.size, DELTA); in verifyMatches() 154 that.getTouchMajor(), this.touchMajor,DELTA); in verifyMatches() [all …]
|
D | MotionEventTest.java | 97 private static final float DELTA = 0.01f; field in MotionEventTest 149 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); in testObtainBasic() 150 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); in testObtainBasic() 151 assertEquals(X_3F, mMotionEvent1.getRawX(), DELTA); in testObtainBasic() 152 assertEquals(Y_4F, mMotionEvent1.getRawY(), DELTA); in testObtainBasic() 156 assertEquals(PRESSURE_1F, mMotionEvent1.getPressure(), DELTA); in testObtainBasic() 157 assertEquals(SIZE_1F, mMotionEvent1.getSize(), DELTA); in testObtainBasic() 158 assertEquals(1.0f, mMotionEvent1.getXPrecision(), DELTA); in testObtainBasic() 159 assertEquals(1.0f, mMotionEvent1.getYPrecision(), DELTA); in testObtainBasic() 170 assertEquals(mMotionEvent2.getX(), mMotionEventDynamic.getX(), DELTA); in testObtainFromMotionEvent() local [all …]
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | GnssMeasurementTest.java | 35 private static final double DELTA = 0.001; field in GnssMeasurementTest 148 assertEquals(1.0, measurement.getAccumulatedDeltaRangeMeters(), DELTA); in verifyTestValues() 150 assertEquals(3.0, measurement.getAccumulatedDeltaRangeUncertaintyMeters(), DELTA); in verifyTestValues() 151 assertEquals(3.0, measurement.getBasebandCn0DbHz(), DELTA); in verifyTestValues() 153 assertEquals(5.0f, measurement.getCarrierFrequencyHz(), DELTA); in verifyTestValues() 154 assertEquals(6.0, measurement.getCarrierPhase(), DELTA); in verifyTestValues() 155 assertEquals(7.0, measurement.getCarrierPhaseUncertainty(), DELTA); in verifyTestValues() 156 assertEquals(8.0, measurement.getCn0DbHz(), DELTA); in verifyTestValues() 161 assertEquals(9.0, measurement.getPseudorangeRateMetersPerSecond(), DELTA); in verifyTestValues() 162 assertEquals(10.0, measurement.getPseudorangeRateUncertaintyMetersPerSecond(), DELTA); in verifyTestValues() [all …]
|
D | GnssStatusTest.java | 32 private static final float DELTA = 1e-3f; field in GnssStatusTest 112 assertEquals(25.5f, gnssStatus.getCn0DbHz(0), DELTA); in verifyTestValues() 113 assertEquals(31.0f, gnssStatus.getCn0DbHz(1), DELTA); in verifyTestValues() 115 assertEquals(2.0f, gnssStatus.getElevationDegrees(0), DELTA); in verifyTestValues() 116 assertEquals(1.0f, gnssStatus.getElevationDegrees(1), DELTA); in verifyTestValues() 118 assertEquals(255.1f, gnssStatus.getAzimuthDegrees(0), DELTA); in verifyTestValues() 119 assertEquals(193.8f, gnssStatus.getAzimuthDegrees(1), DELTA); in verifyTestValues() 133 assertEquals(1575420000f, gnssStatus.getCarrierFrequencyHz(0), DELTA); in verifyTestValues() 138 assertEquals(20.5f, gnssStatus.getBasebandCn0DbHz(0), DELTA); in verifyTestValues() 139 assertEquals(26.9f, gnssStatus.getBasebandCn0DbHz(1), DELTA); in verifyTestValues()
|
D | LocationTest.java | 40 private static final float DELTA = 0.01f; field in LocationTest 242 assertEquals(-80.075, result, DELTA); in testConvert_RepresentationToCoordinate() 245 assertEquals(-80.085, result, DELTA); in testConvert_RepresentationToCoordinate() 248 assertEquals(-80.0675, result, DELTA); in testConvert_RepresentationToCoordinate() 251 assertEquals(-80.0675, result, DELTA); in testConvert_RepresentationToCoordinate() 293 assertEquals(0.0, result[0], DELTA); in testDistanceBetween() 294 assertEquals(0.0, result[1], DELTA); in testDistanceBetween() 295 assertEquals(0.0, result[2], DELTA); in testDistanceBetween() 299 assertEquals(125.4538, result[1], DELTA); in testDistanceBetween() 300 assertEquals(93.3971, result[2], DELTA); in testDistanceBetween() [all …]
|
D | GnssAutomaticGainControlTest.java | 37 private static final float DELTA = 1e-3f; field in GnssAutomaticGainControlTest 46 assertEquals(3.5, agc.getLevelDb(), DELTA); in testGetValues()
|
D | AddressTest.java | 40 private static final double DELTA = 0.001; field in AddressTest 125 assertEquals(latitude, address.getLatitude(), DELTA); in testAccessLatitude() 145 assertEquals(longitude, address.getLongitude(), DELTA); in testAccessLongitude()
|
/cts/tests/location/location_privileged/src/android/location/cts/privileged/ |
D | SatellitePvtTest.java | 36 private static final double DELTA = 0.000001; field in SatellitePvtTest 67 satPvt2.getPositionEcef().getXMeters(), DELTA); in verifyTestValues() local 69 satPvt2.getPositionEcef().getYMeters(), DELTA); in verifyTestValues() local 71 satPvt2.getPositionEcef().getZMeters(), DELTA); in verifyTestValues() local 73 satPvt2.getPositionEcef().getUreMeters(), DELTA); in verifyTestValues() local 75 satPvt2.getVelocityEcef().getXMetersPerSecond(), DELTA); in verifyTestValues() local 77 satPvt2.getVelocityEcef().getYMetersPerSecond(), DELTA); in verifyTestValues() local 79 satPvt2.getVelocityEcef().getZMetersPerSecond(), DELTA); in verifyTestValues() local 81 satPvt2.getVelocityEcef().getUreRateMetersPerSecond(), DELTA); in verifyTestValues() local 83 satPvt2.getClockInfo().getHardwareCodeBiasMeters(), DELTA); in verifyTestValues() local [all …]
|
D | GnssSingleSatCorrectionTest.java | 42 private static final double DELTA = 0.000001; field in GnssSingleSatCorrectionTest 130 assertEquals(1575420000f, singleSatCorrection.getCarrierFrequencyHz(), DELTA); in verifyTestValues() 131 assertEquals(0.1f, singleSatCorrection.getProbabilityLineOfSight(), DELTA); in verifyTestValues() 132 assertEquals(10.0f, singleSatCorrection.getExcessPathLengthMeters(), DELTA); in verifyTestValues() 133 assertEquals(5.0f, singleSatCorrection.getExcessPathLengthUncertaintyMeters(), DELTA); in verifyTestValues() 134 assertEquals(2.1f, singleSatCorrection.getCombinedAttenuationDb(), DELTA); in verifyTestValues()
|
D | GnssExcessPathInfoTest.java | 38 private static final double DELTA = 0.000001; field in GnssExcessPathInfoTest 92 assertEquals(10.5f, gnssExcessPathInfo.getExcessPathLengthMeters(), DELTA); in verifyTestValues() 93 assertEquals(5.2f, gnssExcessPathInfo.getExcessPathLengthUncertaintyMeters(), DELTA); in verifyTestValues() 96 assertEquals(2.9f, gnssExcessPathInfo.getAttenuationDb(), DELTA); in verifyTestValues()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 58 private static final float DELTA = 0.1f; field in GridLayoutAnimationControllerTest 160 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 161 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 167 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 168 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 169 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 175 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 177 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 183 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 184 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() [all …]
|
D | LayoutAnimationControllerTest.java | 60 private static final float DELTA = 0.1f; field in LayoutAnimationControllerTest 120 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 121 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 127 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 129 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 135 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 136 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 160 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 161 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 168 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() [all …]
|
D | ScaleAnimationTest.java | 54 private static float DELTA = 0.001f; field in ScaleAnimationTest 177 assertEquals(expectedX, values[Matrix.MSCALE_X], DELTA); 178 assertEquals(expectedY, values[Matrix.MSCALE_Y], DELTA);
|
D | AnimationSetTest.java | 60 private static final float DELTA = 0.001f; field in AnimationSetTest 357 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); in assertTransformationEquals() local 363 assertEquals(expectedValues[i], actualValues[i], DELTA); in assertTransformationEquals()
|
/cts/tests/location/location_fine/src/android/location/cts/fine/ |
D | GnssClockTest.java | 35 private static final double DELTA = 0.001; field in GnssClockTest 136 assertEquals(1.0, clock.getBiasNanos(), DELTA); in verifyTestValues() 137 assertEquals(2.0, clock.getBiasUncertaintyNanos(), DELTA); in verifyTestValues() 138 assertEquals(3.0, clock.getDriftNanosPerSecond(), DELTA); in verifyTestValues() 139 assertEquals(4.0, clock.getDriftUncertaintyNanosPerSecond(), DELTA); in verifyTestValues() 141 assertEquals(3943523.0, clock.getElapsedRealtimeUncertaintyNanos(), DELTA); in verifyTestValues() 146 assertEquals(1.59975e+09, clock.getReferenceCarrierFrequencyHzForIsb(), DELTA); in verifyTestValues() 149 assertEquals(9.0, clock.getTimeUncertaintyNanos(), DELTA); in verifyTestValues()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CbGeoUtilsTest.java | 45 private static final double DELTA = 1; field in CbGeoUtilsTest 53 assertEquals(difference.lat, p1.subtract(p2).lat, DELTA); in testLatLong() 54 assertEquals(difference.lng, p1.subtract(p2).lng, DELTA); in testLatLong() 56 assertEquals(DIST, p1.distance(p2), DELTA); in testLatLong() 84 assertEquals(radius, circle.getRadius(), DELTA); in testCircle()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioSystemTest.java | 54 final float DELTA = 0.f; // float values must be exact in testBalance() local 67 b, AudioSystem.getMasterBalance(), DELTA); in testBalance() 73 originalBalance, AudioSystem.getMasterBalance(), DELTA); in testBalance() 83 originalBalance, AudioSystem.getMasterBalance(), DELTA); in testBalance()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AdaptiveIconMaskTest.java | 52 private static final double DELTA = .01f; field in AdaptiveIconMaskTest 85 assertTrue("Mask top should be larger than or equal to 0", -DELTA <= bounds.top); in testDeviceConfigMask_bounds() 86 assertTrue("Mask left should be larger than or equal to 0", -DELTA <= bounds.left); in testDeviceConfigMask_bounds() 89 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.bottom); in testDeviceConfigMask_bounds() 92 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.right); in testDeviceConfigMask_bounds()
|
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | SpeedChangeTestPlayerListener.java | 34 private static final float DELTA = 0.001f; field in SpeedChangeTestPlayerListener 94 assertEquals(PLAYBACK_SPEEDS[mSpeedIndex], playbackParameters.speed, DELTA); in onPlaybackParametersChanged()
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | PlaybackStateTest.java | 47 private static final float DELTA = 1e-7f; field in PlaybackStateTest 71 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); in testBuilder() 102 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); in testBuilder_setterMethods() 119 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); in testBuilder_setStateWithUpdateTime() 209 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA); in testWriteToParcel()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewFadingEdgeTest.java | 65 public static final float DELTA = 0.01f; field in TextViewFadingEdgeTest 160 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); in testFadingEdge() 162 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA); in testFadingEdge()
|
D | GalleryTest.java | 69 private final static float DELTA = 0.01f; field in GalleryTest 154 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); in checkUnselectedAlpha() 156 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()
|
D | AbsListViewTest.java | 142 private static final float DELTA = 0.001f; field in AbsListViewTest 769 assertEquals(0.0f, listView.getTopFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength() 770 assertEquals(0.0f, listView.getBottomFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength()
|