/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | ClassifierTest.java | 45 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()
|
D | FalsingDataProviderTest.java | 59 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/ |
D | FlingAnimationUtils.java | 57 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/ |
D | GlobalModule.java | 56 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/ |
D | AppWidgetProviderInfo.java | 569 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/ |
D | PackageParser2.java | 118 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/ |
D | FalsingDataProvider.java | 65 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/ |
D | DualHeightHorizontalLinearLayout.kt | 63 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/ |
D | SidefpsController.java | 130 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/ |
D | WiredChargingRippleController.kt | 174 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()
|
D | ChargingRippleView.kt | 62 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/ |
D | DimensionConsistencyTest.java | 62 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/ |
D | GlifDimensionTest.java | 109 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/ |
D | ScreenshotNotificationsController.java | 56 DisplayMetrics displayMetrics = new DisplayMetrics(); in ScreenshotNotificationsController() local 57 windowManager.getDefaultDisplay().getRealMetrics(displayMetrics); in ScreenshotNotificationsController()
|
D | ScreenshotController.java | 357 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/ |
D | Swipe.java | 116 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()
|
D | MultiFingerSwipe.java | 87 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/ |
D | BaseDrawingView.kt | 40 density = resources.displayMetrics.density
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/widget/ |
D | PaintChipsActivity.kt | 45 return (dp * resources.displayMetrics.density).toInt() in dp2px()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/ |
D | QuaresActivity.kt | 136 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/ |
D | LockscreenShadeTransitionControllerTest.kt | 63 @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/ |
D | KeyboardShortcutKeysLayout.java | 156 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/ |
D | ButtonFooterMixinTest.java | 169 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/ |
D | LinearSmoothScroller.java | 161 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/ |
D | BrushPropertyDrawable.kt | 36 _size = (24 * context.resources.displayMetrics.density).toInt()
|