OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:outMetrics
(Results
1 - 16
of
16
) sorted by null
/cts/tests/tests/util/src/android/util/cts/
DisplayMetricsTest.java
35
DisplayMetrics
outMetrics
= new DisplayMetrics();
36
outMetrics
.setToDefaults();
37
assertEquals(0,
outMetrics
.widthPixels);
38
assertEquals(0,
outMetrics
.heightPixels);
40
assertTrue((0.1 <=
outMetrics
.density) && (
outMetrics
.density <= 3));
41
assertTrue((0.1 <=
outMetrics
.scaledDensity) && (
outMetrics
.scaledDensity <= 3));
42
assertTrue(0 <
outMetrics
.xdpi);
43
assertTrue(0 <
outMetrics
.ydpi)
[
all
...]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowDisplay.java
34
public void getMetrics(DisplayMetrics
outMetrics
) {
35
outMetrics
.density = density;
36
outMetrics
.densityDpi = densityDpi;
37
outMetrics
.scaledDensity = scaledDensity;
38
outMetrics
.widthPixels = width;
39
outMetrics
.heightPixels = height;
40
outMetrics
.xdpi = xdpi;
41
outMetrics
.ydpi = ydpi;
/cts/tests/tests/display/src/android/display/cts/
DisplayTest.java
137
DisplayMetrics
outMetrics
= new DisplayMetrics();
138
outMetrics
.setToDefaults();
139
display.getMetrics(
outMetrics
);
141
assertEquals(SECONDARY_DISPLAY_WIDTH,
outMetrics
.widthPixels);
142
assertEquals(SECONDARY_DISPLAY_HEIGHT,
outMetrics
.heightPixels);
145
assertTrue(SCALE_DENSITY_LOWER_BOUND <=
outMetrics
.density
146
&&
outMetrics
.density <= SCALE_DENSITY_UPPER_BOUND);
147
assertTrue(SCALE_DENSITY_LOWER_BOUND <=
outMetrics
.scaledDensity
148
&&
outMetrics
.scaledDensity <= SCALE_DENSITY_UPPER_BOUND);
150
assertEquals(SECONDARY_DISPLAY_DPI,
outMetrics
.densityDpi)
[
all
...]
/frameworks/base/core/java/android/view/
DisplayInfo.java
347
public void getAppMetrics(DisplayMetrics
outMetrics
) {
348
getAppMetrics(
outMetrics
, CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null);
351
public void getAppMetrics(DisplayMetrics
outMetrics
, DisplayAdjustments displayAdjustments) {
352
getMetricsWithSize(
outMetrics
, displayAdjustments.getCompatibilityInfo(),
356
public void getAppMetrics(DisplayMetrics
outMetrics
, CompatibilityInfo ci, IBinder token) {
357
getMetricsWithSize(
outMetrics
, ci, token, appWidth, appHeight);
360
public void getLogicalMetrics(DisplayMetrics
outMetrics
, CompatibilityInfo compatInfo,
362
getMetricsWithSize(
outMetrics
, compatInfo, token, logicalWidth, logicalHeight);
382
private void getMetricsWithSize(DisplayMetrics
outMetrics
, CompatibilityInfo compatInfo,
384
outMetrics
.densityDpi = outMetrics.noncompatDensityDpi = logicalDensityDpi
[
all
...]
Display.java
581
* @param
outMetrics
A {@link DisplayMetrics} object to receive the metrics.
583
public void getMetrics(DisplayMetrics
outMetrics
) {
586
mDisplayInfo.getAppMetrics(
outMetrics
, mDisplayAdjustments);
619
* @param
outMetrics
A {@link DisplayMetrics} object to receive the metrics.
621
public void getRealMetrics(DisplayMetrics
outMetrics
) {
624
mDisplayInfo.getLogicalMetrics(
outMetrics
,
/packages/apps/Camera2/src/com/android/camera/crop/
CropActivity.java
173
DisplayMetrics
outMetrics
= new DisplayMetrics();
174
getWindowManager().getDefaultDisplay().getMetrics(
outMetrics
);
175
return (int) Math.max(
outMetrics
.heightPixels,
outMetrics
.widthPixels);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
CropActivity.java
176
DisplayMetrics
outMetrics
= new DisplayMetrics();
177
getWindowManager().getDefaultDisplay().getMetrics(
outMetrics
);
178
return (int) Math.max(
outMetrics
.heightPixels,
outMetrics
.widthPixels);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
FilterShowActivity.java
[
all
...]
/prebuilts/sdk/17/
android.jar
/prebuilts/sdk/18/
android.jar
/prebuilts/sdk/19/
android.jar
/prebuilts/sdk/current/
android.jar
/prebuilts/sdk/14/
android.jar
/prebuilts/sdk/4/
android.jar
/prebuilts/sdk/5/
android.jar
/prebuilts/sdk/6/
android.jar
Completed in 76 milliseconds