Home
last modified time | relevance | path

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

/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DOverlayDisplayWindow.java182 private final DisplayMetrics mDefaultDisplayMetrics = new DisplayMetrics(); field in OverlayDisplayWindow.JellybeanMr1Impl
261 mDefaultDisplay.getMetrics(mDefaultDisplayMetrics); in updateDefaultDisplayInfo()
305 0 : mDefaultDisplayMetrics.widthPixels; in createWindow()
307 0 : mDefaultDisplayMetrics.heightPixels; in createWindow()
308 Log.d(TAG, mDefaultDisplayMetrics.toString()); in createWindow()
318 scale = Math.min(scale, (float)mDefaultDisplayMetrics.widthPixels / mWidth); in updateWindowParams()
319 scale = Math.min(scale, (float)mDefaultDisplayMetrics.heightPixels / mHeight); in updateWindowParams()
327 x = Math.max(0, Math.min(x, mDefaultDisplayMetrics.widthPixels - width)); in updateWindowParams()
328 y = Math.max(0, Math.min(y, mDefaultDisplayMetrics.heightPixels - height)); in updateWindowParams()