/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 | 105 DisplayMetrics metrics = new DisplayMetrics(); in init() local 106 metrics.densityDpi = metrics.noncompatDensityDpi = in init() 109 metrics.density = metrics.noncompatDensity = in init() 110 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init() 112 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; in init() 114 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init() 115 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight(); in init() 116 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi(); in init() 117 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi(); in init() 122 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init()
|
D | RenderSessionImpl.java | 180 DisplayMetrics metrics = getContext().getMetrics(); in init() local 190 findStatusBar(resources, metrics); in init() 191 findActionBar(resources, metrics); in init() 192 findNavigationBar(resources, metrics); in init() 198 metrics, Surface.ROTATION_0, in init() 1032 private void findStatusBar(RenderResources resources, DisplayMetrics metrics) { in findStatusBar() argument 1049 mStatusBarSize = (int)typedValue.getDimension(metrics); in findStatusBar() 1055 private void findActionBar(RenderResources resources, DisplayMetrics metrics) { in findActionBar() argument 1082 mActionBarSize = (int)typedValue.getDimension(metrics); in findActionBar() 1108 mTitleBarSize = (int)typedValue.getDimension(metrics); in findActionBar() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 42 DisplayMetrics metrics = new DisplayMetrics(); in makeView() local 43 getWindowManager().getDefaultDisplay().getMetrics(metrics); in makeView() 52 final int p = (int)(8 * metrics.density); in makeView() 58 final float size = 14 * metrics.density; in makeView() 63 lp.bottomMargin = (int) (-4*metrics.density); in makeView() 69 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000); in makeView() 77 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000); in makeView() 91 DisplayMetrics metrics = new DisplayMetrics(); in onCreate() local 92 getWindowManager().getDefaultDisplay().getMetrics(metrics); in onCreate() 98 final int p = (int)(32 * metrics.density); in onCreate()
|
/frameworks/rs/ |
D | rsScriptC_LibGL.cpp | 233 static void SetMetrics(Font::Rect *metrics, in SetMetrics() argument 236 *left = metrics->left; in SetMetrics() 239 *right = metrics->right; in SetMetrics() 242 *top = metrics->top; in SetMetrics() 245 *bottom = metrics->bottom; in SetMetrics() 254 Font::Rect metrics; in rsrMeasureTextAlloc() local 255 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc() 256 SetMetrics(&metrics, left, right, top, bottom); in rsrMeasureTextAlloc() 263 Font::Rect metrics; in rsrMeasureText() local 264 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | HarfbuzzSkia.cpp | 143 static void getGlyphMetrics(HB_Font hbFont, HB_Glyph glyph, HB_GlyphMetrics* metrics) in getGlyphMetrics() argument 153 metrics->x = SkScalarToHBFixed(bounds.fLeft); in getGlyphMetrics() 154 metrics->y = SkScalarToHBFixed(bounds.fTop); in getGlyphMetrics() 155 metrics->width = SkScalarToHBFixed(bounds.width()); in getGlyphMetrics() 156 metrics->height = SkScalarToHBFixed(bounds.height()); in getGlyphMetrics() 158 metrics->xOffset = SkScalarToHBFixed(width); in getGlyphMetrics() 162 metrics->yOffset = 0; in getGlyphMetrics()
|
D | Paint.cpp | 338 SkPaint::FontMetrics metrics; in ascent() local 339 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); in ascent() 340 return SkScalarToFloat(metrics.fAscent); in ascent() 345 SkPaint::FontMetrics metrics; in descent() local 346 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); in descent() 347 return SkScalarToFloat(metrics.fDescent); in descent() 352 SkPaint::FontMetrics metrics; in getFontMetrics() local 353 … SkScalar spacing = GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); in getFontMetrics() 357 env->SetFloatField(metricsObj, gFontMetrics_fieldID.top, SkScalarToFloat(metrics.fTop)); in getFontMetrics() 358 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent)); in getFontMetrics() [all …]
|
/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/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | TextTest.java | 85 DisplayMetrics metrics = mRes.getDisplayMetrics(); in initTextScript() local 89 Font.Style.NORMAL, 8.0f / metrics.density)); in initTextScript() 91 Font.Style.NORMAL, 8.0f / metrics.density)); in initTextScript()
|
/frameworks/base/core/java/android/view/ |
D | ViewConfiguration.java | 263 final DisplayMetrics metrics = res.getDisplayMetrics(); in ViewConfiguration() local 265 final float density = metrics.density; in ViewConfiguration() 318 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in get() local 319 final int density = (int) (100.0f * metrics.density); in get()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/ |
D | PhotoViewFragment.java | 142 final DisplayMetrics metrics = new DisplayMetrics(); in onAttach() local 146 wm.getDefaultDisplay().getMetrics(metrics); in onAttach() 150 sPhotoSize = (Math.min(metrics.heightPixels, metrics.widthPixels) * 800) / 1000; in onAttach() 157 sPhotoSize = Math.min(metrics.heightPixels, metrics.widthPixels); in onAttach()
|
/frameworks/ex/photoviewer/src/com/android/ex/photo/fragments/ |
D | PhotoViewFragment.java | 136 final DisplayMetrics metrics = new DisplayMetrics(); in onAttach() local 140 wm.getDefaultDisplay().getMetrics(metrics); in onAttach() 144 sPhotoSize = (Math.min(metrics.heightPixels, metrics.widthPixels) * 800) / 1000; in onAttach() 151 sPhotoSize = Math.min(metrics.heightPixels, metrics.widthPixels); in onAttach()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 29 public WindowManagerImpl(DisplayMetrics metrics) { in WindowManagerImpl() argument 30 mMetrics = metrics; in WindowManagerImpl()
|
/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/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 | 80 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 81 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
/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/core/java/android/webkit/ |
D | ViewManager.java | 104 DisplayMetrics metrics = w.getWebView().getResources().getDisplayMetrics(); in ViewManager() local 105 int pixelArea = metrics.widthPixels * metrics.heightPixels; in ViewManager()
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 167 public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) { in Resources() argument 168 this(assets, metrics, config, null); in Resources() 183 public Resources(AssetManager assets, DisplayMetrics metrics, in Resources() argument 188 updateConfiguration(config, metrics); in Resources() 1401 DisplayMetrics metrics) { in updateConfiguration() argument 1402 updateConfiguration(config, metrics, null); in updateConfiguration() 1409 DisplayMetrics metrics, CompatibilityInfo compat) { in updateConfiguration() argument 1420 if (metrics != null) { in updateConfiguration() 1421 mMetrics.setTo(metrics); in updateConfiguration() 1554 public static void updateSystemConfiguration(Configuration config, DisplayMetrics metrics, in updateSystemConfiguration() argument [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 535 /*package*/ static float getFontMetrics(Paint thisPaint, FontMetrics metrics) { in getFontMetrics() argument 542 return delegate.getFontMetrics(metrics); in getFontMetrics() 1244 private float getFontMetrics(FontMetrics metrics) { in getFontMetrics() argument 1247 if (metrics != null) { in getFontMetrics() 1249 metrics.top = - javaMetrics.getMaxAscent(); in getFontMetrics() 1250 metrics.ascent = - javaMetrics.getAscent(); in getFontMetrics() 1251 metrics.descent = javaMetrics.getDescent(); in getFontMetrics() 1252 metrics.bottom = javaMetrics.getMaxDescent(); in getFontMetrics() 1253 metrics.leading = javaMetrics.getLeading(); in getFontMetrics()
|