Home
last modified time | relevance | path

Searched refs:dm (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java34 DisplayMetrics dm = new DisplayMetrics(); in convertDpToPx() local
35 d.getRealMetrics(dm); in convertDpToPx()
37 return (int) Math.ceil(dp * dm.density); in convertDpToPx()
49 DisplayMetrics dm = new DisplayMetrics(); in getWidth() local
50 d.getRealMetrics(dm); in getWidth()
54 return dm.widthPixels; in getWidth()
56 return dm.heightPixels; in getWidth()
69 DisplayMetrics dm = new DisplayMetrics(); in getHeight() local
70 d.getRealMetrics(dm); in getHeight()
74 return dm.heightPixels; in getHeight()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java55 Watermark(DisplayContent dc, DisplayMetrics dm, String[] tokens) { in Watermark() argument
86 TypedValue.COMPLEX_UNIT_DIP, 20, dm); in Watermark()
97 TypedValue.COMPLEX_UNIT_PX, mTextWidth*2, dm); in Watermark()
99 TypedValue.COMPLEX_UNIT_PX, mTextHeight*3, dm); in Watermark()
101 TypedValue.COMPLEX_UNIT_PX, 0xb0000000, dm); in Watermark()
103 TypedValue.COMPLEX_UNIT_PX, 0x60ffffff, dm); in Watermark()
105 TypedValue.COMPLEX_UNIT_PX, 7, dm); in Watermark()
107 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
109 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
DPinnedStackController.java588 private int dpToPx(float dpValue, DisplayMetrics dm) { in dpToPx() argument
589 return (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, dpValue, dm); in dpToPx()
/frameworks/base/core/java/android/app/
DResourcesManager.java220 DisplayMetrics dm = new DisplayMetrics(); in getDisplayMetrics() local
223 display.getMetrics(dm); in getDisplayMetrics()
225 dm.setToDefaults(); in getDisplayMetrics()
227 return dm; in getDisplayMetrics()
231 @NonNull DisplayMetrics dm, @NonNull Configuration config) { in applyNonDefaultDisplayMetricsToConfiguration()
233 config.densityDpi = dm.densityDpi; in applyNonDefaultDisplayMetricsToConfiguration()
234 config.screenWidthDp = (int) (dm.widthPixels / dm.density); in applyNonDefaultDisplayMetricsToConfiguration()
235 config.screenHeightDp = (int) (dm.heightPixels / dm.density); in applyNonDefaultDisplayMetricsToConfiguration()
237 if (dm.widthPixels > dm.heightPixels) { in applyNonDefaultDisplayMetricsToConfiguration()
284 final DisplayManagerGlobal dm = DisplayManagerGlobal.getInstance(); in getAdjustedDisplay() local
[all …]
DPresentation.java299 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid() local
300 mDisplay.getMetrics(dm); in isConfigurationStillValid()
301 return dm.equalsPhysical(getResources().getDisplayMetrics()); in isConfigurationStillValid()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java58 final DisplayMetrics dm = new DisplayMetrics(); in testScaleGestureDetector() local
61 wm.getDefaultDisplay().getMetrics(dm); in testScaleGestureDetector()
62 final int displayWidth = dm.widthPixels; in testScaleGestureDetector()
63 final int displayHeight = dm.heightPixels; in testScaleGestureDetector()
/frameworks/native/cmds/installd/
Dotapreopt_chroot.cpp92 auto& dm = dm::DeviceMapper::Instance(); in TryExtraMount() local
93 if (dm.GetState(partition_name) != dm::DmDeviceState::INVALID) { in TryExtraMount()
95 if (dm.GetDmDevicePathByName(partition_name, &path)) { in TryExtraMount()
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
DThemePreviewLayout.java70 DisplayMetrics dm = getResources().getDisplayMetrics(); in ThemePreviewLayout() local
79 dm); in ThemePreviewLayout()
82 dm); in ThemePreviewLayout()
85 dm); in ThemePreviewLayout()
88 dm); in ThemePreviewLayout()
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java102 DisplayManager dm = (DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE); in createVirtualDisplay() local
104 return dm.createVirtualDisplay(this, name, width, height, dpi, surface, in createVirtualDisplay()
136 DisplayManager dm = (DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE); in createVirtualDisplay() local
137 return dm.createVirtualDisplay(this, name, width, height, dpi, surface, flags, callback, in createVirtualDisplay()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java48 final DisplayMetrics dm = new DisplayMetrics(); in createResourcesWithApk() local
49 dm.setToDefaults(); in createResourcesWithApk()
50 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk()
/frameworks/base/core/tests/coretests/src/android/os/
DBrightnessLimit.java44 DisplayManager dm = getSystemService(DisplayManager.class); in onClick() local
45 dm.setTemporaryBrightness(0); in onClick()
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java115 DisplayMetrics dm = res.getDisplayMetrics(); in onAttachedToWindow() local
116 int widthPixels = dm.widthPixels; in onAttachedToWindow()
117 int heightPixels = dm.heightPixels; in onAttachedToWindow()
DKeyboard.java567 DisplayMetrics dm = context.getResources().getDisplayMetrics(); in Keyboard() local
568 mDisplayWidth = dm.widthPixels; in Keyboard()
569 mDisplayHeight = dm.heightPixels; in Keyboard()
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/
DDexMetadataHelperTest.java206 File dm = createDexMetadataFile("install_split_base.apk"); in testPackageSizeWithDmFile() local
210 Assert.assertEquals(dm.length(), DexMetadataHelper.getPackageDexMetadataSize(pkg)); in testPackageSizeWithDmFile()
217 File dm = createDexMetadataFile("install_split_base.apk"); in testPackageSizeWithPartialPackageLite() local
222 Assert.assertEquals(dm.length(), DexMetadataHelper.getPackageDexMetadataSize(pkgLite)); in testPackageSizeWithPartialPackageLite()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPainting.kt305 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/tests/UiBench/src/com/android/test/uibench/leanback/
DTestHelper.java108 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/core/java/android/content/res/
DCompatibilityInfo.java510 public static float computeCompatibleScaling(DisplayMetrics dm, DisplayMetrics outDm) { in computeCompatibleScaling() argument
511 final int width = dm.noncompatWidthPixels; in computeCompatibleScaling()
512 final int height = dm.noncompatHeightPixels; in computeCompatibleScaling()
521 int newShortSize = (int)(DEFAULT_NORMAL_SHORT_DIMENSION * dm.density + 0.5f); in computeCompatibleScaling()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockManager.java155 DisplayMetrics dm = res.getDisplayMetrics(); in ClockManager() local
156 mWidth = dm.widthPixels; in ClockManager()
157 mHeight = dm.heightPixels; in ClockManager()
/frameworks/base/media/java/android/media/
DRemoteController.java132 final DisplayMetrics dm = context.getResources().getDisplayMetrics(); in RemoteController() local
133 mMaxBitmapDimension = Math.max(dm.widthPixels, dm.heightPixels); in RemoteController()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenDecorWindowTests.java340 final DisplayManager dm = mContext.getSystemService(DisplayManager.class); in createDisplay() local
342 final Display defaultDisplay = dm.getDisplay(DEFAULT_DISPLAY); in createDisplay()
350 final VirtualDisplay display = dm.createVirtualDisplay(name, displayInfo.logicalWidth, in createDisplay()
DTaskPositionerTests.java76 final DisplayMetrics dm = new DisplayMetrics(); in setUp() local
77 display.getMetrics(dm); in setUp()
80 mMinVisibleWidth = dipToPixel(MINIMUM_VISIBLE_WIDTH_IN_DP, dm); in setUp()
81 mMinVisibleHeight = dipToPixel(MINIMUM_VISIBLE_HEIGHT_IN_DP, dm); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java275 DisplayManager dm = (DisplayManager) phone.getContext().getSystemService( in DeviceStateMonitor() local
277 dm.registerDisplayListener(mDisplayListener, null); in DeviceStateMonitor()
708 final DisplayManager dm = (DisplayManager) mPhone.getContext().getSystemService( in isScreenOn() local
710 Display[] displays = dm.getDisplays(); in isScreenOn()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java457 private int reconcileSecondaryDexFiles(DexManager dm) { in reconcileSecondaryDexFiles() argument
459 for (String p : dm.getAllPackagesWithSecondaryDexFiles()) { in reconcileSecondaryDexFiles()
463 dm.reconcileSecondaryDexFiles(p); in reconcileSecondaryDexFiles()
/frameworks/base/core/java/android/view/
DViewDebug.java610 DisplayMetrics dm = view.getResources().getDisplayMetrics();
611 if (dm == null) {
616 RecordingCanvas canvas = node.beginRecording(dm.widthPixels, dm.heightPixels);
624 dm, dm.widthPixels, dm.heightPixels, Bitmap.Config.RGB_565);
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java91 private DisplayManagerGlobal(IDisplayManager dm) { in DisplayManagerGlobal() argument
92 mDm = dm; in DisplayManagerGlobal()

12