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