Home
last modified time | relevance | path

Searched refs:DELTA (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java26 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 …]
DMotionEventTest.java72 private static final float DELTA = 0.01f; field in MotionEventTest
113 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); in testObtainBasic()
114 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); in testObtainBasic()
115 assertEquals(X_3F, mMotionEvent1.getRawX(), DELTA); in testObtainBasic()
116 assertEquals(Y_4F, mMotionEvent1.getRawY(), DELTA); in testObtainBasic()
120 assertEquals(PRESSURE_1F, mMotionEvent1.getPressure(), DELTA); in testObtainBasic()
121 assertEquals(SIZE_1F, mMotionEvent1.getSize(), DELTA); in testObtainBasic()
122 assertEquals(1.0f, mMotionEvent1.getXPrecision(), DELTA); in testObtainBasic()
123 assertEquals(1.0f, mMotionEvent1.getYPrecision(), DELTA); in testObtainBasic()
133 assertEquals(mMotionEvent2.getX(), mMotionEventDynamic.getX(), DELTA); in testObtainFromMotionEvent() local
[all …]
/cts/tests/location/location_none/src/android/location/cts/none/
DGnssMeasurementTest.java35 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 …]
DGnssStatusTest.java32 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()
DLocationTest.java40 private static final float DELTA = 0.01f; field in LocationTest
226 assertEquals(-80.075, result, DELTA); in testConvert_RepresentationToCoordinate()
229 assertEquals(-80.085, result, DELTA); in testConvert_RepresentationToCoordinate()
232 assertEquals(-80.0675, result, DELTA); in testConvert_RepresentationToCoordinate()
235 assertEquals(-80.0675, result, DELTA); in testConvert_RepresentationToCoordinate()
277 assertEquals(0.0, result[0], DELTA); in testDistanceBetween()
278 assertEquals(0.0, result[1], DELTA); in testDistanceBetween()
279 assertEquals(0.0, result[2], DELTA); in testDistanceBetween()
283 assertEquals(125.4538, result[1], DELTA); in testDistanceBetween()
284 assertEquals(93.3971, result[2], DELTA); in testDistanceBetween()
[all …]
DGnssAutomaticGainControlTest.java37 private static final float DELTA = 1e-3f; field in GnssAutomaticGainControlTest
46 assertEquals(3.5, agc.getLevelDb(), DELTA); in testGetValues()
DAddressTest.java40 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/
DSatellitePvtTest.java36 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 …]
DGnssSingleSatCorrectionTest.java42 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()
DGnssExcessPathInfoTest.java38 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/
DGridLayoutAnimationControllerTest.java53 private static final float DELTA = 0.1f; field in GridLayoutAnimationControllerTest
149 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay()
150 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay()
156 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay()
157 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay()
158 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay()
164 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay()
166 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay()
172 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay()
173 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay()
[all …]
DLayoutAnimationControllerTest.java55 private static final float DELTA = 0.1f; field in LayoutAnimationControllerTest
109 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder()
110 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder()
116 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
118 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder()
124 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
125 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder()
149 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
150 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder()
157 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
[all …]
DScaleAnimationTest.java49 private static float DELTA = 0.001f; field in ScaleAnimationTest
166 assertEquals(expectedX, values[Matrix.MSCALE_X], DELTA);
167 assertEquals(expectedY, values[Matrix.MSCALE_Y], DELTA);
DAnimationSetTest.java55 private static final float DELTA = 0.001f; field in AnimationSetTest
346 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); in assertTransformationEquals() local
352 assertEquals(expectedValues[i], actualValues[i], DELTA); in assertTransformationEquals()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DGnssClockTest.java35 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/apps/CameraITS/tests/scene0/
Dtest_tonemap_curve.py37 DELTA = 0.005 # crop on each edge of color bars variable
46 W_NORM = 1.0 / N_BARS - 2 * DELTA
65 x_norm = num / N_BARS + DELTA
66 w_norm = 1 / N_BARS - 2 * DELTA
72 x_norm = DELTA
73 w_norm = (w_bar_orig - w_delta_edge) / w_crop - 2 * DELTA
75 x_norm = (w_bar_orig * num - w_delta_edge) / w_crop + DELTA
76 w_norm = (w_bar_orig - w_delta_edge) / w_crop - 2 * DELTA
78 x_norm = (w_bar_orig * num - w_delta_edge) / w_crop + DELTA
79 w_norm = w_bar_orig / w_crop - 2 * DELTA
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCbGeoUtilsTest.java45 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/
DAudioSystemTest.java53 final float DELTA = 0.f; // float values must be exact in testBalance() local
66 b, AudioSystem.getMasterBalance(), DELTA); in testBalance()
72 originalBalance, AudioSystem.getMasterBalance(), DELTA); in testBalance()
82 originalBalance, AudioSystem.getMasterBalance(), DELTA); in testBalance()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconMaskTest.java52 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/media/misc/src/android/media/misc/cts/
DPlaybackStateTest.java47 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/
DTextViewFadingEdgeTest.java57 public static final float DELTA = 0.01f; field in TextViewFadingEdgeTest
152 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); in testFadingEdge()
154 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA); in testFadingEdge()
DGalleryTest.java67 private final static float DELTA = 0.01f; field in GalleryTest
146 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); in checkUnselectedAlpha()
148 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()
DAbsListViewTest.java132 private static final float DELTA = 0.001f; field in AbsListViewTest
757 assertEquals(0.0f, listView.getTopFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength()
758 assertEquals(0.0f, listView.getBottomFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength()