Home
last modified time | relevance | path

Searched refs:mTvInputManager (Results 1 – 9 of 9) sorted by relevance

/packages/apps/TV/src/com/android/tv/parental/
DParentalControlSettings.java48 private final TvInputManager mTvInputManager; field in ParentalControlSettings
56 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in ParentalControlSettings()
60 return mTvInputManager.isParentalControlsEnabled(); in isParentalControlsEnabled()
64 mTvInputManager.setParentalControlsEnabled(enabled); in setParentalControlsEnabled()
76 for (TvContentRating tvContentRating : mTvInputManager.getBlockedRatings()) { in setContentRatingSystemEnabled()
78 mTvInputManager.removeBlockedRating(tvContentRating); in setContentRatingSystemEnabled()
91 mRatings = new HashSet<>(mTvInputManager.getBlockedRatings()); in loadRatings()
95 Set<TvContentRating> removed = new HashSet<>(mTvInputManager.getBlockedRatings()); in storeRatings()
98 mTvInputManager.removeBlockedRating(tvContentRating); in storeRatings()
102 added.removeAll(mTvInputManager.getBlockedRatings()); in storeRatings()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java57 private final TvInputManager mTvInputManager; field in TvInputManagerHelper
74 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
77 mInputStateMap.put(inputId, mTvInputManager.getInputState(inputId));
101 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
118 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TvInputManagerHelper()
130 mTvInputManager.registerCallback(mInternalCallback, mHandler); in start()
134 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in start()
138 int state = mTvInputManager.getInputState(inputId); in start()
151 mTvInputManager.unregisterCallback(mInternalCallback); in stop()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrSessionManager.java50 private final TvInputManager mTvInputManager; field in DvrSessionManager
61 mTvInputManager = tvInputManager; in DvrSessionManager()
94 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId); in onInputAdded()
114 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId); in onInputUpdated()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/
DDvbDeviceAccessor.java61 private final TvInputManager mTvInputManager; field in DvbDeviceAccessor
80 mTvInputManager = (TvInputManager) context.getSystemService(context.TV_INPUT_SERVICE); in DvbDeviceAccessor()
86 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in getDvbDeviceList()
102 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in isDvbDeviceAvailable()
116 mTvInputManager, deviceInfo.getDvbDeviceInfo(), device); in openDvbDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputsFragment.java56 private TvInputManager mTvInputManager; field in InputsFragment
67 mTvInputManager = (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE); in onCreate()
100 for (TvInputInfo info : mTvInputManager.getTvInputList()) { in refresh()
108 state = mTvInputManager.getInputState(info.getId()); in refresh()
/packages/apps/TV/src/com/android/tv/search/
DTvProviderSearch.java64 private final TvInputManager mTvInputManager; field in TvProviderSearch
70 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TvProviderSearch()
201 if (mTvInputManager.isParentalControlsEnabled()) { in searchChannels()
362 if (mTvInputManager.isParentalControlsEnabled()) { in searchPrograms()
408 if (TextUtils.isEmpty(ratings) || !mTvInputManager.isParentalControlsEnabled()) { in isRatingBlocked()
414 if (mTvInputManager.isRatingBlocked(r)) { in isRatingBlocked()
428 List<TvInputInfo> inputList = mTvInputManager.getTvInputList(); in searchInputs()
DDataManagerSearch.java57 private final TvInputManager mTvInputManager; field in DataManagerSearch
63 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in DataManagerSearch()
241 || !mTvInputManager.isParentalControlsEnabled()) { in isRatingBlocked()
246 if (mTvInputManager.isRatingBlocked(rating)) { in isRatingBlocked()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java91 private TvInputManager mTvInputManager; field in RecommendationDataManager
301 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in onStart()
302 mTvInputManager.registerCallback(mInternalCallback, mHandler); in onStart()
303 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in onStart()
318 mTvInputManager.unregisterCallback(mInternalCallback); in onStop()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
DTunerSessionWorker.java178 private TvInputManager mTvInputManager; field in TunerSessionWorker
208 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TunerSessionWorker()
1373 boolean isParentalControlsEnabled = mTvInputManager.isParentalControlsEnabled(); in doParentalControls()
1418 if (!Objects.equals(mUnblockedContentRating, rating) && mTvInputManager in getContentRatingOfCurrentProgramBlocked()