1 /* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.customization.module; 17 18 import com.android.customization.model.clock.Clockface; 19 import com.android.customization.model.grid.GridOption; 20 import com.android.customization.model.theme.ThemeBundle; 21 import com.android.wallpaper.module.UserEventLogger; 22 23 /** 24 * Extension of {@link UserEventLogger} that adds ThemePicker specific events. 25 */ 26 public interface ThemesUserEventLogger extends UserEventLogger { 27 logThemeSelected(ThemeBundle theme, boolean isCustomTheme)28 void logThemeSelected(ThemeBundle theme, boolean isCustomTheme); 29 logThemeApplied(ThemeBundle theme, boolean isCustomTheme)30 void logThemeApplied(ThemeBundle theme, boolean isCustomTheme); 31 logClockSelected(Clockface clock)32 void logClockSelected(Clockface clock); 33 logClockApplied(Clockface clock)34 void logClockApplied(Clockface clock); 35 logGridSelected(GridOption grid)36 void logGridSelected(GridOption grid); 37 logGridApplied(GridOption grid)38 void logGridApplied(GridOption grid); 39 40 } 41