Searched refs:mDisplayMetrics (Results 1 – 4 of 4) sorted by relevance
40 private DisplayMetrics mDisplayMetrics; field in WatchPercentageScreenDimenTest51 mDisplayMetrics = mContext.getResources().getDisplayMetrics(); in setUp()52 mScreenWidth = mDisplayMetrics.widthPixels; in setUp()103 float widthDp = mDisplayMetrics.widthPixels / mDisplayMetrics.density; in getMaxErrorRatio()
55 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in WindowInsetsActivity95 getDisplay().getRealMetrics(mDisplayMetrics); in onCreate()227 sb.append("real size = (").append(mDisplayMetrics.widthPixels).append(",") in showInfoInTextView()228 .append(mDisplayMetrics.heightPixels).append(")\n"); in showInfoInTextView()260 int slack = (int) (DISPLAY_CUTOUT_SLACK_DP * mDisplayMetrics.density); in getOperationArea()
72 private DisplayMetrics mDisplayMetrics; field in LowRamDeviceTest81 mDisplayMetrics = new DisplayMetrics(); in setUp()84 windowManager.getDefaultDisplay().getMetrics(mDisplayMetrics); in setUp()94 int density = mDisplayMetrics.densityDpi; in testMinimumMemory()
85 private DisplayMetrics mDisplayMetrics; field in MagnifierTest96 mDisplayMetrics = mActivity.getResources().getDisplayMetrics(); in setup()116 final float dpScreenWidth = mDisplayMetrics.widthPixels / mDisplayMetrics.density; in isScreenBigEnough()117 final float dpScreenHeight = mDisplayMetrics.heightPixels / mDisplayMetrics.density; in isScreenBigEnough()215 return (int) (dp * mDisplayMetrics.density + 0.5f); in dpToPixelSize()219 return dp * mDisplayMetrics.density; in dpToPixel()