Home
last modified time | relevance | path

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

12

/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java198 int childCount = layoutManager.getChildCount(); in findSnapView() local
199 if (childCount == 0) { in findSnapView()
206 if (childCount == 1) { in findSnapView()
229 View lastVisibleChild = layoutManager.getChildAt(childCount - 1); in findSnapView()
244 for (int i = 0; i < childCount; i++) { in findSnapView()
302 int childCount = layoutManager.getChildCount(); in findTopView() local
303 if (childCount == 0) { in findTopView()
310 for (int i = 0; i < childCount; i++) { in findTopView()
469 int childCount = layoutManager.getChildCount(); in isAtEnd() local
474 View lastVisibleChild = layoutManager.getChildAt(childCount - 1); in isAtEnd()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/grid/
DGridOffsetItemDecoration.java108 int childCount = state.getItemCount(); in getItemOffsets() local
109 int lastRowChildCount = getLastRowChildCount(childCount); in getItemOffsets()
112 parent.getChildAdapterPosition(view) >= childCount - lastRowChildCount; in getItemOffsets()
142 int childCount = state.getItemCount(); in onDraw() local
143 int lastRowChildCount = getLastRowChildCount(childCount); in onDraw()
148 for (int i = childCount - lastRowChildCount; i < childCount; i++) { in onDraw()
DGridDividerItemDecoration.java89 int childCount = parent.getChildCount(); in drawHorizontalDividers() local
90 int rowCount = childCount / mNumColumns; in drawHorizontalDividers()
91 int lastRowChildCount = childCount % mNumColumns; in drawHorizontalDividers()
92 int lastColumn = Math.min(childCount, mNumColumns); in drawHorizontalDividers()
130 double childCount = parent.getChildCount(); in drawVerticalDividers() local
131 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.java563 final int childCount = getChildCount(); in onLayout() local
565 if (mPageScrolls == null || childCount != mPageScrolls.length) { in onLayout()
566 mPageScrolls = new int[childCount]; in onLayout()
570 if (childCount == 0) { in onLayout()
604 if (mFirstLayout && mCurrentPage >= 0 && mCurrentPage < childCount) { in onLayout()
621 final int childCount = getChildCount(); in getPageScrolls() local
623 final int startIndex = mIsRtl ? childCount - 1 : 0; in getPageScrolls()
624 final int endIndex = mIsRtl ? -1 : childCount; in getPageScrolls()
676 int childCount = getChildCount(); in computeMaxScrollX() local
677 if (childCount > 0) { in computeMaxScrollX()
[all …]
DCellLayout.java1842 int childCount = mShortcutsAndWidgets.getChildCount(); in copyCurrentStateToSolution() local
1843 for (int i = 0; i < childCount; i++) { in copyCurrentStateToSolution()
1859 int childCount = mShortcutsAndWidgets.getChildCount(); in copySolutionToTempState() local
1860 for (int i = 0; i < childCount; i++) { in copySolutionToTempState()
1882 int childCount = mShortcutsAndWidgets.getChildCount(); in animateItemsToSolution() local
1883 for (int i = 0; i < childCount; i++) { in animateItemsToSolution()
1902 int childCount = mShortcutsAndWidgets.getChildCount(); in beginOrAdjustReorderPreviewAnimations() local
1903 for (int i = 0; i < childCount; i++) { in beginOrAdjustReorderPreviewAnimations()
2101 int childCount = mShortcutsAndWidgets.getChildCount(); in commitTempPlacement() local
2102 for (int i = 0; i < childCount; i++) { in commitTempPlacement()
[all …]
/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/Launcher3/src/com/android/launcher3/widget/
DWidgetsListAdapter.java128 int childCount = row.getChildCount(); in onBindViewHolder() local
130 if (expectedChildCount > childCount) { in onBindViewHolder()
131 for (int i = childCount ; i < expectedChildCount; i++) { in onBindViewHolder()
146 } else if (expectedChildCount < childCount) { in onBindViewHolder()
147 for (int i = expectedChildCount ; i < childCount; i++) { in onBindViewHolder()
/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()
DAttachmentPreview.java93 final int childCount = getChildCount(); in onFinishInflate()
94 if (childCount > 0) { in onFinishInflate()
95 final View lastChild = getChildAt(childCount - 1); in onFinishInflate()
DViewPagerTabStrip.java71 int childCount = getChildCount(); in onDraw() local
74 if (childCount > 0) { in onDraw()
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/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/linear/
DLinearDividerItemDecoration.java101 int childCount = parent.getChildCount(); in drawHorizontalDividers() local
102 for (int i = 0; i < childCount - 1; i++) { in drawHorizontalDividers()
130 int childCount = parent.getChildCount(); in drawVerticalDividers() local
131 for (int i = 0; i < childCount - 1; i++) { in drawVerticalDividers()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/
DVerticalListDividerDecoration.java96 final int childCount = parent.getChildCount(); in drawVertical() local
98 childCount - 1 : childCount; in drawVertical()
/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/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java498 int childCount = getChildCount(); in updateChildIndices() local
499 for (int i = 0; i < childCount; i++) { in updateChildIndices()
504 mChildCountOnLastUpdate = childCount; in updateChildIndices()
508 protected int getChildDrawingOrder(int childCount, int i) { in getChildDrawingOrder() argument
509 if (mChildCountOnLastUpdate != childCount) { in getChildDrawingOrder()
521 } else if (i == childCount - 1) { in getChildDrawingOrder()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DGroupNotificationViewHolder.java166 private void updateExpansionIcon(int childCount, boolean isExpanded) { in updateExpansionIcon() argument
168 if (childCount == 0) { in updateExpansionIcon()
181 int unshownCount = childCount - 2; in updateExpansionIcon()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DCondition.java40 static Condition minChildCount(final UiObject2 obj, final int childCount) { in minChildCount() argument
41 return () -> obj.getChildCount() >= childCount; in minChildCount()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/views/
DIconRecentsView.java280 int childCount = mTaskRecyclerView.getChildCount(); in setEnabled() local
281 for (int i = 0; i < childCount; i++) { in setEnabled()
428 int childCount = mTaskRecyclerView.getChildCount(); in getBottomTaskView() local
429 for (int i = 0; i < childCount; i++) { in getBottomTaskView()
852 int childCount = mTaskRecyclerView.getChildCount(); in playRemoteTaskListFadeIn() local
853 for (int i = 0; i < childCount; i++) { in playRemoteTaskListFadeIn()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DOverviewScrim.java57 final int childCount = root.getChildCount(); in updateCurrentScrimmedView() local
58 while (mCurrentScrimmedView.getVisibility() != VISIBLE && currentIndex < childCount) { in updateCurrentScrimmedView()
/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/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/
DMasterClearFragment.java122 int childCount = layoutManager.getChildCount(); in isAtEnd() local
123 View lastVisibleChild = layoutManager.getChildAt(childCount - 1); in isAtEnd()

12