Searched refs:newPos (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | AdapterView.java | 1027 int newPos; in handleDataChanged() local 1037 newPos = findSyncPosition(); in handleDataChanged() 1038 if (newPos >= 0) { in handleDataChanged() 1040 int selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged() 1041 if (selectablePos == newPos) { in handleDataChanged() 1043 setNextSelectedPositionInt(newPos); in handleDataChanged() 1050 newPos = getSelectedItemPosition(); in handleDataChanged() 1053 if (newPos >= count) { in handleDataChanged() 1054 newPos = count - 1; in handleDataChanged() 1056 if (newPos < 0) { in handleDataChanged() [all …]
|
D | Gallery.java | 613 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() local 615 if (newPos != mSelectedPosition) { in setSelectionToCenterChild() 616 setSelectedPositionInt(newPos); in setSelectionToCenterChild() 617 setNextSelectedPositionInt(newPos); in setSelectionToCenterChild()
|
D | AbsListView.java | 5489 int newPos; in handleDataChanged() local 5535 newPos = findSyncPosition(); in handleDataChanged() 5536 if (newPos >= 0) { in handleDataChanged() 5538 selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged() 5539 if (selectablePos == newPos) { in handleDataChanged() 5541 mSyncPosition = newPos; in handleDataChanged() 5554 setNextSelectedPositionInt(newPos); in handleDataChanged() 5571 newPos = getSelectedItemPosition(); in handleDataChanged() 5574 if (newPos >= count) { in handleDataChanged() 5575 newPos = count - 1; in handleDataChanged() [all …]
|
D | Switch.java | 968 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local 969 if (newPos != mThumbPosition) { in onTouchEvent() 971 setThumbPosition(newPos); in onTouchEvent()
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main() local 125 printf("seek %u\n", (unsigned) newPos); in main() 126 result = (*playerSeek)->SetPosition(playerSeek, newPos, SL_SEEKMODE_ACCURATE); in main() 131 printf("now %u\n", (unsigned) newPos); in main()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 139 protected ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument 141 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation() 346 float newPos; in dismissChild() local 359 newPos = -getSize(animView); in dismissChild() 361 newPos = getSize(animView); in dismissChild() 368 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild() 387 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild() 396 newPos, velocity, getSize(animView)); in dismissChild()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ResolverDrawerLayout.java | 436 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy, 438 if (newPos != mCollapseOffset) { 439 dy = newPos - mCollapseOffset; 449 mCollapseOffset = newPos; 451 final boolean isCollapsedNew = newPos != 0;
|
D | ViewPager.java | 830 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged() 832 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged() 836 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged() 856 if (ii.position != newPos) { in dataSetChanged() 859 newCurrItem = newPos; in dataSetChanged() 862 ii.position = newPos; in dataSetChanged()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SwitchCompat.java | 938 final float newPos = constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local 939 if (newPos != mThumbPosition) { in onTouchEvent() 941 setThumbPosition(newPos); in onTouchEvent()
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | ViewPager.java | 1059 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged() 1061 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged() 1065 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged() 1085 if (ii.position != newPos) { in dataSetChanged() 1088 newCurrItem = newPos; in dataSetChanged() 1091 ii.position = newPos; in dataSetChanged()
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | DrawerLayout.java | 964 final int newPos = (int) (width * slideOffset); in moveDrawerToOffset() local 965 final int dx = newPos - oldPos; in moveDrawerToOffset()
|