OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:DisplayMetrics
(Results
1 - 25
of
179
) sorted by null
1
2
3
4
5
6
7
8
/cts/tests/tests/dpi/src/android/dpi/cts/
ConfigurationTest.java
21
import android.util.
DisplayMetrics
;
37
DisplayMetrics
metrics = new
DisplayMetrics
();
50
allowedDensities.add(
DisplayMetrics
.DENSITY_LOW);
51
allowedDensities.add(
DisplayMetrics
.DENSITY_MEDIUM);
52
allowedDensities.add(
DisplayMetrics
.DENSITY_TV);
53
allowedDensities.add(
DisplayMetrics
.DENSITY_HIGH);
54
allowedDensities.add(
DisplayMetrics
.DENSITY_XHIGH);
55
allowedDensities.add(
DisplayMetrics
.DENSITY_XXHIGH);
56
assertTrue("
DisplayMetrics
#densityDpi must be one of the DisplayMetrics.DENSITY_* values:
[
all
...]
AspectRatioTest.java
24
import android.util.
DisplayMetrics
;
71
DisplayMetrics
metrics = new
DisplayMetrics
();
ConfigurationScreenLayoutTest.java
25
import android.util.
DisplayMetrics
;
91
// Logic copied from WindowManagerService but using
DisplayMetrics
instead of internal APIs
99
DisplayMetrics
metrics = new
DisplayMetrics
();
/cts/tests/tests/holo/src/android/holo/cts/
DisplayInfoActivity.java
23
import android.util.
DisplayMetrics
;
37
DisplayMetrics
metrics = new
DisplayMetrics
();
40
DisplayMetrics
dm = getResources().getDisplayMetrics();
49
private String getScreenDensityBucket(
DisplayMetrics
metrics) {
51
case
DisplayMetrics
.DENSITY_LOW:
54
case
DisplayMetrics
.DENSITY_MEDIUM:
57
case
DisplayMetrics
.DENSITY_HIGH:
60
case
DisplayMetrics
.DENSITY_XHIGH:
63
case
DisplayMetrics
.DENSITY_TV
[
all
...]
/cts/tests/tests/app/src/android/app/cts/
ActivityManagerMemoryClassTest.java
24
import android.util.
DisplayMetrics
;
61
DisplayMetrics
metrics = new
DisplayMetrics
();
76
case
DisplayMetrics
.DENSITY_LOW:
80
case
DisplayMetrics
.DENSITY_MEDIUM:
84
case
DisplayMetrics
.DENSITY_HIGH:
85
case
DisplayMetrics
.DENSITY_TV:
89
case
DisplayMetrics
.DENSITY_XHIGH:
93
case
DisplayMetrics
.DENSITY_XXHIGH:
/cts/tests/tests/util/src/android/util/cts/
DisplayMetricsTest.java
20
import android.util.
DisplayMetrics
;
35
DisplayMetrics
outMetrics = new
DisplayMetrics
();
47
DisplayMetrics
metrics = new
DisplayMetrics
();
TypedValueTest.java
21
import android.util.
DisplayMetrics
;
38
DisplayMetrics
dm = new
DisplayMetrics
();
80
DisplayMetrics
dm = new
DisplayMetrics
();
129
DisplayMetrics
dm = new
DisplayMetrics
();
195
DisplayMetrics
dm = new
DisplayMetrics
();
210
DisplayMetrics
dm = new DisplayMetrics()
[
all
...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DisplayTest.java
3
import android.util.
DisplayMetrics
;
21
shadow.setDensityDpi(
DisplayMetrics
.DENSITY_MEDIUM);
28
DisplayMetrics
metrics = new
DisplayMetrics
();
33
assertEquals(
DisplayMetrics
.DENSITY_MEDIUM, metrics.densityDpi);
TypedValueTest.java
3
import android.util.
DisplayMetrics
;
17
DisplayMetrics
metrics = new
DisplayMetrics
();
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
WindowManagerImpl.java
18
import android.util.
DisplayMetrics
;
26
private final
DisplayMetrics
mMetrics;
29
public WindowManagerImpl(
DisplayMetrics
metrics) {
/packages/apps/Settings/src/com/android/settings/
AppWidgetPickActivity.java
29
import android.util.
DisplayMetrics
;
106
case
DisplayMetrics
.DENSITY_MEDIUM:
107
iconDensity =
DisplayMetrics
.DENSITY_LOW;
108
case
DisplayMetrics
.DENSITY_TV:
109
iconDensity =
DisplayMetrics
.DENSITY_MEDIUM;
110
case
DisplayMetrics
.DENSITY_HIGH:
111
iconDensity =
DisplayMetrics
.DENSITY_MEDIUM;
112
case
DisplayMetrics
.DENSITY_XHIGH:
113
iconDensity =
DisplayMetrics
.DENSITY_HIGH;
114
case
DisplayMetrics
.DENSITY_XXHIGH
[
all
...]
/frameworks/base/core/java/android/util/
DisplayMetrics.java
25
* <p>To access the
DisplayMetrics
members, initialize an object like this:</p>
26
* <pre>
DisplayMetrics
metrics = new
DisplayMetrics
();
29
public class
DisplayMetrics
{
195
public
DisplayMetrics
() {
198
public void setTo(
DisplayMetrics
o) {
234
return o instanceof
DisplayMetrics
&& equals((
DisplayMetrics
)o);
243
public boolean equals(
DisplayMetrics
other) {
258
public boolean equalsPhysical(
DisplayMetrics
other)
[
all
...]
/development/apps/Development/src/com/android/development/
ConfigurationViewer.java
22
import android.util.
DisplayMetrics
;
34
DisplayMetrics
m = new
DisplayMetrics
();
54
+ "
DisplayMetrics
\n"
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
GalaxyView.java
12
import android.util.
DisplayMetrics
;
32
DisplayMetrics
metrics = new
DisplayMetrics
();
Galaxy4Wallpaper.java
25
import android.util.
DisplayMetrics
;
51
DisplayMetrics
metrics = new
DisplayMetrics
();
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowDisplay.java
4
import android.util.
DisplayMetrics
;
20
private int densityDpi =
DisplayMetrics
.DENSITY_HIGH;
34
public void getMetrics(
DisplayMetrics
outMetrics) {
ShadowTypedValue.java
3
import android.util.
DisplayMetrics
;
47
public static float complexToDimension(int data,
DisplayMetrics
metrics)
57
DisplayMetrics
metrics)
67
DisplayMetrics
metrics)
82
public static float complexToDimensionNoisy(int data,
DisplayMetrics
metrics)
97
public static float applyDimension(int unit, float value,
DisplayMetrics
metrics) {
116
public float getDimension(
DisplayMetrics
metrics)
/frameworks/base/services/java/com/android/server/display/
HeadlessDisplayAdapter.java
21
import android.util.
DisplayMetrics
;
61
mInfo.densityDpi =
DisplayMetrics
.DENSITY_DEFAULT;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
ViewLayersActivity3.java
23
import android.util.
DisplayMetrics
;
57
final
DisplayMetrics
metrics = r.getDisplayMetrics();
/cts/tests/tests/display/src/android/display/cts/
DisplayTest.java
24
import android.util.
DisplayMetrics
;
37
(float)(SECONDARY_DISPLAY_DPI - 1) /
DisplayMetrics
.DENSITY_DEFAULT;
39
(float)(SECONDARY_DISPLAY_DPI + 1) /
DisplayMetrics
.DENSITY_DEFAULT;
137
DisplayMetrics
outMetrics = new
DisplayMetrics
();
/frameworks/base/core/java/android/view/
Display.java
24
import android.util.
DisplayMetrics
;
66
private final
DisplayMetrics
mTempMetrics = new
DisplayMetrics
();
520
* @param outMetrics A {@link
DisplayMetrics
} object to receive the metrics.
522
public void getMetrics(
DisplayMetrics
outMetrics) {
558
* @param outMetrics A {@link
DisplayMetrics
} object to receive the metrics.
560
public void getRealMetrics(
DisplayMetrics
outMetrics) {
/frameworks/base/core/java/com/android/internal/app/
PlatLogoActivity.java
26
import android.util.
DisplayMetrics
;
42
DisplayMetrics
metrics = new
DisplayMetrics
();
91
DisplayMetrics
metrics = new
DisplayMetrics
();
/frameworks/base/core/java/android/app/
ActivityManager.java
49
import android.util.
DisplayMetrics
;
[
all
...]
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DeviceInfoInstrument.java
29
import android.util.
DisplayMetrics
;
76
DisplayMetrics
metrics = new
DisplayMetrics
();
199
private String getScreenDensityBucket(
DisplayMetrics
metrics) {
201
case
DisplayMetrics
.DENSITY_LOW:
204
case
DisplayMetrics
.DENSITY_MEDIUM:
207
case
DisplayMetrics
.DENSITY_TV:
210
case
DisplayMetrics
.DENSITY_HIGH:
213
case
DisplayMetrics
.DENSITY_XHIGH:
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java
24
import android.util.
DisplayMetrics
;
101
DisplayMetrics
metrics = new
DisplayMetrics
();
Completed in 1623 milliseconds
1
2
3
4
5
6
7
8