Searched refs:mFirstPosition (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | Gallery.java | 441 View extremeChild = getChildAt(extremeItemPosition - mFirstPosition); 507 int firstPosition = mFirstPosition; in detachOffScreenChildren() 548 mFirstPosition += count; in detachOffScreenChildren() 626 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() 688 mFirstPosition = mSelectedPosition; in layout() 733 curPosition = mFirstPosition + numChildren; in fillToGalleryLeftRtl() 737 mFirstPosition = curPosition = mItemCount - 1; in fillToGalleryLeftRtl() 762 curPosition = mFirstPosition - 1; in fillToGalleryLeftLtr() 776 mFirstPosition = curPosition; in fillToGalleryLeftLtr() 803 curPosition = mFirstPosition -1; in fillToGalleryRightRtl() [all …]
|
D | GridView.java | 280 int position = mFirstPosition + count; in fillGap() 293 int position = mFirstPosition; in fillGap() 337 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); in fillDown() 433 mFirstPosition = pos; in fillUp() 439 mFirstPosition = Math.max(0, pos + 1); in fillUp() 442 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); in fillUp() 455 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop() 456 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); in fillFromTop() 457 if (mFirstPosition < 0) { in fillFromTop() 458 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 | AbsListView.java | 1202 final int firstPos = mFirstPosition; in updateOnScreenCheckedViews() 1515 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener() 1518 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener() 1860 if (haveChildren && mFirstPosition > 0) { in onSaveInstanceState() 1872 int firstPos = mFirstPosition; in onSaveInstanceState() 2038 mFirstPosition = 0; in resetList() 2084 final int firstPosition = mFirstPosition; in computeVerticalScrollOffset() 2133 if (mFirstPosition > 0) { in getTopFadingEdgeStrength() 2150 if (mFirstPosition + count - 1 < mItemCount - 1) { in getBottomFadingEdgeStrength() 2179 mForceTranscriptScroll = mFirstPosition + childCount >= mLastHandledItemCount && in onMeasure() [all …]
|
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() 318 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView() 368 return mFirstPosition + i; in pointToPosition()
|
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 …]
|