Home
last modified time | relevance | path

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

12

/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java525 final int childCount = getChildCount(); in onMeasure() local
526 for (int i = 0; i < childCount; i++) { in onMeasure()
567 if (childCount > 0) { in onMeasure()
586 if (childCount > 0) { in onMeasure()
587 final int index = isLayoutRtl() ? 0 : childCount - 1; in onMeasure()
614 int childCount = getChildCount(); in setLayoutScale() local
615 float childrenX[] = new float[childCount]; in setLayoutScale()
616 float childrenY[] = new float[childCount]; in setLayoutScale()
617 for (int i = 0; i < childCount; i++) { in setLayoutScale()
628 for (int i = 0; i < childCount; i++) { in setLayoutScale()
[all …]
DWorkspace.java1433 final int childCount = getChildCount();
1434 for (int i = 0; i < childCount; i++) {
1546 final int childCount = getChildCount();
1548 mOldTranslationXs = new float[childCount];
1549 mOldTranslationYs = new float[childCount];
1550 mOldScaleXs = new float[childCount];
1551 mOldScaleYs = new float[childCount];
1552 mOldBackgroundAlphas = new float[childCount];
1553 mOldAlphas = new float[childCount];
1554 mNewTranslationXs = new float[childCount];
[all …]
DCellLayout.java1078 final int childCount = getChildCount(); in setShortcutAndWidgetAlpha() local
1079 for (int i = 0; i < childCount; i++) { in setShortcutAndWidgetAlpha()
2196 int childCount = mShortcutsAndWidgets.getChildCount(); in copyCurrentStateToSolution() local
2197 for (int i = 0; i < childCount; i++) { in copyCurrentStateToSolution()
2217 int childCount = mShortcutsAndWidgets.getChildCount(); in copySolutionToTempState() local
2218 for (int i = 0; i < childCount; i++) { in copySolutionToTempState()
2245 int childCount = mShortcutsAndWidgets.getChildCount(); in animateItemsToSolution() local
2246 for (int i = 0; i < childCount; i++) { in animateItemsToSolution()
2264 int childCount = mShortcutsAndWidgets.getChildCount(); in beginOrAdjustHintAnimations() local
2265 for (int i = 0; i < childCount; i++) { in beginOrAdjustHintAnimations()
[all …]
DAppsCustomizePagedView.java304 int childCount = childrenLayout.getChildCount(); in getMiddleComponentIndexOnCurrentPage() local
305 if (childCount > 0) { in getMiddleComponentIndexOnCurrentPage()
306 i = (currentPage * numItemsPerPage) + (childCount / 2); in getMiddleComponentIndexOnCurrentPage()
312 int childCount = layout.getChildCount(); in getMiddleComponentIndexOnCurrentPage() local
313 if (childCount > 0) { in getMiddleComponentIndexOnCurrentPage()
315 ((currentPage - mNumAppsPages) * numItemsPerPage) + (childCount / 2); in getMiddleComponentIndexOnCurrentPage()
994 int childCount = layout.getChildCount(); in setVisibilityOnChildren() local
995 for (int i = 0; i < childCount; ++i) { in setVisibilityOnChildren()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspaceStateTransitionAnimation.java241 final int childCount = mWorkspace.getChildCount(); in reinitializeAnimationArrays() local
242 if (mLastChildCount == childCount) return; in reinitializeAnimationArrays()
244 mOldBackgroundAlphas = new float[childCount]; in reinitializeAnimationArrays()
245 mOldAlphas = new float[childCount]; in reinitializeAnimationArrays()
246 mNewBackgroundAlphas = new float[childCount]; in reinitializeAnimationArrays()
247 mNewAlphas = new float[childCount]; in reinitializeAnimationArrays()
287 final int childCount = mWorkspace.getChildCount(); in animateWorkspace() local
311 for (int i = 0; i < childCount; i++) { in animateWorkspace()
359 for (int index = 0; index < childCount; index++) { in animateWorkspace()
DPagedView.java788 final int childCount = getChildCount(); in onMeasure() local
789 for (int i = 0; i < childCount; i++) { in onMeasure()
846 final int childCount = getChildCount(); in onLayout() local
854 final int startIndex = mIsRtl ? childCount - 1 : 0; in onLayout()
855 final int endIndex = mIsRtl ? -1 : childCount; in onLayout()
864 if (mPageScrolls == null || childCount != mChildCountOnLastLayout) { in onLayout()
865 mPageScrolls = new int[childCount]; in onLayout()
936 if (mFirstLayout && mCurrentPage >= 0 && mCurrentPage < childCount) { in onLayout()
941 if (mScroller.isFinished() && mChildCountOnLastLayout != childCount) { in onLayout()
949 mChildCountOnLastLayout = childCount; in onLayout()
[all …]
DDragLayer.java842 int childCount = getChildCount(); in updateChildIndices() local
843 for (int i = 0; i < childCount; i++) { in updateChildIndices()
848 mChildCountOnLastUpdate = childCount; in updateChildIndices()
852 protected int getChildDrawingOrder(int childCount, int i) { in getChildDrawingOrder() argument
853 if (mChildCountOnLastUpdate != childCount) { in getChildDrawingOrder()
865 } else if (i == childCount - 1) { in getChildDrawingOrder()
DCellLayout.java1979 int childCount = mShortcutsAndWidgets.getChildCount(); in copyCurrentStateToSolution() local
1980 for (int i = 0; i < childCount; i++) { in copyCurrentStateToSolution()
2000 int childCount = mShortcutsAndWidgets.getChildCount(); in copySolutionToTempState() local
2001 for (int i = 0; i < childCount; i++) { in copySolutionToTempState()
2028 int childCount = mShortcutsAndWidgets.getChildCount(); in animateItemsToSolution() local
2029 for (int i = 0; i < childCount; i++) { in animateItemsToSolution()
2049 int childCount = mShortcutsAndWidgets.getChildCount(); in beginOrAdjustReorderPreviewAnimations() local
2050 for (int i = 0; i < childCount; i++) { in beginOrAdjustReorderPreviewAnimations()
2205 int childCount = mShortcutsAndWidgets.getChildCount(); in commitTempPlacement() local
2206 for (int i = 0; i < childCount; i++) { in commitTempPlacement()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DStaggeredGridView.java1289 final int childCount = getChildCount(); in recycleOffscreenViews() local
1290 if (childCount > 0) { in recycleOffscreenViews()
1294 for (int i = 0; i < childCount; i++){ in recycleOffscreenViews()
1668 final int childCount = getChildCount();
1669 for (int i = 0; i < childCount; i++) {
1867 final int childCount = getChildCount();
1868 if (childCount == 0) {
1876 for (int i = 0; i < childCount; i++) {
1906 final int childCount = getChildCount();
1907 if (childCount == 0) {
[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/WallpaperPicker/src/com/android/launcher3/
DWallpaperPickerActivity.java455 int childCount = mWallpapersView.getChildCount(); in init()
456 for (int i = 0; i < childCount; i++) { in init()
582 int childCount = mWallpapersView.getChildCount(); in init()
584 for (int i = 0; i < childCount; i++) { in init()
613 int childCount = mWallpapersView.getChildCount(); in init()
616 for (int i = 0; i < childCount; i++) { in init()
647 int childCount = mWallpapersView.getChildCount(); in init()
648 for (int i = 0; i < childCount; i++) { in init()
760 final int childCount = masterWallpaperList.getChildCount(); in updateTileIndices() local
767 for (int i = 0; i < childCount; i++) { in updateTileIndices()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaListView.java132 int childCount = getChildCount(); in updatePastEvents() local
140 for (int i = 0; i < childCount; ++i) { in updatePastEvents()
241 int childCount = getChildCount(); in getFirstVisibleView() local
242 for (int i = 0; i < childCount; ++i) { in getFirstVisibleView()
339 int childCount = getChildCount(); in isAgendaItemVisible() local
342 for (int i = 0; i < childCount; i++) { in isAgendaItemVisible()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageAttachmentTile.java137 int childCount = tileGrid.getChildCount(); in showAndDownloadAttachments() local
140 childCount, new ViewIndexDistanceComparator(mPhotoIndex)); in showAndDownloadAttachments()
141 for (int i = 0; i < childCount; i++) { in showAndDownloadAttachments()
147 int maxAdditionalPriority = childCount; in showAndDownloadAttachments()
148 for (int i = 0; i < childCount; i++) { in showAndDownloadAttachments()
/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.java91 final int childCount = getChildCount(); in onFinishInflate()
92 if (childCount > 0) { in onFinishInflate()
93 final View lastChild = getChildAt(childCount - 1); in onFinishInflate()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DGroupingListAdapter.java59 int childCount; field in GroupingListAdapter.PositionMetadata
329 metadata.childCount = 1; in obtainPositionMetadata()
341 metadata.childCount = size; in obtainPositionMetadata()
369 metadata.childCount = 1; in obtainPositionMetadata()
387 return mPositionMetadata.childCount; in getGroupSize()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DMiniDrawerView.java180 final int childCount = getChildCount(); in onMeasure() local
181 for (int i = 0; i < childCount; i++) { in onMeasure()
196 final int childCount = getChildCount(); in onLayout() local
197 for (int i = 0; i < childCount; i++) { in onLayout()
DAttachmentTileGrid.java128 final int childCount = getChildCount(); in onMeasureForTiles() local
129 if (childCount == 0) { in onMeasureForTiles()
161 for (int i = 0; i < childCount; i++) { in onMeasureForTiles()
173 final int numRows = ((childCount - 1) / mColumnCount) + 1; in onMeasureForTiles()
/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/ExactCalculator/src/com/android/calculator2/
DCalculatorPadViewPager.java121 final int childCount = getChildCount(); in onInterceptTouchEvent() local
122 for (int i = childCount - 1; i >= 0; --i) { in onInterceptTouchEvent()
123 final int childIndex = getChildDrawingOrder(childCount, i); in onInterceptTouchEvent()
/packages/experimental/TestBack/src/foo/bar/testback/
DTestBackService.java115 final int childCount = root.getChildCount(); in dumpTree() local
116 for (int i = 0; i < childCount; i++) { in dumpTree()
129 for (int i = 0; i < childCount; i++) { in dumpTree()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp46 const int childCount = PatriciaTrieReadingUtils::getPtNodeArraySizeAndAdvancePosition( in createAndGetAllChildDicNodes() local
48 for (int i = 0; i < childCount; i++) { in createAndGetAllChildDicNodes()
51 nextPos, mBuffer.size(), i, childCount); in createAndGetAllChildDicNodes()
/packages/apps/Browser/src/com/android/browser/view/
DCustomScreenLinearLayout.java44 protected int getChildDrawingOrder(int childCount, int i) { in getChildDrawingOrder() argument
45 return childCount - i - 1; in getChildDrawingOrder()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java591 final int childCount = getChildCount();
592 if (childCount == 0) {
616 for (int i = 0; i < childCount; i++) {
DViewPagerTabStrip.java70 int childCount = getChildCount(); in onDraw() local
73 if (childCount > 0) { in onDraw()

12