Searched defs:measure (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/core/java/android/text/
H A DMeasuredText.java251 float measure(int start, int limit) { method in class:MeasuredText
H A DTextLine.java40 * <p>Call set to prepare the instance for use, then either draw, measure,
270 return measure(mLen, false, fmi);
278 * @param trailing true to measure the trailing edge of the character
279 * before offset, false to measure the leading edge of the character
286 float measure(int offset, boolean trailing, FontMetricsInt fmi) { method in class:TextLine
407 * @param offset the offset to measure to, between start and limit inclusive
869 * @param measureLimit the offset to measure to, between start and limit inclusive
933 // state, otherwise measure state would suffice.
/frameworks/base/tools/preload/
H A DMemoryUsage.java213 MemoryUsage measured = measure();
221 private MemoryUsage measure() { method in class:MemoryUsage.MeasureWithTimeout
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewBasicTest.java40 measure();
43 private void measure() { method in class:RecyclerViewBasicTest
44 mRecyclerView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240);
65 measure();
71 measure();
78 measure();
85 measure();
92 measure();
99 measure();
/frameworks/av/media/libmedia/
H A DAudioTrackShared.cpp77 bool measure = elapsed != NULL; // whether to measure total elapsed time spent waiting local
95 measure = true;
199 if (!measure || requested->tv_sec < total.tv_sec ||
222 if (measure && !beforeIsValid) {
230 if (measure) {
274 if (measure) {
/frameworks/base/libs/hwui/font/
H A DFont.cpp244 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) {
251 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
321 SkPathMeasure measure(*path, false);
322 float pathLength = SkScalarToFloat(measure.getLength());
346 drawCachedGlyph(cachedGlyph, penX, hOffset, vOffset, measure, &position, &tangent);
355 void Font::measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, function in class:android::uirenderer::Font
358 ALOGE("No return rectangle provided to measure text");
243 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java403 public void measure() { method in class:SlidingTab.Slider
404 tab.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
406 text.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
411 * Get the measured tab width. Must be called after {@link Slider#measure()}.
419 * Get the measured tab width. Must be called after {@link Slider#measure()}.
494 mLeftSlider.measure();
495 mRightSlider.measure();
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGridLayoutManager.java871 view.measure(childWidthSpec, childHeightSpec);
878 private boolean processRowSizeSecondary(boolean measure) { argument
900 if (measure && view.isLayoutRequested()) {
911 if (measure && rowSize < 0 && itemCount > 0) {
972 // or move child add/measure logic to the measure phase.
1113 child.measure(widthSpec, heightSpec);
1577 // haven't done measure yet
/frameworks/base/core/java/android/view/
H A DView.java362 * To measure its dimensions, a view takes into account its padding. The padding
383 * Layout is a two pass process: a measure pass and a layout pass. The measuring
384 * pass is implemented in {@link #measure(int, int)} and is a top-down traversal
386 * during the recursion. At the end of the measure pass, every view has stored
390 * using the sizes computed in the measure pass.
394 * When a view's measure() method returns, its {@link #getMeasuredWidth()} and
398 * that at the end of the measure pass, all parents accept all of their
399 * children's measurements. A parent view may call measure() more than once on
400 * its children. For example, the parent may measure each child once with
402 * measure() o
17515 public final void measure(int widthMeasureSpec, int heightMeasureSpec) { method in class:View
[all...]

Completed in 391 milliseconds