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

Commit 150df00b authored by Kunhung Li's avatar Kunhung Li
Browse files

Add color logging function

- logColorApplied()

Bug: 186193935
Test: build & statsd_testdrive 179
Change-Id: I650d9f836b4c40fecc2f82d03ff0d01777fb421b
parent 3aaed127
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -148,6 +148,14 @@ public class StatsLogUserEventLogger extends NoOpUserEventLogger implements Them
                0, 0, 0, 0, 0, 0, 0, 0);
    }

    @Override
    public void logColorApplied(int action, int colorIndex) {
        SysUiStatsLog.write(STYLE_UI_CHANGED, action,
                0, 0, 0, 0, 0, 0, 0,
                colorIndex,
                0, 0, 0);
    }

    @Override
    public void logClockSelected(Clockface clock) {
        SysUiStatsLog.write(STYLE_UI_CHANGED, StyleEnums.PICKER_SELECT,
+8 −0
Original line number Diff line number Diff line
@@ -29,6 +29,14 @@ public interface ThemesUserEventLogger extends UserEventLogger {

    void logThemeApplied(ThemeBundle theme, boolean isCustomTheme);

    /**
     * Logs the color usage while color is applied.
     *
     * @param action color applied action.
     * @param colorIndex color applied index.
     */
    void logColorApplied(int action, int colorIndex);

    void logClockSelected(Clockface clock);

    void logClockApplied(Clockface clock);
+5 −0
Original line number Diff line number Diff line
@@ -21,6 +21,11 @@ public class TestThemesUserEventLogger extends TestUserEventLogger
        // Do nothing.
    }

    @Override
    public void logColorApplied(int action, int colorIndex) {
        // Do nothing.
    }

    @Override
    public void logClockSelected(Clockface clock) {
        // Do nothing.