Home
last modified time | relevance | path

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

123

/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.java56 Watermark(DisplayContent dc, DisplayMetrics dm, String[] tokens, SurfaceControl.Transaction t) { in Watermark() argument
84 TypedValue.COMPLEX_UNIT_DIP, 20, dm); in Watermark()
95 TypedValue.COMPLEX_UNIT_PX, mTextWidth*2, dm); in Watermark()
97 TypedValue.COMPLEX_UNIT_PX, mTextHeight*3, dm); in Watermark()
99 TypedValue.COMPLEX_UNIT_PX, 0xb0000000, dm); in Watermark()
101 TypedValue.COMPLEX_UNIT_PX, 0x60ffffff, dm); in Watermark()
103 TypedValue.COMPLEX_UNIT_PX, 7, dm); in Watermark()
105 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
107 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
/frameworks/base/tests/ApkVerityTest/testdata/
DREADME.md3 The test tries to install subsets of base.{apk,dm}, split.{apk,dm} and their
8 How to generate dex metadata (.dm)
13 zip foo.dm primary.prof
DAndroid.bp43 srcs: ["ApkVerityTestApp.dm"],
48 srcs: ["ApkVerityTestAppSplit.dm"],
72 out: ["ApkVerityTestApp.dm.fsv_sig"],
86 out: ["ApkVerityTestAppSplit.dm.fsv_sig"],
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java103 DisplayManager dm = (DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE); in createVirtualDisplay() local
115 return dm.createVirtualDisplay(this, builder.build(), callback, handler); in createVirtualDisplay()
171 DisplayManager dm = mContext.getSystemService(DisplayManager.class); in createVirtualDisplay() local
172 return dm.createVirtualDisplay(this, virtualDisplayConfig, callback, handler); in createVirtualDisplay()
/frameworks/native/cmds/installd/
Dotapreopt_chroot.cpp90 auto& dm = dm::DeviceMapper::Instance(); in TryExtraMount() local
91 if (dm.GetState(partition_name) != dm::DmDeviceState::INVALID) { in TryExtraMount()
93 if (dm.GetDmDevicePathByName(partition_name, &path)) { in TryExtraMount()
/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DShellTestCase.java41 final DisplayManager dm = context.getSystemService(DisplayManager.class); in shellSetup() local
43 context.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY))); in shellSetup()
/frameworks/base/core/tests/coretests/src/android/os/
DBrightnessLimit.java44 DisplayManager dm = getSystemService(DisplayManager.class); in onClick() local
46 dm.setTemporaryBrightness(displayId, 0.0f); in onClick()
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodManagerTest.java48 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testPrivateApiGetInstance() local
50 testContext.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in testPrivateApiGetInstance()
/frameworks/base/core/java/com/android/internal/policy/
DGestureNavigationSettingsObserver.java103 final DisplayMetrics dm = userRes.getDisplayMetrics(); in getSensitivity() local
105 com.android.internal.R.dimen.config_backGestureInset) / dm.density; in getSensitivity()
112 dm); in getSensitivity()
/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()
/frameworks/base/core/java/android/app/
DResourcesManager.java335 final DisplayMetrics dm = new DisplayMetrics(); in getDisplayMetrics() local
339 displayInfo.getAppMetrics(dm, da); in getDisplayMetrics()
341 dm.setToDefaults(); in getDisplayMetrics()
343 return dm; in getDisplayMetrics()
346 private static void applyDisplayMetricsToConfiguration(@NonNull DisplayMetrics dm, in applyDisplayMetricsToConfiguration() argument
349 config.densityDpi = dm.densityDpi; in applyDisplayMetricsToConfiguration()
350 config.screenWidthDp = (int) (dm.widthPixels / dm.density); in applyDisplayMetricsToConfiguration()
351 config.screenHeightDp = (int) (dm.heightPixels / dm.density); in applyDisplayMetricsToConfiguration()
353 if (dm.widthPixels > dm.heightPixels) { in applyDisplayMetricsToConfiguration()
388 final DisplayManagerGlobal dm = DisplayManagerGlobal.getInstance(); in getAdjustedDisplay() local
[all …]
DActivityTaskManager.java270 DisplayMetrics dm = new DisplayMetrics(); in supportsSplitScreenMultiWindow() local
271 context.getDisplay().getRealMetrics(dm); in supportsSplitScreenMultiWindow()
273 int widthDp = (int) (dm.widthPixels / dm.density); in supportsSplitScreenMultiWindow()
274 int heightDp = (int) (dm.heightPixels / dm.density); in supportsSplitScreenMultiWindow()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedTestCase.java56 final DisplayManager dm = getTestContext().getSystemService(DisplayManager.class); in setUpContext() local
57 mContext = getTestContext().createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in setUpContext()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerShellCommand.java112 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setBrightness() local
113 dm.setBrightness(Display.DEFAULT_DISPLAY, brightness); in setBrightness()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DSurfaceViewRequestReceiver.java75 DisplayManager dm = (DisplayManager) context.getSystemService(Context.DISPLAY_SERVICE); in onReceive() local
77 dm.getDisplay(SurfaceViewRequestUtils.getDisplayId(bundle)), in onReceive()
/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/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
DFakeBackgroundService.java76 final DisplayManager dm = getSystemService(DisplayManager.class); in onCreate() local
77 final Display display = dm.getDisplay(DEFAULT_DISPLAY); in onCreate()
DFakeApp.java104 final DisplayManager dm = getSystemService(DisplayManager.class); in onCreate() local
105 final Display defaultDisplay = dm.getDisplay(DEFAULT_DISPLAY); in onCreate()
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java87 final DisplayMetrics dm = getResources().getDisplayMetrics(); in onCreate() local
88 final float dp = dm.density; in onCreate()
89 final int minSide = Math.min(dm.widthPixels, dm.heightPixels); in onCreate()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java568 public static float computeCompatibleScaling(DisplayMetrics dm, DisplayMetrics outDm) { in computeCompatibleScaling() argument
569 final int width = dm.noncompatWidthPixels; in computeCompatibleScaling()
570 final int height = dm.noncompatHeightPixels; in computeCompatibleScaling()
579 int newShortSize = (int)(DEFAULT_NORMAL_SHORT_DIMENSION * dm.density + 0.5f); in computeCompatibleScaling()
/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/
DTestService.java61 final DisplayManager dm = getSystemService(DisplayManager.class); in onCreate() local
62 final Display defaultDisplay = dm.getDisplay(Display.DEFAULT_DISPLAY); in onCreate()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexMetadataHelperTest.java390 final File dm = createDexMetadataFile("install_split_base.apk"); in testPackageSizeWithDmFile() local
397 Assert.assertEquals(dm.length(), DexMetadataHelper.getPackageDexMetadataSize(pkg)); in testPackageSizeWithDmFile()
405 final File dm = createDexMetadataFile("install_split_base.apk"); in testPackageSizeWithPartialPackageLite() local
417 Assert.assertEquals(dm.length(), DexMetadataHelper.getPackageDexMetadataSize(pkgLite)); in testPackageSizeWithPartialPackageLite()

123