Loading packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ constructor( WindowManager.LayoutParams( WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.TYPE_SYSTEM_ERROR, WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG, Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS, PixelFormat.TRANSLUCENT ) Loading packages/SystemUI/tests/src/com/android/systemui/biometrics/SideFpsControllerTest.kt +16 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.view.WindowInsets import android.view.WindowManager import android.view.WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION import android.view.WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY import android.view.WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG import android.view.WindowMetrics import androidx.test.filters.SmallTest import com.airbnb.lottie.LottieAnimationView Loading Loading @@ -422,6 +423,21 @@ class SideFpsControllerTest : SysuiTestCase() { assertThat(fingerprintManager.hasSideFpsSensor()).isFalse() } @Test fun testLayoutParams_isKeyguardDialogType() = testWithDisplay(deviceConfig = DeviceConfig.Y_ALIGNED_UNFOLDED) { sideFpsController.overlayOffsets = sensorLocation sideFpsController.updateOverlayParams(windowManager.defaultDisplay, indicatorBounds) overlayController.show(SENSOR_ID, REASON_UNKNOWN) executor.runAllReady() verify(windowManager).updateViewLayout(any(), overlayViewParamsCaptor.capture()) val lpType = overlayViewParamsCaptor.value.type assertThat((lpType and TYPE_KEYGUARD_DIALOG) != 0).isTrue() } @Test fun testLayoutParams_hasNoMoveAnimationWindowFlag() = testWithDisplay(deviceConfig = DeviceConfig.Y_ALIGNED_UNFOLDED) { Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ constructor( WindowManager.LayoutParams( WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.TYPE_SYSTEM_ERROR, WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG, Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS, PixelFormat.TRANSLUCENT ) Loading
packages/SystemUI/tests/src/com/android/systemui/biometrics/SideFpsControllerTest.kt +16 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.view.WindowInsets import android.view.WindowManager import android.view.WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION import android.view.WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY import android.view.WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG import android.view.WindowMetrics import androidx.test.filters.SmallTest import com.airbnb.lottie.LottieAnimationView Loading Loading @@ -422,6 +423,21 @@ class SideFpsControllerTest : SysuiTestCase() { assertThat(fingerprintManager.hasSideFpsSensor()).isFalse() } @Test fun testLayoutParams_isKeyguardDialogType() = testWithDisplay(deviceConfig = DeviceConfig.Y_ALIGNED_UNFOLDED) { sideFpsController.overlayOffsets = sensorLocation sideFpsController.updateOverlayParams(windowManager.defaultDisplay, indicatorBounds) overlayController.show(SENSOR_ID, REASON_UNKNOWN) executor.runAllReady() verify(windowManager).updateViewLayout(any(), overlayViewParamsCaptor.capture()) val lpType = overlayViewParamsCaptor.value.type assertThat((lpType and TYPE_KEYGUARD_DIALOG) != 0).isTrue() } @Test fun testLayoutParams_hasNoMoveAnimationWindowFlag() = testWithDisplay(deviceConfig = DeviceConfig.Y_ALIGNED_UNFOLDED) { Loading