/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 300 public int widthPixels; field in DisplayMetrics 417 widthPixels = o.widthPixels; in setTo() 435 widthPixels = 0; in setToDefaults() 442 noncompatWidthPixels = widthPixels; in setToDefaults() 480 && widthPixels == other.widthPixels in equalsPhysical() 496 return widthPixels * heightPixels * densityDpi; in hashCode() 501 return "DisplayMetrics{density=" + density + ", width=" + widthPixels + in toString()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 116 int widthPixels = dm.widthPixels; in onAttachedToWindow() local 130 if (cfg.isScreenRound() && heightPixels < widthPixels) { in onAttachedToWindow() 131 heightPixels = widthPixels; in onAttachedToWindow() 133 applyProportionalLayout(widthPixels, heightPixels); in onAttachedToWindow()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 78 defaultDisplayMetrics.widthPixels = 1440; in setUp() 84 defaultDisplayMetrics.noncompatWidthPixels = defaultDisplayMetrics.widthPixels; in setUp() 90 secondaryDisplayMetrics.widthPixels = 50; in setUp() 92 secondaryDisplayMetrics.noncompatWidthPixels = secondaryDisplayMetrics.widthPixels; in setUp() 333 assertEquals(mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).widthPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 334 activityResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 337 assertEquals(mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).widthPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 338 defaultDisplayResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 339 assertEquals(mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).widthPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 340 defaultDisplayResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() [all …]
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/area/ |
D | WindowAreaComponentImplTests.java | 41 mTestDisplayMetrics.widthPixels = 1; in setup() 82 expectedMetrics.widthPixels = mTestDisplayMetrics.heightPixels; in testRotateRearDisplayMetrics_transformNeeded() 83 expectedMetrics.heightPixels = mTestDisplayMetrics.widthPixels; in testRotateRearDisplayMetrics_transformNeeded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 56 return dm.widthPixels; in getWidth() 78 return dm.widthPixels; in getHeight()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsPopupMenuTest.kt | 83 testDisplayMetrics.widthPixels = DISPLAY_WIDTH_WIDE in <lambda>() 94 testDisplayMetrics.widthPixels = DISPLAY_WIDTH_NARROW in <lambda>() 113 testDisplayMetrics.widthPixels = DISPLAY_WIDTH_NARROW in <lambda>()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 134 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth() 135 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/ |
D | WindowAreaComponentImpl.java | 590 final int widthPixels = inOutMetrics.widthPixels; in rotateRearDisplayMetricsIfNeeded() local 591 inOutMetrics.widthPixels = heightPixels; in rotateRearDisplayMetricsIfNeeded() 592 inOutMetrics.heightPixels = widthPixels; in rotateRearDisplayMetricsIfNeeded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | DefaultDeviceEntrySection.kt | 132 var widthPixels = bounds.right.toFloat() in <lambda>() variable 137 widthPixels -= (insets.systemWindowInsetLeft + insets.systemWindowInsetRight).toFloat() in <lambda>() 169 (widthPixels / 2).toInt(), in <lambda>()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/ |
D | BottomsheetBackAnimationSpec.kt | 33 val screenWidthPx = displayMetrics.widthPixels in <lambda>()
|
D | BackAnimationSpec.kt | 50 val screenWidthPx = displayMetrics.widthPixels in createFloatingSurfaceAnimationSpec()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/ |
D | BackAnimationSpecTest.kt | 21 widthPixels = 100 in <lambda>() 68 val minScale = 1 - 48.dpToPx(displayMetrics) / displayMetrics.widthPixels in sysUi_bottomsheet_animationValues()
|
D | OnBackAnimationCallbackExtensionTest.kt | 26 widthPixels = 100 in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycle.java | 237 mDisplayMetrics.widthPixels, in getPowerButtonOrigin() 253 return new Point(mDisplayMetrics.widthPixels / 2, mDisplayMetrics.heightPixels); in getDefaultWakeSleepOrigin()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 82 final int w = rotated ? metrics.heightPixels : metrics.widthPixels; in getRotationLockOrientation() 83 final int h = rotated ? metrics.widthPixels : metrics.heightPixels; in getRotationLockOrientation()
|
/frameworks/base/core/java/android/view/ |
D | ThreadedRenderer.java | 606 final float lightX = displayMetrics.widthPixels / 2f - attachInfo.mWindowLeft; in setLightCenter() 610 final float zRatio = Math.min(displayMetrics.widthPixels, displayMetrics.heightPixels) in setLightCenter() 866 final float lightX = displayMetrics.widthPixels / 2f - windowLeft; in setLightCenter() 870 final float zRatio = Math.min(displayMetrics.widthPixels, displayMetrics.heightPixels) in setLightCenter()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/ |
D | ScreenshotShelfView.kt | 115 displayMetrics.widthPixels - gestureInsets.right, in <lambda>() 117 displayMetrics.widthPixels, in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | RoundedCornersTest.java | 234 mMockDisplayMetrics.widthPixels = displayWidth; in testGetRoundedCornerRadius_withRoundDevice_usesDisplayRadiusAsDefault() 255 mMockDisplayMetrics.widthPixels = displayWidth; in testGetRoundedCornerRadius_withRoundDevice_usesOverlayIfProvided() 274 mMockDisplayMetrics.widthPixels = displayWidth; in testGetRoundedCornerRadius_withNonRoundDevice_noDisplayDefault()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | ResizeHWLayerActivity.java | 37 int width = metrics.widthPixels; in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ |
D | UserSwitcherFullscreenDialog.kt | 65 return displayMetrics.widthPixels in <lambda>()
|
D | UserSwitcherPopupMenu.kt | 78 val parentWidth = res.getDisplayMetrics().widthPixels in findMaxWidth()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 580 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; in applyToDisplayMetrics() 613 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertScale + 0.5f); in scaleDisplayMetrics() 736 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/ |
D | DisplayUtils.kt | 135 minOf(metrics.widthPixels, metrics.heightPixels).toFloat(), in getSmallestDisplayWidthDp()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/bubble/src/com/android/wm/shell/flicker/bubble/ |
D | DragToDismissBubbleScreenTest.kt | 61 val dist = Point((displaySize.widthPixels / 2), displaySize.heightPixels) in <lambda>()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 59 final int screenWidth = metrics.widthPixels; in onMeasure()
|