/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 | 238 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() argument 243 metrics); in complexToDimension() 263 DisplayMetrics metrics) in complexToDimensionPixelOffset() argument 268 metrics); in complexToDimensionPixelOffset() 290 DisplayMetrics metrics) in complexToDimensionPixelSize() argument 296 metrics); in complexToDimensionPixelSize() 309 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() argument 311 return complexToDimension(data, metrics); in complexToDimensionNoisy() 340 DisplayMetrics metrics) in applyDimension() argument 346 return value * metrics.density; in applyDimension() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 106 DisplayMetrics metrics = new DisplayMetrics(); in init() local 107 metrics.densityDpi = metrics.noncompatDensityDpi = in init() 110 metrics.density = metrics.noncompatDensity = in init() 111 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init() 113 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; in init() 115 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init() 116 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight(); in init() 117 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi(); in init() 118 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi(); in init() 123 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init()
|
D | RenderSessionImpl.java | 198 DisplayMetrics metrics = getContext().getMetrics(); in init() local 206 findStatusBar(resources, metrics); in init() 207 findActionBar(resources, metrics); in init() 208 findNavigationBar(resources, metrics); in init() 214 metrics, Surface.ROTATION_0, in init() 1062 private void findStatusBar(RenderResources resources, DisplayMetrics metrics) { in findStatusBar() argument 1079 mStatusBarSize = (int)typedValue.getDimension(metrics); in findStatusBar() 1085 private void findActionBar(RenderResources resources, DisplayMetrics metrics) { in findActionBar() argument 1112 mActionBarSize = (int)typedValue.getDimension(metrics); in findActionBar() 1138 mTitleBarSize = (int)typedValue.getDimension(metrics); in findActionBar() [all …]
|
/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 | Paint.cpp | 433 static SkScalar getMetricsInternal(JNIEnv* env, jobject jpaint, Paint::FontMetrics *metrics) { in getMetricsInternal() argument 446 SkScalar spacing = paint->getFontMetrics(metrics); in getMetricsInternal() 454 metrics->fTop = -size * kElegantTop / 2048; in getMetricsInternal() 455 metrics->fBottom = -size * kElegantBottom / 2048; in getMetricsInternal() 456 metrics->fAscent = -size * kElegantAscent / 2048; in getMetricsInternal() 457 metrics->fDescent = -size * kElegantDescent / 2048; in getMetricsInternal() 458 metrics->fLeading = size * kElegantLeading / 2048; in getMetricsInternal() 459 spacing = metrics->fDescent - metrics->fAscent + metrics->fLeading; in getMetricsInternal() 466 Paint::FontMetrics metrics; in ascent() local 467 getMetricsInternal(env, paint, &metrics); in ascent() [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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBar.java | 140 DisplayMetrics metrics = mBridgeContext.getMetrics(); in createMenuPopup() local 156 layoutParams.setMarginEnd(getPixelValue("5dp", metrics)); in createMenuPopup() 229 static int getPixelValue(@NonNull String value, @NonNull DisplayMetrics metrics) { in getPixelValue() argument 231 return (int) typedValue.getDimension(metrics); in getPixelValue() 237 DisplayMetrics metrics = mBridgeContext.getMetrics(); in getActionBarHeight() local 249 return (int) typedValue.getDimension(metrics); in getActionBarHeight()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 30 public WindowManagerImpl(DisplayMetrics metrics) { in WindowManagerImpl() argument 31 mMetrics = metrics; in WindowManagerImpl()
|
/frameworks/base/core/java/android/view/ |
D | ViewConfiguration.java | 280 final DisplayMetrics metrics = res.getDisplayMetrics(); in ViewConfiguration() local 282 final float density = metrics.density; in ViewConfiguration() 359 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in get() local 360 final int density = (int) (100.0f * metrics.density); in get()
|
/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 | ViewLayersActivity2.java | 60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 61 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 | ListActivity.java | 115 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 116 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 | ViewLayersActivity.java | 110 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView() local 111 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f)); in getView()
|
/frameworks/base/core/java/android/net/http/ |
D | AndroidHttpClientConnection.java | 75 private HttpConnectionMetricsImpl metrics = null; field in AndroidHttpClientConnection 120 this.metrics = new HttpConnectionMetricsImpl( in bind() 257 this.metrics.incrementRequestCount(); in sendRequestHeader() 371 this.metrics.incrementResponseCount(); in parseResponseHeader() 458 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/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | ErrorSupportFragment.java | 219 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView() local 222 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView() 226 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
|
D | ErrorFragment.java | 217 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView() local 220 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView() 224 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionInfo.java | 203 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in createIconBitmap() local 206 Bitmap workingBitmap = Bitmap.createBitmap(metrics, width, height, mIconBitmap.getConfig()); in createIconBitmap() 221 paint.setTextSize(TEXT_SIZE * metrics.density); in createIconBitmap()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | SwipeRefreshLayout.java | 239 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in setSize() local 241 mCircleHeight = mCircleWidth = (int) (CIRCLE_DIAMETER_LARGE * metrics.density); in setSize() 243 mCircleHeight = mCircleWidth = (int) (CIRCLE_DIAMETER * metrics.density); in setSize() 283 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in SwipeRefreshLayout() local 284 mCircleWidth = (int) (CIRCLE_DIAMETER * metrics.density); in SwipeRefreshLayout() 285 mCircleHeight = (int) (CIRCLE_DIAMETER * metrics.density); in SwipeRefreshLayout() 290 mSpinnerFinalOffset = DEFAULT_CIRCLE_TARGET * metrics.density; in SwipeRefreshLayout()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiDevice.java | 133 DisplayMetrics metrics = new DisplayMetrics(); in getDisplaySizeDp() local 134 display.getRealMetrics(metrics); in getDisplaySizeDp() 135 float dpx = p.x / metrics.density; in getDisplaySizeDp() 136 float dpy = p.y / metrics.density; in getDisplaySizeDp()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ResourcesWrapper.java | 228 public void updateConfiguration(Configuration config, DisplayMetrics metrics) { in updateConfiguration() argument 229 super.updateConfiguration(config, metrics); in updateConfiguration() 231 mResources.updateConfiguration(config, metrics); in updateConfiguration()
|