Home
last modified time | relevance | path

Searched refs:childCount (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java106 int childCount = layoutManager.getChildCount(); in findSnapView() local
107 if (childCount == 0) { in findSnapView()
114 if (childCount == 1) { in findSnapView()
138 layoutManager.getChildAt(childCount - 1)); in findSnapView()
153 for (int i = 0; i < childCount; i++) { in findSnapView()
348 int childCount = layoutManager.getChildCount(); in computeDistancePerChild() local
349 if (childCount == 0) { in computeDistancePerChild()
353 for (int i = 0; i < childCount; i++) { in computeDistancePerChild()
409 int childCount = layoutManager.getChildCount(); in isAtEnd() local
415 layoutManager.getChildAt(childCount - 1)); in isAtEnd()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/decorations/grid/
DGridOffsetItemDecoration.java111 int childCount = state.getItemCount(); in getItemOffsets() local
112 int lastRowChildCount = getLastRowChildCount(childCount); in getItemOffsets()
115 parent.getChildAdapterPosition(view) >= childCount - lastRowChildCount; in getItemOffsets()
146 int childCount = state.getItemCount(); in onDraw() local
147 int lastRowChildCount = getLastRowChildCount(childCount); in onDraw()
152 for (int i = childCount - lastRowChildCount; i < childCount; i++) { in onDraw()
DGridDividerItemDecoration.java96 int childCount = layoutManager.getChildCount(); in drawHorizontalDividers() local
97 int rowCount = childCount / mNumColumns; in drawHorizontalDividers()
98 int lastRowChildCount = childCount % mNumColumns; in drawHorizontalDividers()
99 int lastColumn = Math.min(childCount, mNumColumns); in drawHorizontalDividers()
140 double childCount = layoutManager.getChildCount(); in drawVerticalDividers() local
141 double rowCount = Math.ceil(childCount / mNumColumns); in drawVerticalDividers()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java260 int childCount = getChildCount(); in focusFind() local
265 if (itemCount > 2 * (childCount + 1) || itemCount <= childCount) { in focusFind()
346 int childCount = getChildCount(); in getFirstVisibleChildIndex() local
347 for (int i = 0; i < childCount; i++) { in getFirstVisibleChildIndex()
359 int childCount = getChildCount(); in updateInputLogo() local
360 if (childCount == 0) { in updateInputLogo()
371 for (int i = firstVisibleChildIndex + 1; i < childCount; i++) { in updateInputLogo()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperPickerActivity.java256 int childCount = mWallpapersView.getChildCount(); in onLongClick() local
257 for (int i = 0; i < childCount; i++) { in onLongClick()
324 final int childCount = masterWallpaperList.getChildCount(); in updateTileIndices() local
331 for (int i = 0; i < childCount; i++) { in updateTileIndices()
497 int childCount = mWallpapersView.getChildCount(); in onPrepareActionMode() local
499 for (int i = 0; i < childCount; i++) { in onPrepareActionMode()
523 int childCount = mWallpapersView.getChildCount(); in onActionItemClicked() local
526 for (int i = 0; i < childCount; i++) { in onActionItemClicked()
559 int childCount = mWallpapersView.getChildCount(); in onDestroyActionMode() local
560 for (int i = 0; i < childCount; i++) { in onDestroyActionMode()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java610 final int childCount = getChildCount(); in onLayout() local
612 if (mPageScrolls == null || childCount != mPageScrolls.length) { in onLayout()
613 mPageScrolls = new int[childCount]; in onLayout()
617 if (childCount == 0) { in onLayout()
652 if (mFirstLayout && mCurrentPage >= 0 && mCurrentPage < childCount) { in onLayout()
668 final int childCount = getChildCount(); in getPageScrolls() local
670 final int startIndex = mIsRtl ? childCount - 1 : 0; in getPageScrolls()
671 final int endIndex = mIsRtl ? -1 : childCount; in getPageScrolls()
702 for (int i = 0; i < childCount; i++) { in getPageScrolls()
729 int childCount = getChildCount(); in computeMaxScroll() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DLineWrapLayout.java54 int childCount = getChildCount(); in onMeasure() local
62 for (int i = 0; i < childCount; i++) { in onMeasure()
104 int childCount = getChildCount(); in onLayout() local
110 for (int i = 0; i < childCount; i++) { in onLayout()
139 for (int i = 0; i < childCount; i++) { in onLayout()
DViewPagerTabStrip.java71 int childCount = getChildCount(); in onDraw() local
74 if (childCount > 0) { in onDraw()
DAttachmentPreview.java93 final int childCount = getChildCount(); in onFinishInflate()
94 if (childCount > 0) { in onFinishInflate()
95 final View lastChild = getChildAt(childCount - 1); in onFinishInflate()
DCustomHeaderPagerListViewHolder.java116 final int childCount = mListView.getChildCount(); in toggleVisibilityForPendingTransition() local
117 for (int i = 0; i < childCount; i++) { in toggleVisibilityForPendingTransition()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java109 int childCount = layoutManager.getChildCount(); in findTopView() local
110 if (childCount == 0) { in findTopView()
117 for (int i = 0; i < childCount; i++) { in findTopView()
258 int childCount = layoutManager.getChildCount(); in isAtEnd() local
263 View lastVisibleChild = layoutManager.getChildAt(childCount - 1); in isAtEnd()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java478 final int childCount = getChildCount(); in offsetChildren() local
479 for (int i = 0; i < childCount; i++) { in offsetChildren()
487 final int childCount = getChildCount(); in contentFits() local
488 if (childCount == 0) return true; in contentFits()
489 if (childCount != mItemCount) return false; in contentFits()
492 getChildAt(childCount - 1).getRight() <= getWidth() - getPaddingRight(); in contentFits()
824 final int childCount = getChildCount(); in addScrap() local
825 if (childCount > mMaxScrap) { in addScrap()
826 mMaxScrap = childCount; in addScrap()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/decorations/linear/
DLinearDividerItemDecoration.java108 int childCount = layoutManager.getChildCount(); in drawHorizontalDividers() local
109 for (int i = 0; i < childCount - 1; i++) { in drawHorizontalDividers()
138 int childCount = layoutManager.getChildCount(); in drawVerticalDividers() local
139 for (int i = 0; i < childCount - 1; i++) { in drawVerticalDividers()
/packages/apps/Car/Notification/src/com/android/car/notification/headsup/
DHeadsUpContainerView.java100 int childCount = getChildCount(); in focusTopmostChild() local
101 if (childCount <= 0) { in focusTopmostChild()
105 View topmostChild = getChildAt(childCount - 1); in focusTopmostChild()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java477 int childCount = getChildCount(); in updateChildIndices() local
478 for (int i = 0; i < childCount; i++) { in updateChildIndices()
483 mChildCountOnLastUpdate = childCount; in updateChildIndices()
487 protected int getChildDrawingOrder(int childCount, int i) { in getChildDrawingOrder() argument
488 if (mChildCountOnLastUpdate != childCount) { in getChildDrawingOrder()
500 } else if (i == childCount - 1) { in getChildDrawingOrder()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/secondarydisplay/
DSDWorkModeTest.java121 int childCount = rv.getChildCount(); in verifyRecyclerViewCount() local
122 assertTrue(childCount > 0); in verifyRecyclerViewCount()
123 assertTrue(childCount < 100); in verifyRecyclerViewCount()
/packages/apps/Camera2/src/com/android/camera/widget/
DModeOptions.java284 int childCount = mActiveBar.getChildCount(); in setupAnimators() local
286 for (int i = 0; i < childCount; i++) { in setupAnimators()
291 button = mActiveBar.getChildAt(childCount-1-i); in setupAnimators()
295 ValueAnimator.ofFloat(deltaX*(childCount-i), 0.0f); in setupAnimators()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DItem.java90 int childCount = parent.getChildCount(); in setEnabledInternal() local
91 for (int i = 0; i < childCount; ++i) { in setEnabledInternal()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DGroupNotificationViewHolder.java173 private void updateExpansionIcon(int childCount, boolean isExpanded) { in updateExpansionIcon() argument
175 if (childCount == 0) { in updateExpansionIcon()
196 int unshownCount = childCount - 2; in updateExpansionIcon()
/packages/apps/Settings/src/com/android/settings/widget/
DCheckableRelativeLayout.java73 final int childCount = viewGroup.getChildCount(); in findFirstCheckableView() local
74 for (int i = 0; i < childCount; i++) { in findFirstCheckableView()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabStrip.java68 int childCount = getChildCount(); in onDraw() local
71 if (childCount > 0) { in onDraw()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetFragment.java113 int childCount = layoutManager.getChildCount(); in isAtEnd() local
114 View lastVisibleChild = layoutManager.getChildAt(childCount - 1); in isAtEnd()
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DNodeBuilder.java145 int childCount = 0; in build()
148 childCount++; in build()
151 return childCount; in build()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DOptionsPopupView.java166 int childCount = getChildCount(); in getChildrenForColorExtraction() local
167 ArrayList<View> children = new ArrayList<>(childCount); in getChildrenForColorExtraction()
168 for (int i = 0; i < childCount; ++i) { in getChildrenForColorExtraction()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsStore.java179 int childCount = parent.getChildCount(); in updateAllIcons() local
181 for (int j = 0; j < childCount; j++) { in updateAllIcons()

12