Home
last modified time | relevance | path

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

12345678910

/packages/apps/Contacts/src/com/android/contacts/editor/
DKindSectionView.java129 if (mIsLegacyField && mEditors.getChildCount() == 1) { in onDeleteRequested()
134 if (mShowOneEmptyEditor && mEditors.getChildCount() == 1) { in onDeleteRequested()
155 if (delView.isBirthdayType() && mEditors.getChildCount() > 1) { in onDeleteRequested()
157 .getChildAt(mEditors.getChildCount() - 1); in onDeleteRequested()
191 int childCount = mEditors.getChildCount(); in setEnabled()
235 for (int i = 0; i < mEditors.getChildCount(); i++) { in setGroupMetaData()
258 for (int i = 0; i < mEditors.getChildCount(); i++) { in isEmptyName()
272 || mEditors.getChildCount() == 0) { in getNameEditorView()
282 for (int i = 0; i < mEditors.getChildCount(); i++) { in getPhoneticEditorView()
474 for (int i = 0; i < mEditors.getChildCount(); i++) { in updateEmptyEditors()
[all …]
/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/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListTableViewHolderBinder.java100 entry.mWidgets.size(), table.getChildCount())); in bindViewHolder()
143 for (int i = widgetItemsTable.size(); i < table.getChildCount(); i++) { in recycleTableBeforeBinding()
150 if (i < table.getChildCount()) { in recycleTableBeforeBinding()
162 if (tableRow.getChildCount() > widgetItems.size()) { in recycleTableBeforeBinding()
163 for (int j = widgetItems.size(); j < tableRow.getChildCount(); j++) { in recycleTableBeforeBinding()
167 for (int j = tableRow.getChildCount(); j < widgetItems.size(); j++) { in recycleTableBeforeBinding()
185 int numOfRows = holder.tableContainer.getChildCount(); in unbindViewHolder()
189 int numOfCols = tableRow.getChildCount(); in unbindViewHolder()
/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/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/view/
DQCListViewTest.java51 assertThat(mView.getChildCount()).isEqualTo(0); in onChanged_null_noViews()
68 assertThat(mView.getChildCount()).isEqualTo(2); in onChanged_createsRows()
80 assertThat(mView.getChildCount()).isEqualTo(2); in onChanged_decreasedRowCount_removesExtraRows()
85 assertThat(mView.getChildCount()).isEqualTo(1); in onChanged_decreasedRowCount_removesExtraRows()
95 assertThat(mView.getChildCount()).isEqualTo(2); in setActionListener_setsOnChildView()
DQCViewTest.java54 assertThat(mView.getChildCount()).isEqualTo(0); in onChanged_null_noViews()
68 assertThat(mView.getChildCount()).isEqualTo(1); in onChanged_list_createsListView()
77 assertThat(mView.getChildCount()).isEqualTo(1); in onChanged_tile_createsTileView()
86 assertThat(mView.getChildCount()).isEqualTo(1); in onChanged_alreadyHasView_callsOnChanged()
99 assertThat(mView.getChildCount()).isEqualTo(1); in setActionListener_setsOnChildView()
DQCRowViewTest.java120 assertThat(startContainer.getChildCount()).isEqualTo(2); in setRow_createsStartItems()
136 assertThat(endContainer.getChildCount()).isEqualTo(2); in setRow_createsEndItems()
180 assertThat(endContainer.getChildCount()).isEqualTo(1); in onSwitchClick_firesAction()
195 assertThat(endContainer.getChildCount()).isEqualTo(1); in onToggleClick_firesAction()
226 assertThat(endContainer.getChildCount()).isEqualTo(1); in setRow_switchViewThumbTintList()
/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/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/Car/Notification/src/com/android/car/notification/headsup/
DHeadsUpContainerView.java103 if (!isInTouchMode() && mFocusHUNWhenShown && index == getChildCount() in removeViewAt()
104 && getChildCount() > 0 && !topmostChildHasFocus()) { in removeViewAt()
111 int childCount = getChildCount(); in topmostChildHasFocus()
125 int childCount = getChildCount(); in focusTopmostChild()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarView.java345 while (nextViewIndex < getChildCount()) { in updateHotseatItems()
409 while (nextViewIndex < getChildCount()) { in updateHotseatItems()
414 addView(mAllAppsButton, mIsRtl ? getChildCount() : 0); in updateHotseatItems()
417 if (mTaskbarDivider != null && getChildCount() > 1) { in updateHotseatItems()
418 addView(mTaskbarDivider, mIsRtl ? (getChildCount() - 1) : 1); in updateHotseatItems()
422 addView(mQsb, mIsRtl ? getChildCount() : 0); in updateHotseatItems()
455 int count = getChildCount(); in onLayout()
578 int countExcludingQsb = getChildCount(); in getIconLayoutWidth()
598 final int count = getChildCount(); in getIconViews()
678 for (int i = 0; i < getChildCount(); i++) { in mapOverItems()
[all …]
/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/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/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/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleBarView.java318 int childCount = getChildCount(); in setIconSizeAndPadding()
461 indexOfChild(mDraggedBubbleView), getChildCount(), newLocationOnLeft); in getDraggedBubbleReleaseTranslation()
584 final int childCount = getChildCount(); in setAlphaDuringBubbleDrag()
708 if (getChildCount() + 1 > MAX_BUBBLES) { in addView()
711 removeViewInLayout(getChildAt(getChildCount() - 2)); in addView()
765 int bubbleCount = getChildCount(); in updateBubblesLayoutProperties()
1041 index, getChildCount(), bubbleBarLocation.isOnLeft(isLayoutRtl())); in arrowPositionForSelectedWhenExpanded()
1051 bubblePosition = index == 0 && getChildCount() > MAX_VISIBLE_BUBBLES_COLLAPSED ? 1 : 0; in arrowPositionForSelectedWhenCollapsed()
1103 final int childCount = getChildCount(); in expandedWidth()
1121 final int childCount = getChildCount(); in collapsedWidth()
[all …]
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCListView.java66 for (int i = 0; i < getChildCount(); i++) { in setActionListener()
96 if (getChildCount() > rowCount) { in onChanged()
98 removeViews(rowCount, getChildCount() - rowCount); in onChanged()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java202 mPageIndicator.setMarkersCount(getChildCount() / getPanelCount()); in initParentViews()
228 return getChildCount(); in getPageCount()
443 if (getChildCount() == 0) { in setCurrentPage()
677 if (getChildCount() == 0) { in onMeasure()
717 return mPageScrolls != null && mPageScrolls.length == getChildCount(); in isPageScrollsInitialized()
741 final int childCount = getChildCount(); in onLayout()
807 final int childCount = getChildCount(); in getPageScrolls()
876 int childCount = getChildCount(); in computeMaxScroll()
896 mPageIndicator.setMarkersCount(getChildCount() / getPanelCount()); in dispatchPageCountChanged()
920 if (index < 0 || index > getChildCount() - 1) return 0; in getChildOffset()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java165 for (int i = getChildCount() - 1; i >= 0; i--) { in unbindItems()
168 for (int j = container.getChildCount() - 1; j >= 0; j--) { in unbindItems()
280 for (int i = getChildCount() - 1; i >= 0; i --) { in setFixedSize()
286 for (int i = getChildCount() - 1; i >= 0; i --) { in removeItem()
308 for (int i = 0; i < getChildCount(); i++) { in arrangeChildren()
398 return getViewInCurrentPage(c -> c.getChildCount() - 1); in getLastItem()
402 if (getChildCount() < 1 || getCurrentCellLayout() == null) { in getViewInCurrentPage()
419 for (int k = 0 ; k < getChildCount(); k++) { in iterateOverItems()
514 for (int i = parent.getChildCount() - 1; i >= 0; i--) { in verifyVisibleHighResIcons()
/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/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/
DWidgetCellPreview.java50 for (int i = 0; i < getChildCount(); i++) { in hasPreviewLayout()
64 for (int i = 0; i < getChildCount(); i++) { in getPreviewLayout()
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()
/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.java210 if (getChildCount() != mNumPredictedAppsPerRow) { in applyPredictionApps()
211 while (getChildCount() > mNumPredictedAppsPerRow) { in applyPredictionApps()
215 while (getChildCount() < mNumPredictedAppsPerRow) { in applyPredictionApps()
238 for (int i = 0; i < getChildCount(); i++) { in applyPredictionApps()

12345678910