/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/core/java/android/util/ |
DisplayMetrics.java | 122 * density for a display in {@link #densityDpi}. 157 public int densityDpi; 223 densityDpi = o.densityDpi; 240 densityDpi = DENSITY_DEVICE; 247 noncompatDensityDpi = densityDpi; 284 && densityDpi == other.densityDpi 297 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;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
InterestingConfigChanges.java | 32 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; 35 mLastDensity = res.getDisplayMetrics().densityDpi;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
BogusMoveEventDetector.java | 48 final int densityDpi = res.getDisplayMetrics().densityDpi; 49 final boolean hasLowDensityScreen = (densityDpi < DisplayMetrics.DENSITY_HIGH); 54 + " smallestScreenWidthDp=" + sw + " densityDpi=" + densityDpi
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
DisplayInfoActivity.java | 47 text.setText(getString(R.string.display_info_text, metrics.densityDpi, 52 switch (metrics.densityDpi) { 81 return "" + metrics.densityDpi;
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
DisplaySourceService.java | 89 final int densityDpi = content.getInt(); 92 && densityDpi >= 60 && densityDpi <= 640) { 93 handleSinkAvailable(width, height, densityDpi); 109 private void handleSinkAvailable(int width, int height, int densityDpi) { 111 && mSinkDensityDpi == densityDpi) { 117 + ", densityDpi=" + densityDpi); 121 mSinkDensityDpi = densityDpi; 181 public VirtualDisplayThread(int width, int height, int densityDpi) { [all...] |
/frameworks/base/core/java/android/hardware/display/ |
IDisplayManager.aidl | 66 int width, int height, int densityDpi, in Surface surface, int flags); 70 int width, int height, int densityDpi);
|
VirtualDisplay.java | 90 public void resize(int width, int height, int densityDpi) { 91 mGlobal.resizeVirtualDisplay(mToken, width, height, densityDpi);
|
DisplayManager.java | 478 int width, int height, int densityDpi, @Nullable Surface surface, int flags) { 479 return createVirtualDisplay(name, width, height, densityDpi, surface, flags, null, null); 509 * @param densityDpi The density of the virtual display in dpi, must be greater than 0. 526 int width, int height, int densityDpi, @Nullable Surface surface, int flags, 529 name, width, height, densityDpi, surface, flags, callback, handler); 534 @NonNull String name, int width, int height, int densityDpi, @Nullable Surface surface, 537 name, width, height, densityDpi, surface, flags, callback, handler);
|
DisplayManagerGlobal.java | 374 String name, int width, int height, int densityDpi, Surface surface, int flags, 379 if (width <= 0 || height <= 0 || densityDpi <= 0) { 380 throw new IllegalArgumentException("width, height, and densityDpi must be " 389 context.getPackageName(), name, width, height, densityDpi, surface, flags); 420 int width, int height, int densityDpi) { 422 mDm.resizeVirtualDisplay(token, width, height, densityDpi);
|
/frameworks/base/services/core/java/com/android/server/display/ |
DisplayDeviceInfo.java | 145 public int densityDpi; 228 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080; 231 xDpi = densityDpi; 232 yDpi = densityDpi; 248 && densityDpi == other.densityDpi 275 densityDpi = other.densityDpi; 299 sb.append(", density ").append(densityDpi);
|
OverlayDisplayAdapter.java | 148 int densityDpi = Integer.parseInt(matcher.group(3), 10); 152 && densityDpi >= DisplayMetrics.DENSITY_LOW 153 && densityDpi <= DisplayMetrics.DENSITY_XXHIGH) { 163 + ", densityDpi=" + densityDpi + ", secure=" + secure); 166 width, height, densityDpi, gravity, secure, number)); 208 int densityDpi, boolean secure, int state, 216 mDensityDpi = densityDpi; 256 mInfo.densityDpi = mDensityDpi; 292 int height, int densityDpi, int gravity, boolean secure, int number) [all...] |
VirtualDisplayAdapter.java | 65 String name, int width, int height, int densityDpi, Surface surface, int flags) { 73 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags, 95 int width, int height, int densityDpi) { 98 device.resizeLocked(width, height, densityDpi); 187 String name, int width, int height, int densityDpi, Surface surface, int flags, 196 mDensityDpi = densityDpi; 259 public void resizeLocked(int width, int height, int densityDpi) { 260 if (mWidth != width || mHeight != height || mDensityDpi != densityDpi) { 265 mDensityDpi = densityDpi; 295 mInfo.densityDpi = mDensityDpi [all...] |
/cts/tests/tests/dpi/src/android/dpi/cts/ |
ConfigurationTest.java | 65 assertTrue("DisplayMetrics#densityDpi must be one of the DisplayMetrics.DENSITY_* values: " 66 + allowedDensities, allowedDensities.contains(metrics.densityDpi)); 69 (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT,
|
/frameworks/base/core/java/android/content/res/ |
Configuration.java | 536 * Default value for {@link #densityDpi} indicating that no width 542 * Value for {@link #densityDpi} for resources that scale to any density (vector drawables). 548 * Value for {@link #densityDpi} for resources that are not meant to be scaled. 560 public int densityDpi; 642 densityDpi = o.densityDpi; 695 if (densityDpi != DENSITY_DPI_UNDEFINED) { 696 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);
|
/frameworks/base/rs/java/android/renderscript/ |
Font.java | 161 int dpi = res.getDisplayMetrics().densityDpi; 185 int dpi = res.getDisplayMetrics().densityDpi; 209 int dpi = res.getDisplayMetrics().densityDpi;
|
/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);
|
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
RoundedBitmapDrawable.java | 103 setTargetDensity(metrics.densityDpi); 312 mTargetDensity = res.getDisplayMetrics().densityDpi;
|
/frameworks/base/core/java/android/app/ |
ActivityView.java | 118 mActivityContainer.setSurface(null, mWidth, mHeight, mMetrics.densityDpi); 121 mActivityContainer.setSurface(mSurface, mWidth, mHeight, mMetrics.densityDpi); 240 mActivityContainer.setSurface(mSurface, mWidth, mHeight, mMetrics.densityDpi); 309 mActivityContainer.setSurface(null, mWidth, mHeight, mMetrics.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; 354 config.densityDpi = density.getDpiValue();
|
/cts/tests/tests/app/src/android/app/cts/ |
ActivityManagerMemoryClassTest.java | 63 return metrics.densityDpi;
|