/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 261 public int densityDpi; field in DisplayMetrics 334 densityDpi = o.densityDpi; in setTo() 351 densityDpi = DENSITY_DEVICE; in setToDefaults() 358 noncompatDensityDpi = densityDpi; in setToDefaults() 395 && densityDpi == other.densityDpi in equalsPhysical() 408 return widthPixels * heightPixels * densityDpi; in hashCode()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | DisplaySourceService.java | 89 final int densityDpi = content.getInt(); in onMessageReceived() local 92 && densityDpi >= 60 && densityDpi <= 640) { in onMessageReceived() 93 handleSinkAvailable(width, height, densityDpi); in onMessageReceived() 109 private void handleSinkAvailable(int width, int height, int densityDpi) { in handleSinkAvailable() argument 111 && mSinkDensityDpi == densityDpi) { in handleSinkAvailable() 117 + ", densityDpi=" + densityDpi); in handleSinkAvailable() 121 mSinkDensityDpi = densityDpi; in handleSinkAvailable() 181 public VirtualDisplayThread(int width, int height, int densityDpi) { in VirtualDisplayThread() argument 184 mDensityDpi = densityDpi; in VirtualDisplayThread()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceInfo.java | 215 public int densityDpi; field in DisplayDeviceInfo 303 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080; in setAssumedDensityForExternalDisplay() 306 xDpi = densityDpi; in setAssumedDensityForExternalDisplay() 307 yDpi = densityDpi; in setAssumedDensityForExternalDisplay() 340 || densityDpi != other.densityDpi in diff() 374 densityDpi = other.densityDpi; in copyFrom() 403 sb.append(", density ").append(densityDpi); in toString()
|
D | VirtualDisplayAdapter.java | 88 int width, int height, int densityDpi, Surface surface, int flags, String uniqueId) { in createVirtualDisplayLocked() argument 101 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags, in createVirtualDisplayLocked() 123 int width, int height, int densityDpi) { in resizeVirtualDisplayLocked() argument 126 device.resizeLocked(width, height, densityDpi); in resizeVirtualDisplayLocked() 220 String name, int width, int height, int densityDpi, Surface surface, int flags, in VirtualDisplayDevice() argument 230 mDensityDpi = densityDpi; in VirtualDisplayDevice() 303 public void resizeLocked(int width, int height, int densityDpi) { in resizeLocked() argument 304 if (mWidth != width || mHeight != height || mDensityDpi != densityDpi) { in resizeLocked() 310 mDensityDpi = densityDpi; in resizeLocked() 349 mInfo.densityDpi = mDensityDpi; in getDisplayDeviceInfoLocked()
|
D | OverlayDisplayAdapter.java | 173 int densityDpi = Integer.parseInt(modeMatcher.group(3), 10); in updateOverlayDisplayDevicesLocked() local 176 && densityDpi >= DisplayMetrics.DENSITY_LOW in updateOverlayDisplayDevicesLocked() 177 && densityDpi <= DisplayMetrics.DENSITY_XXXHIGH) { in updateOverlayDisplayDevicesLocked() 178 modes.add(new OverlayMode(width, height, densityDpi)); in updateOverlayDisplayDevicesLocked() 301 mInfo.densityDpi = rawMode.mDensityDpi; in getDisplayDeviceInfoLocked() 525 OverlayMode(int width, int height, int densityDpi) { in OverlayMode() argument 528 mDensityDpi = densityDpi; in OverlayMode()
|
D | OverlayDisplayWindow.java | 97 int width, int height, int densityDpi, int gravity, boolean secure, in OverlayDisplayWindow() argument 115 resize(width, height, densityDpi, false /* doLayout */); in OverlayDisplayWindow() 143 public void resize(int width, int height, int densityDpi) { in resize() argument 144 resize(width, height, densityDpi, true /* doLayout */); in resize() 147 private void resize(int width, int height, int densityDpi, boolean doLayout) { in resize() argument 150 mDensityDpi = densityDpi; in resize()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableWrapper.java | 144 final int densityDpi = r.getDisplayMetrics().densityDpi; in inflate() local 145 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in inflate() 172 final int densityDpi = t.getResources().getDisplayMetrics().densityDpi; in applyTheme() local 173 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in applyTheme() 498 density = res.getDisplayMetrics().densityDpi; in DrawableWrapperState()
|
D | RippleComponent.java | 52 public final void setup(float maxRadius, int densityDpi) { in setup() argument 60 mDensityScale = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in setup()
|
D | InsetDrawable.java | 371 final int densityDpi = res.getDisplayMetrics().densityDpi; in newDrawable() local 372 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in newDrawable()
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | HighQualityShadowPainter.java | 38 Canvas canvas, float alpha, float densityDpi) { in paintRectShadow() argument 40 if (!validate(elevation, densityDpi)) { in paintRectShadow() 73 canvas, densityDpi, width, height, alpha, rectOriginal, radius); in paintRectShadow() 81 private static boolean validate(float elevation, float densityDpi) { in validate() argument 84 (densityDpi / DisplayMetrics.DENSITY_DEFAULT); in validate() 140 float densityDpi, int width, int height, float alpha, Rect shadowCasterOutline, in paintSpotShadow() argument 144 …float lightZHeightPx = ShadowConstants.SPOT_SHADOW_LIGHT_Z_HEIGHT_DP * (densityDpi / DisplayMetric… in paintSpotShadow()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 50 mDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 54 mDisplayMetrics.noncompatDensityDpi = mDisplayMetrics.densityDpi; in setUp() 154 expectedConfig.densityDpi = mDisplayMetrics.densityDpi; in testUpdateConfigurationUpdatesAllAssetManagers() 218 config1.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 238 expectedConfig1.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 246 expectedConfig2.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManager.java | 586 int width, int height, int densityDpi, @Nullable Surface surface, int flags) { in createVirtualDisplay() argument 587 return createVirtualDisplay(name, width, height, densityDpi, surface, flags, null, null); in createVirtualDisplay() 634 int width, int height, int densityDpi, @Nullable Surface surface, int flags, in createVirtualDisplay() argument 636 return createVirtualDisplay(null /* projection */, name, width, height, densityDpi, surface, in createVirtualDisplay() 642 @NonNull String name, int width, int height, int densityDpi, @Nullable Surface surface, in createVirtualDisplay() argument 646 name, width, height, densityDpi, surface, flags, callback, handler, uniqueId); in createVirtualDisplay()
|
D | VirtualDisplay.java | 89 public void resize(int width, int height, int densityDpi) { in resize() argument 90 mGlobal.resizeVirtualDisplay(mToken, width, height, densityDpi); in resize()
|
D | IDisplayManager.aidl | 76 int width, int height, int densityDpi, in Surface surface, int flags, String uniqueId); in createVirtualDisplay() argument 80 int width, int height, int densityDpi); in resizeVirtualDisplay() argument
|
D | DisplayManagerGlobal.java | 446 String name, int width, int height, int densityDpi, Surface surface, int flags, in createVirtualDisplay() argument 451 if (width <= 0 || height <= 0 || densityDpi <= 0) { in createVirtualDisplay() 461 context.getPackageName(), name, width, height, densityDpi, surface, flags, in createVirtualDisplay() 494 int width, int height, int densityDpi) { in resizeVirtualDisplay() argument 496 mDm.resizeVirtualDisplay(token, width, height, densityDpi); in resizeVirtualDisplay()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 780 public int densityDpi; field in Configuration 931 densityDpi = o.densityDpi; in setTo() 987 if (densityDpi != DENSITY_DPI_UNDEFINED) { in toString() 988 sb.append(" "); sb.append(densityDpi); sb.append("dpi"); in toString() 1128 protoOutputStream.write(DENSITY_DPI, densityDpi); in writeToProto() 1283 densityDpi = protoInputStream.readInt(DENSITY_DPI); in readFromProto() 1387 densityDpi = DENSITY_DPI_UNDEFINED; in setToDefaults() 1563 if (delta.densityDpi != DENSITY_DPI_UNDEFINED && in updateFrom() 1564 densityDpi != delta.densityDpi) { in updateFrom() 1566 densityDpi = delta.densityDpi; in updateFrom() [all …]
|
D | CompatibilityInfo.java | 474 inoutDm.densityDpi = (int)((inoutDm.noncompatDensityDpi * invertedRatio) + .5f); in applyToDisplayMetrics() 495 inoutConfig.densityDpi = displayDensity; in applyToConfiguration() 498 inoutConfig.densityDpi = (int)((inoutConfig.densityDpi * invertedRatio) + .5f); in applyToConfiguration()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | InterestingConfigChanges.java | 41 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig() 43 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TestUtils.java | 35 config.densityDpi = 10; in config() 45 overrideConfig.densityDpi = 30; in mergedConfig()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Font.java | 163 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile() 187 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset() 211 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource()
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | ViewGroup_Delegate.java | 89 float densityDpi = bridgeContext.getResources().getDisplayMetrics().densityDpi; in drawShadow() local 91 parent, outline, elevation, canvas, child.getAlpha(), densityDpi); in drawShadow()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 40 density = currentConfig.densityDpi 63 val density = newConfig.densityDpi in onConfigurationChanged()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 112 metrics.densityDpi = metrics.noncompatDensityDpi = in init() 116 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init() 368 config.densityDpi = density.getDpiValue(); in getConfiguration()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | CornerHandleView.java | 122 return dp * ((float) context.getResources().getDisplayMetrics().densityDpi in convertDpToPixel() 128 / ((float) context.getResources().getDisplayMetrics().densityDpi); in convertPixelToDp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleIconFactory.java | 30 super(context, context.getResources().getConfiguration().densityDpi, in BubbleIconFactory()
|