OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:outMetrics
(Results
1 - 25
of
35
) sorted by null
1
2
/cts/tests/tests/util/src/android/util/cts/
DisplayMetricsTest.java
47
DisplayMetrics
outMetrics
= new DisplayMetrics();
48
outMetrics
.setToDefaults();
49
assertEquals(0,
outMetrics
.widthPixels);
50
assertEquals(0,
outMetrics
.heightPixels);
52
assertTrue((0.1 <=
outMetrics
.density) && (
outMetrics
.density <= 4));
53
assertTrue((0.1 <=
outMetrics
.scaledDensity) && (
outMetrics
.scaledDensity <= 4));
54
assertTrue(0 <
outMetrics
.xdpi);
55
assertTrue(0 <
outMetrics
.ydpi)
[
all
...]
/external/robolectric/v1/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;
/frameworks/base/core/java/android/view/
DisplayInfo.java
506
public void getAppMetrics(DisplayMetrics
outMetrics
) {
507
getAppMetrics(
outMetrics
, CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null);
510
public void getAppMetrics(DisplayMetrics
outMetrics
, DisplayAdjustments displayAdjustments) {
511
getMetricsWithSize(
outMetrics
, displayAdjustments.getCompatibilityInfo(),
515
public void getAppMetrics(DisplayMetrics
outMetrics
, CompatibilityInfo ci,
517
getMetricsWithSize(
outMetrics
, ci, configuration, appWidth, appHeight);
520
public void getLogicalMetrics(DisplayMetrics
outMetrics
, CompatibilityInfo compatInfo,
522
getMetricsWithSize(
outMetrics
, compatInfo, configuration, logicalWidth, logicalHeight);
556
private void getMetricsWithSize(DisplayMetrics
outMetrics
, CompatibilityInfo compatInfo,
558
outMetrics
.densityDpi = outMetrics.noncompatDensityDpi = logicalDensityDpi
[
all
...]
Display.java
[
all
...]
/cts/tests/tests/display/src/android/display/cts/
DisplayTest.java
245
DisplayMetrics
outMetrics
= new DisplayMetrics();
246
outMetrics
.setToDefaults();
247
display.getMetrics(
outMetrics
);
249
assertEquals(SECONDARY_DISPLAY_WIDTH,
outMetrics
.widthPixels);
250
assertEquals(SECONDARY_DISPLAY_HEIGHT,
outMetrics
.heightPixels);
253
assertTrue(SCALE_DENSITY_LOWER_BOUND <=
outMetrics
.density
254
&&
outMetrics
.density <= SCALE_DENSITY_UPPER_BOUND);
255
assertTrue(SCALE_DENSITY_LOWER_BOUND <=
outMetrics
.scaledDensity
256
&&
outMetrics
.scaledDensity <= SCALE_DENSITY_UPPER_BOUND);
258
assertEquals(SECONDARY_DISPLAY_DPI,
outMetrics
.densityDpi)
[
all
...]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DisplayFacade.java
94
DisplayMetrics
outMetrics
= new DisplayMetrics();
95
d.getRealMetrics(
outMetrics
);
96
return
outMetrics
;
/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
...]
/external/robolectric/v3/runtime/
shadows-core-3.1-SNAPSHOT-16.jar
shadows-core-3.1-SNAPSHOT-17.jar
shadows-core-3.1-SNAPSHOT-18.jar
shadows-core-3.1-SNAPSHOT-19.jar
shadows-core-3.1-SNAPSHOT-21.jar
shadows-core-3.1-SNAPSHOT-22.jar
/prebuilts/misc/common/robolectric/lib/
shadows-core-v16-3.1.1.jar
shadows-core-v17-3.1.1.jar
shadows-core-v18-3.1.1.jar
shadows-core-v19-3.1.1.jar
shadows-core-v21-3.1.1.jar
shadows-core-v22-3.1.1.jar
shadows-core-v23-3.1.1.jar
/external/robolectric/v1/lib/main/
android.jar
/prebuilts/sdk/17/
android.jar
/prebuilts/sdk/18/
android.jar
/prebuilts/sdk/19/
android.jar
Completed in 191 milliseconds
1
2