Searched refs:ACCEPT_SCALE_FACTOR (Results 1 – 2 of 2) sorted by relevance
18 import static com.android.launcher3.folder.PreviewBackground.ACCEPT_SCALE_FACTOR;132 assertEquals("Scale changed.", mPreviewBackground.mScale, ACCEPT_SCALE_FACTOR, EPSILON); in testAnimateScale_restToAccept()155 mPreviewBackground.mScale = ACCEPT_SCALE_FACTOR; in testAnimateScale_acceptToRest()175 mPreviewBackground.mScale = ACCEPT_SCALE_FACTOR; in testAnimateScale_acceptToHover()203 assertEquals("Scale not changed.", mPreviewBackground.mScale, ACCEPT_SCALE_FACTOR, EPSILON); in testAnimateScale_hoverToAccept()227 assertEquals("Scale not changed.", mPreviewBackground.mScale, ACCEPT_SCALE_FACTOR, EPSILON); in testAnimateScale_midwayToHoverToAccept()245 && mPreviewBackground.mScale < ACCEPT_SCALE_FACTOR); in testAnimateScale_partWayToAcceptToHover()302 && mPreviewBackground.mScale < ACCEPT_SCALE_FACTOR); in testAnimateScale_midwayToAcceptToRest()
100 @VisibleForTesting protected static final float ACCEPT_SCALE_FACTOR = 1.20f; field in PreviewBackground229 return mIsHoveredOrAnimating ? 0 : (mScale - 1f) / (ACCEPT_SCALE_FACTOR - 1f); in getAcceptScaleProgress()417 final float endScale = isAccepting ? ACCEPT_SCALE_FACTOR : (isHovered ? HOVER_SCALE : 1f); in animateScale()