/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 304 public int heightPixels; field in DisplayMetrics 418 heightPixels = o.heightPixels; in setTo() 436 heightPixels = 0; in setToDefaults() 443 noncompatHeightPixels = heightPixels; in setToDefaults() 481 && heightPixels == other.heightPixels in equalsPhysical() 496 return widthPixels * heightPixels * densityDpi; in hashCode() 502 ", height=" + heightPixels + ", scaledDensity=" + scaledDensity + in toString()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/display/data/repository/ |
D | DisplayMetricsRepositoryTest.kt | 46 DisplayMetrics().apply { this.heightPixels = INITIAL_HEIGHT_PIXELS } in <lambda>() 65 assertThat(underTest.heightPixels).isEqualTo(INITIAL_HEIGHT_PIXELS) in heightPixels_getsInitialValue() 77 assertThat(underTest.heightPixels).isEqualTo(456) in heightPixels_configChanged_heightUpdated() 83 assertThat(underTest.heightPixels).isEqualTo(23) in heightPixels_configChanged_heightUpdated() 88 it.getArgument<DisplayMetrics>(0).heightPixels = newHeight in updateDisplayMetrics()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 117 int heightPixels = dm.heightPixels; in onAttachedToWindow() local 130 if (cfg.isScreenRound() && heightPixels < widthPixels) { in onAttachedToWindow() 131 heightPixels = widthPixels; in onAttachedToWindow() 133 applyProportionalLayout(widthPixels, heightPixels); in onAttachedToWindow()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/area/ |
D | WindowAreaComponentImplTests.java | 42 mTestDisplayMetrics.heightPixels = 2; 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 | 58 return dm.heightPixels; in getWidth() 76 return dm.heightPixels; in getHeight()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/data/repository/ |
D | DisplayMetricsRepository.kt | 72 val heightPixels: Int constant 73 get() = displayMetrics.value.heightPixels
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 79 defaultDisplayMetrics.heightPixels = 2960; in setUp() 85 defaultDisplayMetrics.noncompatHeightPixels = defaultDisplayMetrics.heightPixels; in setUp() 91 secondaryDisplayMetrics.heightPixels = 100; in setUp() 93 secondaryDisplayMetrics.noncompatHeightPixels = secondaryDisplayMetrics.heightPixels; in setUp() 335 assertEquals(mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).heightPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 336 activityResources.getDisplayMetrics().heightPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 348 assertEquals(mDisplayMetricsMap.get(SECONDARY_DISPLAY_ID).heightPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 349 activityResources.getDisplayMetrics().heightPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources()
|
/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 | 589 final int heightPixels = inOutMetrics.heightPixels; in rotateRearDisplayMetricsIfNeeded() local 591 inOutMetrics.widthPixels = heightPixels; in rotateRearDisplayMetricsIfNeeded() 592 inOutMetrics.heightPixels = widthPixels; in rotateRearDisplayMetricsIfNeeded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycle.java | 244 mDisplayMetrics.heightPixels); 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/packages/SystemUI/src/com/android/systemui/screenshot/ui/ |
D | ScreenshotShelfView.kt | 111 val insetRect = Rect(0, 0, gestureInsets.left, displayMetrics.heightPixels) in <lambda>() 118 displayMetrics.heightPixels in <lambda>()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/ |
D | OnBackAnimationCallbackExtension.kt | 53 val progressY = (backEvent.touchY - initialY) / displayMetrics.heightPixels in onBackProgressed()
|
D | BackAnimationSpec.kt | 51 val screenHeightPx = displayMetrics.heightPixels in createFloatingSurfaceAnimationSpec()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 581 inoutDm.heightPixels = inoutDm.noncompatHeightPixels; in applyToDisplayMetrics() 614 inoutDm.heightPixels = (int) (inoutDm.heightPixels * invertScale + 0.5f); in scaleDisplayMetrics() 737 outDm.heightPixels = newHeight; in computeCompatibleScaling()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | ResizeHWLayerActivity.java | 38 int height = metrics.heightPixels; in onCreate()
|
D | BitmapUploadActivity.java | 59 int minDisplayDimen = Math.min(mMetrics.widthPixels, mMetrics.heightPixels); in onAttachedToWindow()
|
/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/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 60 final boolean isPortrait = screenWidth < metrics.heightPixels; in onMeasure()
|
/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/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | DefaultDeviceEntrySection.kt | 139 val heightPixels = bounds.bottom.toFloat() in <lambda>() constant 170 (heightPixels - ((mBottomPaddingPx + iconRadiusPx) * scaleFactor)).toInt() in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/ |
D | OnBackAnimationCallbackExtensionTest.kt | 27 heightPixels = 100 in <lambda>()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | BottomSheetLayout.java | 76 final int screenHeight = displayMetrics.heightPixels; in onMeasure()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewFrameRateTest.java | 249 float pixels = displayMetrics.widthPixels * displayMetrics.heightPixels * 0.07f; in noVelocityUsesCategorySmall() 289 float pixels = displayMetrics.widthPixels * displayMetrics.heightPixels * 0.07f; in noVelocityUsesCategoryNarrowWidth() 328 float pixels = displayMetrics.widthPixels * displayMetrics.heightPixels * 0.07f; in noVelocityUsesCategoryNarrowHeight() 367 float pixels = displayMetrics.widthPixels * displayMetrics.heightPixels * 0.07f; in noVelocityUsesCategoryLargeWidth() 406 float pixels = displayMetrics.widthPixels * displayMetrics.heightPixels * 0.07f; in noVelocityUsesCategoryLargeHeight()
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | WindowManagerImpl.java | 66 info.logicalHeight = mMetrics.heightPixels; in WindowManagerImpl() 69 new Mode(0, mMetrics.widthPixels, mMetrics.heightPixels, 60f) in WindowManagerImpl()
|