/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowDisplay.java | 20 private int densityDpi = DisplayMetrics.DENSITY_HIGH; 36 outMetrics.densityDpi = densityDpi; 78 return densityDpi; 81 public void setDensityDpi(int densityDpi) { 82 this.densityDpi = densityDpi;
|
/frameworks/base/services/java/com/android/server/display/ |
DisplayDeviceInfo.java | 107 public int densityDpi; 154 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080; 157 xDpi = densityDpi; 158 yDpi = densityDpi; 172 && densityDpi == other.densityDpi 192 densityDpi = other.densityDpi; 207 + "density " + densityDpi + ", " + xDpi + " x " + yDpi + " dpi"
|
OverlayDisplayAdapter.java | 145 int densityDpi = Integer.parseInt(matcher.group(3), 10); 148 && densityDpi >= DisplayMetrics.DENSITY_LOW 149 && densityDpi <= DisplayMetrics.DENSITY_XXHIGH) { 158 + ", densityDpi=" + densityDpi); 161 width, height, densityDpi, gravity)); 199 int width, int height, float refreshRate, int densityDpi, 206 mDensityDpi = densityDpi; 241 mInfo.densityDpi = mDensityDpi; 269 int width, int height, int densityDpi, int gravity) [all...] |
HeadlessDisplayAdapter.java | 61 mInfo.densityDpi = DisplayMetrics.DENSITY_DEFAULT;
|
/frameworks/base/core/java/android/util/ |
DisplayMetrics.java | 101 * density for a display in {@link #densityDpi}. 136 public int densityDpi; 202 densityDpi = o.densityDpi; 219 densityDpi = DENSITY_DEVICE; 226 noncompatDensityDpi = densityDpi; 263 && densityDpi == other.densityDpi 276 return widthPixels * heightPixels * densityDpi;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
InterestingConfigChanges.java | 29 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; 32 mLastDensity = res.getDisplayMetrics().densityDpi;
|
/cts/tests/tests/holo/src/android/holo/cts/ |
DisplayInfoActivity.java | 45 text.setText(getString(R.string.display_info_text, metrics.densityDpi, 50 switch (metrics.densityDpi) { 67 return "" + metrics.densityDpi;
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
ConfigurationTest.java | 56 assertTrue("DisplayMetrics#densityDpi must be one of the DisplayMetrics.DENSITY_* values: " 57 + allowedDensities, allowedDensities.contains(metrics.densityDpi)); 60 (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT,
|
/frameworks/base/graphics/java/android/renderscript/ |
Font.java | 164 int dpi = res.getDisplayMetrics().densityDpi; 188 int dpi = res.getDisplayMetrics().densityDpi; 212 int dpi = res.getDisplayMetrics().densityDpi;
|
RenderScriptGL.java | 188 int dpi = ctx.getResources().getDisplayMetrics().densityDpi;
|
/frameworks/base/core/java/android/content/res/ |
Configuration.java | 515 * Default value for {@link #densityDpi} indicating that no width 527 public int densityDpi; 576 densityDpi = o.densityDpi; 629 if (densityDpi != DENSITY_DPI_UNDEFINED) { 630 sb.append(" "); sb.append(densityDpi); sb.append("dpi"); [all...] |
CompatibilityInfo.java | 442 inoutDm.densityDpi = (int)((inoutDm.noncompatDensityDpi * invertedRatio) + .5f); 463 inoutConfig.densityDpi = displayDensity; 466 inoutConfig.densityDpi = (int)((inoutConfig.densityDpi * invertedRatio) + .5f);
|
/development/apps/Development/src/com/android/development/ |
ConfigurationViewer.java | 57 + "densityDpi=" + m.densityDpi + "\n"
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
DisplayTest.java | 33 assertEquals(DisplayMetrics.DENSITY_MEDIUM, metrics.densityDpi);
|
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/ |
GalaxyView.java | 38 mRender.init(metrics.densityDpi, mRS, getResources(), w, h);
|
Galaxy4Wallpaper.java | 54 mDensityDPI = metrics.densityDpi;
|
/cts/tests/tests/app/src/android/app/cts/ |
ActivityManagerMemoryClassTest.java | 63 return metrics.densityDpi;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 107 metrics.densityDpi = metrics.noncompatDensityDpi = 111 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; 345 config.densityDpi = density.getDpiValue();
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
ActivityTestMain.java | 278 if (mOverrideConfig.densityDpi == Configuration.DENSITY_DPI_UNDEFINED) { 279 mOverrideConfig.densityDpi = (getApplicationContext().getResources() 280 .getConfiguration().densityDpi*2)/3; 282 mOverrideConfig.densityDpi = Configuration.DENSITY_DPI_UNDEFINED;
|
/packages/wallpapers/NoiseField/src/com/android/noisefield/ |
NoiseFieldWallpaper.java | 38 mDensityDPI = metrics.densityDpi;
|
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/ |
PhaseBeamWallpaper.java | 35 mDensityDPI = metrics.densityDpi;
|
/cts/tests/tests/display/src/android/display/cts/ |
DisplayTest.java | 150 assertEquals(SECONDARY_DISPLAY_DPI, outMetrics.densityDpi);
|
/frameworks/base/graphics/java/android/graphics/ |
Bitmap.java | 147 * @see android.util.DisplayMetrics#densityDpi 164 * @see android.util.DisplayMetrics#densityDpi 699 bm.mDensity = display.densityDpi; 775 bm.mDensity = display.densityDpi; [all...] |
/packages/apps/Settings/src/com/android/settings/ |
AppWidgetPickActivity.java | 103 final int density = res.getDisplayMetrics().densityDpi;
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
DeviceInfoInstrument.java | 200 switch (metrics.densityDpi) { 217 return "" + metrics.densityDpi;
|