/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/ |
D | JobStatusTest.java | 37 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/ |
D | ImageCardViewTest.java | 54 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
|
D | ListRowPresenterTest.java | 45 static final float DELTA = 1f; field in ListRowPresenterTest 324 DELTA); in expect() 330 assertEquals(this.mViewZ, viewZ, DELTA); in expect()
|
D | GridWidgetTest.java | 80 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/ |
D | PlaybackStateCompatTest.java | 49 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/ |
D | PlaybackStateCompatTest.java | 49 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/ |
D | ExifInterfaceTest.java | 75 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/ |
D | MediaSessionCompatCallbackTest.java | 124 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/ |
D | MediaSessionCompatCallbackTest.java | 126 private static final float DELTA = 1e-4f; field in MediaSessionCompatCallbackTest 445 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating(), DELTA); in testTransportControlsAndMediaSessionCallback() local
|