From 4acc7c3f4e1d63e702b9a4782b01e4a4ef152e71 Mon Sep 17 00:00:00 2001 From: Sungsoo Lim Date: Mon, 4 Aug 2014 15:19:00 +0900 Subject: [PATCH] TIF: Add content ratings for France Change-Id: Ib90a9ab918a6a7187a05323fe0f0122ffe747add --- core/res/res/values/strings.xml | 11 +++++++ core/res/res/xml/tv_content_rating_systems.xml | 35 ++++++++++++++++++++++ media/java/android/media/tv/TvContentRating.java | 38 ++++++++++++++++++++---- 3 files changed, 78 insertions(+), 6 deletions(-) diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index e94a046034cd..479c5ff4036d 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -4873,6 +4873,17 @@ + FR-TV + Les programmes tous publics + Déconseillé aux -10 ans + Déconseillé aux -12 ans + Déconseillé aux -16 ans + Déconseillé aux -18 ans + Les programmes tous publics + Programmes comportant certaines scènes susceptibles de heurter les -10 ans. + Programmes pouvant troubler les -12 ans, notamment lorsque le scénario recourt de façon systématique et répétée à la violence physique ou psychologique. + Programmes à caractère érotique ou de grande violence, susceptibles de nuire à l’épanouissement physique, mental ou moral des -16 ans. + Programmes pornographiques ou de très grande violence, réservés à un public adulte averti et susceptibles de nuire à l’épanouissement physique, mental ou moral des -18 ans. diff --git a/core/res/res/xml/tv_content_rating_systems.xml b/core/res/res/xml/tv_content_rating_systems.xml index 57fd2ad09387..c174c62d91e1 100644 --- a/core/res/res/xml/tv_content_rating_systems.xml +++ b/core/res/res/xml/tv_content_rating_systems.xml @@ -44,6 +44,41 @@ + + + + + + + + + + + + + + + + + + diff --git a/media/java/android/media/tv/TvContentRating.java b/media/java/android/media/tv/TvContentRating.java index ecf41857aa8b..bca66473f068 100644 --- a/media/java/android/media/tv/TvContentRating.java +++ b/media/java/android/media/tv/TvContentRating.java @@ -140,10 +140,10 @@ import java.util.List; * FI_TV * * - * + * The content rating system in French + * * - * + * A rating string for {@code FR_TV}. According to CSA in France, if no rating appears, + * the program is most likely appropriate for all ages. In Android TV, however, + * {@code RATING_FR_ALL} is used for handling that case. + * + * + * FR_TV_10 + * A rating string for {@code FR_TV}. This rating is for programs that are not + * recommended for children under 10. + * + * + * FR_TV_12 + * A rating string for {@code FR_TV}. This rating is for programs that are not + * recommended for children under 12. Programs rated this are not allowed to air before + * 10:00 pm (Some channels and programs are subject to exception). + * + * + * FR_TV_16 + * A rating string for {@code FR_TV}. This rating is for programs that are not + * recommended for children under 16. Programs rated this are not allowed to air before + * 10:30 pm (Some channels and programs are subject to exception). + * + * + * FR_TV_18 + * A rating string for {@code FR_TV}. This rating is for programs that are not + * recommended for persons under 18. Programs rated this are allowed between midnight and + * 5 am and only on some channels. The access to these programs is locked by a personal + * password. + * *