Home
last modified time | relevance | path

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

/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
DImageDetailActivity.java63 final DisplayMetrics displayMetrics = new DisplayMetrics(); in onCreate() local
64 getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in onCreate()
65 final int height = displayMetrics.heightPixels; in onCreate()
66 final int width = displayMetrics.widthPixels; in onCreate()
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
DContactDetailFragment.java521 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getLargestScreenDimension() local
524 getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in getLargestScreenDimension()
525 final int height = displayMetrics.heightPixels; in getLargestScreenDimension()
526 final int width = displayMetrics.widthPixels; in getLargestScreenDimension()