Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18345182 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add extra logs for UDFPS rotation" into tm-dev am: b6c07a15

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16991983

Change-Id: I28dcdcc58b7cc4bc5415c7380bd484101ee5048d
parents d680f632 b6c07a15
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -300,7 +300,10 @@ class UdfpsControllerOverlay(
        when (context.display!!.rotation) {
            Surface.ROTATION_90 -> {
                if (!shouldRotate(animation)) {
                    Log.v(TAG, "skip rotating udfps location ROTATION_90")
                    Log.v(TAG, "skip rotating udfps location ROTATION_90" +
                            " animation=$animation" +
                            " isGoingToSleep=${keyguardUpdateMonitor.isGoingToSleep}" +
                            " isOccluded=${keyguardStateController.isOccluded}")
                } else {
                    Log.v(TAG, "rotate udfps location ROTATION_90")
                    x = (location.sensorLocationY - location.sensorRadius - paddingX)
@@ -309,7 +312,10 @@ class UdfpsControllerOverlay(
            }
            Surface.ROTATION_270 -> {
                if (!shouldRotate(animation)) {
                    Log.v(TAG, "skip rotating udfps location ROTATION_270")
                    Log.v(TAG, "skip rotating udfps location ROTATION_270" +
                            " animation=$animation" +
                            " isGoingToSleep=${keyguardUpdateMonitor.isGoingToSleep}" +
                            " isOccluded=${keyguardStateController.isOccluded}")
                } else {
                    Log.v(TAG, "rotate udfps location ROTATION_270")
                    x = (p.x - location.sensorLocationY - location.sensorRadius - paddingX)