/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | AdapterViewCompat.java | 927 int newPos; in handleDataChanged() local 937 newPos = findSyncPosition(); in handleDataChanged() 938 if (newPos >= 0) { in handleDataChanged() 940 int selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged() 941 if (selectablePos == newPos) { in handleDataChanged() 943 setNextSelectedPositionInt(newPos); in handleDataChanged() 950 newPos = getSelectedItemPosition(); in handleDataChanged() 953 if (newPos >= count) { in handleDataChanged() 954 newPos = count - 1; in handleDataChanged() 956 if (newPos < 0) { in handleDataChanged() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | AdapterView.java | 1003 int newPos; in handleDataChanged() local 1013 newPos = findSyncPosition(); in handleDataChanged() 1014 if (newPos >= 0) { in handleDataChanged() 1016 int selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged() 1017 if (selectablePos == newPos) { in handleDataChanged() 1019 setNextSelectedPositionInt(newPos); in handleDataChanged() 1026 newPos = getSelectedItemPosition(); in handleDataChanged() 1029 if (newPos >= count) { in handleDataChanged() 1030 newPos = count - 1; in handleDataChanged() 1032 if (newPos < 0) { in handleDataChanged() [all …]
|
D | Gallery.java | 606 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() local 608 if (newPos != mSelectedPosition) { in setSelectionToCenterChild() 609 setSelectedPositionInt(newPos); in setSelectionToCenterChild() 610 setNextSelectedPositionInt(newPos); in setSelectionToCenterChild()
|
D | Switch.java | 759 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local 760 if (newPos != mThumbPosition) { in onTouchEvent() 762 setThumbPosition(newPos); in onTouchEvent()
|
D | AbsListView.java | 5293 int newPos; in handleDataChanged() local 5339 newPos = findSyncPosition(); in handleDataChanged() 5340 if (newPos >= 0) { in handleDataChanged() 5342 selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged() 5343 if (selectablePos == newPos) { in handleDataChanged() 5345 mSyncPosition = newPos; in handleDataChanged() 5358 setNextSelectedPositionInt(newPos); in handleDataChanged() 5375 newPos = getSelectedItemPosition(); in handleDataChanged() 5378 if (newPos >= count) { in handleDataChanged() 5379 newPos = count - 1; in handleDataChanged() [all …]
|
/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/recents/views/ |
D | SwipeHelper.java | 123 private ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument 125 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation() 222 float newPos; in dismissChild() local 227 newPos = -getSize(view); in dismissChild() 229 newPos = getSize(view); in dismissChild() 234 (int) (Math.abs(newPos - getTranslation(view)) * in dismissChild() 240 ValueAnimator anim = createTranslationAnimation(view, newPos); in dismissChild()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 127 private ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument 129 mSwipeDirection == X ? "translationX" : "translationY", newPos); in createTranslationAnimation() 313 float newPos; in dismissChild() local 322 newPos = -getSize(animView); in dismissChild() 324 newPos = getSize(animView); in dismissChild() 331 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild() 342 ObjectAnimator anim = createTranslationAnimation(animView, newPos); in dismissChild()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ResolverDrawerLayout.java | 361 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy, 363 if (newPos != mCollapseOffset) { 364 dy = newPos - mCollapseOffset; 374 mCollapseOffset = newPos; 376 final boolean isCollapsedNew = newPos != 0;
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SwitchCompat.java | 641 final float newPos = constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local 642 if (newPos != mThumbPosition) { in onTouchEvent() 644 setThumbPosition(newPos); in onTouchEvent()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | GridLayoutManager.java | 2581 int newPos = mFocusPosition + mNumRows; 2582 if (newPos < getItemCount() && mScrollEnabled) { 2583 setSelectionSmooth(mBaseGridView, newPos); 2591 int newPos = mFocusPosition - mNumRows; 2592 if (newPos >= 0 && mScrollEnabled) { 2593 setSelectionSmooth(mBaseGridView, newPos);
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | ViewPager.java | 859 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged() 861 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged() 865 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged() 885 if (ii.position != newPos) { in dataSetChanged() 888 newCurrItem = newPos; in dataSetChanged() 891 ii.position = newPos; in dataSetChanged()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | DrawerLayout.java | 748 final int newPos = (int) (width * slideOffset); in moveDrawerToOffset() local 749 final int dx = newPos - oldPos; in moveDrawerToOffset()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 5066 final int newPos = reAddAppWindowsLocked(displayContent, pos, wtoken); in moveStackWindowsLocked() local 5067 if (newPos != pos) { in moveStackWindowsLocked() 5070 pos = newPos; in moveStackWindowsLocked()
|