/packages/apps/TV/src/com/android/tv/parental/ |
D | ParentalControlSettings.java | 42 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 …]
|
D | ContentRatingsManager.java | 35 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/ |
D | DvbDeviceAccessor.java | 50 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/ |
D | TvInputManagerHelper.java | 169 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/ |
D | TvProviderSearch.java | 63 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()
|
D | DataManagerSearch.java | 55 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/ |
D | InputsFragment.java | 60 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/ |
D | RecommendationDataManager.java | 82 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/ |
D | FakeTvInputManagerHelper.java | 30 return (FakeTvInputManager) mTvInputManager; in getFakeTvInputManager()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerSessionWorkerExoV2.java | 215 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()
|
D | TunerSessionWorker.java | 216 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()
|