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

/frameworks/base/core/java/android/text/
H A DMeasuredText.java287 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,
251 return measure(mLen, false, fmi);
259 * @param trailing true to measure the trailing edge of the character
260 * before offset, false to measure the leading edge of the character
267 float measure(int offset, boolean trailing, FontMetricsInt fmi) { method in class:TextLine
377 * @param offset the offset to measure to, between start and limit inclusive
838 * @param measureLimit the offset to measure to, between start and limit inclusive
902 // 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/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
H A DStorageMeasurement.java71 /** Media types to measure on external storage. */
151 // Start the thread that will measure the disk usage.
167 measure();
170 public void measure() { method in class:StorageMeasurement
/frameworks/av/media/libmedia/
H A DAudioTrackShared.cpp118 bool measure = elapsed != NULL; // whether to measure total elapsed time spent waiting local
136 measure = true;
252 if (!measure || requested->tv_sec < total.tv_sec ||
275 if (measure && !beforeIsValid) {
284 if (measure) {
328 if (measure) {
/frameworks/base/libs/hwui/font/
H A DFont.cpp238 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) {
245 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
314 SkPathMeasure measure(*path, false);
315 float pathLength = SkScalarToFloat(measure.getLength());
339 drawCachedGlyph(cachedGlyph, penX, hOffset, vOffset, measure, &position, &tangent);
348 void Font::measure(const SkPaint* paint, const glyph_t* glyphs, function in class:android::uirenderer::Font
351 ALOGE("No return rectangle provided to measure text");
237 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderSessionImpl.java209 private void measure(@NonNull SessionParams params) { method in class:RenderSessionImpl
210 // only do the screen measure when needed.
240 // Then measure only the content with UNSPECIFIED to see the size difference
243 // first measure the full layout, with EXACTLY to get the size of the
251 // now measure the content only using UNSPECIFIED (where applicable, based on
334 measure(params);
367 * @param canvas an optional canvas to render the views to. If null, only the measure and
372 // measure again with the size we need
417 measure(params);
519 * Executes {@link View#measure(in
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewBasicTest.java62 measure();
65 private void measure() { method in class:RecyclerViewBasicTest
66 mRecyclerView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240);
94 measure();
101 measure();
109 measure();
117 measure();
125 measure();
133 measure();
141 measure();
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java403 public void measure(int widthMeasureSpec, int heightMeasureSpec) { method in class:SlidingTab.Slider
406 tab.measure(View.MeasureSpec.makeSafeMeasureSpec(width, View.MeasureSpec.UNSPECIFIED),
408 text.measure(View.MeasureSpec.makeSafeMeasureSpec(width, View.MeasureSpec.UNSPECIFIED),
413 * Get the measured tab width. Must be called after {@link Slider#measure()}.
421 * Get the measured tab width. Must be called after {@link Slider#measure()}.
496 mLeftSlider.measure(widthMeasureSpec, heightMeasureSpec);
497 mRightSlider.measure(widthMeasureSpec, heightMeasureSpec);
H A DFloatingToolbar.java446 mOverflowButtonSize = measure(mOverflowButton);
1139 menuItemButton.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);
1160 mMainPanelSize = measure(mMainPanel);
1427 private static Size measure(View view) { method in class:FloatingToolbar.FloatingToolbarPopup
1429 view.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);
1569 calculator.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
/frameworks/base/core/java/com/android/internal/app/
H A DChooserActivity.java1263 v.measure(spec, spec);
1272 // Pre-measure so we can scale later.
1273 holder.measure();
1352 public void measure() { method in class:ChooserActivity.RowViewHolder
1354 row.measure(spec, spec);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGridLayoutManager.java1189 view.measure(childWidthSpec, childHeightSpec);
1197 private boolean processRowSizeSecondary(boolean measure) { argument
1221 if (measure) {
1234 if (!mBaseGridView.hasFixedSize() && measure && rowSize < 0 && itemCount > 0) {
1290 // or move child add/measure logic to the measure phase.
1447 child.measure(widthSpec, heightSpec);
1826 // haven't done measure yet
/frameworks/base/core/java/android/view/
H A DView.java377 * To measure its dimensions, a view takes into account its padding. The padding
398 * Layout is a two pass process: a measure pass and a layout pass. The measuring
399 * pass is implemented in {@link #measure(int, int)} and is a top-down traversal
401 * during the recursion. At the end of the measure pass, every view has stored
405 * using the sizes computed in the measure pass.
409 * When a view's measure() method returns, its {@link #getMeasuredWidth()} and
413 * that at the end of the measure pass, all parents accept all of their
414 * children's measurements. A parent view may call measure() more than once on
415 * its children. For example, the parent may measure each child once with
417 * measure() o
19693 public final void measure(int widthMeasureSpec, int heightMeasureSpec) { method in class:View
[all...]

Completed in 1520 milliseconds