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

Commit a5d6851c authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Add addtional LS shade dragDown logs

Test: manually view logs in LSShadeTransitionLog section from
`adb shell dumpsys activity service com.android.systemui`
Bug: 216500919
Change-Id: Id4a63b2e3b5bd4f49d7a6aee2b9257c7ad7251b3
parent 4d897c6a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -248,6 +248,7 @@ class LockscreenShadeTransitionController @Inject constructor(
                        // override that
                        forceApplyAmount = true
                        // Reset the behavior. At this point the animation is already started
                        logger.logDragDownAmountReset()
                        dragDownAmount = 0f
                        forceApplyAmount = false
                    }
@@ -409,6 +410,7 @@ class LockscreenShadeTransitionController @Inject constructor(
        setDragDownAmountAnimated(fullTransitionDistance.toFloat(), delay = delay) {
            // End listener:
            // Reset
            logger.logDragDownAmountReset()
            dragDownAmount = 0f
            forceApplyAmount = false
        }
+7 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class LSShadeTransitionLogger @Inject constructor(

    fun logDragDownAborted() {
        buffer.log(TAG, LogLevel.INFO, {}, {
            "The drag down was reset"
            "The drag down was aborted and reset to 0f."
        })
    }

@@ -82,6 +82,12 @@ class LSShadeTransitionLogger @Inject constructor(
            LockscreenGestureLogger.LockscreenUiEvent.LOCKSCREEN_PULL_SHADE_OPEN)
    }

    fun logDragDownAmountReset() {
        buffer.log(TAG, LogLevel.DEBUG, {}, {
            "The drag down amount has been reset to 0f."
        })
    }

    fun logDefaultGoToFullShadeAnimation(delay: Long) {
        buffer.log(TAG, LogLevel.DEBUG, {
            long1 = delay