HomeSort by relevance Sort by last modified time
    Searched refs:ContentRatingSystem (Results 1 - 8 of 8) sorted by null

  /packages/apps/TV/src/com/android/tv/parental/
ContentRatingsManager.java 24 import com.android.tv.parental.ContentRatingSystem.Rating;
25 import com.android.tv.parental.ContentRatingSystem.SubRating;
31 private final List<ContentRatingSystem> mContentRatingSystems = new ArrayList<>();
48 List<ContentRatingSystem> list = parser.parse(info);
58 public List<ContentRatingSystem> getContentRatingSystems() {
87 for (ContentRatingSystem system : mContentRatingSystems) {
ContentRatingLevelPolicy.java 21 import com.android.tv.parental.ContentRatingSystem.Rating;
22 import com.android.tv.parental.ContentRatingSystem.SubRating;
55 for (ContentRatingSystem contentRatingSystem : manager.getContentRatingSystems()) {
56 if (!settings.isContentRatingSystemEnabled(contentRatingSystem)) {
61 ageLimit = getMaxAge(contentRatingSystem);
63 for (Rating rating : contentRatingSystem.getRatings()) {
68 contentRatingSystem.getDomain(), contentRatingSystem.getName(),
73 contentRatingSystem.getDomain(), contentRatingSystem.getName()
    [all...]
ParentalControlSettings.java 23 import com.android.tv.parental.ContentRatingSystem.Rating;
24 import com.android.tv.parental.ContentRatingSystem.SubRating;
68 ContentRatingSystem contentRatingSystem, boolean enabled) {
70 TvSettings.addContentRatingSystem(mContext, contentRatingSystem.getId());
77 if (contentRatingSystem.ownsRating(tvContentRating)) {
82 TvSettings.removeContentRatingSystem(mContext, contentRatingSystem.getId());
86 public boolean isContentRatingSystemEnabled(ContentRatingSystem contentRatingSystem) {
87 return TvSettings.hasContentRatingSystem(mContext, contentRatingSystem.getId())
    [all...]
ContentRatingSystem.java 31 public class ContentRatingSystem {
35 public static final Comparator<ContentRatingSystem> DISPLAY_NAME_COMPARATOR =
36 new Comparator<ContentRatingSystem>() {
38 public int compare(ContentRatingSystem s1, ContentRatingSystem s2) {
142 if (obj instanceof ContentRatingSystem) {
143 ContentRatingSystem other = (ContentRatingSystem) obj;
154 private ContentRatingSystem(
236 public ContentRatingSystem build()
    [all...]
ContentRatingsParser.java 28 import com.android.tv.parental.ContentRatingSystem.Order;
29 import com.android.tv.parental.ContentRatingSystem.Rating;
30 import com.android.tv.parental.ContentRatingSystem.SubRating;
70 public List<ContentRatingSystem> parse(TvContentRatingSystemInfo info) {
71 List<ContentRatingSystem> ratingSystems = null;
93 private List<ContentRatingSystem> parse(XmlResourceParser parser, String domain,
131 List<ContentRatingSystem> ratingSystems = new ArrayList<>();
177 private ContentRatingSystem parseRatingSystemDefinition(XmlResourceParser parser, String domain,
179 ContentRatingSystem.Builder builder = new ContentRatingSystem.Builder(mContext)
    [all...]
  /packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
RatingSystemsFragment.java 23 import com.android.tv.parental.ContentRatingSystem;
49 List<ContentRatingSystem> contentRatingSystems =
51 Collections.sort(contentRatingSystems, ContentRatingSystem.DISPLAY_NAME_COMPARATOR);
53 for (ContentRatingSystem s : contentRatingSystems) {
79 List<ContentRatingSystem> contentRatingSystems =
81 Collections.sort(contentRatingSystems, ContentRatingSystem.DISPLAY_NAME_COMPARATOR);
87 for (ContentRatingSystem s : contentRatingSystems) {
134 List<ContentRatingSystem> contentRatingSystems =
138 for (ContentRatingSystem s : contentRatingSystems) {
147 private final ContentRatingSystem mContentRatingSystem
    [all...]
RatingsFragment.java 31 import com.android.tv.parental.ContentRatingSystem;
32 import com.android.tv.parental.ContentRatingSystem.Rating;
114 List<ContentRatingSystem> contentRatingSystems =
116 Collections.sort(contentRatingSystems, ContentRatingSystem.DISPLAY_NAME_COMPARATOR);
118 for (ContentRatingSystem s : contentRatingSystems) {
175 private void updateDependentRatingItems(ContentRatingSystem.Order order,
210 protected final ContentRatingSystem mContentRatingSystem;
214 private final List<ContentRatingSystem.Order> mOrders = new ArrayList<>();
217 private RatingItem(ContentRatingSystem contentRatingSystem, Rating rating)
    [all...]
SubRatingsFragment.java 25 import com.android.tv.parental.ContentRatingSystem;
26 import com.android.tv.parental.ContentRatingSystem.Rating;
27 import com.android.tv.parental.ContentRatingSystem.SubRating;
39 private final ContentRatingSystem mContentRatingSystem;
43 public SubRatingsFragment(ContentRatingSystem contentRatingSystem, Rating rating) {
44 mContentRatingSystem = contentRatingSystem;

Completed in 398 milliseconds