Searched refs:rating (Results 1 - 25 of 26) sorted by path

12

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
H A DMediaController.java250 public void setRating(Rating rating) { argument
251 mTransportDelegate.setRating(rating);
/packages/apps/Car/Radio/src/com/android/car/radio/media/
H A DTunerSession.java153 public void onSetRating(RatingCompat rating) { argument
156 if (rating.hasHeart()) {
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
H A DPlaybackModel.java558 Rating rating = metadata.getRating(MediaMetadata.METADATA_KEY_USER_RATING);
559 hasHeart = rating != null && rating.hasHeart();
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
H A DTranscriptionRatingHelper.java29 * Send voicemail transcription rating feedback to the server and record the fact that feedback was
45 * Method for sending a user voicemail transcription feedback rating to the server and recording
63 /** Worker class used to record a user's quality rating of a voicemail transcription. */
90 TranscriptionRating rating =
95 return SendTranscriptionFeedbackRequest.newBuilder().addRating(rating).build();
/packages/apps/TV/common/src/com/android/tv/common/
H A DTvContentRatingCache.java48 * Returns an array TvContentRatings from a string of comma separated set of rating strings
85 for (String rating : ratingStrings) {
87 contentRatings.add(TvContentRating.unflattenFromString(rating));
89 Log.e(TAG, "Can't parse the content rating: '" + rating + "'", e);
118 * Returns a string of each flattened content rating, sorted and concatenated together with a
/packages/apps/TV/src/com/android/tv/
H A DInputSessionManager.java560 public void onContentBlocked(String inputId, TvContentRating rating) { argument
561 mDelegate.onContentBlocked(inputId, rating);
H A DMainActivity.java938 public void onPinChecked(boolean checked, int type, String rating) { argument
946 TvContentRating unblockedRating = TvContentRating.unflattenFromString(rating);
2880 TvContentRating rating = mTvView.getBlockedContentRating();
2882 // with the channel watched before shrunken, we allow the rating which was allowed
2887 && rating.equals(mAllowedRatingBeforeShrunken)) {
2889 mTvView.unblockContent(rating);
2891 mOverlayManager.setBlockingContentRating(rating);
/packages/apps/TV/src/com/android/tv/data/
H A DProgram.java952 for (TvContentRating rating : mContentRatings) {
953 out.writeString(rating.flattenToString());
961 /** The source of the rating. */
987 * @param source the source of the rating
/packages/apps/TV/src/com/android/tv/dialog/
H A DPinDialogFragment.java112 public static PinDialogFragment create(int type, String rating) { argument
116 args.putString(ARGS_RATING, rating);
757 * @param rating The target rating to unblock for.
759 void onPinChecked(boolean checked, int type, String rating); argument
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
H A DDvrDetailsActivity.java99 public void onPinChecked(boolean checked, int type, String rating) { argument
101 mOnPinCheckedListener.onPinChecked(checked, type, rating);
H A DDvrDetailsFragment.java254 public void onPinChecked(boolean checked, int type, String rating) {
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
H A DDvrPlaybackActivity.java84 public void onPinChecked(boolean checked, int type, String rating) { argument
86 mOnPinCheckedListener.onPinChecked(checked, type, rating);
H A DDvrPlaybackOverlayFragment.java214 boolean checked, int type, String rating) {
H A DDvrPlayer.java91 void onContentBlocked(TvContentRating rating); argument
519 public void onContentBlocked(String inputId, TvContentRating rating) {
521 mOnContentBlockedListener.onContentBlocked(rating);
/packages/apps/TV/src/com/android/tv/parental/
H A DContentRatingLevelPolicy.java30 private static final int AGE_THRESHOLD_FOR_LEVEL_LOW = -1; // Highest age for each rating system
47 throw new IllegalArgumentException("Unexpected rating level");
62 for (Rating rating : contentRatingSystem.getRatings()) {
63 if (rating.getAgeHint() < ageLimit) {
70 rating.getName());
72 for (SubRating subRating : rating.getSubRatings()) {
76 rating.getName(), subRating.getName());
87 for (Rating rating : contentRatingSystem.getRatings()) {
88 if (maxAge < rating.getAgeHint()) {
89 maxAge = rating
[all...]
H A DContentRatingSystem.java31 * A comparator that implements the display order of a group of content rating systems.
45 // Name of this content rating system. It should be unique in an XML file.
48 // Domain of this content rating system. It's package name now.
51 // Title of this content rating system. (e.g. TV-PG)
54 // Description of this content rating system.
57 // Country code of this content rating system.
60 // Display name of this content rating system consisting of the associated country
73 // <rating android:name="US_TVPG_Y" />
74 // <rating android:name="US_TVPG_Y7" />
112 for (Rating rating
141 ownsRating(TvContentRating rating) argument
520 getRatingIndex(Rating rating) argument
[all...]
H A DContentRatingsManager.java56 /** Returns the content rating system with the give ID. */
67 /** Returns a new list of all content rating systems defined. */
73 * Returns the long name of a given content rating including descriptors (sub-ratings) that is
80 Rating rating = getRating(canonicalRating);
81 if (rating == null) {
84 List<SubRating> subRatings = getSubRatings(rating, canonicalRating);
91 return rating.getTitle() + " (" + builder.substring(0, builder.length() - 2) + ")";
93 return rating.getTitle();
103 for (Rating rating : system.getRatings()) {
104 if (rating
113 getSubRatings(Rating rating, TvContentRating canonicalRating) argument
[all...]
H A DParentalControlSettings.java31 /** The rating and all of its sub-ratings are blocked. */
34 /** The rating is blocked but not all of its sub-ratings are blocked. */
37 /** The rating is not blocked. */
70 // Ensure no ratings are blocked for the selected rating system
108 // UNRATED contents should be blocked unless the rating level is none or custom
133 // UNRATED contents should be blocked unless the rating level is none or custom
163 * Sets the blocked status of a given content rating.
165 * <p>Note that a call to this method automatically changes the current rating level to {@code
168 * @param contentRatingSystem The content rating system where the given rating belong
173 setRatingBlocked( ContentRatingSystem contentRatingSystem, Rating rating, boolean blocked) argument
215 isRatingBlocked(ContentRatingSystem contentRatingSystem, Rating rating) argument
231 setSubRatingBlocked( ContentRatingSystem contentRatingSystem, Rating rating, SubRating subRating, boolean blocked) argument
247 isSubRatingEnabled( ContentRatingSystem contentRatingSystem, Rating rating, SubRating subRating) argument
252 setRatingBlockedInternal( ContentRatingSystem contentRatingSystem, Rating rating, SubRating subRating, boolean blocked) argument
285 getBlockedStatus(ContentRatingSystem contentRatingSystem, Rating rating) argument
297 toTvContentRating( ContentRatingSystem contentRatingSystem, Rating rating) argument
303 toTvContentRating( ContentRatingSystem contentRatingSystem, Rating rating, SubRating subRating) argument
[all...]
/packages/apps/TV/src/com/android/tv/search/
H A DDataManagerSearch.java317 for (TvContentRating rating : ratings) {
319 if (mTvInputManager.isRatingBlocked(rating)) {
/packages/apps/TV/src/com/android/tv/ui/
H A DChannelBannerView.java308 * Sets the content rating that blocks the current watched channel for displaying it in the
311 public void setBlockingContentRating(TvContentRating rating) { argument
312 mBlockingContentRating = rating;
H A DTunableTvView.java416 public void onContentBlocked(String inputId, TvContentRating rating) {
417 if (rating != null && rating.equals(mBlockedContentRating)) {
420 mBlockedContentRating = rating;
807 public void unblockContent(TvContentRating rating) { argument
808 mTvView.unblockContent(rating);
937 /** Returns currently blocked content rating. {@code null} if it's not blocked. */
1152 TvContentRating rating =
1154 return !(mParentControlEnabled && rating != null);
H A DTvOverlayManager.java704 /** Sets blocking content rating of the currently playing TV channel. */
705 public void setBlockingContentRating(TvContentRating rating) { argument
707 mChannelBannerView.setBlockingContentRating(rating);
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
H A DRatingsFragment.java75 // A map from the rating system ID string to RatingItem objects.
127 for (Rating rating : s.getRatings()) {
129 rating.getSubRatings().isEmpty()
130 ? new RatingItem(s, rating)
131 : new RatingWithSubItem(s, rating);
133 if (rating.getSubRatings().isEmpty()) {
139 // Only include rating systems that don't contain any sub ratings in the map for
147 // Display the attribution if our content rating system is selected.
256 private RatingItem(ContentRatingSystem contentRatingSystem, Rating rating) { argument
257 super(rating
340 RatingWithSubItem(ContentRatingSystem contentRatingSystem, Rating rating) argument
[all...]
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
H A DPsipData.java627 return String.format("Parental rating descriptor, ratings:" + mRatings);
659 public RegionalRating(int dimension, int rating) { argument
661 mRating = rating;
846 + "length: %6d, rating: %s, audio tracks: %d, caption tracks: %d, "
/packages/apps/TV/tuner/src/com/android/tv/tuner/ts/
H A DSectionParser.java1176 // TODO: Add logic to generating content rating for dvb. See DVB document 6.2.28 for
1177 // details. Content rating here will be null
1316 * @param descriptors {@link TsDescriptor} list which may contains rating information
1338 * Gets US content rating and subratings (if any).
1340 * @param ratingRegion a {@link RatingRegion} instance which may contain rating information.
1341 * @return A string representing the US content rating and subratings. The format of the string
1349 String rating = null;
1359 // Therefore, rating and ratingIndex are assigned before any corresponding
1363 rating = RATING_REGION_TABLE_US_TV[value];
1386 if (rating
[all...]

Completed in 366 milliseconds

12