Home
last modified time | relevance | path

Searched refs:displayMetrics (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DClassifierTest.java45 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup() local
46 displayMetrics.xdpi = 100; in setup()
47 displayMetrics.ydpi = 100; in setup()
48 displayMetrics.widthPixels = 1000; in setup()
49 displayMetrics.heightPixels = 1000; in setup()
50 mDataProvider = new FalsingDataProvider(displayMetrics, mBatteryController, mDockManager); in setup()
DFalsingDataProviderTest.java59 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup() local
60 displayMetrics.xdpi = 100; in setup()
61 displayMetrics.ydpi = 100; in setup()
62 displayMetrics.widthPixels = 1000; in setup()
63 displayMetrics.heightPixels = 1000; in setup()
64 mDataProvider = new FalsingDataProvider(displayMetrics, mBatteryController, mDockManager); in setup()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
DFlingAnimationUtils.java57 public FlingAnimationUtils(DisplayMetrics displayMetrics, float maxLengthSeconds) { in FlingAnimationUtils() argument
58 this(displayMetrics, maxLengthSeconds, 0.0f); in FlingAnimationUtils()
67 public FlingAnimationUtils(DisplayMetrics displayMetrics, float maxLengthSeconds, in FlingAnimationUtils() argument
69 this(displayMetrics, maxLengthSeconds, speedUpFactor, -1.0f, 1.0f); in FlingAnimationUtils()
81 public FlingAnimationUtils(DisplayMetrics displayMetrics, float maxLengthSeconds, in FlingAnimationUtils() argument
94 mMinVelocityPxPerSecond = MIN_VELOCITY_DP_PER_SECOND * displayMetrics.density; in FlingAnimationUtils()
95 mHighVelocityPxPerSecond = HIGH_VELOCITY_DP_PER_SECOND * displayMetrics.density; in FlingAnimationUtils()
381 public Builder(DisplayMetrics displayMetrics) { in Builder() argument
382 mDisplayMetrics = displayMetrics; in Builder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DGlobalModule.java56 DisplayMetrics displayMetrics = new DisplayMetrics(); in provideDisplayMetrics() local
57 context.getDisplay().getMetrics(displayMetrics); in provideDisplayMetrics()
58 return displayMetrics; in provideDisplayMetrics()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProviderInfo.java569 public void updateDimensions(DisplayMetrics displayMetrics) { in updateDimensions() argument
571 minWidth = TypedValue.complexToDimensionPixelSize(minWidth, displayMetrics); in updateDimensions()
572 minHeight = TypedValue.complexToDimensionPixelSize(minHeight, displayMetrics); in updateDimensions()
573 minResizeWidth = TypedValue.complexToDimensionPixelSize(minResizeWidth, displayMetrics); in updateDimensions()
574 minResizeHeight = TypedValue.complexToDimensionPixelSize(minResizeHeight, displayMetrics); in updateDimensions()
575 maxResizeWidth = TypedValue.complexToDimensionPixelSize(maxResizeWidth, displayMetrics); in updateDimensions()
576 maxResizeHeight = TypedValue.complexToDimensionPixelSize(maxResizeHeight, displayMetrics); in updateDimensions()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageParser2.java118 DisplayMetrics displayMetrics, @Nullable File cacheDir, @NonNull Callback callback) {
119 if (displayMetrics == null) {
120 displayMetrics = new DisplayMetrics();
121 displayMetrics.setToDefaults();
131 parsingUtils = new ParsingPackageUtils(onlyCoreApps, separateProcesses, displayMetrics,
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingDataProvider.java65 DisplayMetrics displayMetrics, in FalsingDataProvider() argument
68 mXdpi = displayMetrics.xdpi; in FalsingDataProvider()
69 mYdpi = displayMetrics.ydpi; in FalsingDataProvider()
70 mWidthPixels = displayMetrics.widthPixels; in FalsingDataProvider()
71 mHeightPixels = displayMetrics.heightPixels; in FalsingDataProvider()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DDualHeightHorizontalLinearLayout.kt63 private val displayMetrics: DisplayMetrics in <lambda>() constant
64 get() = context.resources.displayMetrics in <lambda>()
165 it.getDimension(displayMetrics).toInt() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DSidefpsController.java130 DisplayMetrics displayMetrics = new DisplayMetrics(); in SidefpsController() local
131 windowManager.getDefaultDisplay().getMetrics(displayMetrics); in SidefpsController()
132 mDisplayHeight = displayMetrics.heightPixels; in SidefpsController()
133 mDisplayWidth = displayMetrics.widthPixels; in SidefpsController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/charging/
DWiredChargingRippleController.kt174 val displayMetrics = DisplayMetrics() in layoutRipple() constant
175 context.display.getRealMetrics(displayMetrics) in layoutRipple()
176 val width = displayMetrics.widthPixels in layoutRipple()
177 val height = displayMetrics.heightPixels in layoutRipple()
DChargingRippleView.kt62 rippleShader.pixelDensity = resources.displayMetrics.density in <lambda>()
67 rippleShader.pixelDensity = resources.displayMetrics.density in <lambda>()
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/
DDimensionConsistencyTest.java62 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dp2Px() local
63 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifDimensionTest.java109 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in dp2Px() local
110 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotNotificationsController.java56 DisplayMetrics displayMetrics = new DisplayMetrics(); in ScreenshotNotificationsController() local
57 windowManager.getDefaultDisplay().getRealMetrics(displayMetrics); in ScreenshotNotificationsController()
DScreenshotController.java357 DisplayMetrics displayMetrics = new DisplayMetrics(); in takeScreenshotFullscreen() local
358 getDefaultDisplay().getRealMetrics(displayMetrics); in takeScreenshotFullscreen()
361 new Rect(0, 0, displayMetrics.widthPixels, displayMetrics.heightPixels)); in takeScreenshotFullscreen()
664 DisplayMetrics displayMetrics = new DisplayMetrics(); in onScrollCaptureResponseReady() local
665 getDefaultDisplay().getRealMetrics(displayMetrics); in onScrollCaptureResponseReady()
667 new Rect(0, 0, displayMetrics.widthPixels, displayMetrics.heightPixels)); in onScrollCaptureResponseReady()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DSwipe.java116 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in Swipe() local
118 TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_MM, MM_PER_CM, displayMetrics) in Swipe()
121 final float pixelsPerCmX = displayMetrics.xdpi / 2.54f; in Swipe()
122 final float pixelsPerCmY = displayMetrics.ydpi / 2.54f; in Swipe()
DMultiFingerSwipe.java87 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in MultiFingerSwipe() local
89 final float pixelsPerCmX = displayMetrics.xdpi / GestureUtils.CM_PER_INCH; in MultiFingerSwipe()
90 final float pixelsPerCmY = displayMetrics.ydpi / GestureUtils.CM_PER_INCH; in MultiFingerSwipe()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/common/
DBaseDrawingView.kt40 density = resources.displayMetrics.density
/frameworks/base/packages/EasterEgg/src/com/android/egg/widget/
DPaintChipsActivity.kt45 return (dp * resources.displayMetrics.density).toInt() in dp2px()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt136 val dp = resources.displayMetrics.density in checkVictory()
155 val dp = resources.displayMetrics.density in loadPuzzle()
267 it.textSize = 14f * context.resources.displayMetrics.density in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DLockscreenShadeTransitionControllerTest.kt63 @Mock lateinit var displayMetrics: DisplayMetrics variable in com.android.systemui.statusbar.LockscreenShadeTransitionControllerTest
92 displayMetrics = displayMetrics, in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java156 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in getHorizontalVerticalSpacing() local
158 TypedValue.COMPLEX_UNIT_DIP, 4, displayMetrics); in getHorizontalVerticalSpacing()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DButtonFooterMixinTest.java169 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dp2Px() local
170 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
/frameworks/base/core/java/com/android/internal/widget/
DLinearSmoothScroller.java161 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument
162 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DBrushPropertyDrawable.kt36 _size = (24 * context.resources.displayMetrics.density).toInt()

12