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
This commit is contained in:
Tyler Freeman
2023-05-12 15:53:29 -07:00
parent b37885c8b0
commit 365612d959
3 changed files with 8 additions and 0 deletions

View File

@@ -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 " +

View File

@@ -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

View File

@@ -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