/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | DraggableConstraintLayout.java | 54 private final DisplayMetrics mDisplayMetrics; field in DraggableConstraintLayout 93 mDisplayMetrics = new DisplayMetrics(); in DraggableConstraintLayout() 94 mContext.getDisplay().getRealMetrics(mDisplayMetrics); in DraggableConstraintLayout() 208 private final DisplayMetrics mDisplayMetrics; field in DraggableConstraintLayout.SwipeDismissHandler 221 mDisplayMetrics = new DisplayMetrics(); in SwipeDismissHandler() 222 context.getDisplay().getRealMetrics(mDisplayMetrics); in SwipeDismissHandler() 285 return Math.abs(translationX) >= FloatingWindowUtil.dpToPx(mDisplayMetrics, in isPastDismissThreshold() 331 float velocityPxPerMs = FloatingWindowUtil.dpToPx(mDisplayMetrics, VELOCITY_DP_PER_MS); in createSwipeDismissAnimation() 347 finalX = mDisplayMetrics.widthPixels; in createSwipeDismissAnimation() 352 FloatingWindowUtil.dpToPx(mDisplayMetrics, MAXIMUM_DISMISS_DISTANCE_DP)); in createSwipeDismissAnimation()
|
D | ScreenshotView.java | 130 private final DisplayMetrics mDisplayMetrics; field in ScreenshotView 205 mDisplayMetrics = new DisplayMetrics(); in ScreenshotView() 206 mContext.getDisplay().getRealMetrics(mDisplayMetrics); in ScreenshotView() 283 tmpRect.inset((int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP), in getSwipeRegion() 284 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP)); in getSwipeRegion() 287 tmpRect.inset((int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP), in getSwipeRegion() 288 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP)); in getSwipeRegion() 317 Rect inset = new Rect(0, 0, gestureInsets.left, mDisplayMetrics.heightPixels); in getTouchRegion() 319 inset.set(mDisplayMetrics.widthPixels - gestureInsets.right, 0, in getTouchRegion() 320 mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels); in getTouchRegion() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycle.java | 66 private final DisplayMetrics mDisplayMetrics; field in WakefulnessLifecycle 95 mDisplayMetrics = context.getResources().getDisplayMetrics(); in WakefulnessLifecycle() 233 mDisplayMetrics.widthPixels, in getPowerButtonOrigin() 240 mDisplayMetrics.heightPixels); in getPowerButtonOrigin() 249 return new Point(mDisplayMetrics.widthPixels / 2, mDisplayMetrics.heightPixels); in getDefaultWakeSleepOrigin()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingDataProviderTest.java | 57 private DisplayMetrics mDisplayMetrics; field in FalsingDataProviderTest 63 mDisplayMetrics = new DisplayMetrics(); in setup() 64 mDisplayMetrics.xdpi = 100; in setup() 65 mDisplayMetrics.ydpi = 100; in setup() 66 mDisplayMetrics.widthPixels = 1000; in setup() 67 mDisplayMetrics.heightPixels = 1000; in setup() 384 mDisplayMetrics, mBatteryController, mFoldStateListener, mDockManager, foldable); in createWithFoldCapability()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardOverlayView.java | 86 private final DisplayMetrics mDisplayMetrics; field in ClipboardOverlayView 112 mDisplayMetrics = new DisplayMetrics(); in ClipboardOverlayView() 113 mContext.getDisplay().getRealMetrics(mDisplayMetrics); in ClipboardOverlayView() 208 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP), in isInTouchRegion() 209 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP)); in isInTouchRegion() 214 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP), in isInTouchRegion() 215 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP)); in isInTouchRegion() 220 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP), in isInTouchRegion() 221 (int) FloatingWindowUtil.dpToPx(mDisplayMetrics, -SWIPE_PADDING_DP)); in isInTouchRegion()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TestDisplayContent.java | 99 private DisplayMetrics mDisplayMetrics; field in TestDisplayContent.Builder 116 mDisplayMetrics = new DisplayMetrics(); in Builder() 188 mInfo.getAppMetrics(mDisplayMetrics); in updateDisplayMetrics() 195 doReturn(valueDp * mDisplayMetrics.density) in setDefaultMinTaskSizeDp()
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 60 private DisplayMetrics mDisplayMetrics; field in LinkAccessibilityHelperTest 321 if (mDisplayMetrics == null) { in dp2Px() 322 mDisplayMetrics = InstrumentationRegistry.getContext().getResources().getDisplayMetrics(); in dp2Px() 324 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetrics); in dp2Px()
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | MailAdapter.java | 81 DisplayMetrics mDisplayMetrics; field in MailAdapter.ViewHolder 89 mDisplayMetrics = itemView.getContext().getResources().getDisplayMetrics(); in ViewHolder()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
D | FlingAnimationUtils.java | 374 private final DisplayMetrics mDisplayMetrics; field in FlingAnimationUtils.Builder 382 mDisplayMetrics = displayMetrics; in Builder() 425 return new FlingAnimationUtils(mDisplayMetrics, mMaxLengthSeconds, mSpeedUpFactor, in build()
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 509 private final DisplayMetrics mDisplayMetrics; field in AppWidgetManager 530 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetManager() 927 info.updateDimensions(mDisplayMetrics); in getInstalledProvidersForProfile() 949 info.updateDimensions(mDisplayMetrics); in getAppWidgetInfo()
|
D | AppWidgetHost.java | 66 private DisplayMetrics mDisplayMetrics; field in AppWidgetHost 193 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetHost() 460 appWidget.updateDimensions(mDisplayMetrics); in onProviderChanged()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelViewControllerBaseTest.java | 311 protected final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in NotificationPanelViewControllerBaseTest 341 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics); in setup() 342 mDisplayMetrics.density = 100; in setup() 381 mDisplayMetrics); in setup()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 432 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in DisplayContent 1090 display.getMetrics(mDisplayMetrics); in DisplayContent() 1092 * mDisplayMetrics.densityDpi / DENSITY_DEFAULT; in DisplayContent() 1464 return mDisplayMetrics; in getDisplayMetrics() 1667 if (Double.compare(mDisplayMetrics.density, 0.0) == 0) { in getMinimalTaskSizeDp() 1671 return (int) (minimalSize / mDisplayMetrics.density); in getMinimalTaskSizeDp() 2198 mDisplayInfo.getAppMetrics(mDisplayMetrics); in updateDisplayAndOrientation() 2206 mDisplayMetrics.density, outConfig); in updateDisplayAndOrientation() 2212 mCompatibleScreenScale = CompatibilityInfo.computeCompatibleScaling(mDisplayMetrics, in updateDisplayAndOrientation() 2307 mDisplayMetrics.density, outConfig); in computeScreenConfiguration() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ContextFixture.java | 727 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in ContextFixture 783 mDisplayMetrics.density = 2.25f; in ContextFixture() 784 doReturn(mDisplayMetrics).when(mResources).getDisplayMetrics(); in ContextFixture()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | CentralSurfacesImpl.java | 546 private final DisplayMetrics mDisplayMetrics; field in CentralSurfacesImpl 794 mDisplayMetrics = displayMetrics; in CentralSurfacesImpl() 2227 pw.println(" mDisplayMetrics=" + mDisplayMetrics); in dump() 2327 mDisplay.getMetrics(mDisplayMetrics); in updateDisplaySize() 2332 … String.format("%dx%d", mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in updateDisplaySize() 2338 return mDisplayMetrics.density; in getDisplayDensity() 2343 return mDisplayMetrics.widthPixels; in getDisplayWidth() 2348 return mDisplayMetrics.heightPixels; in getDisplayHeight()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Dependency.java | 299 @Inject Lazy<DisplayMetrics> mDisplayMetrics; field in Dependency 495 mProviders.put(DisplayMetrics.class, mDisplayMetrics::get); in start()
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/ |
D | ParsingPackageUtils.java | 334 private DisplayMetrics mDisplayMetrics; field in ParsingPackageUtils 345 mDisplayMetrics = displayMetrics; in ParsingPackageUtils() 535 final Resources res = new Resources(assets, mDisplayMetrics, null); in parseBaseApk() 614 Resources res = new Resources(assets, mDisplayMetrics, null); in parseSplitApk()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 9664 Landroid/appwidget/AppWidgetHost;->mDisplayMetrics:Landroid/util/DisplayMetrics; 9712 Landroid/appwidget/AppWidgetManager;->mDisplayMetrics:Landroid/util/DisplayMetrics;
|