Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DSwipeHelper.java63 private int mSwipeDirection; field in SwipeHelper
80 mSwipeDirection = swipeDirection; in SwipeHelper()
111 return mSwipeDirection == X ? ev.getX() : ev.getY(); in getPos()
115 return mSwipeDirection == X ? v.getTranslationX() : v.getTranslationY(); in getTranslation()
119 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity()
125 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation()
130 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity()
135 if (mSwipeDirection == X) { in setTranslation()
144 return mSwipeDirection == X ? dm.widthPixels : dm.heightPixels; in getSize()
226 || (velocity == 0 && getTranslation(view) == 0 && mSwipeDirection == Y)) { in dismissChild()
[all …]
/frameworks/support/design/src/android/support/design/widget/
DSwipeDismissBehavior.java86 private int mSwipeDirection = SWIPE_DIRECTION_ANY; field in SwipeDismissBehavior
125 mSwipeDirection = direction; in setSwipeDirection()
245 if (mSwipeDirection == SWIPE_DIRECTION_ANY) {
248 } else if (mSwipeDirection == SWIPE_DIRECTION_START_TO_END) {
252 } else if (mSwipeDirection == SWIPE_DIRECTION_END_TO_START) {
277 if (mSwipeDirection == SWIPE_DIRECTION_START_TO_END) {
285 } else if (mSwipeDirection == SWIPE_DIRECTION_END_TO_START) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java68 private int mSwipeDirection; field in SwipeHelper
90 mSwipeDirection = swipeDirection; in SwipeHelper()
115 return mSwipeDirection == X ? ev.getX() : ev.getY(); in getPos()
119 return mSwipeDirection == X ? v.getTranslationX() : v.getTranslationY(); in getTranslation()
123 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity()
129 mSwipeDirection == X ? "translationX" : "translationY", newPos); in createTranslationAnimation()
134 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity()
139 if (mSwipeDirection == X) { in setTranslation()
147 return mSwipeDirection == X ? v.getMeasuredWidth() : in getSize()
319 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y) in dismissChild()