Lines Matching refs:childCount

1233         final int childCount = getChildCount();
1234 if (childCount == 0) return true;
1235 if (childCount != mItemCount) return false;
1238 getChildAt(childCount - 1).getBottom() <= getHeight() - mListPadding.bottom;
2034 final int childCount = getChildCount();
2035 if (firstPosition >= 0 && childCount > 0) {
2049 } else if (firstPosition + childCount == count) {
2052 index = firstPosition + childCount / 2;
2054 return (int) (firstPosition + childCount * (index / (float) count));
2124 final int childCount = getChildCount();
2126 final View lastChild = getChildAt(childCount - 1);
2128 mForceTranscriptScroll = mFirstPosition + childCount >= mLastHandledItemCount &&
2143 final int childCount = getChildCount();
2145 for (int i = 0; i < childCount; i++) {
3880 final int childCount = getChildCount();
3881 if (childCount > 0) {
3883 final int lastChildBottom = getChildAt(childCount - 1).getBottom();
3887 mFirstPosition + childCount < mItemCount &&
3905 (mFirstPosition + childCount == mItemCount &&
4093 final int childCount = getChildCount();
4094 if (!consumed && childCount > 0 && canScrollList((int) velocityY) &&
4719 final int childCount = getChildCount();
4720 final int lastPos = firstPos + childCount;
4724 if (distance == 0 || mItemCount == 0 || childCount == 0 ||
4727 getChildAt(childCount - 1).getBottom() == bottomLimit && distance > 0)) {
4825 final int childCount = getChildCount();
4826 if (childCount == 0) {
4833 final int lastBottom = getChildAt(childCount - 1).getBottom();
4834 final int lastPosition = firstPosition + childCount;
4851 final int childCount = getChildCount();
4852 if (childCount == 0) {
4857 final int lastBottom = getChildAt(childCount - 1).getBottom();
4897 if (firstPosition + childCount == mItemCount) {
4905 final boolean cannotScrollUp = (firstPosition + childCount == mItemCount &&
4930 for (int i = 0; i < childCount; i++) {
4950 for (int i = childCount - 1; i >= 0; i--) {
5089 final int childCount = getChildCount();
5090 if (childCount == 0) {
5095 return motionRow != INVALID_POSITION ? motionRow : mFirstPosition + childCount - 1;
5133 final int childCount = getChildCount();
5135 if (childCount <= 0) {
5147 if (toPosition >= firstPosition && toPosition < firstPosition + childCount) {
5165 for (int i = 0; i < childCount; i++) {
5189 selectedPos = firstPosition + childCount - 1;
5191 for (int i = childCount - 1; i >= 0; i--) {
5196 if (i == childCount - 1) {
5198 if (firstPosition + childCount < itemCount || bottom > childrenBottom) {
5311 final int childCount = getChildCount();
5313 final View lastChild = getChildAt(childCount - 1);
5315 if (mFirstPosition + childCount >= lastHandledItemCount &&
6005 int childCount = getChildCount();
6009 for (int i = 0; i < childCount; i++) {
6426 * @param childCount The minimum number of views mActiveViews should hold
6430 void fillActiveViews(int childCount, int firstActivePosition) {
6431 if (mActiveViews.length < childCount) {
6432 mActiveViews = new View[childCount];
6438 for (int i = 0; i < childCount; i++) {
6822 final int childCount = getChildCount();
6824 if (index >= 0 && index < childCount) {
6927 final int childCount = getChildCount();
6928 if (childCount == 0) {
6934 final int lastPos = firstPos + childCount - 1;
6980 final int childCount = getChildCount();
6981 if (childCount == 0) {
6987 final int lastPos = firstPos + childCount - 1;
7060 final int childCount = getChildCount();
7061 if (childCount == 0) {
7075 final int lastPos = firstPos + childCount - 1;
7090 final float screenTravelCount = (float) viewTravelCount / childCount;
7104 final int childCount = getChildCount();
7105 final int lastPos = firstPos + childCount - 1;
7196 final int childCount = getChildCount();
7198 if (firstPos == mBoundPos || childCount <= nextViewIndex
7199 || firstPos + childCount >= mItemCount) {
7295 final int childCount = getChildCount();
7297 final int lastPos = firstPos + childCount - 1;
7307 final float screenTravelCount = (float) viewTravelCount / childCount;