From b4bbfbcef3dec8f0de13a6ee474858f3a3cd535d Mon Sep 17 00:00:00 2001 From: Sungsoo Lim Date: Wed, 6 Aug 2014 19:49:42 +0900 Subject: [PATCH] TIF: Add a content rating system for Brazil - Add Brazil TV content ratings - Remove Italy TV content rating since it doesn't have the official one. References: http://en.wikipedia.org/wiki/Brazilian_Advisory_Rating_System http://portal.mj.gov.br/services/DocumentManagement/FileDownload.EZTSvc.asp?DocumentID=%7B25A80220-B0E3-47FD-923F-246B6184C3C6%7D&ServiceInstUID=%7B59D015FA-30D3-48EE-B124-02A314CB7999%7D Change-Id: Ibed9b4be0871b50b9dcd95be3a015f5a1e58676d --- core/res/res/values/strings.xml | 15 ++- .../res/res/xml/tv_content_rating_systems.xml | 38 ++++++- .../android/media/tv/TvContentRating.java | 100 +++++++++++++++--- 3 files changed, 133 insertions(+), 20 deletions(-) diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 6ca37364a2b1b..21f48431d40ca 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -4870,6 +4870,19 @@ + Brazil Content Rating + Livre + 10 anos + 12 anos + 14 anos + 16 anos + 18 anos + Livre para todos os públicos + Não recomendado para menores de 10 anos + Não recomendado para menores de 10 anos + Não recomendado para menores de 14 anos + Não recomendado para menores de 16 anos + Não recomendado para menores de 18 anos @@ -4936,8 +4949,6 @@ - - diff --git a/core/res/res/xml/tv_content_rating_systems.xml b/core/res/res/xml/tv_content_rating_systems.xml index 8c1112402a8ff..7679866aa934b 100644 --- a/core/res/res/xml/tv_content_rating_systems.xml +++ b/core/res/res/xml/tv_content_rating_systems.xml @@ -66,6 +66,42 @@ + + + + + + + + + + + + + + + + @@ -192,8 +228,6 @@ - - diff --git a/media/java/android/media/tv/TvContentRating.java b/media/java/android/media/tv/TvContentRating.java index fdaa408efd0d8..2e4d0310ef0e0 100644 --- a/media/java/android/media/tv/TvContentRating.java +++ b/media/java/android/media/tv/TvContentRating.java @@ -355,10 +355,90 @@ import java.util.List; * BG_TV_ALL * * - * + * + * BR_TV_L + * A rating string for {@code BR_TV}. This classification applies to works which contain + * predominantly positive contents and which do not bring unsuitable elements subject to + * ratings to ages higher than 10, such as the ones listed below: + *
+ *
Violence: Fantasy violence; display of arms with no violence; deaths with no + * violence; bones and skeletons with no violence.
+ *
Sex and Nudity: Non-erotic nudity.
+ *
Drugs: Moderate or insinuated use of legal drugs.
+ *
+ * + * + * + * BR_TV_10 + * A rating string for {@code BR_TV}. Not recommended for ages under 10. The following + * contents are accepted for this age range: + *
+ *
Violence: Display of arms with violence; fear/tension; distress; bones and + * skeletons with signs of violent acts; criminal acts without violence; derogatory + * language.
+ *
Sex and Nudity: Educational contents about sex.
+ *
Drugs: Oral description of the use of legal drugs; discussion on the issue + * "drug trafficking"; medicinal use of illegal drugs.
+ *
+ * + * + * + * BR_TV_12 + * A rating string for {@code BR_TV}. Not recommended for ages under 12. The following + * contents are accepted for this age range: + *
+ *
Violence: Violent act; body injury; description of violence; presence of + * blood; victim's grief; natural or accidental death with violence; violent act against + * animals; exposure to danger; showing people in embarrassing or degrading situations; + * verbal aggression; obscenity; bullying; corpses; sexual harassment; overvaluation of the + * physical beauty; overvaluation of consumption.
+ *
Sex and Nudity: Veiled nudity; sexual innuendo; sexual fondling; masturbation; + * foul language; sex content language; sex simulation; sexual appeal.
+ *
Drugs: Use of legal drugs; inducing the use of legal drugs; irregular use of + * medication; mention to illegal drugs.
+ *
+ * + * + * + * BR_TV_14 + * A rating string for {@code BR_TV}. Not recommended for ages under 14. The following + * contents are accepted for this age range: + *
+ *
Violence: Intentional death; stigma/prejudice.
+ *
Sex and Nudity: Nudity; erotization; vulgarity; sexual intercourse; + * prostitution.
+ *
Drugs: Insinuation of the use of illegal drugs; verbal descriptions of the use + * or trafficking of illegal drugs; discussion on the "decriminalization of illegal drugs".
+ *
+ * + * + * + * BR_TV_16 + * A rating string for {@code BR_TV}. Not recommended for ages under 16. The following + * contents are accepted for this age range: + *
+ *
Violence: Rape; sexual exploitation; sexual coercion; torture; mutilation; + * suicide; gratuitous violence/banalization of violence; abortion, death penalty, + * euthanasia.
+ *
Sex and Nudity: Intense sexual intercourse.
+ *
Drugs: Production or trafficking of any illegal drug; use of illegal drugs; + * inducing the use of illegal drugs.
+ *
+ * + * + * + * BR_TV_18 + * A rating string for {@code BR_TV}. Not recommended for ages under 18. The following + * contents are accepted for this age range: + *
+ *
Violence: Violence of high impact; exaltation, glamorization and/or + * incitement to violence; cruelty; hate crimes; pedophilia.
+ *
Sex and Nudity: Explicit sex; complex/strong impact sexual intercourses + * (incest, group sex, violent fetish and pornography overall).
+ *
Drugs: Inciting the use of illegal drugs.
+ *
+ * + * * * - * @@ -705,10 +781,6 @@ import java.util.List; * * * - * @@ -765,10 +837,6 @@ import java.util.List; * * * - *