Home
last modified time | relevance | path

Searched refs:heightPixels (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/core/java/android/util/
DDisplayMetrics.java304 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/
DDisplayMetricsRepositoryTest.kt46 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/
DCompactExtractEditLayout.java117 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/
DWindowAreaComponentImplTests.java42 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/
DDisplayUtils.java58 return dm.heightPixels; in getWidth()
76 return dm.heightPixels; in getHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/data/repository/
DDisplayMetricsRepository.kt72 val heightPixels: Int constant
73 get() = displayMetrics.value.heightPixels
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java79 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/
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.java589 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/
DWakefulnessLifecycle.java244 mDisplayMetrics.heightPixels); 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/packages/SystemUI/src/com/android/systemui/screenshot/ui/
DScreenshotShelfView.kt111 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/
DOnBackAnimationCallbackExtension.kt53 val progressY = (backEvent.touchY - initialY) / displayMetrics.heightPixels in onBackProgressed()
DBackAnimationSpec.kt51 val screenHeightPx = displayMetrics.heightPixels in createFloatingSurfaceAnimationSpec()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java581 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/
DResizeHWLayerActivity.java38 int height = metrics.heightPixels; in onCreate()
DBitmapUploadActivity.java59 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/
DDisplayUtils.kt135 minOf(metrics.widthPixels, metrics.heightPixels).toFloat(), in getSmallestDisplayWidthDp()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java60 final boolean isPortrait = screenWidth < metrics.heightPixels; in onMeasure()
/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/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
DDefaultDeviceEntrySection.kt139 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/
DOnBackAnimationCallbackExtensionTest.kt27 heightPixels = 100 in <lambda>()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DBottomSheetLayout.java76 final int screenHeight = displayMetrics.heightPixels; in onMeasure()
/frameworks/base/core/tests/coretests/src/android/view/
DViewFrameRateTest.java249 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/
DWindowManagerImpl.java66 info.logicalHeight = mMetrics.heightPixels; in WindowManagerImpl()
69 new Mode(0, mMetrics.widthPixels, mMetrics.heightPixels, 60f) in WindowManagerImpl()

1234