Home
last modified time | relevance | path

Searched refs:measure (Results 1 – 25 of 155) sorted by relevance

1234567

/frameworks/base/docs/html/guide/topics/ui/
Dhow-android-draws.jd13 <p>Drawing begins with the root node of the layout. It is requested to measure and
37 Drawing the layout is a two pass process: a measure pass and a layout pass.
38 The measuring pass is implemented in {@link android.view.View#measure(int, int)}
41 during the recursion. At the end of the measure pass, every
46 using the sizes computed in the measure pass.
51 {@link android.view.View#measure(int, int) measure()} method
58 that at the end of the measure pass, all parents accept all of their
60 {@link android.view.View#measure(int, int) measure()} more than once on
61 its children. For example, the parent may measure each child once with
63 {@link android.view.View#measure(int, int) measure()} on them again with
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewBasicTest.java44 measure(); in testMeasureWithoutLayoutManager()
47 private void measure() { in measure() method in RecyclerViewBasicTest
48 mRecyclerView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in measure()
74 measure(); in testLayoutWithoutLayoutManager()
80 measure(); in testFocusWithoutLayoutManager()
87 measure(); in testScrollWithoutLayoutManager()
94 measure(); in testSmoothScrollWithoutLayoutManager()
101 measure(); in testScrollToPositionWithoutLayoutManager()
108 measure(); in testSmoothScrollToPositionWithoutLayoutManager()
115 measure(); in testInterceptTouchWithoutLayoutManager()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java67 boolean measure = false; in onMeasure()
78 measure = true; in onMeasure()
81 measure = true; in onMeasure()
87 if (measure) { in onMeasure()
DFloatingToolbar.java703 Size overflowPanelSize = mOverflowPanel.measure(); in openOverflow()
761 Size mainPanelSize = mMainPanel.measure(); in closeOverflow()
844 Size mainPanelSize = mMainPanel.measure(); in setMainPanelAsContent()
860 Size overflowPanelSize = mOverflowPanel.measure(); in setOverflowPanelAsContent()
925 Size mainPanelSize = mMainPanel.measure(); in updatePopupSize()
930 Size overflowPanelSize = mOverflowPanel.measure(); in updatePopupSize()
973 mContentContainer.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in setContentAreaAsTouchableSurface()
1080 menuItemButton.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in layoutMenuItems()
1131 public Size measure() throws IllegalStateException { in measure() method in FloatingToolbar.FloatingToolbarMainPanel
1133 mContentView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in measure()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java51 listView.measure(measureSpec, measureSpec); in testRequestLayout()
58 listView.measure(measureSpec, measureSpec); in testRequestLayout()
83 listView.measure(measureSpec, measureSpec); in testNoSelectableItems()
89 listView.measure(measureSpec, measureSpec); in testNoSelectableItems()
DTextViewPerformanceTest.java50 mLabelView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp()
61 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DContentFrameLayout.java127 boolean measure = false; in onMeasure()
145 measure = true; in onMeasure()
150 if (measure) { in onMeasure()
/frameworks/base/core/jni/android/graphics/
DMinikinUtils.cpp92 SkPathMeasure measure(path, false); in hOffsetForTextAlign() local
93 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java298 mPrevText.measure(childWidthSpec, childHeightSpec); in updateText()
299 mCurrText.measure(childWidthSpec, childHeightSpec); in updateText()
300 mNextText.measure(childWidthSpec, childHeightSpec); in updateText()
445 mPrevText.measure(childWidthSpec, childHeightSpec); in onMeasure()
446 mCurrText.measure(childWidthSpec, childHeightSpec); in onMeasure()
447 mNextText.measure(childWidthSpec, childHeightSpec); in onMeasure()
/frameworks/base/libs/hwui/font/
DFont.cpp243 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) { in drawCachedGlyph() argument
250 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); in drawCachedGlyph()
321 SkPathMeasure measure(*path, false); in render() local
322 float pathLength = SkScalarToFloat(measure.getLength()); in render()
346 drawCachedGlyph(cachedGlyph, penX, hOffset, vOffset, measure, &position, &tangent); in render()
355 void Font::measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, in measure() function in android::uirenderer::Font
DFont.h120 void measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
142 SkPathMeasure& measure, SkPoint* position, SkVector* tangent);
/frameworks/base/docs/html/distribute/analyze/
Dindex.jd14 questions. The easiest way to measure what users do in your app is to
27 "{@docRoot}distribute/analyze/measure.html#retail">e-commerce tracking</a>
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSignalTileView.java75 mIn.measure(ws, hs); in onMeasure()
76 mOut.measure(ws, hs); in onMeasure()
DQSTileView.java245 mIcon.measure(MeasureSpec.makeMeasureSpec(w, MeasureSpec.AT_MOST), iconSpec); in onMeasure()
246 labelView().measure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(h, MeasureSpec.AT_MOST)); in onMeasure()
248 mDivider.measure(widthMeasureSpec, exactly(mDivider.getLayoutParams().height)); in onMeasure()
252 mTopBackgroundView.measure(widthMeasureSpec, heightSpec); in onMeasure()
DPseudoGridView.java85 child.measure(childWidthSpec, childHeightSpec); in onMeasure()
92 child.measure(childWidthSpec, maxHeightSpec); in onMeasure()
DQSPanel.java455 mBrightnessView.measure(exactly(width), MeasureSpec.UNSPECIFIED); in onMeasure()
457 mFooter.getView().measure(exactly(width), MeasureSpec.UNSPECIFIED); in onMeasure()
486 record.tileView.measure(exactly(cw), exactly(ch)); in onMeasure()
493 mDetail.measure(exactly(width), MeasureSpec.UNSPECIFIED); in onMeasure()
495 mDetail.measure(exactly(width), exactly(h)); in onMeasure()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewSharedElementHelper.java70 imageView.measure( in updateImageViewAfterScaleTypeChange()
127 imageView.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in onSharedElementStart()
132 rightPanel.measure(MeasureSpec.makeMeasureSpec(mRightPanelWidth, MeasureSpec.EXACTLY), in onSharedElementStart()
DBrowseRowsFrameLayout.java51 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in measureChildWithMargins()
DShadowOverlayContainer.java269 mWrappedView.measure(childWidthMeasureSpec, childHeightMeasureSpec); in onMeasure()
293 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationChildrenContainer.java125 mCollapseButton.measure(widthMeasureSpec, collapseButtonHeightSpec); in onMeasure()
126 mCollapseDivider.measure(widthMeasureSpec, dividerHeightSpec); in onMeasure()
135 child.measure(widthMeasureSpec, newHeightSpec); in onMeasure()
140 divider.measure(widthMeasureSpec, dividerHeightSpec); in onMeasure()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DIllustrationTest.java50 illustration.measure(View.MeasureSpec.makeMeasureSpec(300, View.MeasureSpec.EXACTLY), in testAspectRatio()
/frameworks/base/tools/preload/
DMemoryUsage.java213 MemoryUsage measured = measure(); in run()
221 private MemoryUsage measure() { in measure() method in MemoryUsage.MeasureWithTimeout
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DExpandableView.java87 child.measure( in onMeasure()
99 child.measure(getChildMeasureSpec( in onMeasure()
DNotificationContentView.java115 mContractedChild.measure(widthMeasureSpec, in onMeasure()
129 mExpandedChild.measure(widthMeasureSpec, spec); in onMeasure()
139 mHeadsUpChild.measure(widthMeasureSpec, in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskView.java164 mContent.measure(MeasureSpec.makeMeasureSpec(widthWithoutPadding, MeasureSpec.EXACTLY), in onMeasure()
168 mHeaderView.measure(MeasureSpec.makeMeasureSpec(widthWithoutPadding, MeasureSpec.EXACTLY), in onMeasure()
170 mActionButtonView.measure( in onMeasure()
174 mThumbnailView.measure( in onMeasure()

1234567