Home
last modified time | relevance | path

Searched refs:viewSize (Results 1 – 3 of 3) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeHelper.java147 float viewSize = getSize(view); in getAlphaForOffset() local
148 final float fadeSize = ALPHA_FADE_END * viewSize; in getAlphaForOffset()
151 if (pos >= viewSize * ALPHA_FADE_START) { in getAlphaForOffset()
152 result = 1.0f - (pos - viewSize * ALPHA_FADE_START) / fadeSize; in getAlphaForOffset()
153 } else if (pos < viewSize * (1.0f - ALPHA_FADE_START)) { in getAlphaForOffset()
154 result = 1.0f + (viewSize * ALPHA_FADE_START + pos) / fadeSize; in getAlphaForOffset()
161 float viewSize = getSize(view); in getTextAlphaForOffset() local
162 final float fadeSize = ALPHA_TEXT_FADE_START * viewSize; in getTextAlphaForOffset()
/packages/apps/Camera2/src/com/android/camera/widget/
DRoundedThumbnailView.java628 public RevealRequest(float viewSize, String accessibilityString) { in RevealRequest() argument
630 mViewSize = viewSize; in RevealRequest()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DSwipeHelper.java184 float viewSize = getSize(view); in getSwipeProgressForOffset() local
185 float result = Math.abs(translation / viewSize); in getSwipeProgressForOffset()