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

Commit 365612d9 authored by Tyler Freeman's avatar Tyler Freeman
Browse files

chore(magnification settings): add logging for zoom slider in settings panel

Bug: 281241589
Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/WindowMagnificationTest.java
  && aster-previz

Change-Id: Ieeb523ce7dab1712b2d8c1272c7c92be5a223e13
parent b37885c8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -93,6 +93,9 @@ constructor(private val uiEventLogger: UiEventLogger, private val clock: SystemC
        @UiEvent(doc = "Magnification settings panel edit size save button clicked")
        MAGNIFICATION_SETTINGS_SIZE_EDITING_DEACTIVATED(1384),

        @UiEvent(doc = "Magnification settings panel zoom slider changed")
        MAGNIFICATION_SETTINGS_ZOOM_SLIDER_CHANGED(1385),

        @UiEvent(
            doc =
                "Magnification settings panel window size selected. The selection rank is " +
+3 −0
Original line number Diff line number Diff line
@@ -371,6 +371,9 @@ public class WindowMagnification implements CoreStartable, CommandQueue.Callback
            if (mWindowMagnificationConnectionImpl != null) {
                mWindowMagnificationConnectionImpl.onPerformScaleAction(displayId, scale);
            }
            mA11yLogger.logThrottled(
                    MagnificationSettingsEvent.MAGNIFICATION_SETTINGS_ZOOM_SLIDER_CHANGED
            );
        }

        @Override
+2 −0
Original line number Diff line number Diff line
@@ -259,6 +259,8 @@ public class WindowMagnificationTest extends SysuiTestCase {
                TEST_DISPLAY, scale);

        verify(mConnectionCallback).onPerformScaleAction(eq(TEST_DISPLAY), eq(scale));
        verify(mA11yLogger).logThrottled(
                eq(MagnificationSettingsEvent.MAGNIFICATION_SETTINGS_ZOOM_SLIDER_CHANGED));
    }

    @Test