/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/core/java/android/util/ |
D | DisplayMetrics.java | 332 public int densityDpi; field in DisplayMetrics 420 densityDpi = o.densityDpi; in setTo() 438 densityDpi = DENSITY_DEVICE; in setToDefaults() 445 noncompatDensityDpi = densityDpi; in setToDefaults() 483 && densityDpi == other.densityDpi in equalsPhysical() 496 return widthPixels * heightPixels * densityDpi; in hashCode()
|
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/ |
D | LargeScreenSettings.java | 45 context.getResources().getConfiguration().densityDpi); in isLargeScreen() 49 private static float dpiFromPx(float size, int densityDpi) { in dpiFromPx() argument 50 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
|
/frameworks/base/core/java/android/app/ |
D | ConfigurationController.java | 102 final int displayDensity = config.densityDpi; in applyCompatConfiguration() 179 updateDefaultDensity(config.densityDpi); in handleConfigurationChangedInner() 265 void updateDefaultDensity(int densityDpi) { in updateDefaultDensity() argument 267 && densityDpi != Configuration.DENSITY_DPI_UNDEFINED in updateDefaultDensity() 268 && densityDpi != DisplayMetrics.DENSITY_DEVICE) { in updateDefaultDensity() 269 DisplayMetrics.DENSITY_DEVICE = densityDpi; in updateDefaultDensity() 270 Bitmap.setDefaultDensity(densityDpi); in updateDefaultDensity() 276 return mConfiguration.densityDpi; in getCurDefaultDisplayDpi()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowContextListenerControllerTests.java | 162 config1.densityDpi = 100; in testRegisterWindowContextListenerClientConfigPropagation() 169 assertEquals(config1.densityDpi, clientToken.mConfiguration.densityDpi); in testRegisterWindowContextListenerClientConfigPropagation() 178 config2.densityDpi = 200; in testRegisterWindowContextListenerClientConfigPropagation() 185 assertEquals(config2.densityDpi, clientToken.mConfiguration.densityDpi); in testRegisterWindowContextListenerClientConfigPropagation() 192 assertEquals(config1.densityDpi, clientToken.mConfiguration.densityDpi); in testRegisterWindowContextListenerClientConfigPropagation() 299 config1.densityDpi = 100; in testConfigUpdateForSuspendedWindowContext() 334 config1.densityDpi = 100; in testReportConfigUpdateForSuspendedWindowProviderService()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceInfo.java | 337 public int densityDpi; field in DisplayDeviceInfo 465 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080; in setAssumedDensityForExternalDisplay() 468 xDpi = densityDpi; in setAssumedDensityForExternalDisplay() 469 yDpi = densityDpi; in setAssumedDensityForExternalDisplay() 521 || densityDpi != other.densityDpi in diff() 565 densityDpi = other.densityDpi; in copyFrom() 608 sb.append(", density ").append(densityDpi); in toString()
|
D | OverlayDisplayWindow.java | 100 int width, int height, int densityDpi, int gravity, boolean secure, in OverlayDisplayWindow() argument 119 resize(width, height, densityDpi, false /* doLayout */); in OverlayDisplayWindow() 147 public void resize(int width, int height, int densityDpi) { in resize() argument 148 resize(width, height, densityDpi, true /* doLayout */); in resize() 151 private void resize(int width, int height, int densityDpi, boolean doLayout) { in resize() argument 154 mDensityDpi = densityDpi; in resize()
|
D | OverlayDisplayAdapter.java | 219 int densityDpi = Integer.parseInt(modeMatcher.group(3), 10); in updateOverlayDisplayDevicesLocked() local 222 && densityDpi >= DisplayMetrics.DENSITY_LOW in updateOverlayDisplayDevicesLocked() 223 && densityDpi <= DisplayMetrics.DENSITY_XXXHIGH) { in updateOverlayDisplayDevicesLocked() 224 modes.add(new OverlayMode(width, height, densityDpi)); in updateOverlayDisplayDevicesLocked() 349 mInfo.densityDpi = rawMode.mDensityDpi; in getDisplayDeviceInfoLocked() 580 OverlayMode(int width, int height, int densityDpi) { in OverlayMode() argument 583 mDensityDpi = densityDpi; in OverlayMode()
|
D | VirtualDisplayAdapter.java | 163 int width, int height, int densityDpi) { in resizeVirtualDisplayLocked() argument 168 device.resizeLocked(width, height, densityDpi); in resizeVirtualDisplayLocked() 422 public void resizeLocked(int width, int height, int densityDpi) { in resizeLocked() argument 423 if (mWidth != width || mHeight != height || mDensityDpi != densityDpi) { in resizeLocked() 429 mDensityDpi = densityDpi; in resizeLocked() 472 mInfo.densityDpi = mDensityDpi; in getDisplayDeviceInfoLocked()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableWrapper.java | 145 final int densityDpi = r.getDisplayMetrics().densityDpi; in inflate() local 146 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in inflate() 173 final int densityDpi = t.getResources().getDisplayMetrics().densityDpi; in applyTheme() local 174 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in applyTheme() 505 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImplTest.kt | 79 config.densityDpi = 12 in configChanged_listenerNotified() 86 config.densityDpi = 20 in configChanged_listenerNotified() 91 assertThat(listener.changedConfig?.densityDpi).isEqualTo(20) in configChanged_listenerNotified() 98 config.densityDpi = 12 in densityChanged_listenerNotified() 104 config.densityDpi = 20 in densityChanged_listenerNotified() 296 config.densityDpi = 14 in multipleUpdates_listenerNotifiedOfAll() 304 config.densityDpi = 20 in multipleUpdates_listenerNotifiedOfAll()
|
/frameworks/base/tests/InputScreenshotTest/src/android/input/screenshot/ |
D | DefaultDeviceEmulationSpec.kt | 65 densityDpi = 560, 73 densityDpi = 320,
|
/frameworks/base/core/java/android/hardware/display/ |
D | VirtualDisplay.java | 95 public void resize(int width, int height, int densityDpi) { in resize() argument 96 mGlobal.resizeVirtualDisplay(mToken, width, height, densityDpi); in resize()
|
D | VirtualDisplayConfig.java | 66 @IntRange(from = 1) int densityDpi, in VirtualDisplayConfig() 78 mDensityDpi = densityDpi; in VirtualDisplayConfig() 324 @IntRange(from = 1) int densityDpi) { in Builder() 334 if (densityDpi <= 0) { in Builder() 340 mDensityDpi = densityDpi; in Builder()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 948 public int densityDpi; field in Configuration 1110 densityDpi = o.densityDpi; in setTo() 1175 if (densityDpi != DENSITY_DPI_UNDEFINED) { in toString() 1176 sb.append(" "); sb.append(densityDpi); sb.append("dpi"); in toString() 1322 protoOutputStream.write(DENSITY_DPI, densityDpi); in dumpDebug() 1479 densityDpi = protoInputStream.readInt(DENSITY_DPI); in readFromProto() 1589 densityDpi = DENSITY_DPI_UNDEFINED; in setToDefaults() 1767 if (delta.densityDpi != DENSITY_DPI_UNDEFINED && in updateFrom() 1768 densityDpi != delta.densityDpi) { in updateFrom() 1770 densityDpi = delta.densityDpi; in updateFrom() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/ |
D | DisplayStateRepository.kt | 136 context.resources.configuration.densityDpi in <lambda>() 146 private fun dpiFromPx(size: Float, densityDpi: Int): Float { in dpiFromPx() 147 val densityRatio = densityDpi.toFloat() / DisplayMetrics.DENSITY_DEFAULT in dpiFromPx()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/ |
D | DisplayUtils.kt | 91 val densityRatio = displayMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT.toFloat() in convertPixelToDp() 105 val densityRatio = displayMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT.toFloat() in convertDpToPixel()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | BubbleIconFactory.java | 40 super(context, context.getResources().getConfiguration().densityDpi, iconSize); in BubbleIconFactory() 45 context.getResources().getConfiguration().densityDpi, in BubbleIconFactory() 56 int density = context.getResources().getConfiguration().densityDpi; in getBubbleDrawable()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Font.java | 165 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile() 189 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset() 213 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | Utilities.java | 150 resources.getConfiguration().densityDpi); in isLargeScreen() 154 public static float dpiFromPx(float size, int densityDpi) { in dpiFromPx() argument 155 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/sysui/ |
D | ShellControllerTest.java | 272 newConfig.densityDpi = 200; in testAddConfigurationChangeListener_ensureCallback() 283 newConfig.densityDpi = 200; in testDoubleAddConfigurationChangeListener_ensureSingleCallback() 294 newConfig.densityDpi = 200; in testAddRemoveConfigurationChangeListener_ensureNoCallback() 306 newConfig.densityDpi = 200; in testMultipleConfigurationChangeListeners() 325 newConfig.densityDpi = 200; in testRemoveListenerDuringCallback() 334 newConfig.densityDpi = 200; in testDensityChangeCallback()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/ |
D | TaskPreviewSizeProviderTest.kt | 136 val densityDpi = minDimension * DENSITY_DEFAULT / targetSmallestWidthDpi in givenDisplay() constant 139 configuration.densityDpi = densityDpi in givenDisplay()
|
/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
D | NavigationBarView.java | 176 final boolean densityChange = oldConfig.densityDpi != mConfiguration.densityDpi; in updateIcons() 350 if (mTmpLastConfiguration.densityDpi != mConfiguration.densityDpi in onConfigurationChanged()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 75 defaultDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 81 defaultDisplayMetrics.noncompatDensityDpi = defaultDisplayMetrics.densityDpi; in setUp() 208 expectedConfig.densityDpi = mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).densityDpi; in testUpdateConfigurationUpdatesAllAssetManagers() 275 config1.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 295 expectedConfig1.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 303 expectedConfig2.densityDpi = 280; in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
|