Searched refs:newPos (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | AdapterView.java | 1053 int newPos; in handleDataChanged() local 1063 newPos = findSyncPosition(); in handleDataChanged() 1064 if (newPos >= 0) { in handleDataChanged() 1066 int selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged() 1067 if (selectablePos == newPos) { in handleDataChanged() 1069 setNextSelectedPositionInt(newPos); in handleDataChanged() 1076 newPos = getSelectedItemPosition(); in handleDataChanged() 1079 if (newPos >= count) { in handleDataChanged() 1080 newPos = count - 1; in handleDataChanged() 1082 if (newPos < 0) { in handleDataChanged() [all …]
|
D | Gallery.java | 626 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() local 628 if (newPos != mSelectedPosition) { in setSelectionToCenterChild() 629 setSelectedPositionInt(newPos); in setSelectionToCenterChild() 630 setNextSelectedPositionInt(newPos); in setSelectionToCenterChild()
|
D | Switch.java | 1069 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local 1070 if (newPos != mThumbPosition) { in onTouchEvent() 1072 setThumbPosition(newPos); in onTouchEvent()
|
D | AbsListView.java | 5601 int newPos; in handleDataChanged() local 5647 newPos = findSyncPosition(); in handleDataChanged() 5648 if (newPos >= 0) { in handleDataChanged() 5650 selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged() 5651 if (selectablePos == newPos) { in handleDataChanged() 5653 mSyncPosition = newPos; in handleDataChanged() 5666 setNextSelectedPositionInt(newPos); in handleDataChanged() 5683 newPos = getSelectedItemPosition(); in handleDataChanged() 5686 if (newPos >= count) { in handleDataChanged() 5687 newPos = count - 1; in handleDataChanged() [all …]
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 125 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main() local 126 printf("seek %u\n", (unsigned) newPos); in main() 127 result = (*playerSeek)->SetPosition(playerSeek, newPos, SL_SEEKMODE_ACCURATE); in main() 132 printf("now %u\n", (unsigned) newPos); in main()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 168 protected ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument 170 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation() 379 float newPos; in dismissChild() local 391 newPos = -getSize(animView); in dismissChild() 393 newPos = getSize(animView); in dismissChild() 400 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild() 420 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild() 429 newPos, velocity, getSize(animView)); in dismissChild()
|
/frameworks/base/cmds/statsd/src/matchers/ |
D | matcher_util.cpp | 176 int newPos = values[i].mField.getPosAtDepth(depth); in matchesSimple() local 177 if (newPos != currentPos) { in matchesSimple() 180 currentPos = newPos; in matchesSimple()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ResolverDrawerLayout.java | 547 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy, 549 if (newPos != mCollapseOffset) { 550 dy = newPos - mCollapseOffset; 570 mCollapseOffset = newPos; 572 final boolean isCollapsedNew = newPos != 0; 579 onScrollChanged(0, (int) newPos, 0, (int) (newPos - dy));
|
D | ViewPager.java | 837 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged() 839 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged() 843 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged() 863 if (ii.position != newPos) { in dataSetChanged() 866 newCurrItem = newPos; in dataSetChanged() 869 ii.position = newPos; in dataSetChanged()
|