Searched refs:metrics (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/text/
H A DBoringLayout.java43 BoringLayout.Metrics metrics, boolean includepad) {
45 spacingmult, spacingadd, metrics,
53 BoringLayout.Metrics metrics, boolean includepad,
56 spacingmult, spacingadd, metrics,
68 BoringLayout.Metrics metrics,
78 metrics, includepad, true);
90 BoringLayout.Metrics metrics,
115 metrics, includepad, trust);
123 BoringLayout.Metrics metrics, boolean includepad) {
131 metrics, includepa
39 make(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad) argument
49 make(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
65 replaceOrMake(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad) argument
87 replaceOrMake(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
119 BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad) argument
134 BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
169 init(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, boolean trustWidth) argument
247 isBoring(CharSequence text, TextPaint paint, Metrics metrics) argument
257 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir, Metrics metrics) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java42 DisplayMetrics metrics = new DisplayMetrics();
43 getWindowManager().getDefaultDisplay().getMetrics(metrics);
52 final int p = (int)(8 * metrics.density);
58 final float size = 14 * metrics.density;
63 lp.bottomMargin = (int) (-4*metrics.density);
69 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000);
77 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000);
91 DisplayMetrics metrics
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java105 DisplayMetrics metrics = new DisplayMetrics();
106 metrics.densityDpi = metrics.noncompatDensityDpi =
109 metrics.density = metrics.noncompatDensity =
110 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT;
112 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density;
114 metrics
[all...]
/frameworks/base/core/java/android/util/
H A DTypedValue.java221 * @param metrics Current display metrics to use in the conversion --
225 * metrics depending on its unit.
227 public static float complexToDimension(int data, DisplayMetrics metrics) argument
232 metrics);
245 * @param metrics Current display metrics to use in the conversion --
252 DisplayMetrics metrics)
257 metrics);
272 * @param metrics Curren
251 complexToDimensionPixelOffset(int data, DisplayMetrics metrics) argument
278 complexToDimensionPixelSize(int data, DisplayMetrics metrics) argument
293 complexToDimensionNoisy(int data, DisplayMetrics metrics) argument
320 applyDimension(int unit, float value, DisplayMetrics metrics) argument
350 getDimension(DisplayMetrics metrics) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
H A DWindowManagerImpl.java29 public WindowManagerImpl(DisplayMetrics metrics) { argument
30 mMetrics = metrics;
/frameworks/base/core/java/com/android/internal/widget/
H A DWeightedLinearLayout.java58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics();
59 final int screenWidth = metrics.widthPixels;
60 final boolean isPortrait = screenWidth < metrics.heightPixels;
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DTextTest.java85 DisplayMetrics metrics = mRes.getDisplayMetrics();
89 Font.Style.NORMAL, 8.0f / metrics.density));
91 Font.Style.NORMAL, 8.0f / metrics.density));
/frameworks/rs/
H A DrsScriptC_LibGL.cpp233 static void SetMetrics(Font::Rect *metrics, argument
236 *left = metrics->left;
239 *right = metrics->right;
242 *top = metrics->top;
245 *bottom = metrics->bottom;
254 Font::Rect metrics; local
255 rsc->mStateFont.measureText(text, textLen, &metrics);
256 SetMetrics(&metrics, left, right, top, bottom);
263 Font::Rect metrics; local
264 rsc->mStateFont.measureText(text, textLen, &metrics);
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DViewLayersActivity3.java57 final DisplayMetrics metrics = r.getDisplayMetrics();
58 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DListActivity.java119 final DisplayMetrics metrics = r.getDisplayMetrics();
120 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DTransparentListActivity.java113 final DisplayMetrics metrics = r.getDisplayMetrics();
114 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DViewLayersActivity2.java60 final DisplayMetrics metrics = r.getDisplayMetrics();
61 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DViewLayersActivity4.java64 final DisplayMetrics metrics = r.getDisplayMetrics();
65 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DViewLayersActivity5.java80 final DisplayMetrics metrics = r.getDisplayMetrics();
81 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DViewLayersActivity.java110 final DisplayMetrics metrics = r.getDisplayMetrics();
111 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
/frameworks/base/core/jni/android/graphics/
H A DHarfbuzzSkia.cpp143 static void getGlyphMetrics(HB_Font hbFont, HB_Glyph glyph, HB_GlyphMetrics* metrics) argument
153 metrics->x = SkScalarToHBFixed(bounds.fLeft);
154 metrics->y = SkScalarToHBFixed(bounds.fTop);
155 metrics->width = SkScalarToHBFixed(bounds.width());
156 metrics->height = SkScalarToHBFixed(bounds.height());
158 metrics->xOffset = SkScalarToHBFixed(width);
162 metrics->yOffset = 0;
175 // We don't support getting the rest of the metrics and Harfbuzz doesn't seem to need them.
H A DPaint.cpp338 SkPaint::FontMetrics metrics; local
339 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics);
340 return SkScalarToFloat(metrics.fAscent);
345 SkPaint::FontMetrics metrics; local
346 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics);
347 return SkScalarToFloat(metrics.fDescent);
352 SkPaint::FontMetrics metrics; local
353 SkScalar spacing = GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics);
357 env->SetFloatField(metricsObj, gFontMetrics_fieldID.top, SkScalarToFloat(metrics.fTop));
358 env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics
368 SkPaint::FontMetrics metrics; local
[all...]
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java129 DisplayMetrics metrics = context.getResources().getDisplayMetrics();
130 mPosX = metrics.widthPixels/2;
131 mPosY = metrics.heightPixels/2;
/frameworks/ex/photoviewer/src/com/android/ex/photo/fragments/
H A DPhotoViewFragment.java136 final DisplayMetrics metrics = new DisplayMetrics();
140 wm.getDefaultDisplay().getMetrics(metrics);
144 sPhotoSize = (Math.min(metrics.heightPixels, metrics.widthPixels) * 800) / 1000;
151 sPhotoSize = Math.min(metrics.heightPixels, metrics.widthPixels);
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
H A DPhotoViewFragment.java142 final DisplayMetrics metrics = new DisplayMetrics();
146 wm.getDefaultDisplay().getMetrics(metrics);
150 sPhotoSize = (Math.min(metrics.heightPixels, metrics.widthPixels) * 800) / 1000;
157 sPhotoSize = Math.min(metrics.heightPixels, metrics.widthPixels);
/frameworks/base/core/java/android/view/
H A DViewConfiguration.java263 final DisplayMetrics metrics = res.getDisplayMetrics();
265 final float density = metrics.density;
318 final DisplayMetrics metrics = context.getResources().getDisplayMetrics();
319 final int density = (int) (100.0f * metrics.density);
/frameworks/base/core/java/android/net/http/
H A DAndroidHttpClientConnection.java79 private HttpConnectionMetricsImpl metrics = null; field in class:AndroidHttpClientConnection
124 this.metrics = new HttpConnectionMetricsImpl(
261 this.metrics.incrementRequestCount();
375 this.metrics.incrementResponseCount();
462 return this.metrics;
/frameworks/base/core/java/android/webkit/
H A DViewManager.java104 DisplayMetrics metrics = w.getWebView().getResources().getDisplayMetrics();
105 int pixelArea = metrics.widthPixels * metrics.heightPixels;
/frameworks/base/core/java/android/content/res/
H A DResources.java162 * @param metrics Current display metrics to consider when
167 public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) { argument
168 this(assets, metrics, config, null);
175 * @param metrics Current display metrics to consider when
183 public Resources(AssetManager assets, DisplayMetrics metrics, argument
188 updateConfiguration(config, metrics);
1401 DisplayMetrics metrics) {
1402 updateConfiguration(config, metrics, nul
1400 updateConfiguration(Configuration config, DisplayMetrics metrics) argument
1408 updateConfiguration(Configuration config, DisplayMetrics metrics, CompatibilityInfo compat) argument
1554 updateSystemConfiguration(Configuration config, DisplayMetrics metrics, CompatibilityInfo compat) argument
1566 updateSystemConfiguration(Configuration config, DisplayMetrics metrics) argument
[all...]
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java237 final DisplayMetrics metrics = getResources().getDisplayMetrics();
239 mBitmap.getScaledWidth(metrics),
240 mBitmap.getScaledHeight(metrics));

Completed in 457 milliseconds

12