Home
last modified time | relevance | path

Searched refs:TOLERANCE (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportStatsTest.java37 private static final double TOLERANCE = 0.0001; field in TransportStatsTest
55 assertThat(stats.average).isWithin(TOLERANCE).of(50); in testRegisterConnectionTime()
68 assertThat(stats.average).isWithin(TOLERANCE).of(75); in testRegisterConnectionTime_whenHasAlreadyOneSample()
81 assertThat(stats.average).isWithin(TOLERANCE).of(10); in testGetStatsForTransport()
96 assertThat(stats.average).isWithin(TOLERANCE).of(15); in testMerge()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DTransformMatcher.h33 const float TOLERANCE = 1e-3f; variable
37 if (std::fabs(expected[i][j] - arg[i][j]) > TOLERANCE) {
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java47 private static final int TOLERANCE = 20; field in ImageUtils
130 return Math.abs(r - g) < TOLERANCE in isGrayscale()
131 && Math.abs(r - b) < TOLERANCE in isGrayscale()
132 && Math.abs(g - b) < TOLERANCE; in isGrayscale()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java38 private static final float TOLERANCE = 0.001f; field in BluetoothDeviceLayerDrawableTest
79 assertThat(batteryDrawable.getAspectRatio()).isWithin(TOLERANCE).of(0.35f); in testBatteryMeterDrawable_configCorrect()
80 assertThat(batteryDrawable.getRadiusRatio()).isWithin(TOLERANCE).of(0f); in testBatteryMeterDrawable_configCorrect()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/cdc/
DIsChunkBreakpointTest.java37 private static final double TOLERANCE = 0.01; field in IsChunkBreakpointTest
109 .isLessThan(TOLERANCE * expectedTrials); in assertExpectedTrials()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DCarSetupWizardCompatLayoutTest.java71 private static final float TOLERANCE = 0.001f; field in CarSetupWizardCompatLayoutTest
516 assertThat(primaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inDefaultLayout()
517 assertThat(secondaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inDefaultLayout()
531 assertThat(primaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inAlternativeLayout()
532 assertThat(secondaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inAlternativeLayout()
/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java52 private final static long TOLERANCE = 100; // ms field in ValueAnimatorTests
171 long delay = Math.max(a1.getTotalDuration(), a2.getTotalDuration()) + TOLERANCE; in testListenerCallbacks()
414 assertTrue(Math.abs(entireSpan - frameDelta) < TOLERANCE); in testResume()
569 Thread.sleep(a1.getTotalDuration() + TOLERANCE);
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt99657 Lcom/android/internal/util/ImageUtils;->TOLERANCE:I