• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
32     /**
33      * Logs the color usage while color is applied.
34      *
35      * @param action color applied action.
36      * @param colorIndex color applied index.
37      */
logColorApplied(int action, int colorIndex)38     void logColorApplied(int action, int colorIndex);
39 
logClockSelected(Clockface clock)40     void logClockSelected(Clockface clock);
41 
logClockApplied(Clockface clock)42     void logClockApplied(Clockface clock);
43 
logGridSelected(GridOption grid)44     void logGridSelected(GridOption grid);
45 
logGridApplied(GridOption grid)46     void logGridApplied(GridOption grid);
47 
48 }
49