Home
last modified time | relevance | path

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

1234

/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/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()
DSlidingTab.java397 public void measure() { in measure() method in SlidingTab.Slider
398 tab.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED), in measure()
400 text.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED), in measure()
488 mLeftSlider.measure(); in onMeasure()
489 mRightSlider.measure(); in onMeasure()
DAbsActionBarView.java223 child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in measureChildView()
/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/v4/java/android/support/v4/view/
DPagerTitleStrip.java295 mPrevText.measure(childWidthSpec, childHeightSpec); in updateText()
296 mCurrText.measure(childWidthSpec, childHeightSpec); in updateText()
297 mNextText.measure(childWidthSpec, childHeightSpec); in updateText()
441 mPrevText.measure(childWidthSpec, childHeightSpec); in onMeasure()
442 mCurrText.measure(childWidthSpec, childHeightSpec); in onMeasure()
443 mNextText.measure(childWidthSpec, childHeightSpec); in onMeasure()
/frameworks/base/libs/hwui/font/
DFont.h115 void measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len,
137 SkPathMeasure& measure, SkPoint* position, SkVector* tangent);
DFont.cpp231 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) { in drawCachedGlyph() argument
238 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); in drawCachedGlyph()
308 SkPathMeasure measure(*path, false); in render() local
309 float pathLength = SkScalarToFloat(measure.getLength()); in render()
333 drawCachedGlyph(cachedGlyph, penX, hOffset, vOffset, measure, &position, &tangent); in render()
342 void Font::measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, in measure() function in android::uirenderer::Font
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp71 bool measure = elapsed != NULL; // whether to measure total elapsed time spent waiting in obtainBuffer() local
89 measure = true; in obtainBuffer()
186 if (!measure || requested->tv_sec < total.tv_sec || in obtainBuffer()
210 if (measure && !beforeIsValid) { in obtainBuffer()
217 if (measure) { in obtainBuffer()
261 if (measure) { in obtainBuffer()
/frameworks/base/tools/preload/
DMemoryUsage.java213 MemoryUsage measured = measure(); in run()
221 private MemoryUsage measure() { in measure() method in MemoryUsage.MeasureWithTimeout
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java275 mContent.measure(MeasureSpec.makeMeasureSpec(widthSpecSize, MeasureSpec.EXACTLY), in onMeasure()
279 mContent.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in onMeasure()
644 content.measure(MeasureSpec.makeMeasureSpec(mRight - mLeft, MeasureSpec.EXACTLY), in prepareContent()
651 content.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in prepareContent()
DTableRow.java223 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in measureChildBeforeLayout()
312 child.measure(spec, spec); in getColumnsWidths()
DLinearLayout.java842 child.measure(childWidthMeasureSpec, in measureVertical()
847 child.measure(childWidthMeasureSpec, in measureVertical()
897 child.measure( in measureVertical()
1034 child.measure(freeSpec, freeSpec); in measureHorizontal()
1226 child.measure( in measureHorizontal()
1231 child.measure(MeasureSpec.makeMeasureSpec( in measureHorizontal()
1313 child.measure( in measureHorizontal()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DActionMenuView.java349 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in onMeasureExactFormat()
392 child.measure(childWidthSpec, childHeightSpec); in measureChildForCells()
409 child.measure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY), in measureChildForCells()
DActionMenuPresenter.java104 mOverflowButton.measure(spec, spec); in initForMenu()
428 v.measure(querySpec, querySpec); in flagActionItems()
461 v.measure(querySpec, querySpec); in flagActionItems()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java91 content.measure(w_spec, h_spec); in render()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuPresenter.java107 mOverflowButton.measure(spec, spec); in initForMenu()
446 v.measure(querySpec, querySpec); in flagActionItems()
479 v.measure(querySpec, querySpec); in flagActionItems()
DActionMenuView.java326 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in onMeasureExactFormat()
369 child.measure(childWidthSpec, childHeightSpec); in measureChildForCells()
382 child.measure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY), in measureChildForCells()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DQuickSettingsContainerView.java85 v.measure(newWidthSpec, newHeightSpec); in onMeasure()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DAbsActionBarView.java183 child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in measureChildView()
DActionBarContextView.java334 mTitleLayout.measure(titleWidthSpec, childSpecHeight); in onMeasure()
356 mCustomView.measure(View.MeasureSpec.makeMeasureSpec(customWidth, customWidthMode), in onMeasure()
DSpinnerICS.java417 child.measure(childWidthSpec, childHeightSpec); in setUpChild()
509 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureContentWidth()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DSizeAdaptiveLayoutTest.java157 mSizeAdaptiveLayout.measure(500, measureSpec); in testOpenWrapContent()
487 mSizeAdaptiveLayout.measure(500, measureSpec); in measureAndLayout()
/frameworks/support/v4/java/android/support/v4/widget/
DSlidingPaneLayout.java529 child.measure(childWidthSpec, childHeightSpec); in onMeasure()
587 child.measure(childWidthSpec, childHeightSpec); in onMeasure()
615 child.measure(childWidthSpec, childHeightSpec); in onMeasure()
623 child.measure(childWidthSpec, childHeightSpec); in onMeasure()

1234