Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DWorkspace.java944 final int whichScreen = (mScrollX + (screenWidth / 2)) / screenWidth; in snapToDestination() local
946 snapToScreen(whichScreen); in snapToDestination()
949 void snapToScreen(int whichScreen) { in snapToScreen() argument
952 whichScreen = Math.max(0, Math.min(whichScreen, getChildCount() - 1)); in snapToScreen()
955 enableChildrenCache(mCurrentScreen, whichScreen); in snapToScreen()
957 final int screenDelta = Math.abs(whichScreen - mCurrentScreen); in snapToScreen()
959 mNextScreen = whichScreen; in snapToScreen()
969 final int newX = whichScreen * getWidth(); in snapToScreen()
/packages/apps/Launcher/src/com/android/launcher/
DWorkspace.java760 final int whichScreen = (mScrollX + (screenWidth / 2)) / screenWidth; in snapToDestination() local
762 snapToScreen(whichScreen); in snapToDestination()
765 void snapToScreen(int whichScreen) { in snapToScreen() argument
771 whichScreen = Math.max(0, Math.min(whichScreen, getChildCount() - 1)); in snapToScreen()
772 boolean changingScreens = whichScreen != mCurrentScreen; in snapToScreen()
774 mNextScreen = whichScreen; in snapToScreen()
781 final int newX = whichScreen * getWidth(); in snapToScreen()