Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/
DJobStatusTest.java37 private static final double DELTA = 0.00001; field in JobStatusTest
54 assertEquals(1, createJobStatus(0, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
56 assertEquals(1, createJobStatus(0, now - 1000).getFractionRunTime(), DELTA); in testFraction()
57 assertEquals(0, createJobStatus(0, now + 1000).getFractionRunTime(), DELTA); in testFraction()
59 assertEquals(1, createJobStatus(now - 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
60 assertEquals(0, createJobStatus(now + 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
62 assertEquals(0, createJobStatus(now, now + 2000).getFractionRunTime(), DELTA); in testFraction()
63 assertEquals(0.25, createJobStatus(now - 500, now + 1500).getFractionRunTime(), DELTA); in testFraction()
64 assertEquals(0.5, createJobStatus(now - 1000, now + 1000).getFractionRunTime(), DELTA); in testFraction()
65 assertEquals(0.75, createJobStatus(now - 1500, now + 500).getFractionRunTime(), DELTA); in testFraction()
[all …]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DImageCardViewTest.java54 private static final float DELTA = 0.0f; field in ImageCardViewTest
199 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageTest0()
226 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageTest1()
253 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageTest2()
292 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageTest3() local
339 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageInTransitionTest0()
389 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageInTransitionTest1()
438 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageInTransitionTest2()
501 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); in testSetMainImageInTransitionTest3() local
DListRowPresenterTest.java45 static final float DELTA = 1f; field in ListRowPresenterTest
324 DELTA); in expect()
330 assertEquals(this.mViewZ, viewZ, DELTA); in expect()
DGridWidgetTest.java80 private static final float DELTA = 1f; field in GridWidgetTest
2251 mGridView.getLayoutManager().findViewByPosition(focusToIndex).getLeft(), DELTA); in testScrollAndRemove()
5894 assertEquals(windowAlignCenter, rect.top, DELTA);
5902 assertEquals(windowAlignCenter, rect.top, DELTA);
5911 assertEquals(windowAlignCenter, rect.bottom, DELTA);
5919 assertEquals(windowAlignCenter, rect.bottom, DELTA);
5927 assertEquals(windowAlignCenter, rect.bottom, DELTA);
5968 assertEquals(windowAlignCenter, rect.left, DELTA);
5976 assertEquals(windowAlignCenter, rect.left, DELTA);
5985 assertEquals(windowAlignCenter, rect.right, DELTA);
[all …]
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/
DPlaybackStateCompatTest.java49 private static final float DELTA = 1e-7f; field in PlaybackStateCompatTest
73 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); in testBuilder()
107 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); in testBuilder_setterMethods()
132 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); in testBuilder_setStateWithUpdateTime()
227 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA); in testWriteToParcel()
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/
DPlaybackStateCompatTest.java49 private static final float DELTA = 1e-7f; field in PlaybackStateCompatTest
73 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); in testBuilder()
107 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); in testBuilder_setterMethods()
132 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); in testBuilder_setStateWithUpdateTime()
227 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA); in testWriteToParcel()
/frameworks/support/exifinterface/src/androidTest/java/androidx/exifinterface/media/
DExifInterfaceTest.java75 private static final double DELTA = 1e-8; field in ExifInterfaceTest
457 latLong[0], DELTA); in testSetGpsInfo()
459 latLong[1], DELTA); in testSetGpsInfo()
480 assertEquals(TEST_LATITUDE_VALID_VALUES[i], latLong[0], DELTA); in testSetLatLong_withValidValues()
481 assertEquals(TEST_LONGITUDE_VALID_VALUES[i], latLong[1], DELTA); in testSetLatLong_withValidValues()
/frameworks/support/media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/
DMediaSessionCompatCallbackTest.java124 private static final float DELTA = 1e-4f; field in MediaSessionCompatCallbackTest
443 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating(), DELTA); in testTransportControlsAndMediaSessionCallback() local
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/
DMediaSessionCompatCallbackTest.java126 private static final float DELTA = 1e-4f; field in MediaSessionCompatCallbackTest
445 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating(), DELTA); in testTransportControlsAndMediaSessionCallback() local