Searched refs:mDisplayMetrics (Results 1 – 2 of 2) sorted by relevance
50 private DisplayMetrics mDisplayMetrics; field in SampleWallpaper.MySampleEngine96 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;
50 private DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in ShowcaseFragment109 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics); in onStart()189 target.setElevation(HIGHLIGHT_ELEVATION * mDisplayMetrics.density); in highlightView()