OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mDisplayMetrics
(Results
1 - 6
of
6
) sorted by null
/cts/tests/tests/theme/src/android/theme/cts/
WatchPercentageScreenDimenTest.java
40
private DisplayMetrics
mDisplayMetrics
;
51
mDisplayMetrics
= mContext.getResources().getDisplayMetrics();
52
mScreenWidth =
mDisplayMetrics
.widthPixels;
103
float widthDp =
mDisplayMetrics
.widthPixels /
mDisplayMetrics
.density;
/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/
SampleWallpaper.java
50
private DisplayMetrics
mDisplayMetrics
;
96
drawable.setBounds(0, 0,
mDisplayMetrics
.widthPixels,
mDisplayMetrics
.widthPixels);
130
float centerX = (float)
mDisplayMetrics
.widthPixels/2;
131
float centerY = (float)
mDisplayMetrics
.heightPixels/2;
161
|| mCirclePosition.x >
mDisplayMetrics
.widthPixels;
163
|| mCirclePosition.y >
mDisplayMetrics
.heightPixels;
228
mDisplayMetrics
= getDisplayContext().getResources().getDisplayMetrics();
229
mCirclePosition.x =
mDisplayMetrics
.widthPixels/2;
230
mCirclePosition.y =
mDisplayMetrics
.heightPixels/2 + 60
[
all
...]
/cts/tests/tests/hardware/src/android/hardware/cts/
LowRamDeviceTest.java
72
private DisplayMetrics
mDisplayMetrics
;
81
mDisplayMetrics
= new DisplayMetrics();
84
windowManager.getDefaultDisplay().getMetrics(
mDisplayMetrics
);
94
int density =
mDisplayMetrics
.densityDpi;
/cts/tests/tests/systemui/src/android/systemui/cts/
WindowInsetsActivity.java
55
private final DisplayMetrics
mDisplayMetrics
= new DisplayMetrics();
95
getDisplay().getRealMetrics(
mDisplayMetrics
);
227
sb.append("real size = (").append(
mDisplayMetrics
.widthPixels).append(",")
228
.append(
mDisplayMetrics
.heightPixels).append(")\n");
260
int slack = (int) (DISPLAY_CUTOUT_SLACK_DP *
mDisplayMetrics
.density);
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
ShowcaseFragment.java
50
private DisplayMetrics
mDisplayMetrics
= new DisplayMetrics();
109
getActivity().getWindowManager().getDefaultDisplay().getMetrics(
mDisplayMetrics
);
189
target.setElevation(HIGHLIGHT_ELEVATION *
mDisplayMetrics
.density);
/cts/tests/tests/widget/src/android/widget/cts/
MagnifierTest.java
85
private DisplayMetrics
mDisplayMetrics
;
96
mDisplayMetrics
= mActivity.getResources().getDisplayMetrics();
116
final float dpScreenWidth =
mDisplayMetrics
.widthPixels /
mDisplayMetrics
.density;
117
final float dpScreenHeight =
mDisplayMetrics
.heightPixels /
mDisplayMetrics
.density;
215
return (int) (dp *
mDisplayMetrics
.density + 0.5f);
219
return dp *
mDisplayMetrics
.density;
[
all
...]
Completed in 308 milliseconds