Home
last modified time | relevance | path

Searched refs:screenBounds (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProviderTest.kt77 val screenBounds = Rect(0, 0, 1080, 2160) in testGetBoundingRectForPrivacyChipForRotation_noCutout() constant
94 screenBounds, in testGetBoundingRectForPrivacyChipForRotation_noCutout()
131 screenBounds, in testGetBoundingRectForPrivacyChipForRotation_noCutout()
179 val screenBounds = Rect(0, 0, 1080, 2160) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() constant
196 Rect(dcBounds.right, 0, screenBounds.right - minRightPadding, sbHeightPortrait) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection()
203 screenBounds, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection()
217 Rect(dcBounds.height(), 0, screenBounds.height() - minRightPadding, sbHeightLandscape) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection()
224 screenBounds, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection()
240 Rect(minLeftPadding, 0, screenBounds.width() - minRightPadding, sbHeightPortrait) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection()
247 screenBounds, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopModeUtils.kt48 val screenBounds = Rect(0, 0, displayLayout.width(), displayLayout.height()) in calculateInitialBounds() constant
50 val idealSize = calculateIdealSize(screenBounds, scale) in calculateInitialBounds()
54 taskInfo.topActivityInfo ?: return positionInScreen(idealSize, screenBounds) in calculateInitialBounds()
72 screenBounds.width() - (DESKTOP_MODE_LANDSCAPE_APP_PADDING * 2) in calculateInitialBounds()
101 return positionInScreen(initialSize, screenBounds) in calculateInitialBounds()
156 private fun calculateIdealSize(screenBounds: Rect, scale: Float): Size { in calculateIdealSize()
157 val width = (screenBounds.width() * scale).toInt() in calculateIdealSize()
158 val height = (screenBounds.height() * scale).toInt() in calculateIdealSize()
163 private fun positionInScreen(desiredSize: Size, screenBounds: Rect): Rect { in positionInScreen()
165 val heightOffset = (screenBounds.height() - desiredSize.height) / 2 in positionInScreen()
[all …]
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/pip/
DSecondaryActivityEnterPipTest.kt159 current.screenBounds.isToTheRightBottom(previous.screenBounds.region, 3) in <lambda>()
161 current.screenBounds.overlaps(previous.screenBounds.region) in <lambda>()
162 current.screenBounds.notBiggerThan(previous.screenBounds.region) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotData.kt24 var screenBounds: Rect?, variable in com.android.systemui.screenshot.ScreenshotData
47 screenBounds = request.boundsInScreen,
61 screenBounds = null,
DRequestProcessor.kt54 result.screenBounds = info.bounds in process()
DScreenshotController.java1025 Rect screenBounds) { in aspectRatiosMatch() argument
1039 float boundsAspect = ((float) screenBounds.width()) / screenBounds.height(); in aspectRatiosMatch()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipKeepClearAlgorithm.kt343 val screenBounds = transformedScreenBounds in <lambda>() constant
349 if (screenBounds.bottom - bounds.bottom <= bounds.top - screenBounds.top) { in <lambda>()
350 val fullStashTop = screenBounds.bottom - stashOffset in <lambda>()
362 if (screenBounds.bottom - bounds.bottom >= bounds.top - screenBounds.top) { in <lambda>()
363 val fullStashBottom = screenBounds.top - bounds.height() + stashOffset in <lambda>()
378 if (screenBounds.right - bounds.right <= bounds.left - screenBounds.left) { in <lambda>()
379 val fullStashRight = screenBounds.right - stashOffset in <lambda>()
391 if (screenBounds.right - bounds.right >= bounds.left - screenBounds.left) { in <lambda>()
392 val fullStashLeft = screenBounds.left - bounds.width() + stashOffset in <lambda>()
/frameworks/base/services/core/java/com/android/server/wm/
DTrustedPresentationListenerController.java373 private float computeFractionRendered(Region visibleRegion, RectF screenBounds, in computeFractionRendered() argument
379 visibleRegion, screenBounds, contentSize, sx, sy); in computeFractionRendered()
384 if (screenBounds.width() == 0 || screenBounds.height() == 0) { in computeFractionRendered()
391 float boundsOverSourceW = screenBounds.width() / (float) contentSize.getWidth(); in computeFractionRendered()
392 float boundsOverSourceH = screenBounds.height() / (float) contentSize.getHeight(); in computeFractionRendered()
402 fractionRendered *= visibleSize[0] / (screenBounds.width() * screenBounds.height()); in computeFractionRendered()
DWindowContainer.java3143 final Rect screenBounds = getAnimationBounds(appRootTaskClipMode); in getAnimationAdapter() local
3144 mTmpRect.set(screenBounds); in getAnimationAdapter()
3187 this, mTmpPoint, localBounds, screenBounds, closingStartBounds, in getAnimationAdapter()
3192 this, mTmpPoint, localBounds, screenBounds, startBounds, showBackdrop); in getAnimationAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DRemoteRecentSplitTaskTransitionRunner.kt42 private val screenBounds: Rect, in <lambda>() constant in com.android.systemui.mediaprojection.appselector.view.RemoteRecentSplitTaskTransitionRunner
75 val endX = screenBounds.left in <lambda>()
76 val endY = screenBounds.top in <lambda>()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DActivityTransitionAnimator.kt1106 val screenBounds = window.screenSpaceBounds in applyStateToWindow() constant
1107 val centerX = (screenBounds.left + screenBounds.right) / 2f in applyStateToWindow()
1108 val centerY = (screenBounds.top + screenBounds.bottom) / 2f in applyStateToWindow()
1109 val width = screenBounds.right - screenBounds.left in applyStateToWindow()
1110 val height = screenBounds.bottom - screenBounds.top in applyStateToWindow()
1123 val translationY = state.top - screenBounds.top + heightChange / 2f in applyStateToWindow()
1129 val cropX = state.left.toFloat() - screenBounds.left in applyStateToWindow()
1130 val cropY = state.top.toFloat() - screenBounds.top in applyStateToWindow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DFloatingContentCoordinatorTest.kt21 private val screenBounds = Rect(0, 0, 1000, 1000) constant in com.android.systemui.util.FloatingContentCoordinatorTest
172 rect100px.offsetTo(0, screenBounds.bottom - 100) in testOnContentMoved_respectsLowerBounds()
211 return screenBounds in getAllowedFloatingBoundsRegion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/policy/
DPolicyRequestProcessor.kt144 screenBounds = taskBounds in <lambda>()
162 screenBounds = Rect(0, 0, screenshot?.width ?: 0, screenshot?.height ?: 0), in <lambda>()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java176 RectF screenBounds) { in onCaptureSharedElementSnapshot() argument
213 return TransitionUtils.createViewBitmap(sharedElement, mTempMatrix, screenBounds, parent); in onCaptureSharedElementSnapshot()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotDataTest.kt53 assertThat(data.screenBounds).isEqualTo(bounds) in testConstruction()
DRequestProcessorTest.kt90 assertThat(processedData.screenBounds).isEqualTo(bounds) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/policy/
DPolicyRequestProcessorTest.kt61 screenBounds = Rect(0, 0, 1, 1), in captureDisplay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt192 val screenBounds = context.resources.configuration.windowConfiguration.maxBounds in <lambda>() constant
193 val point = Point(screenBounds.width(), screenBounds.height()) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/
DBubblePositionerTest.kt70 val screenBounds = Rect(0, 0, 1000, 1200) in testUpdate() constant
71 val availableRect = Rect(screenBounds) in testUpdate()
73 positioner.update(defaultDeviceConfig.copy(insets = insets, windowBounds = screenBounds)) in testUpdate()
/frameworks/native/services/surfaceflinger/
DLayer.cpp455 const FloatRect& screenBounds, float alpha, in computeTrustedPresentationState() argument
464 if (screenBounds.getWidth() == 0 || screenBounds.getHeight() == 0) { in computeTrustedPresentationState()
484 fractionRendered *= (1 - (coveredSize / (screenBounds.getWidth() * screenBounds.getHeight()))); in computeTrustedPresentationState()
DLayer.h590 const FloatRect& screenBounds, float,
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSizeCompatTests.java757 final Rect screenBounds = mActivity.getBounds(); in testFixedOrientationRotateCutoutDisplay() local
758 assertEquals(screenBounds.left, (int) (currentBounds.left * scale + 0.5f)); in testFixedOrientationRotateCutoutDisplay()
759 assertEquals(screenBounds.top, (int) (currentBounds.top * scale + 0.5f)); in testFixedOrientationRotateCutoutDisplay()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...