Merge "Update test for change in calculation of split portrait clipping" into tm-qpr-dev

This commit is contained in:
Vinit Nayak
2022-12-02 20:13:48 +00:00
committed by Android (Google) Code Review

View File

@@ -95,8 +95,8 @@ class FullscreenDrawParamsTest : DeviceProfileBaseTest() {
params.setProgress(/* fullscreenProgress= */ 1.0f, /* parentScale= */ 1.0f,
/* taskViewScale= */ 1.0f, /* previewWidth= */ 0, dp, mPreviewPositionHelper)
// Probably unhelpful, but also unclear how to test otherwise ¯\_(ツ)_/¯
val fullscreenTaskHeight = (dp.heightPx - dp.taskbarSize) *
// Probably unhelpful, but also unclear how to test otherwise ¯\_(ツ)_/¯
val fullscreenTaskHeight = dp.heightPx *
(1 - (splitBounds.topTaskPercent + splitBounds.dividerHeightPercent))
val canvasScreenRatio = canvasHeight / fullscreenTaskHeight
val expectedBottomHint = dp.taskbarSize * canvasScreenRatio