Lines Matching refs:rating

126      * Broadcast intent action used to query available content rating systems.
128 * The TV input manager service locates available content rating systems by querying broadcast
130 * rating systems to the user by declaring a suitable broadcast receiver in its manifest.
133 * AndroidManifest.xml to advertise custom content rating systems. The meta-data specifies a
134 * resource that contains a description of each content rating system that is provided by the
148 * XML resource whose root element is <code>&lt;rating-system-definitions&gt;</code> that
149 * contains zero or more <code>&lt;rating-system-definition&gt;</code> elements. Each <code>
150 * &lt;rating-system-definition&gt;</code> element specifies the ratings, sub-ratings and rating
151 * orders of a particular content rating system.
160 * Content rating systems metadata associated with {@link #ACTION_QUERY_CONTENT_RATING_SYSTEMS}.
162 * Specifies the resource ID of an XML resource that describes the content rating systems that
288 * its content rating is not blocked by parental controls.
297 * since its content rating is blocked by parental controls.
300 * @param rating The content ration of the blocked program.
302 public void onContentBlocked(Session session, TvContentRating rating) {
426 void postContentBlocked(final TvContentRating rating) {
430 mSessionCallback.onContentBlocked(mSession, rating);
687 public void onContentBlocked(String rating, int seq) {
694 record.postContentBlocked(TvContentRating.unflattenFromString(rating));
908 * Checks whether a given TV content rating is blocked by the user.
910 * @param rating The TV content rating to check.
911 * @return {@code true} if the given TV content rating is blocked, {@code false} otherwise.
913 public boolean isRatingBlocked(TvContentRating rating) {
914 if (rating == null) {
915 throw new IllegalArgumentException("rating cannot be null");
918 return mService.isRatingBlocked(rating.flattenToString(), mUserId);
934 for (String rating : mService.getBlockedRatings(mUserId)) {
935 ratings.add(TvContentRating.unflattenFromString(rating));
944 * Adds a user blocked content rating.
946 * @param rating The content rating to block.
952 public void addBlockedRating(TvContentRating rating) {
953 if (rating == null) {
954 throw new IllegalArgumentException("rating cannot be null");
957 mService.addBlockedRating(rating.flattenToString(), mUserId);
964 * Removes a user blocked content rating.
966 * @param rating The content rating to unblock.
972 public void removeBlockedRating(TvContentRating rating) {
973 if (rating == null) {
974 throw new IllegalArgumentException("rating cannot be null");
977 mService.removeBlockedRating(rating.flattenToString(), mUserId);
984 * Returns the list of all TV content rating systems defined.