StubTracker.java revision 0cc0713c1bf8027642987b750b80217569d2932a
16e112132382b6442b636ee39b02951d771408e8frobbiew/*
26e112132382b6442b636ee39b02951d771408e8frobbiew * Copyright (C) 2015 The Android Open Source Project
36e112132382b6442b636ee39b02951d771408e8frobbiew *
46e112132382b6442b636ee39b02951d771408e8frobbiew * Licensed under the Apache License, Version 2.0 (the "License");
56e112132382b6442b636ee39b02951d771408e8frobbiew * you may not use this file except in compliance with the License.
66e112132382b6442b636ee39b02951d771408e8frobbiew * You may obtain a copy of the License at
76e112132382b6442b636ee39b02951d771408e8frobbiew *
86e112132382b6442b636ee39b02951d771408e8frobbiew *      http://www.apache.org/licenses/LICENSE-2.0
96e112132382b6442b636ee39b02951d771408e8frobbiew *
106e112132382b6442b636ee39b02951d771408e8frobbiew * Unless required by applicable law or agreed to in writing, software
116e112132382b6442b636ee39b02951d771408e8frobbiew * distributed under the License is distributed on an "AS IS" BASIS,
126e112132382b6442b636ee39b02951d771408e8frobbiew * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
136e112132382b6442b636ee39b02951d771408e8frobbiew * See the License for the specific language governing permissions and
146e112132382b6442b636ee39b02951d771408e8frobbiew * limitations under the License.
156e112132382b6442b636ee39b02951d771408e8frobbiew */
166e112132382b6442b636ee39b02951d771408e8frobbiew
176e112132382b6442b636ee39b02951d771408e8frobbiewpackage com.android.tv.analytics;
186e112132382b6442b636ee39b02951d771408e8frobbiew
196e112132382b6442b636ee39b02951d771408e8frobbiewimport android.support.annotation.VisibleForTesting;
206e112132382b6442b636ee39b02951d771408e8frobbiewimport com.android.tv.TimeShiftManager;
216e112132382b6442b636ee39b02951d771408e8frobbiewimport com.android.tv.data.api.Channel;
226e112132382b6442b636ee39b02951d771408e8frobbiew
236e112132382b6442b636ee39b02951d771408e8frobbiew/** A implementation of Tracker that does nothing. */
246e112132382b6442b636ee39b02951d771408e8frobbiew@VisibleForTesting
2577e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modakpublic class StubTracker implements Tracker {
266e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
276e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelCount(int browsableChannelCount, int totalChannelCount) {}
286e112132382b6442b636ee39b02951d771408e8frobbiew
296e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
306e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendConfigurationInfo(ConfigurationInfo info) {}
316e112132382b6442b636ee39b02951d771408e8frobbiew
326b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    @Override
336e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendMainStart() {}
346e112132382b6442b636ee39b02951d771408e8frobbiew
356e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
366e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendMainStop(long durationMs) {}
376e112132382b6442b636ee39b02951d771408e8frobbiew
386e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
3977e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendScreenView(String screenName) {}
406e112132382b6442b636ee39b02951d771408e8frobbiew
416e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
426e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelViewStart(Channel channel, boolean tunedByRecommendation) {}
436e112132382b6442b636ee39b02951d771408e8frobbiew
446e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
456e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelTuneTime(Channel channel, long durationMs) {}
466e112132382b6442b636ee39b02951d771408e8frobbiew
476e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
486e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelViewStop(Channel channel, long durationMs) {}
496e112132382b6442b636ee39b02951d771408e8frobbiew
506e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
516e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelUp() {}
526e112132382b6442b636ee39b02951d771408e8frobbiew
5377e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
5477e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendChannelDown() {}
5577e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
566e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
5777e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendShowMenu() {}
5877e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
5977e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
6077e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendHideMenu(long durationMs) {}
6177e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
6277e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
636b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    public void sendMenuClicked(String label) {}
6477e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
6577e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
6663f12ff6ff6ac8de6bba5201b43fbb258ea54f7brobbiew    public void sendMenuClicked(int labelResId) {}
676b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew
6877e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
6977e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendShowEpg() {}
7063f12ff6ff6ac8de6bba5201b43fbb258ea54f7brobbiew
716b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    @Override
7277e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendEpgItemClicked() {}
7377e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
7463f12ff6ff6ac8de6bba5201b43fbb258ea54f7brobbiew    @Override
756b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    public void sendHideEpg(long durationMs) {}
7663f12ff6ff6ac8de6bba5201b43fbb258ea54f7brobbiew
776e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
786e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendShowChannelSwitch() {}
796e112132382b6442b636ee39b02951d771408e8frobbiew
806b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    @Override
816b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    public void sendHideChannelSwitch(long durationMs) {}
826e112132382b6442b636ee39b02951d771408e8frobbiew
836b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    @Override
846e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelNumberInput() {}
856e112132382b6442b636ee39b02951d771408e8frobbiew
866e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
876e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelInputNavigated() {}
886e112132382b6442b636ee39b02951d771408e8frobbiew
896e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
906e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelNumberItemClicked() {}
916e112132382b6442b636ee39b02951d771408e8frobbiew
926e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
936e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelNumberItemChosenByTimeout() {}
946e112132382b6442b636ee39b02951d771408e8frobbiew
956e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
966e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendChannelVideoUnavailable(Channel channel, int reason) {}
976e112132382b6442b636ee39b02951d771408e8frobbiew
986e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
996e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendAc3PassthroughCapabilities(boolean isSupported) {}
1006e112132382b6442b636ee39b02951d771408e8frobbiew
1016e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
1026e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendInputConnectionFailure(String inputId) {}
10377e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
10477e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
10577e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendInputDisconnected(String inputId) {}
10677e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
1076e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
1086e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendShowInputSelection() {}
10977e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
11077e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
11177e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendHideInputSelection(long durationMs) {}
11277e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
113d18ffdd88be3c62d027fd49a115bc9c4fe4b910cmridge    @Override
1146e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendInputSelected(String inputLabel) {}
1156e112132382b6442b636ee39b02951d771408e8frobbiew
11677e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    @Override
11777e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak    public void sendShowSidePanel(HasTrackerLabel trackerLabel) {}
11877e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
1196b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    @Override
1206b98df5129acc12aad3167a9c6c12fda5afc6c31robbiew    public void sendHideSidePanel(HasTrackerLabel trackerLabel, long durationMs) {}
12177e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak
1226e112132382b6442b636ee39b02951d771408e8frobbiew    @Override
1236e112132382b6442b636ee39b02951d771408e8frobbiew    public void sendTimeShiftAction(@TimeShiftManager.TimeShiftActionId int actionId) {}
12477e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak}
12577e42cafa8942eba6e7706c9d9c25a04ec7cdda5subrata_modak