/packages/apps/TV/src/com/android/tv/parental/ |
D | ParentalControlSettings.java | 177 for (TvContentRating rating : ratings) { in getBlockedRating() 178 if (mTvInputManager.isRatingBlocked(rating)) { in getBlockedRating() 179 return rating; in getBlockedRating() 197 ContentRatingSystem contentRatingSystem, Rating rating, boolean blocked) { in setRatingBlocked() argument 198 return setRatingBlockedInternal(contentRatingSystem, rating, null, blocked); in setRatingBlocked() 218 public boolean isRatingBlocked(ContentRatingSystem contentRatingSystem, Rating rating) { in isRatingBlocked() argument 219 return mRatings.contains(toTvContentRating(contentRatingSystem, rating)); in isRatingBlocked() 236 Rating rating, in setSubRatingBlocked() argument 239 return setRatingBlockedInternal(contentRatingSystem, rating, subRating, blocked); in setSubRatingBlocked() 251 ContentRatingSystem contentRatingSystem, Rating rating, SubRating subRating) { in isSubRatingEnabled() argument [all …]
|
D | ContentRatingsManager.java | 82 Rating rating = getRating(canonicalRating); in getDisplayNameForRating() local 83 if (rating == null) { in getDisplayNameForRating() 86 List<SubRating> subRatings = getSubRatings(rating, canonicalRating); in getDisplayNameForRating() 93 return rating.getTitle() + " (" + builder.substring(0, builder.length() - 2) + ")"; in getDisplayNameForRating() 95 return rating.getTitle(); in getDisplayNameForRating() 105 for (Rating rating : system.getRatings()) { in getRating() 106 if (rating.getName().equals(canonicalRating.getMainRating())) { in getRating() 107 return rating; in getRating() 115 private List<SubRating> getSubRatings(Rating rating, TvContentRating canonicalRating) { in getSubRatings() argument 117 if (rating == null in getSubRatings() [all …]
|
D | ContentRatingLevelPolicy.java | 62 for (Rating rating : contentRatingSystem.getRatings()) { in getRatingsForAge() 63 if (rating.getAgeHint() < ageLimit) { in getRatingsForAge() 70 rating.getName()); in getRatingsForAge() 72 for (SubRating subRating : rating.getSubRatings()) { in getRatingsForAge() 76 rating.getName(), subRating.getName()); in getRatingsForAge() 87 for (Rating rating : contentRatingSystem.getRatings()) { in getMaxAge() 88 if (maxAge < rating.getAgeHint()) { in getMaxAge() 89 maxAge = rating.getAgeHint(); in getMaxAge()
|
D | ContentRatingSystem.java | 109 for (Rating rating : mRatings) { in getRating() 110 if (TextUtils.equals(rating.getName(), name)) { in getRating() 111 return rating; in getRating() 138 public boolean ownsRating(TvContentRating rating) { in ownsRating() argument 139 return mDomain.equals(rating.getDomain()) && mName.equals(rating.getRatingSystem()); in ownsRating() 294 for (Rating rating : ratings) { in build() 295 if (rating.getSubRatings().contains(subRating)) { in build() 517 public int getRatingIndex(Rating rating) { in getRatingIndex() argument 519 if (mRatingOrder.get(i).getName().equals(rating.getName())) { in getRatingIndex() 535 for (Rating rating : ratings) { in build() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | RatingsFragment.java | 138 for (Rating rating : s.getRatings()) { in getItemList() 140 rating.getSubRatings().isEmpty() in getItemList() 141 ? new RatingItem(s, rating) in getItemList() 142 : new RatingWithSubItem(s, rating); in getItemList() 144 if (rating.getSubRatings().isEmpty()) { in getItemList() 274 private RatingItem(ContentRatingSystem contentRatingSystem, Rating rating) { in RatingItem() argument 275 super(rating.getTitle(), rating.getDescription()); in RatingItem() 277 mRating = rating; in RatingItem() 278 mIcon = rating.getIcon(); in RatingItem() 358 private RatingWithSubItem(ContentRatingSystem contentRatingSystem, Rating rating) { in RatingWithSubItem() argument [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/ |
D | TvContentRatingCache.java | 85 for (String rating : ratingStrings) { in stringToContentRatings() 87 contentRatings.add(TvContentRating.unflattenFromString(rating)); in stringToContentRatings() 89 Log.e(TAG, "Can't parse the content rating: '" + rating + "'", e); in stringToContentRatings() 126 for (TvContentRating rating : contentRatings) { in contentRatingsToString() 127 ratingStrings.add(rating.flattenToString()); in contentRatingsToString()
|
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/support/tis/ |
D | TisSessionTest.java | 86 TvContentRating rating = TvContentRating.createRating("1", "2", "3"); in notifyContentBlocked() local 87 testSession.notifyContentBlocked(rating); in notifyContentBlocked() 88 assertThat(testCallback.blockedContentRating).isEqualTo(rating); in notifyContentBlocked() 162 public void notifyContentBlocked(@NonNull TvContentRating rating) { in notifyContentBlocked() argument 163 this.blockedContentRating = rating; in notifyContentBlocked()
|
D | WrappedSessionTest.java | 151 TvContentRating rating = in onUnblockContent() local 154 wrappedSession.onUnblockContent(rating); in onUnblockContent() 155 Mockito.verify(mockDelegate).onUnblockContent(rating); in onUnblockContent()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | SectionParser.java | 1354 String rating = null; in getUsRating() local 1368 rating = RATING_REGION_TABLE_US_TV[value]; in getUsRating() 1391 if (rating == null) { in getUsRating() 1393 rating = STRING_US_TV_Y; in getUsRating() 1395 rating = STRING_US_TV_Y7; in getUsRating() 1400 if (STRING_US_TV_Y7.equals(rating) && value == 1) { in getUsRating() 1412 if (rating != null) { in getUsRating() 1434 if (rating == null) { in getUsRating() 1440 RATING_DOMAIN, RATING_REGION_RATING_SYSTEM_US_TV, rating, subratingArray) in getUsRating() 1456 String rating = null; in getKrRating() local [all …]
|
D | PsipData.java | 658 public RegionalRating(int dimension, int rating) { in RegionalRating() argument 660 mRating = rating; in RegionalRating()
|
/packages/apps/TV/common/src/com/android/tv/common/support/tis/ |
D | TifSession.java | 144 public final void notifyContentBlocked(@NonNull final TvContentRating rating) { in notifyContentBlocked() argument 145 callback.notifyContentBlocked(rating); in notifyContentBlocked() 186 void notifyContentBlocked(@NonNull final TvContentRating rating); in notifyContentBlocked() argument
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
D | voicemail_transcription.proto | 70 // Enum that specifies the user's rating for a voicemail transcription. 147 // The rating for a single voicemail transcription. 152 // The user's rating of the voicemail transcription. 160 repeated TranscriptionRating rating = 1; field
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TunableTvView.java | 380 public void onContentBlocked(String inputId, TvContentRating rating) { 381 if (rating != null && rating.equals(mBlockedContentRating)) { 384 mBlockedContentRating = rating; 778 public void unblockContent(TvContentRating rating) { in unblockContent() argument 779 mTvView.unblockContent(rating); in unblockContent() 1145 TvContentRating rating = in shouldShowImageForTuning() local 1147 return !(mParentControlEnabled && rating != null); in shouldShowImageForTuning()
|
D | DetailsActivity.java | 136 public void onPinChecked(boolean checked, int type, String rating) { in onPinChecked() argument 138 mOnPinCheckedListener.onPinChecked(checked, type, rating); in onPinChecked()
|
/packages/apps/TV/src/com/android/tv/dialog/ |
D | PinDialogFragment.java | 103 public static PinDialogFragment create(int type, String rating) { in create() argument 107 args.putString(ARGS_RATING, rating); in create() 374 void onPinChecked(boolean checked, int type, String rating);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
D | TranscriptionRatingHelper.java | 90 TranscriptionRating rating = in getFeedbackRequest() local 95 return SendTranscriptionFeedbackRequest.newBuilder().addRating(rating).build(); in getFeedbackRequest()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackActivity.java | 89 public void onPinChecked(boolean checked, int type, String rating) { in onPinChecked() argument 91 mOnPinCheckedListener.onPinChecked(checked, type, rating); in onPinChecked()
|
D | DvrPlayer.java | 102 void onContentBlocked(TvContentRating rating); in onContentBlocked() argument 555 public void onContentBlocked(String inputId, TvContentRating rating) { in setTvViewCallbacks() 557 mOnContentBlockedListener.onContentBlocked(rating); in setTvViewCallbacks()
|
/packages/apps/Car/Radio/src/com/android/car/radio/media/ |
D | TunerSession.java | 166 public void onSetRating(Rating rating) { in onSetRating() argument 171 if (rating.hasHeart()) { in onSetRating()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/ |
D | MediaController.java | 378 public void setRating(Rating rating) { in setRating() argument 379 mTransportDelegate.setRating(rating); in setRating()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/ |
D | PlaybackViewModel.java | 507 RatingCompat rating = mMetadata.getRating( in getRatingAction() local 509 hasHeart = rating != null && rating.hasHeart(); in getRatingAction()
|
/packages/apps/TV/src/com/android/tv/search/ |
D | DataManagerSearch.java | 312 for (TvContentRating rating : ratings) { in isRatingBlocked() 314 if (mTvInputManager.isRatingBlocked(rating)) { in isRatingBlocked()
|
/packages/apps/TV/src/com/android/tv/ |
D | InputSessionManager.java | 572 public void onContentBlocked(String inputId, TvContentRating rating) { in onContentBlocked() argument 573 mDelegate.onContentBlocked(inputId, rating); in onContentBlocked()
|
D | MainActivity.java | 965 public void onPinChecked(boolean checked, int type, String rating) { in onPinChecked() argument 973 TvContentRating unblockedRating = TvContentRating.unflattenFromString(rating); in onPinChecked() 2955 TvContentRating rating = mTvView.getBlockedContentRating(); 2962 && rating.equals(mAllowedRatingBeforeShrunken)) { 2964 mTvView.unblockContent(rating); 2966 mOverlayManager.setBlockingContentRating(rating);
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerSessionWorkerExoV2.java | 1992 for (TvContentRating rating : ratings) { in getContentRatingOfCurrentProgramBlocked() 1993 if (!Objects.equals(mUnblockedContentRating, rating) in getContentRatingOfCurrentProgramBlocked() 1994 && mTvInputManager.isRatingBlocked(rating)) { in getContentRatingOfCurrentProgramBlocked() 1995 return rating; in getContentRatingOfCurrentProgramBlocked()
|