/packages/apps/Launcher2/src/com/android/launcher2/ |
SmoothPagedView.java | 119 protected void snapToPageWithVelocity(int whichPage, int velocity) { 121 super.snapToPageWithVelocity(whichPage, velocity); 123 snapToPageWithVelocity(whichPage, 0, true); 127 private void snapToPageWithVelocity(int whichPage, int velocity, boolean settle) { 130 whichPage = Math.max(0, Math.min(whichPage, getChildCount() - 1)); 132 final int screenDelta = Math.max(1, Math.abs(whichPage - mCurrentPage)); 133 final int newX = getChildOffset(whichPage) - getRelativeChildOffset(whichPage); 154 snapToPage(whichPage, delta, duration) [all...] |
PagedView.java | [all...] |
Workspace.java | [all...] |
AppsCustomizePagedView.java | [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
SmoothPagedView.java | 116 protected void snapToPageWithVelocity(int whichPage, int velocity) { 118 super.snapToPageWithVelocity(whichPage, velocity); 120 snapToPageWithVelocity(whichPage, 0, true); 124 private void snapToPageWithVelocity(int whichPage, int velocity, boolean settle) { 127 whichPage = Math.max(0, Math.min(whichPage, getChildCount() - 1)); 129 final int screenDelta = Math.max(1, Math.abs(whichPage - mCurrentPage)); 130 final int newX = getScrollForPage(whichPage); 151 snapToPage(whichPage, delta, duration); 155 protected void snapToPage(int whichPage) { [all...] |
PagedView.java | [all...] |
AppsCustomizePagedView.java | [all...] |
Workspace.java | [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
PagedView.java | 479 protected void notifyPageSwitching(int whichPage) { 481 mPageSwitchListener.onPageSwitching(getPageAt(whichPage), whichPage); [all...] |