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; 18 19 import com.android.tv.analytics.Analytics; 20 import com.android.tv.analytics.Tracker; 21 import com.android.tv.config.RemoteConfig; 22 import com.android.tv.data.ChannelDataManager; 23 import com.android.tv.data.ProgramDataManager; 24 import com.android.tv.dvr.DvrDataManager; 25 import com.android.tv.dvr.DvrManager; 26 import com.android.tv.dvr.DvrScheduleManager; 27 import com.android.tv.dvr.DvrStorageStatusManager; 28 import com.android.tv.dvr.DvrWatchedPositionManager; 29 import com.android.tv.util.AccountHelper; 30 import com.android.tv.util.TvInputManagerHelper; 31 32 /** 33 * Interface with getters for application scoped singletons. 34 */ 35 public interface ApplicationSingletons { 36 getAnalytics()37 Analytics getAnalytics(); 38 getChannelDataManager()39 ChannelDataManager getChannelDataManager(); 40 getDvrDataManager()41 DvrDataManager getDvrDataManager(); 42 getDvrStorageStatusManager()43 DvrStorageStatusManager getDvrStorageStatusManager(); 44 getDvrScheduleManager()45 DvrScheduleManager getDvrScheduleManager(); 46 getDvrManager()47 DvrManager getDvrManager(); 48 getDvrWatchedPositionManager()49 DvrWatchedPositionManager getDvrWatchedPositionManager(); 50 getInputSessionManager()51 InputSessionManager getInputSessionManager(); 52 getProgramDataManager()53 ProgramDataManager getProgramDataManager(); 54 getTracker()55 Tracker getTracker(); 56 getTvInputManagerHelper()57 TvInputManagerHelper getTvInputManagerHelper(); 58 getMainActivityWrapper()59 MainActivityWrapper getMainActivityWrapper(); 60 getAccountHelper()61 AccountHelper getAccountHelper(); 62 getRemoteConfig()63 RemoteConfig getRemoteConfig(); 64 } 65