/cts/hostsidetests/holo/app/src/android/holo/app/ |
DisplayInfoActivity.java | 22 import android.util.DisplayMetrics; 39 DisplayMetrics metrics = new DisplayMetrics(); 42 DisplayMetrics dm = getResources().getDisplayMetrics(); 51 private static String getScreenDensityBucket(DisplayMetrics metrics) { 53 case DisplayMetrics.DENSITY_LOW: 56 case DisplayMetrics.DENSITY_MEDIUM: 59 case DisplayMetrics.DENSITY_HIGH: 62 case DisplayMetrics.DENSITY_XHIGH: 65 case DisplayMetrics.DENSITY_400 [all...] |
/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_400); 56 allowedDensities.add(DisplayMetrics.DENSITY_XXHIGH) [all...] |
AspectRatioTest.java | 24 import android.util.DisplayMetrics; 59 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_400 [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_400: 97 case DisplayMetrics.DENSITY_XXHIGH [all...] |
/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();
|
/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 { 203 public DisplayMetrics() { 206 public void setTo(DisplayMetrics o) { 242 return o instanceof DisplayMetrics && equals((DisplayMetrics)o); 251 public boolean equals(DisplayMetrics other) { 266 public boolean equalsPhysical(DisplayMetrics other) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DynamicGrid.java | 21 import android.util.DisplayMetrics; 39 public static float dpiFromPx(int size, DisplayMetrics metrics){ 40 float densityRatio = (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT; 43 public static int pxFromDp(float size, DisplayMetrics metrics) { 47 public static int pxFromSp(float size, DisplayMetrics metrics) { 56 DisplayMetrics dm = resources.getDisplayMetrics();
|
/development/apps/Development/src/com/android/development/ |
ConfigurationViewer.java | 22 import android.util.DisplayMetrics; 34 DisplayMetrics m = new DisplayMetrics(); 54 + "DisplayMetrics\n"
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
ViewportTest.java | 8 import android.util.DisplayMetrics; 58 DisplayMetrics metrics = new DisplayMetrics();
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
WindowManagerImpl.java | 18 import android.util.DisplayMetrics; 27 private final DisplayMetrics mMetrics; 30 public WindowManagerImpl(DisplayMetrics metrics) {
|
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/ |
GalaxyView.java | 12 import android.util.DisplayMetrics; 32 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/core/java/android/app/ |
ResourcesManager.java | 30 import android.util.DisplayMetrics; 48 final ArrayMap<DisplayAdjustments, DisplayMetrics> mDefaultDisplayMetrics 49 = new ArrayMap<DisplayAdjustments, DisplayMetrics>(); 73 public DisplayMetrics getDisplayMetricsLocked(int displayId) { 77 public DisplayMetrics getDisplayMetricsLocked(int displayId, DisplayAdjustments daj) { 79 DisplayMetrics dm = isDefaultDisplay ? mDefaultDisplayMetrics.get(daj) : null; 83 dm = new DisplayMetrics(); 113 DisplayMetrics dm, Configuration config) { 184 DisplayMetrics dm = getDisplayMetricsLocked(displayId); 234 DisplayMetrics defaultDisplayMetrics = getDisplayMetricsLocked(Display.DEFAULT_DISPLAY) [all...] |
/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();
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
DeviceInfoInstrument.java | 31 import android.util.DisplayMetrics; 79 DisplayMetrics metrics = new DisplayMetrics(); 208 private String getScreenDensityBucket(DisplayMetrics metrics) { 210 case DisplayMetrics.DENSITY_LOW: 213 case DisplayMetrics.DENSITY_MEDIUM: 216 case DisplayMetrics.DENSITY_TV: 219 case DisplayMetrics.DENSITY_HIGH: 222 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();
|