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

12

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderSessionImpl.java180 DisplayMetrics metrics = getContext().getMetrics();
190 findStatusBar(resources, metrics);
191 findActionBar(resources, metrics);
192 findNavigationBar(resources, metrics);
198 metrics, Surface.ROTATION_0,
1032 private void findStatusBar(RenderResources resources, DisplayMetrics metrics) { argument
1048 // compute the pixel value based on the display metrics
1049 mStatusBarSize = (int)typedValue.getDimension(metrics);
1055 private void findActionBar(RenderResources resources, DisplayMetrics metrics) { argument
1081 // compute the pixel value based on the display metrics
1116 findNavigationBar(RenderResources resources, DisplayMetrics metrics) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java535 /*package*/ static float getFontMetrics(Paint thisPaint, FontMetrics metrics) { argument
542 return delegate.getFontMetrics(metrics);
1244 private float getFontMetrics(FontMetrics metrics) { argument
1247 if (metrics != null) {
1249 metrics.top = - javaMetrics.getMaxAscent();
1250 metrics.ascent = - javaMetrics.getAscent();
1251 metrics.descent = javaMetrics.getDescent();
1252 metrics.bottom = javaMetrics.getMaxDescent();
1253 metrics.leading = javaMetrics.getLeading();
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiDevice.java120 DisplayMetrics metrics = new DisplayMetrics();
121 display.getMetrics(metrics);
122 float dpx = p.x / metrics.density;
123 float dpy = p.y / metrics.density;
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java71 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics();
72 final float density = metrics.density;
H A DPhoneWindow.java2128 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics();
2129 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels;
2140 w = (int) tvw.getDimension(metrics);
2142 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels);
2161 h = (int) tvh.getDimension(metrics);
2163 h = (int) tvh.getFraction(metrics.heightPixels, metrics.heightPixels);
2188 min = (int)tv.getDimension(metrics);
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DIWindowManagerImpl.java55 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, argument
58 mMetrics = metrics;
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java798 DisplayMetrics metrics = new DisplayMetrics();
799 wm.getDefaultDisplay().getMetrics(metrics);
800 bm.setDensity(metrics.noncompatDensityDpi);
810 newbm.setDensity(metrics.noncompatDensityDpi);
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java640 * @param display Display metrics for the display this bitmap will be
673 * @param display Display metrics for the display this bitmap will be
733 * @param display Display metrics for the display this bitmap will be
796 * @param display Display metrics for the display this bitmap will be
937 public int getScaledWidth(DisplayMetrics metrics) { argument
938 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi);
945 public int getScaledHeight(DisplayMetrics metrics) { argument
946 return scaleFromDensity(getHeight(), mDensity, metrics.densityDpi);
H A DPaint.java1182 * Class that describes the various metrics for a font at a given text size.
1214 * settings for typeface, textSize, etc. If metrics is not null, return the
1217 * @param metrics If this object is not null, its fields are filled with
1221 public native float getFontMetrics(FontMetrics metrics); argument
1253 * typeface, textSize, etc. If metrics is not null, return the fontmetric
1858 * metrics across which shaping does not occur.
1906 * metrics across which shaping does not occur.
/frameworks/base/test-runner/src/android/test/mock/
H A DMockResources.java46 public void updateConfiguration(Configuration config, DisplayMetrics metrics) { argument
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DBridgeResources.java94 DisplayMetrics metrics,
99 metrics,
116 private BridgeResources(BridgeContext context, AssetManager assets, DisplayMetrics metrics, argument
118 super(assets, metrics, config);
92 initSystem(BridgeContext context, AssetManager assets, DisplayMetrics metrics, Configuration config, IProjectCallback projectCallback) argument
/frameworks/base/core/java/android/content/pm/
H A DPackageManager.java2380 DisplayMetrics metrics = new DisplayMetrics();
2381 metrics.setToDefaults();
2384 sourceFile, archiveFilePath, metrics, 0);
H A DPackageParser.java475 DisplayMetrics metrics, int flags) {
506 res = new Resources(assmgr, metrics, null);
730 final DisplayMetrics metrics = new DisplayMetrics();
731 metrics.setToDefaults();
732 res = new Resources(assmgr, metrics, null);
474 parsePackage(File sourceFile, String destCodePath, DisplayMetrics metrics, int flags) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java87 * the display metrics of the resources.
107 * the display metrics of the resources.
212 * @param metrics The DisplayMetrics indicating the density scale for this drawable.
217 public void setTargetDensity(DisplayMetrics metrics) { argument
218 setTargetDensity(metrics.densityDpi);
H A DNinePatchDrawable.java84 * based on the display metrics of the resources.
94 * based on the display metrics of the resources.
116 * based on the display metrics of the resources.
157 * @param metrics The DisplayMetrics indicating the density scale for this drawable.
162 public void setTargetDensity(DisplayMetrics metrics) { argument
163 setTargetDensity(metrics.densityDpi);
/frameworks/base/core/java/android/view/
H A DViewDebug.java544 final DisplayMetrics metrics =
547 final Bitmap bitmap = metrics != null ?
548 Bitmap.createBitmap(metrics, metrics.widthPixels,
549 metrics.heightPixels, Bitmap.Config.RGB_565) : null;
/frameworks/rs/
H A DrsRuntime.h97 void rsrSetMetrics(Context *, Script *, Font::Rect *metrics,
/frameworks/base/services/java/com/android/server/
H A DSystemServer.java811 DisplayMetrics metrics = new DisplayMetrics();
813 w.getDefaultDisplay().getMetrics(metrics);
814 context.getResources().updateConfiguration(config, metrics);
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
H A DDefaultContainerService.java168 DisplayMetrics metrics = new DisplayMetrics();
169 metrics.setToDefaults();
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java124 * @param metrics the {@link DisplayMetrics}.
131 public BridgeContext(Object projectKey, DisplayMetrics metrics, argument
137 mMetrics = metrics;
/frameworks/base/core/java/android/text/
H A DLayout.java955 float width = tl.metrics(null);
977 float width = tl.metrics(null);
1556 return tl.metrics(null);
H A DTextLine.java41 * metrics, or caretToLeftRightOf.
261 * Returns metrics information for the entire line.
263 * @param fmi receives font metrics information, can be null
266 float metrics(FontMetricsInt fmi) { method in class:TextLine
278 * @param fmi receives metrics information about the requested
407 * @param fmi receives metrics information about the requested
716 * @param fmi receives metrics information, can be null
726 // Get metrics first (even for empty strings or "0" width runs)
810 * @param fmi receives metrics information, can be null
875 * @param fmi receives metrics informatio
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp1796 SkPaint::FontMetrics metrics; local
1797 paint->getFontMetrics(&metrics, 0.0f);
1798 reject = quickRejectNoScissor(x, y + metrics.fTop, x + length, y + metrics.fBottom);
H A DOpenGLRenderer.cpp2630 SkPaint::FontMetrics metrics; local
2631 paint->getFontMetrics(&metrics, 0.0f);
2632 if (quickReject(x, y + metrics.fTop, x + length, y + metrics.fBottom)) {
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java309 DisplayMetrics metrics = new DisplayMetrics();
310 metrics.setToDefaults();
312 metrics, 0);

Completed in 617 milliseconds

12