1 /*
2  * Copyright (C) 2017 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.wallpaper.module;
17 
18 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
19 
20 /**
21  * {@link UserEventLogger} which does not do anything.
22  */
23 public class NoOpUserEventLogger implements UserEventLogger {
24 
25     @Override
logResumed(boolean provisioned, boolean wallpaper)26     public void logResumed(boolean provisioned, boolean wallpaper) {
27 
28     }
29 
30     @Override
logStopped()31     public void logStopped() {
32 
33     }
34 
35     @Override
logAppLaunched()36     public void logAppLaunched() {
37     }
38 
39     @Override
logDailyRefreshTurnedOn()40     public void logDailyRefreshTurnedOn() {
41     }
42 
43     @Override
logCurrentWallpaperPreviewed()44     public void logCurrentWallpaperPreviewed() {
45     }
46 
47     @Override
logActionClicked(String collectionId, int actionLabelResId)48     public void logActionClicked(String collectionId, int actionLabelResId) {
49     }
50 
51     @Override
logIndividualWallpaperSelected(String collectionId)52     public void logIndividualWallpaperSelected(String collectionId) {
53     }
54 
55     @Override
logCategorySelected(String collectionId)56     public void logCategorySelected(String collectionId) {
57     }
58 
59     @Override
logLiveWallpaperInfoSelected(String collectionId, String wallpaperId)60     public void logLiveWallpaperInfoSelected(String collectionId, String wallpaperId) {
61     }
62 
63     @Override
logLiveWallpaperCustomizeSelected(String collectionId, String wallpaperId)64     public void logLiveWallpaperCustomizeSelected(String collectionId, String wallpaperId) {
65     }
66 
67     @Override
logWallpaperSet(String collectionId, String wallpaperId)68     public void logWallpaperSet(String collectionId, String wallpaperId) {
69     }
70 
71     @Override
logWallpaperSetResult(@allpaperSetResult int result)72     public void logWallpaperSetResult(@WallpaperSetResult int result) {
73     }
74 
75     @Override
logWallpaperSetFailureReason(@allpaperSetFailureReason int reason)76     public void logWallpaperSetFailureReason(@WallpaperSetFailureReason int reason) {
77     }
78 
79     @Override
logNumDailyWallpaperRotationsInLastWeek()80     public void logNumDailyWallpaperRotationsInLastWeek() {
81     }
82 
83     @Override
logNumDailyWallpaperRotationsPreviousDay()84     public void logNumDailyWallpaperRotationsPreviousDay() {
85     }
86 
87     @Override
logDailyWallpaperRotationHour(int hour)88     public void logDailyWallpaperRotationHour(int hour) {
89     }
90 
91     @Override
logDailyWallpaperDecodes(boolean decodes)92     public void logDailyWallpaperDecodes(boolean decodes) {
93     }
94 
95     @Override
logRefreshDailyWallpaperButtonClicked()96     public void logRefreshDailyWallpaperButtonClicked() {
97     }
98 
99     @Override
logDailyWallpaperRotationStatus(int status)100     public void logDailyWallpaperRotationStatus(int status) {
101     }
102 
103     @Override
logDailyWallpaperSetNextWallpaperResult( @ailyWallpaperUpdateResult int result)104     public void logDailyWallpaperSetNextWallpaperResult(
105             @DailyWallpaperUpdateResult int result) {
106     }
107 
108     @Override
logDailyWallpaperSetNextWallpaperCrash(@ailyWallpaperUpdateCrash int crash)109     public void logDailyWallpaperSetNextWallpaperCrash(@DailyWallpaperUpdateCrash int crash) {
110     }
111 
112     @Override
logNumDaysDailyRotationFailed(int days)113     public void logNumDaysDailyRotationFailed(int days) {
114     }
115 
116     @Override
logDailyWallpaperMetadataRequestFailure( @ailyWallpaperMetadataFailureReason int reason)117     public void logDailyWallpaperMetadataRequestFailure(
118             @DailyWallpaperMetadataFailureReason int reason) {
119     }
120 
121     @Override
logNumDaysDailyRotationNotAttempted(int days)122     public void logNumDaysDailyRotationNotAttempted(int days) {
123     }
124 
125     @Override
logStandalonePreviewLaunched()126     public void logStandalonePreviewLaunched() {
127     }
128 
129     @Override
logStandalonePreviewImageUriHasReadPermission(boolean isReadPermissionGranted)130     public void logStandalonePreviewImageUriHasReadPermission(boolean isReadPermissionGranted) {
131     }
132 
133     @Override
logStandalonePreviewStorageDialogApproved(boolean isApproved)134     public void logStandalonePreviewStorageDialogApproved(boolean isApproved) {
135     }
136 
137     @Override
logWallpaperPresentationMode()138     public void logWallpaperPresentationMode() {
139     }
140 
141     @Override
logRestored()142     public void logRestored() {
143     }
144 }
145