Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DAdapterView.java1053 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 …]
DGallery.java626 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() local
628 if (newPos != mSelectedPosition) { in setSelectionToCenterChild()
629 setSelectedPositionInt(newPos); in setSelectionToCenterChild()
630 setNextSelectedPositionInt(newPos); in setSelectionToCenterChild()
DAbsListView.java5620 int newPos; in handleDataChanged() local
5666 newPos = findSyncPosition(); in handleDataChanged()
5667 if (newPos >= 0) { in handleDataChanged()
5669 selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged()
5670 if (selectablePos == newPos) { in handleDataChanged()
5672 mSyncPosition = newPos; in handleDataChanged()
5685 setNextSelectedPositionInt(newPos); in handleDataChanged()
5702 newPos = getSelectedItemPosition(); in handleDataChanged()
5705 if (newPos >= count) { in handleDataChanged()
5706 newPos = count - 1; in handleDataChanged()
[all …]
DSwitch.java1061 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local
1062 if (newPos != mThumbPosition) { in onTouchEvent()
1064 setThumbPosition(newPos); in onTouchEvent()
/frameworks/wilhelm/tests/listening/
DseekTorture.c125 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/
DSwipeHelper.java149 protected ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument
151 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation()
371 float newPos; in dismissChild() local
383 newPos = -getSize(animView); in dismissChild()
385 newPos = getSize(animView); in dismissChild()
392 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
412 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild()
421 newPos, velocity, getSize(animView)); in dismissChild()
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp177 int newPos = values[i].mField.getPosAtDepth(depth); in matchesSimple() local
178 if (newPos != currentPos) { in matchesSimple()
181 currentPos = newPos; in matchesSimple()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java510 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy,
512 if (newPos != mCollapseOffset) {
513 dy = newPos - mCollapseOffset;
533 mCollapseOffset = newPos;
535 final boolean isCollapsedNew = newPos != 0;
542 onScrollChanged(0, (int) newPos, 0, (int) (newPos - dy));
DViewPager.java837 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleData.java342 int newPos = insertBubble(0, bubble); in doUpdate() local
343 if (prevPos != newPos) { in doUpdate()
344 packGroup(newPos); in doUpdate()