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
50 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in ParentalControlSettings()
54 return mTvInputManager.isParentalControlsEnabled(); in isParentalControlsEnabled()
58 mTvInputManager.setParentalControlsEnabled(enabled); in setParentalControlsEnabled()
72 for (TvContentRating tvContentRating : mTvInputManager.getBlockedRatings()) { in setContentRatingSystemEnabled()
74 mTvInputManager.removeBlockedRating(tvContentRating); in setContentRatingSystemEnabled()
87 mRatings = new HashSet<>(mTvInputManager.getBlockedRatings()); in loadRatings()
91 Set<TvContentRating> removed = new HashSet<>(mTvInputManager.getBlockedRatings()); in storeRatings()
94 mTvInputManager.removeBlockedRating(tvContentRating); in storeRatings()
98 added.removeAll(mTvInputManager.getBlockedRatings()); in storeRatings()
[all …]
DContentRatingsManager.java35 private final TvInputManagerHelper.TvInputManagerInterface mTvInputManager; field in ContentRatingsManager
40 this.mTvInputManager = tvInputManager; in ContentRatingsManager()
47 List<TvContentRatingSystemInfo> infos = mTvInputManager.getTvContentRatingSystemList(); in update()
/packages/apps/TV/tuner/src/com/android/tv/tuner/
DDvbDeviceAccessor.java50 private final TvInputManager mTvInputManager; field in DvbDeviceAccessor
70 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in DvbDeviceAccessor()
76 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in getDvbDeviceList()
98 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in isDvbDeviceAvailable()
113 mTvInputManager, deviceInfo.getDvbDeviceInfo(), device); in openDvbDevice()
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java169 protected final TvInputManagerInterface mTvInputManager; field in TvInputManagerHelper
200 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
213 mInputStateMap.put(inputId, mTvInputManager.getInputState(inputId));
244 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
311 mTvInputManager = tvInputManager; in TvInputManagerHelper()
349 mTvInputManager.registerCallback(mInternalCallback, mHandler); in start()
358 mTvInputManager.unregisterCallback(mInternalCallback); in stop()
445 return mTvInputManager != null; in hasTvInputManager()
650 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in initInputMaps()
659 int state = mTvInputManager.getInputState(inputId); in initInputMaps()
/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.java55 private final TvInputManager mTvInputManager; field in DataManagerSearch
61 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in DataManagerSearch()
306 if (ratings == null || ratings.isEmpty() || !mTvInputManager.isParentalControlsEnabled()) { in isRatingBlocked()
311 if (mTvInputManager.isRatingBlocked(rating)) { in isRatingBlocked()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputsFragment.java60 private TvInputManager mTvInputManager; field in InputsFragment
71 mTvInputManager = (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE); in onCreate()
104 for (TvInputInfo info : mTvInputManager.getTvInputList()) { in refresh()
112 state = mTvInputManager.getInputState(info.getId()); in refresh()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java82 private TvInputManager mTvInputManager; field in RecommendationDataManager
277 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in onStart()
278 mTvInputManager.registerCallback(mInternalCallback, mHandler); in onStart()
279 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in onStart()
294 mTvInputManager.unregisterCallback(mInternalCallback); in onStop()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeTvInputManagerHelper.java30 return (FakeTvInputManager) mTvInputManager; in getFakeTvInputManager()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java215 private final TvInputManager mTvInputManager; field in TunerSessionWorkerExoV2
284 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TunerSessionWorkerExoV2()
1958 boolean isParentalControlsEnabled = mTvInputManager.isParentalControlsEnabled(); in doParentalControls()
2013 && mTvInputManager.isRatingBlocked(rating)) { in getContentRatingOfCurrentProgramBlocked()
DTunerSessionWorker.java216 private final TvInputManager mTvInputManager; field in TunerSessionWorker
283 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TunerSessionWorker()
1944 boolean isParentalControlsEnabled = mTvInputManager.isParentalControlsEnabled(); in doParentalControls()
1999 && mTvInputManager.isRatingBlocked(rating)) { in getContentRatingOfCurrentProgramBlocked()