Home
last modified time | relevance | path

Searched refs:ContentRatingSystem (Results 1 – 8 of 8) sorted by relevance

/packages/apps/TV/src/com/android/tv/parental/
DParentalControlSettings.java23 import com.android.tv.parental.ContentRatingSystem.Rating;
24 import com.android.tv.parental.ContentRatingSystem.SubRating;
68 ContentRatingSystem contentRatingSystem, boolean enabled) { in setContentRatingSystemEnabled()
86 public boolean isContentRatingSystemEnabled(ContentRatingSystem contentRatingSystem) { in isContentRatingSystemEnabled()
153 public boolean setRatingBlocked(ContentRatingSystem contentRatingSystem, Rating rating, in setRatingBlocked()
193 public boolean isRatingBlocked(ContentRatingSystem contentRatingSystem, Rating rating) { in isRatingBlocked()
210 public boolean setSubRatingBlocked(ContentRatingSystem contentRatingSystem, Rating rating, in setSubRatingBlocked()
223 public boolean isSubRatingEnabled(ContentRatingSystem contentRatingSystem, Rating rating, in isSubRatingEnabled()
228 private boolean setRatingBlockedInternal(ContentRatingSystem contentRatingSystem, Rating rating, in setRatingBlockedInternal()
257 public int getBlockedStatus(ContentRatingSystem contentRatingSystem, Rating rating) { in getBlockedStatus()
[all …]
DContentRatingSystem.java31 public class ContentRatingSystem { class
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) { in equals()
143 ContentRatingSystem other = (ContentRatingSystem) obj; in equals()
154 private ContentRatingSystem( in ContentRatingSystem() method in ContentRatingSystem
236 public ContentRatingSystem build() { in build()
304 return new ContentRatingSystem(mName, mDomain, mTitle, mDescription, mCountries, in build()
DContentRatingsManager.java24 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); in update()
58 public List<ContentRatingSystem> getContentRatingSystems() { in getContentRatingSystems()
87 for (ContentRatingSystem system : mContentRatingSystems) { in getRating()
DContentRatingsParser.java28 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) { in parse()
71 List<ContentRatingSystem> ratingSystems = null; in parse()
93 private List<ContentRatingSystem> parse(XmlResourceParser parser, String domain, in parse()
131 List<ContentRatingSystem> ratingSystems = new ArrayList<>(); in parse()
177 private ContentRatingSystem parseRatingSystemDefinition(XmlResourceParser parser, String domain, in parseRatingSystemDefinition()
179 ContentRatingSystem.Builder builder = new ContentRatingSystem.Builder(mContext); in parseRatingSystemDefinition()
DContentRatingLevelPolicy.java21 import com.android.tv.parental.ContentRatingSystem.Rating;
22 import com.android.tv.parental.ContentRatingSystem.SubRating;
55 for (ContentRatingSystem contentRatingSystem : manager.getContentRatingSystems()) { in getRatingsForAge()
83 private static int getMaxAge(ContentRatingSystem contentRatingSystem) { in getMaxAge()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java23 import com.android.tv.parental.ContentRatingSystem;
49 List<ContentRatingSystem> contentRatingSystems = in getDescription()
51 Collections.sort(contentRatingSystems, ContentRatingSystem.DISPLAY_NAME_COMPARATOR); in getDescription()
53 for (ContentRatingSystem s : contentRatingSystems) { in getDescription()
79 List<ContentRatingSystem> contentRatingSystems = in getItemList()
81 Collections.sort(contentRatingSystems, ContentRatingSystem.DISPLAY_NAME_COMPARATOR); in getItemList()
87 for (ContentRatingSystem s : contentRatingSystems) { in getItemList()
134 List<ContentRatingSystem> contentRatingSystems = in setDefaultRatingSystemsIfNeeded()
138 for (ContentRatingSystem s : contentRatingSystems) { in setDefaultRatingSystemsIfNeeded()
147 private final ContentRatingSystem mContentRatingSystem;
[all …]
DRatingsFragment.java31 import com.android.tv.parental.ContentRatingSystem;
32 import com.android.tv.parental.ContentRatingSystem.Rating;
114 List<ContentRatingSystem> contentRatingSystems = in getItemList()
116 Collections.sort(contentRatingSystems, ContentRatingSystem.DISPLAY_NAME_COMPARATOR); in getItemList()
118 for (ContentRatingSystem s : contentRatingSystems) { in getItemList()
175 private void updateDependentRatingItems(ContentRatingSystem.Order order, in updateDependentRatingItems()
210 protected final ContentRatingSystem mContentRatingSystem;
214 private final List<ContentRatingSystem.Order> mOrders = new ArrayList<>();
217 private RatingItem(ContentRatingSystem contentRatingSystem, Rating rating) { in RatingItem()
222 for (ContentRatingSystem.Order order : mContentRatingSystem.getOrders()) { in RatingItem()
[all …]
DSubRatingsFragment.java25 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) { in SubRatingsFragment()