Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DAdapterView.java981 int newPos; in handleDataChanged() local
991 newPos = findSyncPosition(); in handleDataChanged()
992 if (newPos >= 0) { in handleDataChanged()
994 int selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged()
995 if (selectablePos == newPos) { in handleDataChanged()
997 setNextSelectedPositionInt(newPos); in handleDataChanged()
1004 newPos = getSelectedItemPosition(); in handleDataChanged()
1007 if (newPos >= count) { in handleDataChanged()
1008 newPos = count - 1; in handleDataChanged()
1010 if (newPos < 0) { in handleDataChanged()
[all …]
DGallery.java587 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() local
589 if (newPos != mSelectedPosition) { in setSelectionToCenterChild()
590 setSelectedPositionInt(newPos); in setSelectionToCenterChild()
591 setNextSelectedPositionInt(newPos); in setSelectionToCenterChild()
DSwitch.java602 float newPos = Math.max(0, in onTouchEvent() local
604 if (newPos != mThumbPosition) { in onTouchEvent()
605 mThumbPosition = newPos; in onTouchEvent()
DAbsListView.java5338 int newPos; in handleDataChanged() local
5383 newPos = findSyncPosition(); in handleDataChanged()
5384 if (newPos >= 0) { in handleDataChanged()
5386 selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged()
5387 if (selectablePos == newPos) { in handleDataChanged()
5389 mSyncPosition = newPos; in handleDataChanged()
5402 setNextSelectedPositionInt(newPos); in handleDataChanged()
5419 newPos = getSelectedItemPosition(); in handleDataChanged()
5422 if (newPos >= count) { in handleDataChanged()
5423 newPos = count - 1; in handleDataChanged()
[all …]
/frameworks/base/core/java/android/webkit/
DWebBackForwardList.java114 final int newPos = mCurrentIndex; in addHistoryItem() local
115 if (newPos != size) { in addHistoryItem()
116 for (int i = size - 1; i >= newPos; i--) { in addHistoryItem()
/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.java116 private ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument
118 mSwipeDirection == X ? "translationX" : "translationY", newPos); in createTranslationAnimation()
262 float newPos; in dismissChild() local
268 newPos = -getSize(animView); in dismissChild()
270 newPos = getSize(animView); in dismissChild()
275 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
282 ObjectAnimator anim = createTranslationAnimation(animView, newPos); in dismissChild()
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_file.c632 off_t newPos; in DRM_file_setPosition() local
656 newPos = lseek( (int)handle, (off_t)value, SEEK_SET); in DRM_file_setPosition()
657 if ( newPos == (off_t)-1 ) in DRM_file_setPosition()
664 if ( newPos > sbuf.st_size ) in DRM_file_setPosition()
666 availableSize -= (int)(newPos - sbuf.st_size); in DRM_file_setPosition()
/frameworks/base/core/java/android/os/
DBundle.java1620 int newPos = parcel.dataPosition(); in writeToParcel() local
1624 int length = newPos - oldPos; in writeToParcel()
1626 parcel.setDataPosition(newPos); in writeToParcel()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java712 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged()
714 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged()
718 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged()
738 if (ii.position != newPos) { in dataSetChanged()
741 newCurrItem = newPos; in dataSetChanged()
744 ii.position = newPos; in dataSetChanged()