Home
last modified time | relevance | path

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

123456789

/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableListView.java138 if (getChildCount() > 0) {
169 if (WearableListView.this.getChildCount() > 0) {
194 if (newState == RecyclerView.SCROLL_STATE_IDLE && getChildCount() > 0) { in WearableListView()
237 if (getChildCount() == 0) { in getBaseline()
257 if (getChildCount() == 0) { in isAtTop()
300 if (mGreedyTouchMode && getChildCount() > 0) { in onInterceptTouchEvent()
305 mStartFirstTop = getChildCount() > 0 ? getChildAt(0).getTop() : 0; in onInterceptTouchEvent()
344 if (getChildCount() > 0) { in onTouchEvent()
487 if (index < getChildCount() - 1 && rawY >= mTapRegions[1]) { in checkForTap()
557 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/widget/picker/
DWidgetsListTableViewHolderBinder.java104 entry.mWidgets.size(), table.getChildCount())); in bindViewHolder()
147 for (int i = widgetItemsTable.size(); i < table.getChildCount(); i++) { in recycleTableBeforeBinding()
154 if (i < table.getChildCount()) { in recycleTableBeforeBinding()
161 if (tableRow.getChildCount() > widgetItems.size()) { in recycleTableBeforeBinding()
162 for (int j = widgetItems.size(); j < tableRow.getChildCount(); j++) { in recycleTableBeforeBinding()
166 for (int j = tableRow.getChildCount(); j < widgetItems.size(); j++) { in recycleTableBeforeBinding()
181 int numOfRows = holder.mTableContainer.getChildCount(); in unbindViewHolder()
184 int numOfCols = tableRow.getChildCount(); in unbindViewHolder()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchChipViewManagerTest.java82 assertThat(mChipGroup.getChildCount()).isEqualTo(totalChipLength); in testInitChipSets_hasCorrectChipCount()
90 assertThat(mChipGroup.getChildCount()).isEqualTo(totalChipLength); in testUpdateChips_hasCorrectChipCount()
99 assertThat(mChipGroup.getChildCount()).isEqualTo(totalChipLength); in testUpdateChips_documentsFilterOnlyAvailableAboveR()
101 assertThat(mChipGroup.getChildCount()).isEqualTo(totalChipLength - 1); in testUpdateChips_documentsFilterOnlyAvailableAboveR()
109 assertThat(mChipGroup.getChildCount()).isEqualTo(TEST_OTHER_TYPES.length); in testUpdateChips_withSingleMimeType_hasCorrectChipCount()
156 assertThat(mChipGroup.getChildCount()).isEqualTo(mirror.getChildCount()); in testBindMirrorGroup_sameValue()
/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/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/WallpaperPicker2/src/com/android/wallpaper/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/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java106 int childCount = layoutManager.getChildCount(); in findSnapView()
280 if (layoutManager == null || layoutManager.getChildCount() == 0) { in calculateScrollDistance()
284 int lastChildPosition = isAtEnd(layoutManager) ? 0 : layoutManager.getChildCount() - 1; in calculateScrollDistance()
348 int childCount = layoutManager.getChildCount(); in computeDistancePerChild()
386 if (layoutManager == null || layoutManager.getChildCount() == 0) { in isAtStart()
405 if (layoutManager == null || layoutManager.getChildCount() == 0) { in isAtEnd()
409 int childCount = layoutManager.getChildCount(); in isAtEnd()
DDefaultScrollBar.java332 for (int i = 0; i < layoutManager.getChildCount(); i++) { in cacheChildrenHeight()
380 if (layoutManager == null || layoutManager.getChildCount() == 0 || currentOffset == 0) { in pageUp()
406 for (int i = 0; i < getLayoutManager().getChildCount(); i++) { in getFirstMostVisibleChild()
431 if (layoutManager == null || layoutManager.getChildCount() == 0) { in pageDown()
457 for (int i = layoutManager.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/
DPagedView.java200 mPageIndicator.setMarkersCount(getChildCount()); in initParentViews()
226 return getChildCount(); in getPageCount()
367 if (getChildCount() == 0) { in setCurrentPage()
568 if (getChildCount() == 0) { in onMeasure()
610 final int childCount = getChildCount(); in onLayout()
668 final int childCount = getChildCount(); in getPageScrolls()
729 int childCount = getChildCount(); in computeMaxScroll()
749 mPageIndicator.setMarkersCount(getChildCount()); in dispatchPageCountChanged()
770 if (index < 0 || index > getChildCount() - 1) return 0; in getChildOffset()
920 if (getChildCount() <= 0) return false; in onInterceptTouchEvent()
[all …]
DShortcutAndWidgetContainer.java76 final int count = getChildCount(); in getChildAt()
91 int count = getChildCount(); in onMeasure()
166 int count = getChildCount(); in onLayout()
240 final int count = getChildCount(); in cancelLongPress()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchChipViewManager.java155 mChipGroup.setVisibility(show && mChipGroup.getChildCount() > 1 ? View.VISIBLE : View.GONE); in setChipsRowVisible()
171 final int count = mChipGroup.getChildCount(); in clearCheckedChips()
293 final int size = mChipGroup.getChildCount(); in bindMirrorGroup()
315 for (int i = 0, size = mChipGroup.getChildCount(); i < size; i++) { in onMirrorChipClick()
340 final int count = mChipGroup.getChildCount(); in setCheckedChip()
406 final int count = mChipGroup.getChildCount(); in reorderCheckedChips()
473 if (mChipGroup.getChildCount() > 0) { in reorderCheckedChips()
487 if (chipGroup.getChildCount() != chipCount) { in isChipOrderMatched()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java162 for (int i = getChildCount() - 1; i >= 0; i--) { in unbindItems()
165 for (int j = container.getChildCount() - 1; j >= 0; j--) { in unbindItems()
262 for (int i = getChildCount() - 1; i >= 0; i --) { in setFixedSize()
268 for (int i = getChildCount() - 1; i >= 0; i --) { in removeItem()
290 for (int i = 0; i < getChildCount(); i++) { in arrangeChildren()
380 return getViewInCurrentPage(c -> c.getChildCount() - 1); in getLastItem()
384 if (getChildCount() < 1) { in getViewInCurrentPage()
401 for (int k = 0 ; k < getChildCount(); k++) { in iterateOverItems()
491 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/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/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()
DProgramRow.java101 Log.d(TAG, "channelId=" + mChannel.getId() + ", childCount=" + getChildCount()); in onScrolled()
280 for (int i = 0; i < getChildCount(); ++i) { in onRequestFocusInDescendants()
291 for (int i = 0; i < getChildCount(); ++i) { in getCurrentProgramView()
338 for (int i = 0; i < getChildCount(); ++i) { in updateChildVisibleArea()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java138 return (getChildCount() - mSecondLevelStartIndex); in getChildCountByLevel()
183 mSecondLevelStartIndex = getChildCount(); in initialize()
190 mChildRadians = new double[getChildCount()]; in initialize()
223 endIndex = getChildCount() - 1; in getTouchIndicatorIndex()
328 for (int i = 0 ; i < getChildCount(); ++i) mChildRadians[i] += increment; in rotateWheel()
350 for (int i = 0; i < getChildCount(); ++i) { in onLayout()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/
DPredictionRowView.java188 if (getChildCount() != mNumPredictedAppsPerRow) { in applyPredictionApps()
189 while (getChildCount() > mNumPredictedAppsPerRow) { in applyPredictionApps()
193 while (getChildCount() < mNumPredictedAppsPerRow) { in applyPredictionApps()
212 for (int i = 0; i < getChildCount(); i++) { in applyPredictionApps()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationGroup.java82 public int getChildCount() { in getChildCount() method in NotificationGroup
90 return mGroupSummaryNotification != null && getChildCount() > 1; in isGroup()
214 if (isGroup() || getChildCount() == 0) { in getSingleNotification()
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DTreeTraverser.java103 for (int i = 0; i < node.getChildCount(); i++) { in depthFirstSearch()
126 for (int i = node.getChildCount() - 1; i >= 0; i--) { in reverseDepthFirstSearch()
157 for (int i = 0; i < node.getChildCount(); i++) { in depthFirstSelect()
/packages/apps/Gallery/src/com/android/camera/
DEvenlySpacedLayout.java50 int count = getChildCount(); in onMeasure()
70 int count = getChildCount(); in layoutHorizontal()
97 int count = getChildCount(); in layoutVertical()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DRoundedCornerEnforcement.java60 if (vg.getChildCount() > 0) { in findBackground()
128 for (int i = 0; i < vg.getChildCount(); i++) { in accumulateViewsWithId()
154 for (int i = 0; i < vg.getChildCount(); i++) { in findUndefinedBackground()

123456789