Lines Matching refs:metrics
107 DisplayMetrics metrics = new DisplayMetrics();
108 metrics.densityDpi = metrics.noncompatDensityDpi =
111 metrics.density = metrics.noncompatDensity =
112 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT;
114 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density;
116 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth();
117 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight();
118 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi();
119 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi();
124 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources,