Home
last modified time | relevance | path

Searched refs:mWidthPx (Results 1 – 1 of 1) sorted by relevance

/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java103 private int mWidthPx; field in BackgroundManager
566 mWidthPx = mContext.getResources().getDisplayMetrics().widthPixels; in BackgroundManager()
912 if ((bitmap.getWidth() != mWidthPx || bitmap.getHeight() != mHeightPx)) { in setBitmap()
918 if (dwidth * mHeightPx > mWidthPx * dheight) { in setBitmap()
921 scale = (float) mWidthPx / (float) dwidth; in setBitmap()
924 int subX = Math.min((int) (mWidthPx / scale), dwidth); in setBitmap()