Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/util/
DDisplayMetrics.java144 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/
DDisplayDeviceInfo.java124 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()
DOverlayDisplayAdapter.java145 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()
DVirtualDisplayAdapter.java52 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()
DHeadlessDisplayAdapter.java61 mInfo.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in getDisplayDeviceInfoLocked()
DOverlayDisplayWindow.java96 int width, int height, int densityDpi, int gravity, boolean secure, in OverlayDisplayWindow() argument
102 mDensityDpi = densityDpi; in OverlayDisplayWindow()
DLocalDisplayAdapter.java152 mInfo.densityDpi = (int)(mPhys.density * 160 + 0.5f); in getDisplayDeviceInfoLocked()
DLogicalDisplay.java212 mBaseDisplayInfo.logicalDensityDpi = deviceInfo.densityDpi; in updateLocked()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java88 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/
DConfiguration.java534 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 …]
DCompatibilityInfo.java442 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()
DResources.java748 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/
DFont.java164 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile()
188 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset()
212 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource()
DRenderScriptGL.java188 int dpi = ctx.getResources().getDisplayMetrics().densityDpi; in RenderScriptGL()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java107 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/
DDisplayManager.java441 int width, int height, int densityDpi, Surface surface, int flags) { in createVirtualDisplay() argument
443 name, width, height, densityDpi, surface, flags); in createVirtualDisplay()
DIDisplayManager.aidl63 String name, int width, int height, int densityDpi, in Surface surface, int flags); in createVirtualDisplay() argument
DDisplayManagerGlobal.java372 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/
DActivityTestMain.java278 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/
DDisplaySinkService.java54 public DisplaySinkService(Context context, Transport transport, int densityDpi) { in DisplaySinkService() argument
57 mDensityDpi = densityDpi; in DisplaySinkService()
/frameworks/base/core/java/android/app/
DResourcesManager.java115 config.densityDpi = dm.densityDpi; in applyNonDefaultDisplayMetricsToConfigurationLocked()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java812 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/
DNinePatchDrawable.java128 mTargetDensity = res != null ? res.getDisplayMetrics().densityDpi in setNinePatchState()
165 setTargetDensity(metrics.densityDpi); in setTargetDensity()
DBitmapDrawable.java228 setTargetDensity(metrics.densityDpi); in setTargetDensity()
685 mTargetDensity = res.getDisplayMetrics().densityDpi; in BitmapDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentTasksLoader.java97 mIconDpi = res.getDisplayMetrics().densityDpi; in RecentTasksLoader()
102 int iconSize = (int) (defaultIconSize * mIconDpi / res.getDisplayMetrics().densityDpi); in RecentTasksLoader()

12