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.logging 17 18 import android.content.Intent 19 import com.android.wallpaper.module.logging.UserEventLogger.SetWallpaperEntryPoint 20 import com.android.wallpaper.module.logging.UserEventLogger.WallpaperDestination 21 22 /** [UserEventLogger] implementation that does nothing. */ 23 open class NoOpUserEventLogger : UserEventLogger { 24 logSnapshotnull25 override fun logSnapshot() {} 26 logAppLaunchednull27 override fun logAppLaunched(launchSource: Intent) {} 28 logWallpaperAppliednull29 override fun logWallpaperApplied( 30 collectionId: String?, 31 wallpaperId: String?, 32 effects: String?, 33 @SetWallpaperEntryPoint setWallpaperEntryPoint: Int, 34 @WallpaperDestination destination: Int, 35 ) {} 36 logEffectApplynull37 override fun logEffectApply( 38 effect: String, 39 status: Int, 40 timeElapsedMillis: Long, 41 resultCode: Int, 42 ) {} 43 logEffectProbenull44 override fun logEffectProbe(effect: String, status: Int) {} 45 logEffectForegroundDownloadnull46 override fun logEffectForegroundDownload( 47 effect: String, 48 status: Int, 49 timeElapsedMillis: Long, 50 ) {} 51 logResetAppliednull52 override fun logResetApplied() {} 53 logWallpaperExploreButtonClickednull54 override fun logWallpaperExploreButtonClicked() {} 55 } 56