Home
last modified time | relevance | path

Searched full:tolerance (Results 1 – 25 of 2590) sorted by relevance

12345678910>>...104

/aosp_15_r20/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/view/
H A DMotionEventTest.java51 private static final float TOLERANCE = 0.01f; field in MotionEventTest
96 assertThat(motionEvent1).x().isWithin(TOLERANCE).of(X_3F); in obtainBasic()
97 assertThat(motionEvent1).y().isWithin(TOLERANCE).of(Y_4F); in obtainBasic()
98 assertThat(motionEvent1).rawX().isWithin(TOLERANCE).of(X_3F); in obtainBasic()
99 assertThat(motionEvent1).rawY().isWithin(TOLERANCE).of(Y_4F); in obtainBasic()
103 assertThat(motionEvent1).pressure().isWithin(TOLERANCE).of(PRESSURE_1F); in obtainBasic()
104 assertThat(motionEvent1).size().isWithin(TOLERANCE).of(SIZE_1F); in obtainBasic()
105 assertThat(motionEvent1).xPrecision().isWithin(TOLERANCE).of(1.0f); in obtainBasic()
106 assertThat(motionEvent1).yPrecision().isWithin(TOLERANCE).of(1.0f); in obtainBasic()
114 .isEqualToWithinTolerance(motionEvent2, TOLERANCE); in testObtainFromMotionEvent()
[all …]
/aosp_15_r20/external/deqp/external/vulkancts/data/vulkan/amber/texture/texel_buffer/uniform/snorm/
H A Dr8-snorm.amber53 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 0 0 255 TOLERANCE 1
54 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 0 0 255 TOLERANCE 1
55 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 14 0 0 255 TOLERANCE 1
56 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 21 0 0 255 TOLERANCE 1
57 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 28 0 0 255 TOLERANCE 1
58 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 35 0 0 255 TOLERANCE 1
59 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 42 0 0 255 TOLERANCE 1
60 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 49 0 0 255 TOLERANCE 1
61 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 56 0 0 255 TOLERANCE 1
62 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 63 0 0 255 TOLERANCE 1
[all …]
H A Dr8g8-snorm.amber56 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 0 255 TOLERANCE 1
57 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 14 0 255 TOLERANCE 1
58 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 14 21 0 255 TOLERANCE 1
59 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 21 28 0 255 TOLERANCE 1
60 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 28 35 0 255 TOLERANCE 1
61 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 35 42 0 255 TOLERANCE 1
62 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 42 49 0 255 TOLERANCE 1
63 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 49 56 0 255 TOLERANCE 1
64 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 56 63 0 255 TOLERANCE 1
65 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 63 70 0 255 TOLERANCE 1
[all …]
H A Db8g8r8-snorm.amber57 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 14 255 TOLERANCE 1
58 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 14 21 255 TOLERANCE 1
59 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 14 21 28 255 TOLERANCE 1
60 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 21 28 35 255 TOLERANCE 1
61 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 28 35 42 255 TOLERANCE 1
62 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 35 42 49 255 TOLERANCE 1
63 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 42 49 56 255 TOLERANCE 1
64 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 49 56 63 255 TOLERANCE 1
65 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 56 63 70 255 TOLERANCE 1
66 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 63 70 77 255 TOLERANCE 1
[all …]
H A Dr8g8b8a8-snorm.amber59 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 14 21 TOLERANCE 1
60 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 14 21 28 TOLERANCE 1
61 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 14 21 28 35 TOLERANCE 1
62 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 21 28 35 42 TOLERANCE 1
63 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 28 35 42 49 TOLERANCE 1
64 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 35 42 49 56 TOLERANCE 1
65 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 42 49 56 63 TOLERANCE 1
66 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 49 56 63 70 TOLERANCE 1
67 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 56 63 70 77 TOLERANCE 1
68 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 63 70 77 84 TOLERANCE 1
[all …]
H A Dr8g8b8-snorm.amber57 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 14 255 TOLERANCE 1
58 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 14 21 255 TOLERANCE 1
59 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 14 21 28 255 TOLERANCE 1
60 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 21 28 35 255 TOLERANCE 1
61 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 28 35 42 255 TOLERANCE 1
62 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 35 42 49 255 TOLERANCE 1
63 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 42 49 56 255 TOLERANCE 1
64 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 49 56 63 255 TOLERANCE 1
65 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 56 63 70 255 TOLERANCE 1
66 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 63 70 77 255 TOLERANCE 1
[all …]
H A Db8g8r8a8-snorm.amber59 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 14 21 TOLERANCE 1
60 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 14 21 28 TOLERANCE 1
61 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 14 21 28 35 TOLERANCE 1
62 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 21 28 35 42 TOLERANCE 1
63 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 28 35 42 49 TOLERANCE 1
64 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 35 42 49 56 TOLERANCE 1
65 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 42 49 56 63 TOLERANCE 1
66 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 49 56 63 70 TOLERANCE 1
67 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 56 63 70 77 TOLERANCE 1
68 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 63 70 77 84 TOLERANCE 1
[all …]
H A Dr16-snorm.amber53 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 0 0 255 TOLERANCE 1
54 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 0 0 255 TOLERANCE 1
55 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 15 0 0 255 TOLERANCE 1
56 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 23 0 0 255 TOLERANCE 1
57 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 31 0 0 255 TOLERANCE 1
58 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 39 0 0 255 TOLERANCE 1
59 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 47 0 0 255 TOLERANCE 1
60 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 55 0 0 255 TOLERANCE 1
61 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 63 0 0 255 TOLERANCE 1
62 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 71 0 0 255 TOLERANCE 1
[all …]
H A Dr16g16-snorm.amber55 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 0 255 TOLERANCE 1
56 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 15 0 255 TOLERANCE 1
57 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 15 23 0 255 TOLERANCE 1
58 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 23 31 0 255 TOLERANCE 1
59 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 31 39 0 255 TOLERANCE 1
60 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 39 47 0 255 TOLERANCE 1
61 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 47 55 0 255 TOLERANCE 1
62 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 55 63 0 255 TOLERANCE 1
63 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 63 71 0 255 TOLERANCE 1
64 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 71 79 0 255 TOLERANCE 1
[all …]
H A Dr16g16b16-snorm.amber56 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 15 255 TOLERANCE 1
57 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 15 23 255 TOLERANCE 1
58 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 15 23 31 255 TOLERANCE 1
59 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 23 31 39 255 TOLERANCE 1
60 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 31 39 47 255 TOLERANCE 1
61 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 39 47 55 255 TOLERANCE 1
62 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 47 55 63 255 TOLERANCE 1
63 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 55 63 71 255 TOLERANCE 1
64 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 63 71 79 255 TOLERANCE 1
65 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 71 79 87 255 TOLERANCE 1
[all …]
H A Dr16g16b16a16-snorm.amber58 EXPECT framebuffer IDX 0 0 SIZE 1 128 EQ_RGBA 0 7 15 23 TOLERANCE 1
59 EXPECT framebuffer IDX 1 0 SIZE 1 128 EQ_RGBA 7 15 23 31 TOLERANCE 1
60 EXPECT framebuffer IDX 2 0 SIZE 1 128 EQ_RGBA 15 23 31 39 TOLERANCE 1
61 EXPECT framebuffer IDX 3 0 SIZE 1 128 EQ_RGBA 23 31 39 47 TOLERANCE 1
62 EXPECT framebuffer IDX 4 0 SIZE 1 128 EQ_RGBA 31 39 47 55 TOLERANCE 1
63 EXPECT framebuffer IDX 5 0 SIZE 1 128 EQ_RGBA 39 47 55 63 TOLERANCE 1
64 EXPECT framebuffer IDX 6 0 SIZE 1 128 EQ_RGBA 47 55 63 71 TOLERANCE 1
65 EXPECT framebuffer IDX 7 0 SIZE 1 128 EQ_RGBA 55 63 71 79 TOLERANCE 1
66 EXPECT framebuffer IDX 8 0 SIZE 1 128 EQ_RGBA 63 71 79 87 TOLERANCE 1
67 EXPECT framebuffer IDX 9 0 SIZE 1 128 EQ_RGBA 71 79 87 95 TOLERANCE 1
[all …]
/aosp_15_r20/external/truth/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/
H A DProtoSubject.java351 * than or equal to {@code tolerance}.
353 * @param tolerance A finite, non-negative tolerance.
355 public ProtoFluentAssertion usingDoubleTolerance(double tolerance) { in usingDoubleTolerance() argument
356 return usingConfig(config.usingDoubleTolerance(tolerance)); in usingDoubleTolerance()
361 * provided absolute tolerance.
363 * @param tolerance A finite, non-negative tolerance.
366 double tolerance, int firstFieldNumber, int... rest) { in usingDoubleToleranceForFields() argument
368 config.usingDoubleToleranceForFields(tolerance, asList(firstFieldNumber, rest))); in usingDoubleToleranceForFields()
373 * provided absolute tolerance.
375 * @param tolerance A finite, non-negative tolerance.
[all …]
H A DMapWithProtoValuesSubject.java371 * than or equal to {@code tolerance}.
373 * @param tolerance A finite, non-negative tolerance.
375 public MapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(double tolerance) { in usingDoubleToleranceForValues() argument
376 return usingConfig(config.usingDoubleTolerance(tolerance)); in usingDoubleToleranceForValues()
381 * provided absolute tolerance.
383 * @param tolerance A finite, non-negative tolerance.
386 double tolerance, int firstFieldNumber, int... rest) { in usingDoubleToleranceForFieldsForValues() argument
388 config.usingDoubleToleranceForFields(tolerance, asList(firstFieldNumber, rest))); in usingDoubleToleranceForFieldsForValues()
393 * provided absolute tolerance.
395 * @param tolerance A finite, non-negative tolerance.
[all …]
H A DMultimapWithProtoValuesSubject.java398 * than or equal to {@code tolerance}.
400 * @param tolerance A finite, non-negative tolerance.
402 public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(double tolerance) { in usingDoubleToleranceForValues() argument
403 return usingConfig(config.usingDoubleTolerance(tolerance)); in usingDoubleToleranceForValues()
408 * provided absolute tolerance.
410 * @param tolerance A finite, non-negative tolerance.
413 double tolerance, int firstFieldNumber, int... rest) { in usingDoubleToleranceForFieldsForValues() argument
415 config.usingDoubleToleranceForFields(tolerance, asList(firstFieldNumber, rest))); in usingDoubleToleranceForFieldsForValues()
420 * provided absolute tolerance.
422 * @param tolerance A finite, non-negative tolerance.
[all …]
H A DIterableOfProtosSubject.java429 * than or equal to {@code tolerance}.
431 * @param tolerance A finite, non-negative tolerance.
433 public IterableOfProtosFluentAssertion<M> usingDoubleTolerance(double tolerance) { in usingDoubleTolerance() argument
434 return usingConfig(config.usingDoubleTolerance(tolerance)); in usingDoubleTolerance()
439 * provided absolute tolerance.
441 * @param tolerance A finite, non-negative tolerance.
444 double tolerance, int firstFieldNumber, int... rest) { in usingDoubleToleranceForFields() argument
446 config.usingDoubleToleranceForFields(tolerance, asList(firstFieldNumber, rest))); in usingDoubleToleranceForFields()
451 * provided absolute tolerance.
453 * @param tolerance A finite, non-negative tolerance.
[all …]
H A DProtoFluentAssertion.java270 * than or equal to {@code tolerance}.
272 * @param tolerance A finite, non-negative tolerance.
274 ProtoFluentAssertion usingDoubleTolerance(double tolerance); in usingDoubleTolerance() argument
278 * provided absolute tolerance.
280 * @param tolerance A finite, non-negative tolerance.
283 double tolerance, int firstFieldNumber, int... rest); in usingDoubleToleranceForFields() argument
287 * provided absolute tolerance.
289 * @param tolerance A finite, non-negative tolerance.
292 double tolerance, Iterable<Integer> fieldNumbers); in usingDoubleToleranceForFields() argument
296 * tolerance.
[all …]
H A DIterableOfProtosFluentAssertion.java276 * than or equal to {@code tolerance}.
278 * @param tolerance A finite, non-negative tolerance.
280 IterableOfProtosFluentAssertion<M> usingDoubleTolerance(double tolerance); in usingDoubleTolerance() argument
284 * provided absolute tolerance.
286 * @param tolerance A finite, non-negative tolerance.
289 double tolerance, int firstFieldNumber, int... rest); in usingDoubleToleranceForFields() argument
293 * provided absolute tolerance.
295 * @param tolerance A finite, non-negative tolerance.
298 double tolerance, Iterable<Integer> fieldNumbers); in usingDoubleToleranceForFields() argument
302 * tolerance.
[all …]
/aosp_15_r20/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
H A DPrimitiveSegmentTest.java41 private static final float TOLERANCE = 1e-2f; field in PrimitiveSegmentTest
54 assertEquals(1f, primitive.getScale(), TOLERANCE); in testCreation()
102 assertEquals(1f, initial.scale(1).getScale(), TOLERANCE); in testScale_withLegacyScaling_fullPrimitiveScaleValue()
103 assertEquals(0.34f, initial.scale(0.5f).getScale(), TOLERANCE); in testScale_withLegacyScaling_fullPrimitiveScaleValue()
105 assertEquals(1f, initial.scale(1.5f).getScale(), TOLERANCE); in testScale_withLegacyScaling_fullPrimitiveScaleValue()
106 assertEquals(0.53f, initial.scale(1.5f).scale(2 / 3f).getScale(), TOLERANCE); in testScale_withLegacyScaling_fullPrimitiveScaleValue()
108 assertEquals(0.71f, initial.scale(0.8f).getScale(), TOLERANCE); in testScale_withLegacyScaling_fullPrimitiveScaleValue()
109 assertEquals(0.84f, initial.scale(0.8f).scale(1.25f).getScale(), TOLERANCE); in testScale_withLegacyScaling_fullPrimitiveScaleValue()
118 assertEquals(1f, initial.scale(1).getScale(), TOLERANCE); in testScale_withScalingV2_fullPrimitiveScaleValue()
119 assertEquals(0.5f, initial.scale(0.5f).getScale(), TOLERANCE); in testScale_withScalingV2_fullPrimitiveScaleValue()
[all …]
H A DStepSegmentTest.java41 private static final float TOLERANCE = 1e-2f; field in StepSegmentTest
89 assertEquals(0.2f, original.resolve(51).getAmplitude(), TOLERANCE); in testResolve()
108 assertEquals(1f, initial.scale(1).getAmplitude(), TOLERANCE); in testScale_withLegacyScaling_fullAmplitude()
109 assertEquals(0.34f, initial.scale(0.5f).getAmplitude(), TOLERANCE); in testScale_withLegacyScaling_fullAmplitude()
111 assertEquals(1f, initial.scale(1.5f).getAmplitude(), TOLERANCE); in testScale_withLegacyScaling_fullAmplitude()
112 assertEquals(0.53f, initial.scale(1.5f).scale(2 / 3f).getAmplitude(), TOLERANCE); in testScale_withLegacyScaling_fullAmplitude()
114 assertEquals(0.71f, initial.scale(0.8f).getAmplitude(), TOLERANCE); in testScale_withLegacyScaling_fullAmplitude()
115 assertEquals(0.84f, initial.scale(0.8f).scale(1.25f).getAmplitude(), TOLERANCE); in testScale_withLegacyScaling_fullAmplitude()
123 assertEquals(1f, initial.scale(1).getAmplitude(), TOLERANCE); in testScale_withScalingV2_fullAmplitude()
124 assertEquals(0.5f, initial.scale(0.5f).getAmplitude(), TOLERANCE); in testScale_withScalingV2_fullAmplitude()
[all …]
H A DRampSegmentTest.java43 private static final float TOLERANCE = 1e-2f; field in RampSegmentTest
111 assertEquals(0.5f, initial.scale(1).getStartAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
112 assertEquals(0.17f, initial.scale(0.5f).getStartAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
114 assertEquals(0.86f, initial.scale(1.5f).getStartAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
115 assertEquals(0.47f, initial.scale(1.5f).scale(2 / 3f).getStartAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
117 assertEquals(0.35f, initial.scale(0.8f).getStartAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
118 assertEquals(0.5f, initial.scale(0.8f).scale(1.25f).getStartAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
120 assertEquals(1f, initial.scale(1).getEndAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
121 assertEquals(0.34f, initial.scale(0.5f).getEndAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
123 assertEquals(1f, initial.scale(1.5f).getEndAmplitude(), TOLERANCE); in testScale_withLegacyScaling_halfAndFullAmplitudes()
[all …]
/aosp_15_r20/external/truth/core/src/main/java/com/google/common/truth/
H A DDoubleSubject.java48 * a tolerance.
56 * Fails if the subject was expected to be within the tolerance of the given value but was not
57 * <i>or</i> if it was expected <i>not</i> to be within the tolerance but was. The subject and
58 * tolerance are specified earlier in the fluent call chain.
86 * Prepares for a check that the subject is a finite number within the given tolerance of an
98 * <p>You can use a tolerance of {@code 0.0} to assert the exact equality of finite doubles, but
103 * @param tolerance an inclusive upper bound on the difference between the subject and object
107 public TolerantDoubleComparison isWithin(double tolerance) { in isWithin() argument
113 actual, "actual value cannot be null. tolerance=%s expected=%s", tolerance, expected); in isWithin()
114 checkTolerance(tolerance); in isWithin()
[all …]
H A DFloatSubject.java56 * a tolerance.
64 * Fails if the subject was expected to be within the tolerance of the given value but was not
65 * <i>or</i> if it was expected <i>not</i> to be within the tolerance but was. The subject and
66 * tolerance are specified earlier in the fluent call chain.
94 * Prepares for a check that the subject is a finite number within the given tolerance of an
106 * <p>You can use a tolerance of {@code 0.0f} to assert the exact equality of finite floats, but
111 * @param tolerance an inclusive upper bound on the difference between the subject and object
115 public TolerantFloatComparison isWithin(float tolerance) { in isWithin() argument
121 actual, "actual value cannot be null. tolerance=%s expected=%s", tolerance, expected); in isWithin()
122 checkTolerance(tolerance); in isWithin()
[all …]
H A DIntegerSubject.java46 * tolerance.
56 * Fails if the subject was expected to be within the tolerance of the given value but was not
57 * <i>or</i> if it was expected <i>not</i> to be within the tolerance but was. The subject and
58 * tolerance are specified earlier in the fluent call chain.
86 * Prepares for a check that the subject is a number within the given tolerance of an expected
89 * @param tolerance an inclusive upper bound on the difference between the subject and object
93 public TolerantIntegerComparison isWithin(int tolerance) { in isWithin() argument
99 actual, "actual value cannot be null. tolerance=%s expected=%s", tolerance, expected); in isWithin()
100 checkTolerance(tolerance); in isWithin()
102 if (!equalWithinTolerance(actual, expected, tolerance)) { in isWithin()
[all …]
H A DLongSubject.java47 * tolerance.
57 * Fails if the subject was expected to be within the tolerance of the given value but was not
58 * <i>or</i> if it was expected <i>not</i> to be within the tolerance but was. The subject and
59 * tolerance are specified earlier in the fluent call chain.
87 * Prepares for a check that the subject is a number within the given tolerance of an expected
90 * @param tolerance an inclusive upper bound on the difference between the subject and object
94 public TolerantLongComparison isWithin(long tolerance) { in isWithin() argument
100 actual, "actual value cannot be null. tolerance=%s expected=%s", tolerance, expected); in isWithin()
101 checkTolerance(tolerance); in isWithin()
103 if (!equalWithinTolerance(actual, expected, tolerance)) { in isWithin()
[all …]
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DBrightnessMappingStrategyTest.java157 private static final float TOLERANCE = 0.0001f; field in BrightnessMappingStrategyTest
178 assertEquals(DISPLAY_LEVELS[i], simple.getBrightness(LUX_LEVELS[i]), TOLERANCE); in testSimpleStrategyMappingAtControlPoints()
210 assertNotEquals(1.0f, strategy.getBrightness(1f), 0.0001f /*tolerance*/); in testSimpleStrategyIgnoresNewConfiguration()
224 strategy.getBrightness(LUX_LEVELS[n - 1]), 0.0001f /*tolerance*/); in testSimpleStrategyIgnoresNullConfiguration()
242 0.0001f /*tolerance*/); in testPhysicalStrategyMappingAtControlPoints()
282 assertEquals(1.0f, strategy.getBrightness(1f), 0.0001f /*tolerance*/); in testPhysicalStrategyUsesNewConfigurations()
289 strategy.getBrightness(LUX_LEVELS[n - 1]), 0.0001f /*tolerance*/); in testPhysicalStrategyUsesNewConfigurations()
306 TOLERANCE); in testPhysicalStrategyRecalculateSplines()
308 TOLERANCE); in testPhysicalStrategyRecalculateSplines()
310 strategy.convertToAdjustedNits(BACKLIGHT_RANGE_ZERO_TO_ONE[0]), TOLERANCE); in testPhysicalStrategyRecalculateSplines()
[all …]

12345678910>>...104