Searched refs:displayMetrics (Results 1 – 2 of 2) sorted by relevance
63 final DisplayMetrics displayMetrics = new DisplayMetrics(); in onCreate() local64 getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in onCreate()65 final int height = displayMetrics.heightPixels; in onCreate()66 final int width = displayMetrics.widthPixels; in onCreate()
521 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getLargestScreenDimension() local524 getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in getLargestScreenDimension()525 final int height = displayMetrics.heightPixels; in getLargestScreenDimension()526 final int width = displayMetrics.widthPixels; in getLargestScreenDimension()