Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/parental/
DParentalControlSettings.java42 private final TvInputManager mTvInputManager; field in ParentalControlSettings
51 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in ParentalControlSettings()
56 return mTvInputManager.isParentalControlsEnabled(); in isParentalControlsEnabled()
60 mTvInputManager.setParentalControlsEnabled(enabled); in setParentalControlsEnabled()
74 for (TvContentRating tvContentRating : mTvInputManager.getBlockedRatings()) { in setContentRatingSystemEnabled()
76 mTvInputManager.removeBlockedRating(tvContentRating); in setContentRatingSystemEnabled()
89 mRatings = new HashSet<>(mTvInputManager.getBlockedRatings()); in loadRatings()
93 Set<TvContentRating> removed = new HashSet<>(mTvInputManager.getBlockedRatings()); in storeRatings()
96 mTvInputManager.removeBlockedRating(tvContentRating); in storeRatings()
100 added.removeAll(mTvInputManager.getBlockedRatings()); in storeRatings()
[all …]
DContentRatingsManager.java36 private final TvInputManagerHelper.TvInputManagerInterface mTvInputManager; field in ContentRatingsManager
41 this.mTvInputManager = tvInputManager; in ContentRatingsManager()
48 List<TvContentRatingSystemInfo> infos = mTvInputManager.getTvContentRatingSystemList(); in update()
/packages/apps/TV/tuner/src/com/android/tv/tuner/dvb/
DDvbDeviceAccessor.java53 private final TvInputManager mTvInputManager; field in DvbDeviceAccessor
73 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in DvbDeviceAccessor()
83 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in getDvbDeviceList()
108 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in isDvbDeviceAvailable()
126 mTvInputManager, deviceInfo.getDvbDeviceInfo(), device); in openDvbDevice()
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java176 protected final TvInputManagerInterface mTvInputManager; field in TvInputManagerHelper
207 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
220 mInputStateMap.put(inputId, mTvInputManager.getInputState(inputId));
251 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
320 mTvInputManager = tvInputManager; in TvInputManagerHelper()
358 mTvInputManager.registerCallback(mInternalCallback, mHandler); in start()
366 mTvInputManager.unregisterCallback(mInternalCallback); in stop()
453 return mTvInputManager != null; in hasTvInputManager()
660 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in initInputMaps()
669 int state = mTvInputManager.getInputState(inputId); in initInputMaps()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputsFragment.java63 private TvInputManager mTvInputManager; field in InputsFragment
75 mTvInputManager = (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE); in onCreate()
111 for (TvInputInfo info : mTvInputManager.getTvInputList()) { in refresh()
119 state = mTvInputManager.getInputState(info.getId()); in refresh()
/packages/apps/TV/src/com/android/tv/search/
DTvProviderSearch.java63 private final TvInputManager mTvInputManager; field in TvProviderSearch
69 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TvProviderSearch()
234 if (mTvInputManager.isParentalControlsEnabled()) { in searchChannels()
417 if (mTvInputManager.isParentalControlsEnabled()) { in searchPrograms()
482 if (TextUtils.isEmpty(ratings) || !mTvInputManager.isParentalControlsEnabled()) { in isRatingBlocked()
488 if (mTvInputManager.isRatingBlocked(r)) { in isRatingBlocked()
501 List<TvInputInfo> inputList = mTvInputManager.getTvInputList(); in searchInputs()
DDataManagerSearch.java58 private final TvInputManager mTvInputManager; field in DataManagerSearch
64 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in DataManagerSearch()
309 if (ratings == null || ratings.isEmpty() || !mTvInputManager.isParentalControlsEnabled()) { in isRatingBlocked()
314 if (mTvInputManager.isRatingBlocked(rating)) { in isRatingBlocked()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java85 private TvInputManager mTvInputManager; field in RecommendationDataManager
283 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in onStart()
284 mTvInputManager.registerCallback(mInternalCallback, mHandler); in onStart()
285 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in onStart()
300 mTvInputManager.unregisterCallback(mInternalCallback); in onStop()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeTvInputManagerHelper.java31 return (FakeTvInputManager) mTvInputManager; in getFakeTvInputManager()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java220 private final TvInputManager mTvInputManager; field in TunerSessionWorkerExoV2
312 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TunerSessionWorkerExoV2()
1936 boolean isParentalControlsEnabled = mTvInputManager.isParentalControlsEnabled(); in doParentalControls()
1994 && mTvInputManager.isRatingBlocked(rating)) { in getContentRatingOfCurrentProgramBlocked()
DTunerSessionWorker.java221 private final TvInputManager mTvInputManager; field in TunerSessionWorker
310 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TunerSessionWorker()
2013 boolean isParentalControlsEnabled = mTvInputManager.isParentalControlsEnabled(); in doParentalControls()
2070 && mTvInputManager.isRatingBlocked(rating)) { in getContentRatingOfCurrentProgramBlocked()