1 /* 2 * Copyright (C) 2015 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 17 package com.android.tv.analytics; 18 19 import android.support.annotation.VisibleForTesting; 20 import com.android.tv.TimeShiftManager; 21 import com.android.tv.data.api.Channel; 22 23 /** A implementation of Tracker that does nothing. */ 24 @VisibleForTesting 25 public class StubTracker implements Tracker { 26 @Override sendChannelCount(int browsableChannelCount, int totalChannelCount)27 public void sendChannelCount(int browsableChannelCount, int totalChannelCount) {} 28 29 @Override sendConfigurationInfo(ConfigurationInfo info)30 public void sendConfigurationInfo(ConfigurationInfo info) {} 31 32 @Override sendMainStart()33 public void sendMainStart() {} 34 35 @Override sendMainStop(long durationMs)36 public void sendMainStop(long durationMs) {} 37 38 @Override sendScreenView(String screenName)39 public void sendScreenView(String screenName) {} 40 41 @Override sendChannelViewStart(Channel channel, boolean tunedByRecommendation)42 public void sendChannelViewStart(Channel channel, boolean tunedByRecommendation) {} 43 44 @Override sendChannelTuneTime(Channel channel, long durationMs)45 public void sendChannelTuneTime(Channel channel, long durationMs) {} 46 47 @Override sendChannelViewStop(Channel channel, long durationMs)48 public void sendChannelViewStop(Channel channel, long durationMs) {} 49 50 @Override sendChannelUp()51 public void sendChannelUp() {} 52 53 @Override sendChannelDown()54 public void sendChannelDown() {} 55 56 @Override sendShowMenu()57 public void sendShowMenu() {} 58 59 @Override sendHideMenu(long durationMs)60 public void sendHideMenu(long durationMs) {} 61 62 @Override sendMenuClicked(String label)63 public void sendMenuClicked(String label) {} 64 65 @Override sendMenuClicked(int labelResId)66 public void sendMenuClicked(int labelResId) {} 67 68 @Override sendShowEpg()69 public void sendShowEpg() {} 70 71 @Override sendEpgItemClicked()72 public void sendEpgItemClicked() {} 73 74 @Override sendHideEpg(long durationMs)75 public void sendHideEpg(long durationMs) {} 76 77 @Override sendShowChannelSwitch()78 public void sendShowChannelSwitch() {} 79 80 @Override sendHideChannelSwitch(long durationMs)81 public void sendHideChannelSwitch(long durationMs) {} 82 83 @Override sendChannelNumberInput()84 public void sendChannelNumberInput() {} 85 86 @Override sendChannelInputNavigated()87 public void sendChannelInputNavigated() {} 88 89 @Override sendChannelNumberItemClicked()90 public void sendChannelNumberItemClicked() {} 91 92 @Override sendChannelNumberItemChosenByTimeout()93 public void sendChannelNumberItemChosenByTimeout() {} 94 95 @Override sendChannelVideoUnavailable(Channel channel, int reason)96 public void sendChannelVideoUnavailable(Channel channel, int reason) {} 97 98 @Override sendAc3PassthroughCapabilities(boolean isSupported)99 public void sendAc3PassthroughCapabilities(boolean isSupported) {} 100 101 @Override sendInputConnectionFailure(String inputId)102 public void sendInputConnectionFailure(String inputId) {} 103 104 @Override sendInputDisconnected(String inputId)105 public void sendInputDisconnected(String inputId) {} 106 107 @Override sendShowInputSelection()108 public void sendShowInputSelection() {} 109 110 @Override sendHideInputSelection(long durationMs)111 public void sendHideInputSelection(long durationMs) {} 112 113 @Override sendInputSelected(String inputLabel)114 public void sendInputSelected(String inputLabel) {} 115 116 @Override sendShowSidePanel(HasTrackerLabel trackerLabel)117 public void sendShowSidePanel(HasTrackerLabel trackerLabel) {} 118 119 @Override sendHideSidePanel(HasTrackerLabel trackerLabel, long durationMs)120 public void sendHideSidePanel(HasTrackerLabel trackerLabel, long durationMs) {} 121 122 @Override sendTimeShiftAction(@imeShiftManager.TimeShiftActionId int actionId)123 public void sendTimeShiftAction(@TimeShiftManager.TimeShiftActionId int actionId) {} 124 } 125