Home
last modified time | relevance | path

Searched refs:singletons (Results 1 – 25 of 45) 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.java51 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onCreate() local
52 UiFlags uiFlags = singletons.getUiFlags(); in onCreate()
53 mDvrDataManager = singletons.getDvrDataManager(); in onCreate()
58 singletons.getClock(), in onCreate()
DDvrSeriesSchedulesFragment.java147 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onCreate() local
148 mChannelDataManager = singletons.getChannelDataManager(); in onCreate()
150 mDvrDataManager = singletons.getDvrDataManager(); in onCreate()
DSeriesScheduleRowAdapter.java70 TvSingletons singletons = TvSingletons.getSingletons(context); in SeriesScheduleRowAdapter() local
71 mDvrManager = singletons.getDvrManager(); in SeriesScheduleRowAdapter()
72 mDataManager = singletons.getDvrDataManager(); in SeriesScheduleRowAdapter()
/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/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/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/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/app/
DSampleNetworkTuner.java24 import com.android.tv.common.singletons.HasSingletons;
26 import com.android.tv.tuner.sample.network.singletons.SampleNetworkSingletons;
76 public SampleNetworkSingletons singletons() { in singletons() method in SampleNetworkTuner
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/app/
DSampleDvbTuner.java24 import com.android.tv.common.singletons.HasSingletons;
26 import com.android.tv.tuner.sample.dvb.singletons.SampleDvbSingletons;
76 public SampleDvbSingletons singletons() { in singletons() method in SampleDvbTuner
/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/onboarding/
DNewSourcesFragment.java54 TvSingletons singletons = TvSingletons.getSingletons(getActivity()); in onCreateView() local
55 singletons.getSetupUtils().markAllInputsRecognized(singletons.getTvInputManagerHelper()); in onCreateView()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionActivity.java86 TvSingletons singletons = TvSingletons.getSingletons(this); in deleteSelectedIds() local
88 singletons.getDvrDataManager().getRecordedPrograms(mSeriesRecordingId).size(); in deleteSelectedIds()
90 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/ui/
DChannelBannerView.java53 import com.android.tv.common.singletons.HasSingletons;
232 MySingletons singletons = HasSingletons.get(MySingletons.class, context); in ChannelBannerView() local
233 mCurrentChannelProvider = singletons.getCurrentChannelProvider(); in ChannelBannerView()
234 mCurrentProgramProvider = singletons.getCurrentProgramProvider(); in ChannelBannerView()
235 mCurrentPlayingPositionProvider = singletons.getCurrentPlayingPositionProvider(); in ChannelBannerView()
236 mTvInputManagerHelper = singletons.getTvInputManagerHelperSingleton(); in ChannelBannerView()
237 mTvOverlayManager = singletons.getOverlayManagerProvider(); in ChannelBannerView()
266 mDvrManager = singletons.getDvrManagerSingleton(); in ChannelBannerView()
DProgramDetailsFragment.java159 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in onLoadDetails() local
160 mDvrDataManager = singletons.getDvrDataManager(); in onLoadDetails()
161 mDvrManager = singletons.getDvrManager(); in onLoadDetails()
162 mDvrScheduleManager = singletons.getDvrScheduleManager(); in onLoadDetails()
/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/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;
/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/src/com/android/tv/guide/
DProgramItemView.java108 TvSingletons singletons = TvSingletons.getSingletons(view.getContext());
109 Tracker tracker = singletons.getTracker();
128 DvrManager dvrManager = singletons.getDvrManager();
224 TvSingletons singletons = TvSingletons.getSingletons(getContext()); in ProgramItemView() local
225 mDvrManager = singletons.getDvrManager(); in ProgramItemView()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DTestSingletonApp.java34 import com.android.tv.common.singletons.HasSingletons;
50 import com.android.tv.tuner.singletons.TunerSingletons;
238 public TvSingletons singletons() { in singletons() method in TestSingletonApp

12