/frameworks/base/docs/html/guide/topics/ui/ |
D | how-android-draws.jd | 13 <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/ |
D | WeightedLinearLayout.java | 67 boolean measure = false; in onMeasure() 78 measure = true; in onMeasure() 81 measure = true; in onMeasure() 87 if (measure) { in onMeasure()
|
D | SlidingTab.java | 397 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()
|
D | AbsActionBarView.java | 223 child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in measureChildView()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 51 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()
|
D | TextViewPerformanceTest.java | 50 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/ |
D | PagerTitleStrip.java | 295 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/ |
D | Font.h | 115 void measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, 137 SkPathMeasure& measure, SkPoint* position, SkVector* tangent);
|
D | Font.cpp | 231 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/ |
D | AudioTrackShared.cpp | 71 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/ |
D | MemoryUsage.java | 213 MemoryUsage measured = measure(); in run() 221 private MemoryUsage measure() { in measure() method in MemoryUsage.MeasureWithTimeout
|
/frameworks/base/core/java/android/widget/ |
D | SlidingDrawer.java | 275 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()
|
D | TableRow.java | 223 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in measureChildBeforeLayout() 312 child.measure(spec, spec); in getColumnsWidths()
|
D | LinearLayout.java | 842 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/ |
D | ActionMenuView.java | 349 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()
|
D | ActionMenuPresenter.java | 104 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/ |
D | RenderDrawable.java | 91 content.measure(w_spec, h_spec); in render()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuPresenter.java | 107 mOverflowButton.measure(spec, spec); in initForMenu() 446 v.measure(querySpec, querySpec); in flagActionItems() 479 v.measure(querySpec, querySpec); in flagActionItems()
|
D | ActionMenuView.java | 326 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/ |
D | QuickSettingsContainerView.java | 85 v.measure(newWidthSpec, newHeightSpec); in onMeasure()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | AbsActionBarView.java | 183 child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in measureChildView()
|
D | ActionBarContextView.java | 334 mTitleLayout.measure(titleWidthSpec, childSpecHeight); in onMeasure() 356 mCustomView.measure(View.MeasureSpec.makeMeasureSpec(customWidth, customWidthMode), in onMeasure()
|
D | SpinnerICS.java | 417 child.measure(childWidthSpec, childHeightSpec); in setUpChild() 509 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureContentWidth()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | SizeAdaptiveLayoutTest.java | 157 mSizeAdaptiveLayout.measure(500, measureSpec); in testOpenWrapContent() 487 mSizeAdaptiveLayout.measure(500, measureSpec); in measureAndLayout()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | SlidingPaneLayout.java | 529 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()
|