/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 36 DisplayMetrics dm = new DisplayMetrics(); in convertDpToPx() local 37 d.getRealMetrics(dm); in convertDpToPx() 39 return (int) Math.ceil(dp * dm.density); in convertDpToPx() 51 DisplayMetrics dm = new DisplayMetrics(); in getWidth() local 52 d.getRealMetrics(dm); in getWidth() 56 return dm.widthPixels; in getWidth() 58 return dm.heightPixels; in getWidth() 71 DisplayMetrics dm = new DisplayMetrics(); in getHeight() local 72 d.getRealMetrics(dm); in getHeight() 76 return dm.heightPixels; in getHeight() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/debug/ |
D | RotaryInputValueView.java | 60 DisplayMetrics dm = mContext.getResources().getDisplayMetrics(); in RotaryInputValueView() local 65 setTextSize(applyDimensionSp(TEXT_SIZE_SP, dm)); in RotaryInputValueView() 66 setPaddingRelative(applyDimensionSp(SIDE_PADDING_SP, dm), 0, in RotaryInputValueView() 67 applyDimensionSp(SIDE_PADDING_SP, dm), 0); in RotaryInputValueView() 100 private static int applyDimensionSp(int dimensionSp, DisplayMetrics dm) { in applyDimensionSp() argument 101 return (int) TypedValue.applyDimension(COMPLEX_UNIT_SP, dimensionSp, dm); in applyDimensionSp()
|
D | FocusEventDebugView.java | 389 final var dm = c.getResources().getDisplayMetrics(); in PressedKeyView() local 391 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_VIEW_SIDE_PADDING_DP, dm); in PressedKeyView() 394 dm); in PressedKeyView() 396 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_VIEW_MIN_WIDTH_DP, dm); in PressedKeyView() 398 (int) TypedValue.applyDimension(COMPLEX_UNIT_SP, KEY_VIEW_TEXT_SIZE_SP, dm); in PressedKeyView() 431 final var dm = c.getResources().getDisplayMetrics(); in PressedKeyContainer() local 433 (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, KEY_SEPARATION_MARGIN_DP, dm); in PressedKeyContainer()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 57 Watermark(DisplayContent dc, DisplayMetrics dm, String[] tokens, SurfaceControl.Transaction t) { in Watermark() argument 85 TypedValue.COMPLEX_UNIT_DIP, 20, dm); in Watermark() 96 TypedValue.COMPLEX_UNIT_PX, mTextWidth*2, dm); in Watermark() 98 TypedValue.COMPLEX_UNIT_PX, mTextHeight*3, dm); in Watermark() 100 TypedValue.COMPLEX_UNIT_PX, 0xb0000000, dm); in Watermark() 102 TypedValue.COMPLEX_UNIT_PX, 0x60ffffff, dm); in Watermark() 104 TypedValue.COMPLEX_UNIT_PX, 7, dm); in Watermark() 106 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark() 108 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
|
/frameworks/base/core/java/com/android/internal/display/ |
D | RefreshRateSettingsUtils.java | 44 final DisplayManager dm = context.getSystemService(DisplayManager.class); in findHighestRefreshRateForDefaultDisplay() local 45 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in findHighestRefreshRateForDefaultDisplay() 69 final DisplayManager dm = context.getSystemService(DisplayManager.class); in findHighestRefreshRateAmongAllDisplays() local 70 final Display[] displays = dm.getDisplays(DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED); in findHighestRefreshRateAmongAllDisplays()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayManagerShellCommand.java | 239 DisplayManager dm = mService.getContext().getSystemService(DisplayManager.class); in getDisplays() local 240 Display[] displays = dm.getDisplays(category); in getDisplays() 329 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setBrightness() local 330 dm.setBrightness(Display.DEFAULT_DISPLAY, brightness); in setBrightness() 502 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setMatchContentFrameRateUserPreference() local 506 dm.setRefreshRateSwitchingType(refreshRateSwitchingType); in setMatchContentFrameRateUserPreference() 512 final DisplayManager dm = context.getSystemService(DisplayManager.class); in getMatchContentFrameRateUserPreference() local 514 + dm.getMatchContentFrameRateUserPreference()); in getMatchContentFrameRateUserPreference() 536 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setUserDisabledHdrTypes() local 537 dm.setUserDisabledHdrTypes(userDisabledHdrTypes); in setUserDisabledHdrTypes() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BrightnessLimit.java | 44 DisplayManager dm = getSystemService(DisplayManager.class); in onClick() local 46 dm.setTemporaryBrightness(displayId, 0.0f); in onClick()
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
D | InputMethodManagerTest.java | 48 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testPrivateApiGetInstance() local 50 testContext.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in testPrivateApiGetInstance()
|
/frameworks/native/cmds/installd/ |
D | otapreopt_chroot.cpp | 121 auto& dm = dm::DeviceMapper::Instance(); in TryExtraMount() local 122 if (dm.GetState(partition_name) != dm::DmDeviceState::INVALID) { in TryExtraMount() 124 if (dm.GetDmDevicePathByName(partition_name, &path)) { in TryExtraMount()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 115 DisplayMetrics dm = res.getDisplayMetrics(); in onAttachedToWindow() local 116 int widthPixels = dm.widthPixels; in onAttachedToWindow() 117 int heightPixels = dm.heightPixels; in onAttachedToWindow()
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 431 final DisplayMetrics dm = new DisplayMetrics(); in getDisplayMetrics() local 435 displayInfo.getAppMetrics(dm, da); in getDisplayMetrics() 437 dm.setToDefaults(); in getDisplayMetrics() 439 return dm; in getDisplayMetrics() 449 final DisplayMetrics dm = new DisplayMetrics(); in getDisplayMetrics() local 453 displayInfo.getAppMetrics(dm, in getDisplayMetrics() 456 dm.setToDefaults(); in getDisplayMetrics() 458 return dm; in getDisplayMetrics() 461 private static void applyDisplayMetricsToConfiguration(@NonNull DisplayMetrics dm, in applyDisplayMetricsToConfiguration() argument 464 config.densityDpi = dm.densityDpi; in applyDisplayMetricsToConfiguration() [all …]
|
D | ActivityTaskManager.java | 263 DisplayMetrics dm = new DisplayMetrics(); in supportsSplitScreenMultiWindow() local 264 context.getDisplay().getRealMetrics(dm); in supportsSplitScreenMultiWindow() 266 int widthDp = (int) (dm.widthPixels / dm.density); in supportsSplitScreenMultiWindow() 267 int heightDp = (int) (dm.heightPixels / dm.density); in supportsSplitScreenMultiWindow()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ |
D | ShellTestCase.java | 51 final DisplayManager dm = context.getSystemService(DisplayManager.class); in shellSetup() local 54 context.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY))); in shellSetup()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesLocaleTest.java | 51 final DisplayMetrics dm = new DisplayMetrics(); in createResourcesWithApk() local 52 dm.setToDefaults(); in createResourcesWithApk() 53 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/ |
D | OneHandedTestCase.java | 58 final DisplayManager dm = getTestContext().getSystemService(DisplayManager.class); in setUpContext() local 59 mContext = getTestContext().createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in setUpContext()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | GestureNavigationSettingsObserver.java | 168 final DisplayMetrics dm = userRes.getDisplayMetrics(); in getUnscaledInset() local 170 com.android.internal.R.dimen.config_backGestureInset) / dm.density; in getUnscaledInset() 177 dm); in getUnscaledInset()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | SurfaceViewRequestReceiver.java | 72 DisplayManager dm = (DisplayManager) context.getSystemService(Context.DISPLAY_SERVICE); in onReceive() local 74 dm.getDisplay(SurfaceViewRequestUtils.getDisplayId(bundle)), in onReceive()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Painting.kt | 305 val dm = DisplayMetrics() in setupBitmaps() constant 306 display.getRealMetrics(dm) in setupBitmaps() 307 val w = dm.widthPixels in setupBitmaps() 308 val h = dm.heightPixels in setupBitmaps()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LetterboxConfigurationTest.java | 355 final DisplayMetrics dm = mock(DisplayMetrics.class); in test_evaluateThinLetterboxWhenDensityChanges() local 358 when(rs.getDisplayMetrics()).thenReturn(dm); in test_evaluateThinLetterboxWhenDensityChanges() 367 dm.density = 100; in test_evaluateThinLetterboxWhenDensityChanges() 389 dm.density = 150; in test_evaluateThinLetterboxWhenDensityChanges()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
D | TestHelper.java | 108 DisplayMetrics dm = mContext.getResources().getDisplayMetrics(); in build() local 110 (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, mWidthDP, dm), in build() 111 (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, mHeightDP, dm)); in build()
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeBackgroundService.java | 76 final DisplayManager dm = getSystemService(DisplayManager.class); in onCreate() local 77 final Display display = dm.getDisplay(DEFAULT_DISPLAY); in onCreate()
|
D | FakeApp.java | 104 final DisplayManager dm = getSystemService(DisplayManager.class); in onCreate() local 105 final Display defaultDisplay = dm.getDisplay(DEFAULT_DISPLAY); in onCreate()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipUtils.kt | 80 fun dpToPx(dpValue: Float, dm: DisplayMetrics?): Int { in dpToPx() 81 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpValue, dm).toInt() in dpToPx()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 225 final DisplayMetrics dm = getResources().getDisplayMetrics(); in onCreate() local 226 final float dp = dm.density; in onCreate() 227 final int minSide = Math.min(dm.widthPixels, dm.heightPixels); in onCreate()
|
/frameworks/base/services/tests/powerstatstests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/ |
D | TestService.java | 61 final DisplayManager dm = getSystemService(DisplayManager.class); in onCreate() local 62 final Display defaultDisplay = dm.getDisplay(Display.DEFAULT_DISPLAY); in onCreate()
|