Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/parental/
DParentalControlSettings.java49 private final TvInputManager mTvInputManager; field in ParentalControlSettings
57 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in ParentalControlSettings()
61 return mTvInputManager.isParentalControlsEnabled(); in isParentalControlsEnabled()
65 mTvInputManager.setParentalControlsEnabled(enabled); in setParentalControlsEnabled()
77 for (TvContentRating tvContentRating : mTvInputManager.getBlockedRatings()) { in setContentRatingSystemEnabled()
79 mTvInputManager.removeBlockedRating(tvContentRating); in setContentRatingSystemEnabled()
92 mRatings = new HashSet<>(mTvInputManager.getBlockedRatings()); in loadRatings()
96 Set<TvContentRating> removed = new HashSet<>(mTvInputManager.getBlockedRatings()); in storeRatings()
99 mTvInputManager.removeBlockedRating(tvContentRating); in storeRatings()
103 added.removeAll(mTvInputManager.getBlockedRatings()); in storeRatings()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java98 private final TvInputManager mTvInputManager; field in TvInputManagerHelper
128 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
136 mInputStateMap.put(inputId, mTvInputManager.getInputState(inputId));
170 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
214 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TvInputManagerHelper()
230 mTvInputManager.registerCallback(mInternalCallback, mHandler); in start()
239 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in start()
246 int state = mTvInputManager.getInputState(inputId); in start()
259 mTvInputManager.unregisterCallback(mInternalCallback); in stop()
348 return mTvInputManager != null; in hasTvInputManager()
/packages/apps/TV/src/com/android/tv/tuner/
DDvbDeviceAccessor.java54 private final TvInputManager mTvInputManager; field in DvbDeviceAccessor
73 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in DvbDeviceAccessor()
79 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in getDvbDeviceList()
103 List dvbDeviceInfoList = (List) sGetDvbDeviceListMethod.invoke(mTvInputManager); in isDvbDeviceAvailable()
117 mTvInputManager, deviceInfo.getDvbDeviceInfo(), device); in openDvbDevice()
/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()
202 if (mTvInputManager.isParentalControlsEnabled()) { in searchChannels()
361 if (mTvInputManager.isParentalControlsEnabled()) { in searchPrograms()
409 if (TextUtils.isEmpty(ratings) || !mTvInputManager.isParentalControlsEnabled()) { in isRatingBlocked()
415 if (mTvInputManager.isRatingBlocked(r)) { in isRatingBlocked()
428 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()
273 || !mTvInputManager.isParentalControlsEnabled()) { in isRatingBlocked()
278 if (mTvInputManager.isRatingBlocked(rating)) { in isRatingBlocked()
/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/recommendation/
DRecommendationDataManager.java81 private TvInputManager mTvInputManager; field in RecommendationDataManager
295 mTvInputManager = (TvInputManager) mContext.getSystemService(Context.TV_INPUT_SERVICE); in onStart()
296 mTvInputManager.registerCallback(mInternalCallback, mHandler); in onStart()
297 for (TvInputInfo input : mTvInputManager.getTvInputList()) { in onStart()
312 mTvInputManager.unregisterCallback(mInternalCallback); in onStop()
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerSessionWorker.java200 private final TvInputManager mTvInputManager; field in TunerSessionWorker
232 mTvInputManager = (TvInputManager) context.getSystemService(Context.TV_INPUT_SERVICE); in TunerSessionWorker()
1647 boolean isParentalControlsEnabled = mTvInputManager.isParentalControlsEnabled(); in doParentalControls()
1692 if (!Objects.equals(mUnblockedContentRating, rating) && mTvInputManager in getContentRatingOfCurrentProgramBlocked()