Home
last modified time | relevance | path

Searched refs:widthPixels (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/base/core/java/android/util/
DDisplayMetrics.java300 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/
DCompactExtractEditLayout.java116 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/
DResourcesManagerTest.java78 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/
DWindowAreaComponentImplTests.java41 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/
DDisplayUtils.java56 return dm.widthPixels; in getWidth()
78 return dm.widthPixels; in getHeight()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlsPopupMenuTest.kt83 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/
DNavigationBar.java134 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/
DWindowAreaComponentImpl.java590 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/
DDefaultDeviceEntrySection.kt132 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/
DBottomsheetBackAnimationSpec.kt33 val screenWidthPx = displayMetrics.widthPixels in <lambda>()
DBackAnimationSpec.kt50 val screenWidthPx = displayMetrics.widthPixels in createFloatingSurfaceAnimationSpec()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
DBackAnimationSpecTest.kt21 widthPixels = 100 in <lambda>()
68 val minScale = 1 - 48.dpToPx(displayMetrics) / displayMetrics.widthPixels in sysUi_bottomsheet_animationValues()
DOnBackAnimationCallbackExtensionTest.kt26 widthPixels = 100 in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java237 mDisplayMetrics.widthPixels, in getPowerButtonOrigin()
253 return new Point(mDisplayMetrics.widthPixels / 2, mDisplayMetrics.heightPixels); in getDefaultWakeSleepOrigin()
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java82 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/
DThreadedRenderer.java606 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/
DScreenshotShelfView.kt115 displayMetrics.widthPixels - gestureInsets.right, in <lambda>()
117 displayMetrics.widthPixels, in <lambda>()
/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornersTest.java234 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/
DResizeHWLayerActivity.java37 int width = metrics.widthPixels; in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/
DUserSwitcherFullscreenDialog.kt65 return displayMetrics.widthPixels in <lambda>()
DUserSwitcherPopupMenu.kt78 val parentWidth = res.getDisplayMetrics().widthPixels in findMaxWidth()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java580 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/
DDisplayUtils.kt135 minOf(metrics.widthPixels, metrics.heightPixels).toFloat(), in getSmallestDisplayWidthDp()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/bubble/src/com/android/wm/shell/flicker/bubble/
DDragToDismissBubbleScreenTest.kt61 val dist = Point((displaySize.widthPixels / 2), displaySize.heightPixels) in <lambda>()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java59 final int screenWidth = metrics.widthPixels; in onMeasure()

1234