Home
last modified time | relevance | path

Searched refs:densityDpi (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/core/java/android/util/
DDisplayMetrics.java261 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/
DDisplaySourceService.java89 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/
DDisplayDeviceInfo.java215 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()
DVirtualDisplayAdapter.java88 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()
DOverlayDisplayAdapter.java173 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()
DOverlayDisplayWindow.java97 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/
DDrawableWrapper.java144 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()
DRippleComponent.java52 public final void setup(float maxRadius, int densityDpi) { in setup() argument
60 mDensityScale = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in setup()
DInsetDrawable.java371 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/
DHighQualityShadowPainter.java38 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/
DResourcesManagerTest.java50 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/
DDisplayManager.java586 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()
DVirtualDisplay.java89 public void resize(int width, int height, int densityDpi) { in resize() argument
90 mGlobal.resizeVirtualDisplay(mToken, width, height, densityDpi); in resize()
DIDisplayManager.aidl76 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
DDisplayManagerGlobal.java446 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/
DConfiguration.java780 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 …]
DCompatibilityInfo.java474 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/
DInterestingConfigChanges.java41 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
43 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java35 config.densityDpi = 10; in config()
45 overrideConfig.densityDpi = 30; in mergedConfig()
/frameworks/base/rs/java/android/renderscript/
DFont.java163 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/
DViewGroup_Delegate.java89 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/
DConfigurationControllerImpl.kt40 density = currentConfig.densityDpi
63 val density = newConfig.densityDpi in onConfigurationChanged()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java112 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/
DCornerHandleView.java122 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/
DBubbleIconFactory.java30 super(context, context.getResources().getConfiguration().densityDpi, in BubbleIconFactory()

1234