Home
last modified time | relevance | path

Searched refs:snapTarget (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDividerView.java514 SnapTarget snapTarget = getSnapAlgorithm().calculateSnapTarget( in onTouch() local
516 resizeStackSurfaces(calculatePosition(x, y), mStartPosition, snapTarget, in onTouch() local
538 private void logResizeEvent(SnapTarget snapTarget) { in logResizeEvent() argument
539 if (snapTarget == mSplitLayout.getSnapAlgorithm().getDismissStartTarget()) { in logResizeEvent()
544 } else if (snapTarget == mSplitLayout.getSnapAlgorithm().getDismissEndTarget()) { in logResizeEvent()
549 } else if (snapTarget == mSplitLayout.getSnapAlgorithm().getMiddleTarget()) { in logResizeEvent()
552 } else if (snapTarget == mSplitLayout.getSnapAlgorithm().getFirstSplitTarget()) { in logResizeEvent()
557 } else if (snapTarget == mSplitLayout.getSnapAlgorithm().getLastSplitTarget()) { in logResizeEvent()
572 SnapTarget snapTarget = currentSnapAlgorithm.calculateSnapTarget(position, velocity); in fling() local
573 if (avoidDismissStart && snapTarget == currentSnapAlgorithm.getDismissStartTarget()) { in fling()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DDividerSnapAlgorithm.java384 public SnapTarget getNextTarget(SnapTarget snapTarget) { in getNextTarget() argument
385 int index = mTargets.indexOf(snapTarget); in getNextTarget()
389 return snapTarget; in getNextTarget()
392 public SnapTarget getPreviousTarget(SnapTarget snapTarget) { in getPreviousTarget() argument
393 int index = mTargets.indexOf(snapTarget); in getPreviousTarget()
397 return snapTarget; in getPreviousTarget()
420 public SnapTarget cycleNonDismissTarget(SnapTarget snapTarget, int increment) { in cycleNonDismissTarget() argument
421 int index = mTargets.indexOf(snapTarget); in cycleNonDismissTarget()
433 return snapTarget; in cycleNonDismissTarget()