Searched refs:mFirstPosition (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | Gallery.java | 442 View extremeChild = getChildAt(extremeItemPosition - mFirstPosition); 508 int firstPosition = mFirstPosition; in detachOffScreenChildren() 549 mFirstPosition += count; in detachOffScreenChildren() 627 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() 689 mFirstPosition = mSelectedPosition; in layout() 734 curPosition = mFirstPosition + numChildren; in fillToGalleryLeftRtl() 738 mFirstPosition = curPosition = mItemCount - 1; in fillToGalleryLeftRtl() 763 curPosition = mFirstPosition - 1; in fillToGalleryLeftLtr() 777 mFirstPosition = curPosition; in fillToGalleryLeftLtr() 804 curPosition = mFirstPosition -1; in fillToGalleryRightRtl() [all …]
|
D | GridView.java | 281 int position = mFirstPosition + count; in fillGap() 294 int position = mFirstPosition; in fillGap() 338 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); in fillDown() 434 mFirstPosition = pos; in fillUp() 440 mFirstPosition = Math.max(0, pos + 1); in fillUp() 443 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); in fillUp() 456 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop() 457 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); in fillFromTop() 458 if (mFirstPosition < 0) { in fillFromTop() 459 mFirstPosition = 0; in fillFromTop() [all …]
|
D | ListView.java | 299 if (mFirstPosition != 0) { in adjustViewsUpOrDown() 313 if (mFirstPosition + childCount < mItemCount) { in adjustViewsUpOrDown() 646 return (mFirstPosition > 0) || (getChildAt(0).getTop() > listTop); in showingTopFadingEdge() 655 final int lastVisiblePosition = mFirstPosition + childCount - 1; in showingBottomFadingEdge() 756 fillDown(mFirstPosition + count, startOffset); in fillGap() 765 fillUp(mFirstPosition - 1, startOffset); in fillGap() 802 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); in fillDown() 836 mFirstPosition = pos + 1; in fillUp() 837 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); in fillUp() 850 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop() [all …]
|
D | AdapterView.java | 74 int mFirstPosition = 0; field in AdapterView 655 return mFirstPosition + i; in getPositionForView() 671 return mFirstPosition; in getFirstVisiblePosition() 681 return mFirstPosition + getChildCount() - 1; in getLastVisiblePosition() 1266 View v = getChildAt(mSelectedPosition - mFirstPosition); in rememberSyncState() 1277 if (mFirstPosition >= 0 && mFirstPosition < adapter.getCount()) { in rememberSyncState() 1278 mSyncRowId = adapter.getItemId(mFirstPosition); in rememberSyncState() 1282 mSyncPosition = mFirstPosition; in rememberSyncState() 1296 encoder.addProperty("scrolling:firstPosition", mFirstPosition); in encodeProperties()
|
D | AbsSpinner.java | 268 final int position = mFirstPosition; in recycleAllViews() 283 boolean shouldAnimate = animate && mFirstPosition <= position && in setSelection() 284 position <= mFirstPosition + getChildCount() - 1; in setSelection() 319 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView() 369 return mFirstPosition + i; in pointToPosition()
|
D | AbsListView.java | 1209 final int firstPos = mFirstPosition; in updateOnScreenCheckedViews() 1522 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener() 1525 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener() 1853 if (haveChildren && mFirstPosition > 0) { in onSaveInstanceState() 1865 int firstPos = mFirstPosition; in onSaveInstanceState() 2031 mFirstPosition = 0; in resetList() 2077 final int firstPosition = mFirstPosition; in computeVerticalScrollOffset() 2126 if (mFirstPosition > 0) { in getTopFadingEdgeStrength() 2143 if (mFirstPosition + count - 1 < mItemCount - 1) { in getBottomFadingEdgeStrength() 2172 mForceTranscriptScroll = mFirstPosition + childCount >= mLastHandledItemCount && in onMeasure() [all …]
|
D | DropDownListView.java | 246 final View motionView = getChildAt(mMotionPosition - mFirstPosition); in clearPressedItem() 268 final View motionView = getChildAt(mMotionPosition - mFirstPosition); in setPressedItem()
|
D | ExpandableListView.java | 398 for (int i = 0, childFlPos = mFirstPosition - headerViewsCount; i < childCount; in dispatchDraw() 531 int flatListPosition = childIndex + mFirstPosition; in drawDivider()
|
D | Spinner.java | 669 mFirstPosition = mSelectedPosition; in layout()
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 115 private int mFirstPosition; field in StaggeredGridView 275 return mFirstPosition; in getFirstPosition() 398 overhang = fillUp(mFirstPosition - 1, allowOverhang); in trackMotionScroll() 401 overhang = fillDown(mFirstPosition + getChildCount(), allowOverhang) + mItemMargin; in trackMotionScroll() 432 if (mFirstPosition != 0 || getChildCount() != mItemCount) { in contentFits() 503 mFirstPosition++; in recycleOffscreenViews() 517 final LayoutRecord rec = mLayoutRecords.get(mFirstPosition + i); in recycleOffscreenViews() 686 fillDown(mFirstPosition + getChildCount(), 0); in populate() 687 fillUp(mFirstPosition - 1, 0); in populate() 761 final int position = mFirstPosition + i; in layoutChildren() [all …]
|