Home
last modified time | relevance | path

Searched refs:singletons (Results 1 – 25 of 47) sorted by relevance

12

/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumSettings.java31 private static HashMap<SharedPreferences, AlbumSettings> singletons; field in AlbumSettings
37 if (singletons == null) { in getAlbumSettings()
38 singletons = new HashMap<SharedPreferences, AlbumSettings>(); in getAlbumSettings()
40 if (!singletons.containsKey(settings)) { in getAlbumSettings()
41 singletons.put(settings, new AlbumSettings(settings)); in getAlbumSettings()
43 return singletons.get(settings); in getAlbumSettings()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DBaseDvrSchedulesFragment.java52 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onCreate() local
53 singletons.getDvrDataManager().addScheduledRecordingListener(this); in onCreate()
54 singletons.getDvrScheduleManager().addOnConflictStateChangeListener(this); in onCreate()
98 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onDestroy() local
99 singletons.getDvrScheduleManager().removeOnConflictStateChangeListener(this); in onDestroy()
100 singletons.getDvrDataManager().removeScheduledRecordingListener(this); in onDestroy()
DDvrHistoryFragment.java50 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onCreate() local
52 getContext(), presenterSelector, singletons.getClock()); in onCreate()
55 mDvrDataManager = singletons.getDvrDataManager(); in onCreate()
DDvrSeriesSchedulesFragment.java143 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onCreate() local
144 mChannelDataManager = singletons.getChannelDataManager(); in onCreate()
146 mDvrDataManager = singletons.getDvrDataManager(); in onCreate()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DRecordingScheduler.java125 TvSingletons singletons = TvSingletons.getSingletons(context); in createScheduler() local
128 singletons.getDvrManager(), in createScheduler()
129 singletons.getInputSessionManager(), in createScheduler()
130 (WritableDvrDataManager) singletons.getDvrDataManager(), in createScheduler()
131 singletons.getChannelDataManager(), in createScheduler()
132 singletons.getTvInputManagerHelper(), in createScheduler()
DDvrRecordingService.java122 TvSingletons singletons = TvSingletons.getSingletons(this); in onCreate() local
124 (WritableDvrDataManager) singletons.getDvrDataManager(); in onCreate()
125 mSessionManager = singletons.getInputSessionManager(); in onCreate()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java191 TvSingletons singletons = TvSingletons.getSingletons(context); in onCreate() local
192 mInputManager = singletons.getTvInputManagerHelper(); in onCreate()
193 mChannelDataManager = singletons.getChannelDataManager(); in onCreate()
194 mSetupUtils = singletons.getSetupUtils(); in onCreate()
200 if (singletons.getBuiltInTunerManager().isPresent()) { in onCreate()
201 singletons in onCreate()
DNewSourcesFragment.java54 TvSingletons singletons = TvSingletons.getSingletons(getActivity()); in onCreateView() local
55 singletons.getSetupUtils().markAllInputsRecognized(singletons.getTvInputManagerHelper()); in onCreateView()
/packages/apps/TV/common/src/com/android/tv/common/singletons/
DHasSingletons.java16 package com.android.tv.common.singletons;
28 return ((HasSingletons<C>) context).singletons(); in get()
32 C singletons(); in singletons() method
/packages/apps/TV/src/com/android/tv/guide/
DProgramItemView.java98 TvSingletons singletons = TvSingletons.getSingletons(view.getContext());
99 Tracker tracker = singletons.getTracker();
118 DvrManager dvrManager = singletons.getDvrManager();
207 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in ProgramItemView() local
208 mDvrManager = singletons.getDvrManager(); in ProgramItemView()
209 mChannelDataManager = singletons.getChannelDataManager(); in ProgramItemView()
210 mClock = singletons.getClock(); in ProgramItemView()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSettingsFragment.java82 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in getItemList() local
84 singletons.getSetupUtils().hasNewInput(activity.getTvInputManagerHelper()); in getItemList()
127 if (singletons.getBuiltInTunerManager().isPresent()) { in getItemList()
129 singletons.getTvInputManagerHelper().getTvInputInfos(true, true)) { in getItemList()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DSeriesRecordingPresenter.java188 TvSingletons singletons = TvSingletons.getSingletons(context); in SeriesRecordingPresenter() local
189 mDvrDataManager = singletons.getDvrDataManager(); in SeriesRecordingPresenter()
190 mDvrManager = singletons.getDvrManager(); in SeriesRecordingPresenter()
191 mWatchedPositionManager = singletons.getDvrWatchedPositionManager(); in SeriesRecordingPresenter()
/packages/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java235 TvSingletons singletons = TvSingletons.getSingletons(mainActivity); in TvOverlayManager() local
236 mChannelDataManager = singletons.getChannelDataManager(); in TvOverlayManager()
237 mInputManager = singletons.getTvInputManagerHelper(); in TvOverlayManager()
243 mTracker = singletons.getTracker(); in TvOverlayManager()
302 CommonFeatures.DVR.isEnabled(mainActivity) ? singletons.getDvrDataManager() : null; in TvOverlayManager()
307 singletons.getTvInputManagerHelper(), in TvOverlayManager()
309 singletons.getProgramDataManager(), in TvOverlayManager()
311 singletons.getDvrScheduleManager(), in TvOverlayManager()
312 singletons.getTracker(), in TvOverlayManager()
DChannelBannerView.java52 import com.android.tv.common.singletons.HasSingletons;
227 MySingletons singletons = HasSingletons.get(MySingletons.class, context); in ChannelBannerView() local
228 mCurrentChannelProvider = singletons.getCurrentChannelProvider(); in ChannelBannerView()
229 mCurrentProgramProvider = singletons.getCurrentProgramProvider(); in ChannelBannerView()
230 mCurrentPlayingPositionProvider = singletons.getCurrentPlayingPositionProvider(); in ChannelBannerView()
231 mTvInputManagerHelper = singletons.getTvInputManagerHelperSingleton(); in ChannelBannerView()
232 mTvOverlayManager = singletons.getOverlayManagerProvider(); in ChannelBannerView()
261 mDvrManager = singletons.getDvrManagerSingleton(); in ChannelBannerView()
DProgramDetailsFragment.java146 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onLoadDetails() local
147 mDvrDataManager = singletons.getDvrDataManager(); in onLoadDetails()
148 mDvrManager = singletons.getDvrManager(); in onLoadDetails()
149 mDvrScheduleManager = singletons.getDvrScheduleManager(); in onLoadDetails()
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/app/
DSampleNetworkTuner.java22 import com.android.tv.common.singletons.HasSingletons;
24 import com.android.tv.tuner.sample.network.singletons.SampleNetworkSingletons;
81 public SampleNetworkSingletons singletons() { in singletons() method in SampleNetworkTuner
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/app/
DSampleDvbTuner.java22 import com.android.tv.common.singletons.HasSingletons;
24 import com.android.tv.tuner.sample.dvb.singletons.SampleDvbSingletons;
81 public SampleDvbSingletons singletons() { in singletons() method in SampleDvbTuner
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionActivity.java88 TvSingletons singletons = TvSingletons.getSingletons(this); in deleteSelectedIds() local
90 singletons.getDvrDataManager().getRecordedPrograms(mSeriesRecordingId).size(); in deleteSelectedIds()
92 DvrManager dvrManager = singletons.getDvrManager(); in deleteSelectedIds()
DDvrStopSeriesRecordingFragment.java79 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onTrackedGuidedActionClicked() local
80 DvrManager dvrManager = singletons.getDvrManager(); in onTrackedGuidedActionClicked()
81 DvrDataManager dataManager = singletons.getDvrDataManager(); in onTrackedGuidedActionClicked()
DDvrSeriesDeletionFragment.java73 TvSingletons singletons = TvSingletons.getSingletons(context); in onAttach() local
74 mDvrManager = singletons.getDvrManager(); in onAttach()
75 mDvrDataManager = singletons.getDvrDataManager(); in onAttach()
76 mDvrWatchedPositionManager = singletons.getDvrWatchedPositionManager(); in onAttach()
/packages/apps/TV/src/com/android/tv/util/
DSetupUtils.java37 import com.android.tv.common.singletons.HasTvInputId;
157 TvSingletons singletons = TvSingletons.getSingletons(mContext); in markNewChannelsBrowsable() local
158 TvInputManagerHelper tvInputManagerHelper = singletons.getTvInputManagerHelper(); in markNewChannelsBrowsable()
159 ChannelDataManager channelDataManager = singletons.getChannelDataManager(); in markNewChannelsBrowsable()
/packages/apps/TV/src/com/android/tv/dialog/
DDvrHistoryDialogFragment.java56 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onCreateDialog() local
57 DvrDataManager dataManager = singletons.getDvrDataManager(); in onCreateDialog()
58 ChannelDataManager channelDataManager = singletons.getChannelDataManager(); in onCreateDialog()
/packages/apps/TV/tuner/src/com/android/tv/tuner/singletons/
DTunerSingletons.java16 package com.android.tv.tuner.singletons;
18 import com.android.tv.common.singletons.HasTvInputId;
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/singletons/
DSampleNetworkSingletons.java17 package com.android.tv.tuner.sample.network.singletons;
20 import com.android.tv.tuner.singletons.TunerSingletons;
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/singletons/
DSampleDvbSingletons.java17 package com.android.tv.tuner.sample.dvb.singletons;
20 import com.android.tv.tuner.singletons.TunerSingletons;

12