• 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.testing;
17 
18 import com.android.customization.model.color.ColorOption;
19 import com.android.customization.model.grid.GridOption;
20 import com.android.customization.model.theme.ThemeBundle;
21 import com.android.customization.module.ThemesUserEventLogger;
22 import com.android.wallpaper.testing.TestUserEventLogger;
23 
24 /**
25  * Test implementation of {@link ThemesUserEventLogger}.
26  */
27 public class TestThemesUserEventLogger extends TestUserEventLogger
28         implements ThemesUserEventLogger {
29     @Override
logThemeSelected(ThemeBundle theme, boolean isCustomTheme)30     public void logThemeSelected(ThemeBundle theme, boolean isCustomTheme) {
31         // Do nothing.
32     }
33 
34     @Override
logThemeApplied(ThemeBundle theme, boolean isCustomTheme)35     public void logThemeApplied(ThemeBundle theme, boolean isCustomTheme) {
36         // Do nothing.
37     }
38 
39     @Override
logColorApplied(int action, ColorOption colorOption)40     public void logColorApplied(int action, ColorOption colorOption) {
41         // Do nothing.
42     }
43 
44     @Override
logGridSelected(GridOption grid)45     public void logGridSelected(GridOption grid) {
46         // Do nothing.
47     }
48 
49     @Override
logGridApplied(GridOption grid)50     public void logGridApplied(GridOption grid) {
51         // Do nothing.
52     }
53 }
54