Home
last modified time | relevance | path

Searched refs:getChildCount (Results 1 – 25 of 172) sorted by relevance

1234567

/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java137 if (getChildCount() > 0) {
168 if (WearableListView.this.getChildCount() > 0) {
193 if (newState == RecyclerView.SCROLL_STATE_IDLE && getChildCount() > 0) { in WearableListView()
236 if (getChildCount() == 0) { in getBaseline()
256 if (getChildCount() == 0) { in isAtTop()
299 if (mGreedyTouchMode && getChildCount() > 0) { in onInterceptTouchEvent()
304 mStartFirstTop = getChildCount() > 0 ? getChildAt(0).getTop() : 0; in onInterceptTouchEvent()
343 if (getChildCount() > 0) { in onTouchEvent()
486 if (index < getChildCount() - 1 && rawY >= mTapRegions[1]) { in checkForTap()
556 if (getChildCount() == 0) { in fling()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DKindSectionView.java122 if (mShowOneEmptyEditor && mEditors.getChildCount() == 1) { in onDeleteRequested()
143 if (delView.isBirthdayType() && mEditors.getChildCount() > 1) { in onDeleteRequested()
145 .getChildAt(mEditors.getChildCount() - 1); in onDeleteRequested()
177 int childCount = mEditors.getChildCount(); in setEnabled()
221 for (int i = 0; i < mEditors.getChildCount(); i++) { in setGroupMetaData()
237 for (int i = 0; i < mEditors.getChildCount(); i++) { in isEmptyName()
251 || mEditors.getChildCount() == 0) { in getNameEditorView()
261 for (int i = 0; i < mEditors.getChildCount(); i++) { in getPhoneticEditorView()
445 for (int i = 0; i < mEditors.getChildCount(); i++) { in updateEmptyEditors()
465 final int editorCount = mEditors.getChildCount(); in updateEmptyEditors()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java226 int pageCount = workspace.getChildCount(); in handleHotseatButtonKeyEvent()
246 iconIndex += iconParent.getChildCount(); in handleHotseatButtonKeyEvent()
251 iconIndex += iconParent.getChildCount(); in handleHotseatButtonKeyEvent()
285 newIcon = parent.getChildAt(parent.getChildCount() - 1); in handleHotseatButtonKeyEvent()
301 if (parent == iconParent && newIconIndex >= iconParent.getChildCount()) { in handleHotseatButtonKeyEvent()
302 newIconIndex -= iconParent.getChildCount(); in handleHotseatButtonKeyEvent()
344 final int pageCount = workspace.getChildCount(); in handleIconKeyEvent()
454 if (0 <= newIconIndex && newIconIndex < parent.getChildCount()) { in handleIconKeyEvent()
456 } else if (parent.getChildCount() <= newIconIndex && in handleIconKeyEvent()
457 newIconIndex < parent.getChildCount() + hotseatParent.getChildCount()) { in handleIconKeyEvent()
[all …]
DPagedView.java197 mPageIndicator.setMarkersCount(getChildCount()); in initParentViews()
223 return getChildCount(); in getPageCount()
317 if (getChildCount() == 0) { in setCurrentPage()
521 if (getChildCount() == 0) { in onMeasure()
563 final int childCount = getChildCount(); in onLayout()
621 final int childCount = getChildCount(); in getPageScrolls()
676 int childCount = getChildCount(); in computeMaxScrollX()
696 mPageIndicator.setMarkersCount(getChildCount()); in dispatchPageCountChanged()
717 if (index < 0 || index > getChildCount() - 1) return 0; in getChildOffset()
851 if (getChildCount() <= 0) return false; in onInterceptTouchEvent()
[all …]
DShortcutAndWidgetContainer.java64 final int count = getChildCount(); in getChildAt()
79 int count = getChildCount(); in onMeasure()
143 int count = getChildCount(); in onLayout()
209 final int count = getChildCount(); in cancelLongPress()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java187 fillRight(mFirstPosition + getChildCount(), 0); in populate()
402 overhang = fillRight(mFirstPosition + getChildCount(), allowOverhang); in trackMotionScroll()
441 for (int i = getChildCount() - 1; i >= 0; i--) { in recycleOffscreenViews()
458 while (getChildCount() > 0) { in recycleOffscreenViews()
478 final int childCount = getChildCount(); in offsetChildren()
487 final int childCount = getChildCount(); in contentFits()
496 for (int i = 0; i < getChildCount(); i++) { in recycleAllViews()
510 int nextLeft = getChildCount() == 0 ? 0 : getChildAt(getChildCount() - 1).getRight(); in fillRight()
513 nextLeft = getChildAt(getChildCount() - 1).getRight(); in fillRight()
516 return getChildAt(getChildCount() - 1).getRight() - gridRight; in fillRight()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSlidingTabLayout.java74 final int titleCount = mTitleView.getChildCount(); in onMeasure()
86 if (mTitleView.getChildCount() > 0) { in onLayout()
110 final int titleCount = mTitleView.getChildCount(); in onClick()
145 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in getIndicatorLeft()
163 final int titleCount = mTitleView.getChildCount(); in onPageScrolled()
181 final int titleCount = mTitleView.getChildCount(); in onPageSelected()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSlidingTabLayout.java74 final int titleCount = mTitleView.getChildCount(); in onMeasure()
86 if (mTitleView.getChildCount() > 0) { in onLayout()
110 final int titleCount = mTitleView.getChildCount(); in onClick()
145 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in getIndicatorLeft()
163 final int titleCount = mTitleView.getChildCount(); in onPageScrolled()
181 final int titleCount = mTitleView.getChildCount(); in onPageSelected()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchChipViewManager.java123 mChipGroup.setVisibility(show && mChipGroup.getChildCount() > 1 ? View.VISIBLE : View.GONE); in setChipsRowVisible()
139 final int count = mChipGroup.getChildCount(); in clearCheckedChips()
220 if (mChipGroup.getChildCount() < 2) { in updateChips()
237 final int size = mChipGroup.getChildCount(); in bindMirrorGroup()
259 for (int i = 0, size = mChipGroup.getChildCount(); i < size; i++) { in onMirrorChipClick()
284 final int count = mChipGroup.getChildCount(); in setCheckedChip()
340 final int count = mChipGroup.getChildCount(); in reorderCheckedChips()
416 if (chipGroup.getChildCount() != chipCount) { in isChipOrderMatched()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DPageIndicator.java97 while (numPages < getChildCount()) { in setNumPages()
98 removeViewAt(getChildCount() - 1); in setNumPages()
104 while (numPages > getChildCount()) { in setNumPages()
117 (index + 1), getChildCount())); in setLocation()
156 final int N = getChildCount(); in setIndex()
268 final int N = getChildCount();
286 final int N = getChildCount();
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java198 int childCount = layoutManager.getChildCount(); in findSnapView()
302 int childCount = layoutManager.getChildCount(); in findTopView()
415 if (layoutManager == null || layoutManager.getChildCount() == 0) { in calculateScrollDistance()
419 int lastChildPosition = isAtEnd(layoutManager) ? 0 : layoutManager.getChildCount() - 1; in calculateScrollDistance()
446 if (layoutManager == null || layoutManager.getChildCount() == 0) { in isAtStart()
465 if (layoutManager == null || layoutManager.getChildCount() == 0) { in isAtEnd()
469 int childCount = layoutManager.getChildCount(); in isAtEnd()
545 int childCount = layoutManager.getChildCount(); in computeDistancePerChild()
DDefaultScrollBar.java385 || getRecyclerView().getChildCount() == 0 in pageUp()
397 for (int i = 0; i < getRecyclerView().getChildCount(); i++) { in pageUp()
433 || getRecyclerView().getChildCount() == 0) { in pageDown()
443 View lastChild = getRecyclerView().getChildAt(getRecyclerView().getChildCount() - 1); in pageDown()
458 for (int i = getRecyclerView().getChildCount() - 1; i >= 0; i--) { in pageDown()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java109 int childCount = layoutManager.getChildCount(); in findTopView()
208 if (layoutManager == null || layoutManager.getChildCount() == 0) { in calculateScrollDistance()
212 int lastChildPosition = isAtEnd(layoutManager) ? 0 : layoutManager.getChildCount() - 1; in calculateScrollDistance()
237 if (layoutManager == null || layoutManager.getChildCount() == 0) { in isAtStart()
254 if (layoutManager == null || layoutManager.getChildCount() == 0) { in isAtEnd()
258 int childCount = layoutManager.getChildCount(); in isAtEnd()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java148 for (int i = getChildCount() - 1; i >= 0; i--) { in unbindItems()
151 for (int j = container.getChildCount() - 1; j >= 0; j--) { in unbindItems()
247 for (int i = getChildCount() - 1; i >= 0; i --) { in setFixedSize()
253 for (int i = getChildCount() - 1; i >= 0; i --) { in removeItem()
275 for (int i = 0; i < getChildCount(); i++) { in arrangeChildren()
365 return getViewInCurrentPage(c -> c.getChildCount() - 1); in getLastItem()
369 if (getChildCount() < 1) { in getViewInCurrentPage()
386 for (int k = 0 ; k < getChildCount(); k++) { in iterateOverItems()
477 for (int i = parent.getChildCount() - 1; i >= 0; i--) { in verifyVisibleHighResIcons()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreview.java93 final int childCount = getChildCount(); in onFinishInflate()
127 if (mAttachmentView.getChildCount() > 0) { in hideAttachmentPreview()
129 final View viewToHide = mAttachmentView.getChildCount() > 1 ? in hideAttachmentPreview()
219 if (mAttachmentView.getChildCount() > 0) { in onAttachmentsChanged()
222 Assert.equals(1, mAttachmentView.getChildCount()); in onAttachmentsChanged()
242 if (mAttachmentView.getChildCount() > 0) { in onAttachmentsChanged()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperPickerActivity.java176 if (mSelectedIndex >= 0 && mSelectedIndex < mWallpapersView.getChildCount()) { in init()
256 int childCount = mWallpapersView.getChildCount(); in onLongClick()
324 final int childCount = masterWallpaperList.getChildCount(); in updateTileIndices()
344 subListEnd = subList.getChildCount(); in updateTileIndices()
368 for (; indexOfExistingTile < mWallpapersView.getChildCount(); indexOfExistingTile++) { in addTemporaryWallpaperTile()
497 int childCount = mWallpapersView.getChildCount(); in onPrepareActionMode()
523 int childCount = mWallpapersView.getChildCount(); in onActionItemClicked()
559 int childCount = mWallpapersView.getChildCount(); in onDestroyActionMode()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsListAdapter.java83 for (int i = rv.getChildCount() - 1; i >= 0; i--) { in setApplyBitmapDeferred()
86 for (int j = holder.cellContainer.getChildCount() - 1; j >= 0; j--) { in setApplyBitmapDeferred()
122 pos, infoList.size(), row.getChildCount())); in onBindViewHolder()
128 int childCount = row.getChildCount(); in onBindViewHolder()
187 int total = holder.cellContainer.getChildCount(); in onViewRecycled()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationFooterLayout.java154 final View firstNotification = mIconRow.getChildAt(mIconRow.getChildCount() - 1); in animateFirstNotificationTo()
183 int numIcons = mIconRow.getChildCount() - 1; // All children besides the one leaving. in animateFirstNotificationTo()
201 if (mIconRow.getChildCount() == 0) { in removeViewFromIconRow()
210 if (!isAttachedToWindow() || mIconRow.getChildCount() == 0) { in trimNotifications()
219 for (int i = mIconRow.getChildCount() - 1; i >= 0; i--) { in trimNotifications()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DMediaPickerTest.java106 assertEquals(tabStrip.getChildCount(), 4); in testDefaultTabs()
107 for (int i = 0; i < tabStrip.getChildCount(); i++) { in testDefaultTabs()
123 assertEquals(tabStrip.getChildCount(), 4); in testFilterTabsBeforeAttach()
124 for (int i = 0; i < tabStrip.getChildCount(); i++) { in testFilterTabsBeforeAttach()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchChipViewManagerTest.java73 assertThat(mChipGroup.getChildCount()).isEqualTo(TEST_MIME_TYPES.length); in testInitChipSets_HasCorrectValue()
80 assertThat(mChipGroup.getChildCount()).isEqualTo(TEST_MIME_TYPES.length); in testUpdateChips_HasCorrectValue()
125 assertThat(mChipGroup.getChildCount()).isEqualTo(mirror.getChildCount()); in testBindMirrorGroup_sameValue()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java253 if (nextChildIndex < 0 || nextChildIndex >= getChildCount()) { in focusFind()
260 int childCount = getChildCount(); in focusFind()
294 for (int i = 0; i < getChildCount(); ++i) { in getFocusedChildIndex()
346 int childCount = getChildCount(); in getFirstVisibleChildIndex()
359 int childCount = getChildCount(); in updateInputLogo()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java173 for (int i = 0; i < parent.getChildCount(); i++ ) { in createSparseMatrix()
215 for (int i = 0; i < iconParent.getChildCount(); i++) { in createSparseMatrixWithHotseat()
226 for (int i = hotseatParent.getChildCount() - 1; i >= 0; i--) { in createSparseMatrixWithHotseat()
230 matrix[cx][iconLayout.getCountY()] = iconParent.getChildCount() + i; in createSparseMatrixWithHotseat()
234 matrix[iconLayout.getCountX()][cy] = iconParent.getChildCount() + i; in createSparseMatrixWithHotseat()
262 for (int i = 0; i < iconParent.getChildCount(); i++) { in createSparseMatrixWithPivotColumn()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java138 return (getChildCount() - mSecondLevelStartIndex); in getChildCountByLevel()
176 mSecondLevelStartIndex = getChildCount(); in initialize()
183 mChildRadians = new double[getChildCount()]; in initialize()
216 endIndex = getChildCount() - 1; in getTouchIndicatorIndex()
321 for (int i = 0 ; i < getChildCount(); ++i) mChildRadians[i] += increment; in rotateWheel()
343 for (int i = 0; i < getChildCount(); ++i) { in onLayout()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionRowView.java236 if (getChildCount() != mNumPredictedAppsPerRow) { in applyPredictionApps()
237 while (getChildCount() > mNumPredictedAppsPerRow) { in applyPredictionApps()
240 while (getChildCount() < mNumPredictedAppsPerRow) { in applyPredictionApps()
260 for (int i = 0; i < getChildCount(); i++) { in applyPredictionApps()
333 for (int i = 0; i < getChildCount(); i++) { in setTextAlpha()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationGroup.java83 public int getChildCount() { in getChildCount() method in NotificationGroup
91 return mGroupSummaryNotification != null && getChildCount() > 1; in isGroup()
209 if (isGroup() || getChildCount() == 0) { in getSingleNotification()

1234567