Home
last modified time | relevance | path

Searched refs:newPos (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/java/android/widget/
DAdapterView.java1020 int newPos; in handleDataChanged() local
1030 newPos = findSyncPosition(); in handleDataChanged()
1031 if (newPos >= 0) { in handleDataChanged()
1033 int selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged()
1034 if (selectablePos == newPos) { in handleDataChanged()
1036 setNextSelectedPositionInt(newPos); in handleDataChanged()
1043 newPos = getSelectedItemPosition(); in handleDataChanged()
1046 if (newPos >= count) { in handleDataChanged()
1047 newPos = count - 1; in handleDataChanged()
1049 if (newPos < 0) { in handleDataChanged()
[all …]
DGallery.java605 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() local
607 if (newPos != mSelectedPosition) { in setSelectionToCenterChild()
608 setSelectedPositionInt(newPos); in setSelectionToCenterChild()
609 setNextSelectedPositionInt(newPos); in setSelectionToCenterChild()
DAbsListView.java5331 int newPos; in handleDataChanged() local
5377 newPos = findSyncPosition(); in handleDataChanged()
5378 if (newPos >= 0) { in handleDataChanged()
5380 selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged()
5381 if (selectablePos == newPos) { in handleDataChanged()
5383 mSyncPosition = newPos; in handleDataChanged()
5396 setNextSelectedPositionInt(newPos); in handleDataChanged()
5413 newPos = getSelectedItemPosition(); in handleDataChanged()
5416 if (newPos >= count) { in handleDataChanged()
5417 newPos = count - 1; in handleDataChanged()
[all …]
DSwitch.java967 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local
968 if (newPos != mThumbPosition) { in onTouchEvent()
970 setThumbPosition(newPos); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DSwipeHelper.java123 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/wilhelm/tests/listening/
DseekTorture.c124 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/
DSwipeHelper.java127 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/
DResolverDrawerLayout.java372 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy,
374 if (newPos != mCollapseOffset) {
375 dy = newPos - mCollapseOffset;
385 mCollapseOffset = newPos;
387 final boolean isCollapsedNew = newPos != 0;
DViewPager.java855 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged()
857 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged()
861 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged()
881 if (ii.position != newPos) { in dataSetChanged()
884 newCurrItem = newPos; in dataSetChanged()
887 ii.position = newPos; in dataSetChanged()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java683 final float newPos = constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local
684 if (newPos != mThumbPosition) { in onTouchEvent()
686 setThumbPosition(newPos); in onTouchEvent()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java892 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged()
894 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged()
898 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged()
918 if (ii.position != newPos) { in dataSetChanged()
921 newCurrItem = newPos; in dataSetChanged()
924 ii.position = newPos; in dataSetChanged()
/frameworks/support/v4/java/android/support/v4/widget/
DDrawerLayout.java820 final int newPos = (int) (width * slideOffset); in moveDrawerToOffset() local
821 final int dx = newPos - oldPos; in moveDrawerToOffset()