Home
last modified time | relevance | path

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

/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/
DSampleWallpaper.java50 private DisplayMetrics mDisplayMetrics; field in SampleWallpaper.MySampleEngine
96 drawable.setBounds(0, 0, mDisplayMetrics.widthPixels, mDisplayMetrics.widthPixels); in onComputeColors()
130 float centerX = (float) mDisplayMetrics.widthPixels/2; in draw()
131 float centerY = (float) mDisplayMetrics.heightPixels/2; in draw()
161 || mCirclePosition.x > mDisplayMetrics.widthPixels; in invertCircleDirectionIfNeeded()
163 || mCirclePosition.y > mDisplayMetrics.heightPixels; in invertCircleDirectionIfNeeded()
228 mDisplayMetrics = getDisplayContext().getResources().getDisplayMetrics();
229 mCirclePosition.x = mDisplayMetrics.widthPixels/2;
230 mCirclePosition.y = mDisplayMetrics.heightPixels/2 + 60;
232 mShowingText = "densityDpi= " + mDisplayMetrics.densityDpi;
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DShowcaseFragment.java50 private DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in ShowcaseFragment
109 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics); in onStart()
189 target.setElevation(HIGHLIGHT_ELEVATION * mDisplayMetrics.density); in highlightView()