/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 144 public int densityDpi; field in DisplayMetrics 210 densityDpi = o.densityDpi; in setTo() 227 densityDpi = DENSITY_DEVICE; in setToDefaults() 234 noncompatDensityDpi = densityDpi; in setToDefaults() 271 && densityDpi == other.densityDpi in equalsPhysical() 284 return widthPixels * heightPixels * densityDpi; in hashCode()
|
/frameworks/base/services/java/com/android/server/display/ |
D | DisplayDeviceInfo.java | 124 public int densityDpi; field in DisplayDeviceInfo 188 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080; in setAssumedDensityForExternalDisplay() 191 xDpi = densityDpi; in setAssumedDensityForExternalDisplay() 192 yDpi = densityDpi; in setAssumedDensityForExternalDisplay() 206 && densityDpi == other.densityDpi in equals() 228 densityDpi = other.densityDpi; in copyFrom() 247 sb.append("density ").append(densityDpi); in toString()
|
D | OverlayDisplayAdapter.java | 145 int densityDpi = Integer.parseInt(matcher.group(3), 10); in updateOverlayDisplayDevicesLocked() local 149 && densityDpi >= DisplayMetrics.DENSITY_LOW in updateOverlayDisplayDevicesLocked() 150 && densityDpi <= DisplayMetrics.DENSITY_XXHIGH) { in updateOverlayDisplayDevicesLocked() 160 + ", densityDpi=" + densityDpi + ", secure=" + secure); in updateOverlayDisplayDevicesLocked() 163 width, height, densityDpi, gravity, secure)); in updateOverlayDisplayDevicesLocked() 202 int width, int height, float refreshRate, int densityDpi, boolean secure, in OverlayDisplayDevice() argument 209 mDensityDpi = densityDpi; in OverlayDisplayDevice() 241 mInfo.densityDpi = mDensityDpi; in getDisplayDeviceInfoLocked() 273 int width, int height, int densityDpi, int gravity, boolean secure) { in OverlayDisplayHandle() argument 277 mDensityDpi = densityDpi; in OverlayDisplayHandle()
|
D | VirtualDisplayAdapter.java | 52 String name, int width, int height, int densityDpi, Surface surface, int flags) { in createVirtualDisplayLocked() argument 56 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags); in createVirtualDisplayLocked() 110 String name, int width, int height, int densityDpi, Surface surface, int flags) { in VirtualDisplayDevice() argument 118 mDensityDpi = densityDpi; in VirtualDisplayDevice() 155 mInfo.densityDpi = mDensityDpi; in getDisplayDeviceInfoLocked()
|
D | HeadlessDisplayAdapter.java | 61 mInfo.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in getDisplayDeviceInfoLocked()
|
D | OverlayDisplayWindow.java | 96 int width, int height, int densityDpi, int gravity, boolean secure, in OverlayDisplayWindow() argument 102 mDensityDpi = densityDpi; in OverlayDisplayWindow()
|
D | LocalDisplayAdapter.java | 152 mInfo.densityDpi = (int)(mPhys.density * 160 + 0.5f); in getDisplayDeviceInfoLocked()
|
D | LogicalDisplay.java | 212 mBaseDisplayInfo.logicalDensityDpi = deviceInfo.densityDpi; in updateLocked()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | DisplaySourceService.java | 88 final int densityDpi = content.getInt(); in onMessageReceived() local 91 && densityDpi >= 60 && densityDpi <= 640) { in onMessageReceived() 92 handleSinkAvailable(width, height, densityDpi); in onMessageReceived() 108 private void handleSinkAvailable(int width, int height, int densityDpi) { in handleSinkAvailable() argument 110 && mSinkDensityDpi == densityDpi) { in handleSinkAvailable() 116 + ", densityDpi=" + densityDpi); in handleSinkAvailable() 120 mSinkDensityDpi = densityDpi; in handleSinkAvailable() 180 public VirtualDisplayThread(int width, int height, int densityDpi) { in VirtualDisplayThread() argument 183 mDensityDpi = densityDpi; in VirtualDisplayThread()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 534 public int densityDpi; field in Configuration 616 densityDpi = o.densityDpi; in setTo() 669 if (densityDpi != DENSITY_DPI_UNDEFINED) { in toString() 670 sb.append(" "); sb.append(densityDpi); sb.append("dpi"); in toString() 780 densityDpi = DENSITY_DPI_UNDEFINED; in setToDefaults() 907 if (delta.densityDpi != DENSITY_DPI_UNDEFINED && in updateFrom() 908 densityDpi != delta.densityDpi) { in updateFrom() 910 densityDpi = delta.densityDpi; in updateFrom() 1030 if (delta.densityDpi != DENSITY_DPI_UNDEFINED in diff() 1031 && densityDpi != delta.densityDpi) { in diff() [all …]
|
D | CompatibilityInfo.java | 442 inoutDm.densityDpi = (int)((inoutDm.noncompatDensityDpi * invertedRatio) + .5f); in applyToDisplayMetrics() 463 inoutConfig.densityDpi = displayDensity; in applyToConfiguration() 466 inoutConfig.densityDpi = (int)((inoutConfig.densityDpi * invertedRatio) + .5f); in applyToConfiguration()
|
D | Resources.java | 748 value.density = mMetrics.densityDpi; in getDrawableForDensity() 750 value.density = (value.density * mMetrics.densityDpi) / density; in getDrawableForDensity() 1546 int density = config.densityDpi; in updateConfiguration() 1564 if (mConfiguration.densityDpi != Configuration.DENSITY_DPI_UNDEFINED) { in updateConfiguration() 1565 mMetrics.densityDpi = mConfiguration.densityDpi; in updateConfiguration() 1566 mMetrics.density = mConfiguration.densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in updateConfiguration() 1596 mConfiguration.densityDpi, mConfiguration.keyboard, in updateConfiguration() 1970 mConfiguration.densityDpi = sPreloadedDensity; in startPreloading()
|
/frameworks/base/graphics/java/android/renderscript/ |
D | Font.java | 164 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile() 188 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset() 212 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource()
|
D | RenderScriptGL.java | 188 int dpi = ctx.getResources().getDisplayMetrics().densityDpi; in RenderScriptGL()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 107 metrics.densityDpi = metrics.noncompatDensityDpi = in init() 111 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init() 354 config.densityDpi = density.getDpiValue(); in getConfiguration()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManager.java | 441 int width, int height, int densityDpi, Surface surface, int flags) { in createVirtualDisplay() argument 443 name, width, height, densityDpi, surface, flags); in createVirtualDisplay()
|
D | IDisplayManager.aidl | 63 String name, int width, int height, int densityDpi, in Surface surface, int flags); in createVirtualDisplay() argument
|
D | DisplayManagerGlobal.java | 372 int width, int height, int densityDpi, Surface surface, int flags) { in createVirtualDisplay() argument 376 if (width <= 0 || height <= 0 || densityDpi <= 0) { in createVirtualDisplay() 388 name, width, height, densityDpi, surface, flags); in createVirtualDisplay()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 278 if (mOverrideConfig.densityDpi == Configuration.DENSITY_DPI_UNDEFINED) { in onCreateOptionsMenu() 279 mOverrideConfig.densityDpi = (getApplicationContext().getResources() in onCreateOptionsMenu() 280 .getConfiguration().densityDpi*2)/3; in onCreateOptionsMenu() 282 mOverrideConfig.densityDpi = Configuration.DENSITY_DPI_UNDEFINED; in onCreateOptionsMenu()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 54 public DisplaySinkService(Context context, Transport transport, int densityDpi) { in DisplaySinkService() argument 57 mDensityDpi = densityDpi; in DisplaySinkService()
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 115 config.densityDpi = dm.densityDpi; in applyNonDefaultDisplayMetricsToConfigurationLocked()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 812 bm.mDensity = display.densityDpi; in createBitmap() 886 bm.mDensity = display.densityDpi; in createBitmap() 1095 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi); in getScaledWidth() 1103 return scaleFromDensity(getHeight(), mDensity, metrics.densityDpi); in getScaledHeight()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 128 mTargetDensity = res != null ? res.getDisplayMetrics().densityDpi in setNinePatchState() 165 setTargetDensity(metrics.densityDpi); in setTargetDensity()
|
D | BitmapDrawable.java | 228 setTargetDensity(metrics.densityDpi); in setTargetDensity() 685 mTargetDensity = res.getDisplayMetrics().densityDpi; in BitmapDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentTasksLoader.java | 97 mIconDpi = res.getDisplayMetrics().densityDpi; in RecentTasksLoader() 102 int iconSize = (int) (defaultIconSize * mIconDpi / res.getDisplayMetrics().densityDpi); in RecentTasksLoader()
|