/frameworks/base/core/java/android/text/ |
D | BoringLayout.java | 43 BoringLayout.Metrics metrics, boolean includepad) { in make() argument 45 spacingmult, spacingadd, metrics, in make() 53 BoringLayout.Metrics metrics, boolean includepad, in make() argument 56 spacingmult, spacingadd, metrics, in make() 68 BoringLayout.Metrics metrics, in replaceOrMake() argument 78 metrics, includepad, true); in replaceOrMake() 90 BoringLayout.Metrics metrics, in replaceOrMake() argument 115 metrics, includepad, trust); in replaceOrMake() local 123 BoringLayout.Metrics metrics, boolean includepad) { in BoringLayout() argument 131 metrics, includepad, true); in BoringLayout() [all …]
|
/frameworks/base/core/java/android/util/ |
D | TypedValue.java | 227 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() argument 232 metrics); in complexToDimension() 252 DisplayMetrics metrics) in complexToDimensionPixelOffset() argument 257 metrics); in complexToDimensionPixelOffset() 279 DisplayMetrics metrics) in complexToDimensionPixelSize() argument 285 metrics); in complexToDimensionPixelSize() 293 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() argument 295 float res = complexToDimension(data, metrics); in complexToDimensionNoisy() 321 DisplayMetrics metrics) in applyDimension() argument 327 return value * metrics.density; in applyDimension() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 102 DisplayMetrics metrics = new DisplayMetrics(); in init() local 103 metrics.densityDpi = mParams.getDensity().getDpiValue(); in init() 105 metrics.density = metrics.noncompatDensity = in init() 106 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init() 108 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; in init() 110 metrics.widthPixels = metrics.noncompatWidthPixels = mParams.getScreenWidth(); in init() 111 metrics.heightPixels = metrics.noncompatHeightPixels = mParams.getScreenHeight(); in init() 112 metrics.xdpi = metrics.noncompatXdpi = mParams.getXdpi(); in init() 113 metrics.ydpi = metrics.noncompatYdpi = mParams.getYdpi(); in init() 118 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init()
|
D | RenderSessionImpl.java | 174 DisplayMetrics metrics = getContext().getMetrics(); in init() local 184 findStatusBar(resources, metrics); in init() 185 findActionBar(resources, metrics); in init() 186 findSystemBar(resources, metrics); in init() 964 private void findStatusBar(RenderResources resources, DisplayMetrics metrics) { in findStatusBar() argument 982 mStatusBarSize = (int)typedValue.getDimension(metrics); in findStatusBar() 989 private void findActionBar(RenderResources resources, DisplayMetrics metrics) { in findActionBar() argument 1015 mActionBarSize = (int)typedValue.getDimension(metrics); in findActionBar() 1040 mTitleBarSize = (int)typedValue.getDimension(metrics); in findActionBar() 1048 private void findSystemBar(RenderResources resources, DisplayMetrics metrics) { in findSystemBar() argument [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | HarfbuzzSkia.cpp | 160 static void getGlyphMetrics(HB_Font hbFont, HB_Glyph glyph, HB_GlyphMetrics* metrics) in getGlyphMetrics() argument 172 metrics->x = SkScalarToHBFixed(bounds.fLeft); in getGlyphMetrics() 173 metrics->y = SkScalarToHBFixed(bounds.fTop); in getGlyphMetrics() 174 metrics->width = SkScalarToHBFixed(bounds.width()); in getGlyphMetrics() 175 metrics->height = SkScalarToHBFixed(bounds.height()); in getGlyphMetrics() 177 metrics->xOffset = SkScalarToHBFixed(width); in getGlyphMetrics() 181 metrics->yOffset = 0; in getGlyphMetrics()
|
D | Paint.cpp | 289 SkPaint::FontMetrics metrics; in ascent() local 290 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); in ascent() 291 return SkScalarToFloat(metrics.fAscent); in ascent() 296 SkPaint::FontMetrics metrics; in descent() local 297 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); in descent() 298 return SkScalarToFloat(metrics.fDescent); in descent() 303 SkPaint::FontMetrics metrics; in getFontMetrics() local 304 … SkScalar spacing = GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); in getFontMetrics() 308 env->SetFloatField(metricsObj, gFontMetrics_fieldID.top, SkScalarToFloat(metrics.fTop)); in getFontMetrics() 309 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent)); in getFontMetrics() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewConfiguration.java | 265 final DisplayMetrics metrics = res.getDisplayMetrics(); in ViewConfiguration() local 267 final float density = metrics.density; in ViewConfiguration() 287 mMaximumDrawingCacheSize = 4 * metrics.widthPixels * metrics.heightPixels; in ViewConfiguration() 314 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in get() local 315 final int density = (int) (100.0f * metrics.density); in get()
|
/frameworks/base/libs/rs/ |
D | rsScriptC_LibGL.cpp | 287 static void SetMetrics(Font::Rect *metrics, in SetMetrics() argument 290 *left = metrics->left; in SetMetrics() 293 *right = metrics->right; in SetMetrics() 296 *top = metrics->top; in SetMetrics() 299 *bottom = metrics->bottom; in SetMetrics() 308 Font::Rect metrics; in rsrMeasureTextAlloc() local 309 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc() 310 SetMetrics(&metrics, left, right, top, bottom); in rsrMeasureTextAlloc() 316 Font::Rect metrics; in rsrMeasureText() local 317 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ |
D | HeightReceiver.java | 84 final DisplayMetrics metrics = new DisplayMetrics(); in updateHeight() local 86 display.getRealMetrics(metrics); in updateHeight() 89 final int shortSide = Math.min(metrics.widthPixels, metrics.heightPixels); in updateHeight()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure() local 59 final int screenWidth = metrics.widthPixels; in onMeasure() 60 final boolean isPortrait = screenWidth < metrics.heightPixels; in onMeasure()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewLayersActivity3.java | 57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 58 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ViewLayersActivity4.java | 64 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 65 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ViewLayersActivity2.java | 60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 61 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | TransparentListActivity.java | 113 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 114 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ListActivity.java | 119 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 120 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ViewLayersActivity5.java | 70 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 71 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ViewLayersActivity6.java | 80 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 81 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
D | ViewLayersActivity.java | 107 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 108 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
/frameworks/base/core/java/android/net/http/ |
D | AndroidHttpClientConnection.java | 79 private HttpConnectionMetricsImpl metrics = null; field in AndroidHttpClientConnection 124 this.metrics = new HttpConnectionMetricsImpl( in bind() 261 this.metrics.incrementRequestCount(); in sendRequestHeader() 375 this.metrics.incrementResponseCount(); in parseResponseHeader() 462 return this.metrics; in getMetrics()
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 129 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in TransformView() local 130 mPosX = metrics.widthPixels/2; in TransformView() 131 mPosY = metrics.heightPixels/2; in TransformView()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 530 /*package*/ static float getFontMetrics(Paint thisPaint, FontMetrics metrics) { in getFontMetrics() argument 537 return delegate.getFontMetrics(metrics); in getFontMetrics() 907 /*package*/ static float native_getFontMetrics(int native_paint, FontMetrics metrics) { in native_getFontMetrics() argument 914 return delegate.getFontMetrics(metrics); in native_getFontMetrics() 1239 private float getFontMetrics(FontMetrics metrics) { in getFontMetrics() argument 1242 if (metrics != null) { in getFontMetrics() 1244 metrics.top = - javaMetrics.getMaxAscent(); in getFontMetrics() 1245 metrics.ascent = - javaMetrics.getAscent(); in getFontMetrics() 1246 metrics.descent = javaMetrics.getDescent(); in getFontMetrics() 1247 metrics.bottom = javaMetrics.getMaxDescent(); in getFontMetrics() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 183 public Resources(AssetManager assets, DisplayMetrics metrics, in Resources() argument 185 this(assets, metrics, config, (CompatibilityInfo) null); in Resources() 200 public Resources(AssetManager assets, DisplayMetrics metrics, in Resources() argument 205 updateConfiguration(config, metrics); in Resources() 1407 DisplayMetrics metrics) { in updateConfiguration() argument 1408 updateConfiguration(config, metrics, null); in updateConfiguration() 1415 DisplayMetrics metrics, CompatibilityInfo compat) { in updateConfiguration() argument 1426 if (metrics != null) { in updateConfiguration() 1427 mMetrics.setTo(metrics); in updateConfiguration() 1550 public static void updateSystemConfiguration(Configuration config, DisplayMetrics metrics, in updateSystemConfiguration() argument [all …]
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 237 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in onMeasure() local 239 mBitmap.getScaledWidth(metrics), in onMeasure() 240 mBitmap.getScaledHeight(metrics)); in onMeasure()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | IconUtilities.java | 69 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities() local 70 final float density = metrics.density; in IconUtilities()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 767 public int getScaledWidth(DisplayMetrics metrics) { in getScaledWidth() argument 768 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi); in getScaledWidth() 775 public int getScaledHeight(DisplayMetrics metrics) { in getScaledHeight() argument 776 return scaleFromDensity(getHeight(), mDensity, metrics.densityDpi); in getScaledHeight()
|