Home
last modified time | relevance | path

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

/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DPlayerActivity.java79 private DisplayMetrics mMetrics; field in PlayerActivity
93 mMetrics = new DisplayMetrics(); in onCreate()
94 getWindowManager().getDefaultDisplay().getMetrics(mMetrics); in onCreate()
269 int w = (int) (mMetrics.widthPixels * MEDIA_BAR_WIDTH); in setupController()
270 int h = (int) (mMetrics.heightPixels * MEDIA_BAR_HEIGHT); in setupController()
271 int marginLeft = (int) (mMetrics.widthPixels * MEDIA_BAR_LEFT_MARGIN); in setupController()
272 int marginTop = (int) (mMetrics.heightPixels * MEDIA_BAR_TOP_MARGIN); in setupController()
273 int marginRight = (int) (mMetrics.widthPixels * MEDIA_BAR_RIGHT_MARGIN); in setupController()
274 int marginBottom = (int) (mMetrics.heightPixels * MEDIA_BAR_BOTTOM_MARGIN); in setupController()
DLeanbackDetailsFragment.java66 private DisplayMetrics mMetrics; field in LeanbackDetailsFragment
79 mMetrics = new DisplayMetrics(); in onCreate()
80 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics); in onCreate()
189 .resize(mMetrics.widthPixels, mMetrics.heightPixels)
DMainFragment.java62 private DisplayMetrics mMetrics; field in MainFragment
85 mMetrics = new DisplayMetrics(); in prepareBackgroundManager()
86 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics); in prepareBackgroundManager()
227 .resize(mMetrics.widthPixels, mMetrics.heightPixels)
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
DRichSetupFragment.java73 private DisplayMetrics mMetrics; field in RichSetupFragment
112 mMetrics = new DisplayMetrics(); in updateBackground()
113 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics); in updateBackground()
117 .resize(mMetrics.widthPixels, mMetrics.heightPixels) in updateBackground()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/
DMainFragment.java74 private DisplayMetrics mMetrics; field in MainFragment
104 mMetrics = new DisplayMetrics(); in prepareBackgroundManager()
105 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics); in prepareBackgroundManager()
204 int width = mMetrics.widthPixels; in updateBackground()
205 int height = mMetrics.heightPixels; in updateBackground()
DMovieDetailsFragment.java83 private DisplayMetrics mMetrics; field in MovieDetailsFragment
157 mMetrics = new DisplayMetrics(); in prepareBackgroundManager()
158 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics); in prepareBackgroundManager()
166 .into(new SimpleTarget<GlideDrawable>(mMetrics.widthPixels, mMetrics.heightPixels) { in updateBackground()