TvContentRating.java revision 1fd38bd99610d7dc2a9c335ae2af4089fe1006a1
1e16873467cda89d905027458e2664c759465d463Sungsoo Lim/*
2e16873467cda89d905027458e2664c759465d463Sungsoo Lim * Copyright (C) 2014 The Android Open Source Project
3e16873467cda89d905027458e2664c759465d463Sungsoo Lim *
4e16873467cda89d905027458e2664c759465d463Sungsoo Lim * Licensed under the Apache License, Version 2.0 (the "License");
5e16873467cda89d905027458e2664c759465d463Sungsoo Lim * you may not use this file except in compliance with the License.
6e16873467cda89d905027458e2664c759465d463Sungsoo Lim * You may obtain a copy of the License at
7e16873467cda89d905027458e2664c759465d463Sungsoo Lim *
8e16873467cda89d905027458e2664c759465d463Sungsoo Lim *      http://www.apache.org/licenses/LICENSE-2.0
9e16873467cda89d905027458e2664c759465d463Sungsoo Lim *
10e16873467cda89d905027458e2664c759465d463Sungsoo Lim * Unless required by applicable law or agreed to in writing, software
11e16873467cda89d905027458e2664c759465d463Sungsoo Lim * distributed under the License is distributed on an "AS IS" BASIS,
12e16873467cda89d905027458e2664c759465d463Sungsoo Lim * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13e16873467cda89d905027458e2664c759465d463Sungsoo Lim * See the License for the specific language governing permissions and
14e16873467cda89d905027458e2664c759465d463Sungsoo Lim * limitations under the License.
15e16873467cda89d905027458e2664c759465d463Sungsoo Lim */
16e16873467cda89d905027458e2664c759465d463Sungsoo Lim
17e16873467cda89d905027458e2664c759465d463Sungsoo Limpackage android.media.tv;
18e16873467cda89d905027458e2664c759465d463Sungsoo Lim
196057102dbb746593a7d59cf377c969b62e38c664Jae Seoimport android.annotation.SystemApi;
205c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Limimport android.net.Uri;
21e16873467cda89d905027458e2664c759465d463Sungsoo Limimport android.text.TextUtils;
22e16873467cda89d905027458e2664c759465d463Sungsoo Limimport android.util.Log;
23e16873467cda89d905027458e2664c759465d463Sungsoo Lim
24e16873467cda89d905027458e2664c759465d463Sungsoo Limimport java.util.Arrays;
256057102dbb746593a7d59cf377c969b62e38c664Jae Seoimport java.util.Collections;
26e16873467cda89d905027458e2664c759465d463Sungsoo Limimport java.util.List;
27e16873467cda89d905027458e2664c759465d463Sungsoo Lim
28e16873467cda89d905027458e2664c759465d463Sungsoo Lim/**
29e16873467cda89d905027458e2664c759465d463Sungsoo Lim * A class representing a TV content rating.
305c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * When a TV input service provides the content rating information of a program into TV provider,
315c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * TvContentRating class will be used for generating the value of {@link
325c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * TvContract.Programs#COLUMN_CONTENT_RATING}. To create an object of {@link TvContentRating}, use
335c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * the {@link #createRating} method with valid arguments. The arguments could be a system defined
345c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * strings, or a TV input service defined strings.
355c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * TV input service defined strings are in an xml file defined in <code>&lt;{@link
365c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * android.R.styleable#TvInputService tv-input}&gt;</code> with the {@link
375c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * android.R.attr#contentRatingSystemXml contentRatingSystemXml} attribute by the TV input service.
385c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *
395c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <h3> Content Rating System XML format </h3>
405c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * The XML file for publishing content rating system should follow the DTD bellow:
415c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <p><pre class="prettyprint">
425c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * &lt;?xml version="1.0" encoding="UTF-8"?&gt;
435c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * &lt;!DOCTYPE rating-systems [
445c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ELEMENT rating-system-definitions (rating-system-definition+)&gt;
455c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ELEMENT rating-system-definition (
465c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         (sub-rating-definition*, rating-definition, sub-rating-definition*)+, order*)&gt;
475c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ATTLIST rating-system-definition
485c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         id          ID    #REQUIRED
495c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         displayName CDATA #IMPLIED
505c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         description CDATA #IMPLIED
515c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         country     CDATA #IMPLIED&gt;
525c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ELEMENT sub-rating-definition EMPTY&gt;
535c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ATTLIST sub-rating-definition
545c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         id          ID    #REQUIRED
555c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         displayName CDATA #IMPLIED
565c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         icon        CDATA #IMPLIED
575c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         description CDATA #IMPLIED&gt;
585c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ELEMENT rating-definition (sub-rating*))&gt;
595c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ATTLIST rating-definition
605c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         id          ID    #REQUIRED
615c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         displayName CDATA #IMPLIED
625c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         icon        CDATA #IMPLIED
635c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         description CDATA #IMPLIED&gt;
645c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ELEMENT sub-rating EMPTY&gt;
655c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ATTLIST sub-rating id IDREF #REQUIRED&gt;
665c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ELEMENT order (rating, rating+)&gt;
675c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ELEMENT rating EMPTY&gt;
685c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     &lt;!ATTLIST rating id IDREF #REQUIRED&gt;
695c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * ]&gt;
705c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * </pre></p>
715c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *
725c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <h3>System defined rating strings</h3>
735c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *
745c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <u>System defined string for {@code domain}</u>
755c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <table border="0" cellspacing="0" cellpadding="0">
765c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
775c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>String value</td>
785c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Comments</td>
795c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
805c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
815c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>android.media.tv</td>
825c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Used for creating system defined content ratings</td>
835c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
845c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * </table>
855c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <u>System defined string for {@code ratingSystem}</u>
865c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <table border="0" cellspacing="0" cellpadding="0">
875c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
885c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>String value</td>
895c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Comments</td>
905c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
91e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
92e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>AM_TV</td>
93e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
94e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
95e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
96e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>AR_TV</td>
97e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
98e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
991fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
100e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>AU_TV</td>
1011fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>Australian TV Classification</td>
1021fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
103e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
104e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>BG_TV</td>
105e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
106e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
107e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
108e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>BR_TV</td>
109e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
110e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
111e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
112e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CA_TV</td>
113e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
114e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
115e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
116e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CH_TV</td>
117e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
118e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
119e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
120e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CL_TV</td>
121e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
122e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
123e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
124e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CO_TV</td>
125e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
126e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
1276b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     <tr>
128e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>DE_TV</td>
1296b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>The Germany television rating system</td>
1306b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     </tr>
131e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
132e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>DK_TV</td>
133e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
134e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
135b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     <tr>
136e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ES_TV</td>
137b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>The Spanish rating system for television programs</td>
138b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     </tr>
139e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
140e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>FI_TV</td>
141e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
142e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
1434acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     <tr>
144e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>FR_TV</td>
1454acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>The content rating system in French</td>
1464acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     </tr>
147e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
148e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>GR_TV</td>
149e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
150e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
151e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
152e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>HK_TV</td>
153e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
154e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
155e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
156e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>HU_TV</td>
157e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
158e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
159e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
160e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ID_TV</td>
161e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
162e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
163e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
164e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IE_TV</td>
165e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
166e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
167e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
168e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IL_TV</td>
169e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
170e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
171e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
172e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IN_TV</td>
173e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
174e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
175e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
176e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IS_TV</td>
177e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
178e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
179e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
180e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IT_TV</td>
181e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
182e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
183e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
184e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KH_TV</td>
185e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
186e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
1875c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
1885c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>KR_TV</td>
1895c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>The South Korean television rating system</td>
1905c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
191e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
192e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MV_TV</td>
193e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
194e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
195e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
196e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MX_TV</td>
197e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
198e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
199e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
200e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MY_TV</td>
201e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
202e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
2033596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
204e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>NL_TV</td>
2053596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>The television rating system in the Netherlands</td>
2063596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
207e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
208e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>NZ_TV</td>
209e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
210e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
211e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
212e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PE_TV</td>
213e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
214e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
215e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
216e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PH_TV</td>
217e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
218e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
219e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
220e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PL_TV</td>
221e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
222e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
223e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
224e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PT_TV</td>
225e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
226e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
227e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
228e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RO_TV</td>
229e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
230e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
231e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
232e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RU_TV</td>
233e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
234e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
235e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
236e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RS_TV</td>
237e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
238e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
239e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
240e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>SG_TV</td>
241e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
242e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
243e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
244e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>SI_TV</td>
245e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
246e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
247e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
248e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TH_TV</td>
249e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
250e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
251e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
252e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TR_TV</td>
253e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
254e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
255e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
256e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TW_TV</td>
257e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
258e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
259e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
260e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>UA_TV</td>
261e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
262e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
263e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <tr>
264e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>US_TVPG</td>
265e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>The TV Parental Guidelines for US TV content ratings</td>
266e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr>
267e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
268e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>VE_TV</td>
269e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
270e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
271e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
272e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ZA_TV</td>
273e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
274e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
2755c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * </table>
2765c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *
2775c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <u>System defined string for {@code rating}</u>
2785c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <table border="0" cellspacing="0" cellpadding="0">
2795c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
2805c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>String value</td>
2815c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Comments</td>
2825c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
283e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
284e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>AM_TV_ALL</td>
285e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
286e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
287e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
288e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>AR_TV_ALL</td>
289e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
290e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
2911fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
2921fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>AU_TV_CTC</td>
2931fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>A rating string for {@code AU_TV}. The content has been assessed and approved for
2941fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         advertising unclassified films. Any advertising of unclassified films must display the
2951fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         CTC message.</td>
2961fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
2971fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
2981fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>AU_TV_G</td>
2991fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>A rating string for {@code AU_TV}. The content is very mild in impact. The G
3001fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         classification is suitable for everyone. G products may contain classifiable elements
3011fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         such as language and themes that are very mild in impact. However, some G-classified
3021fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         films may contain content that is not of interest to children.</td>
3031fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
3041fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
3051fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>AU_TV_PG</td>
3061fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>A rating string for {@code AU_TV}. The content is mild in impact. The impact of PG
3071fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         (Parental Guidance) classified films should be no higher than mild, but they may contain
3081fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         content that children find confusing or upsetting and may require the guidance or parents
3091fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         and guardians. They may, for example, contain classifiable elements such as language and
3101fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         themes that are mild in impact. It is not recommended for viewing or playing by persons
3111fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         under 15 without guidance from parents or guardians.</td>
3121fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
3131fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
3141fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>AU_TV_M</td>
3151fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>A rating string for {@code AU_TV}. The content is moderate in impact. Films
3161fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         classified M (Mature) contain content of a moderate impact and are recommended for
3171fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         teenagers aged 15 years and over. Children under 15 may legally access this material
3181fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         because it is an advisory category. However, M classified films may include classifiable
3191fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         elements such as violence and nudity of moderate impact that are not recommended for
3201fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         children under 15 years. Parents and guardians may need to find out more about the film’s
3211fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         specific content, before deciding whether the material is suitable for their child.</td>
3221fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
3231fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
3241fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>AU_TV_MA16</td>
3251fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>A rating string for {@code AU_TV}. The content is strong in impact. MA 15+ classified
3261fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         material contains strong content and is legally restricted to persons 15 years and over.
3271fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         It may contain classifiable elements such as sex scenes and drug use that are strong in
3281fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         impact. A person may be asked to show proof of their age before hiring or purchasing an
3291fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         MA 15+ film. Cinema staff may also request that the person show proof of their age before
3301fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         allowing them to watch an MA 15+ film. Children under the age of 15 may not legally
3311fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         watch, buy or hire MA 15+ classified material unless they are in the company of a parent
3321fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         or adult guardian. Children under 15 who go to the cinema to see an MA 15+ film must be
3331fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         accompanied by a parent or adult guardian for the duration of the film. The parent or
3341fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         adult guardian must also purchase the movie ticket for the child. The guardian must be
3351fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         an adult exercising parental control over the person under 15 years of age. The guardian
3361fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         needs to be 18 years or older.</td>
3371fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
3381fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
3391fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>AU_TV_R18</td>
3401fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>A rating string for {@code AU_TV}. The content is high in impact. R 18+ classified
3411fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         material is restricted to adults. Such material may contain classifiable elements such as
3421fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         sex scenes and drug use that are high in impact. Some material classified R18+ may be
3431fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         offensive to sections of the adult community. A person may be asked for proof of their
3441fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         age before purchasing, hiring or viewing R18+ films at a retail store or cinema.</td>
3451fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
3461fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     <tr>
3471fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>AU_TV_X18</td>
3481fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         <td>A rating string for {@code AU_TV}. X 18+ films are restricted to adults. This
3491fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         classification is a special and legally restricted category which contains only sexually
3501fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         explicit content. That is, material which shows actual sexual intercourse and other
3511fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         sexual activity between consenting adults. X18+ films are only available for sale or hire
3521fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *         in the ACT and the NT.</td>
3531fd38bd99610d7dc2a9c335ae2af4089fe1006a1Sungsoo Lim *     </tr>
354e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
355e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>BG_TV_ALL</td>
356e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
357e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
358e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
359e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>BR_TV_ALL</td>
360e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
361e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
362e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
363e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CA_TV_ALL</td>
364e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
365e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
366e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
367e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CH_TV_ALL</td>
368e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
369e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
370e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
371e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CL_TV_ALL</td>
372e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
373e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
374e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
375e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CO_TV_ALL</td>
376e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
377e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
3786b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     <tr>
379e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>DE_TV_ALL</td>
3806b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>Without restriction. There are time schedules and certain age groups which have to be
3816b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         considered. {@code DE_TV_ALL} is scheduled in daytime (6:00AM – 8:00PM). However, cinema
3826b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         films classified with "12" may be shown during the daytime, if they are not considered
3836b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         harmful to younger children.</td>
3846b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     </tr>
3856b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     <tr>
3866b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>DE_TV_12</td>
3876b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>Suitable for 12 years and above. There are time schedules and certain age groups
3886b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         which have to be considered. {@code DE_TV_12} is scheduled in primetime (from 8:00PM
3896b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         – 10.00 p.m.).</td>
3906b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     </tr>
3916b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     <tr>
3926b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>DE_TV_16</td>
3936b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>Suitable for 16 years and above. There are time schedules and certain age groups
3946b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         which have to be considered. {@code DE_TV_16} is scheduled in late evening (from 10:00PM
3956b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         - 11:00PM). </td>
3966b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     </tr>
3976b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     <tr>
3986b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>DE_TV_18</td>
3996b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         <td>Suitable for 18 years and above. There are time schedules and certain age groups
4006b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         which have to be considered. {@code DE_TV_18} is scheduled in late night (from 11:00PM
4016b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *         - 6:00AM). </td>
4026b444eed2cbc6b124c9cfabb47fd924d7a55aa99Sungsoo Lim *     </tr>
403e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
404e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>DK_TV_ALL</td>
405e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
406e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
407b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     <tr>
408e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ES_TV_ALL</td>
409b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>A rating string for {@code ES_TV}. This rating is for programs for all ages.</td>
410b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     </tr>
411b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     <tr>
412b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>ES_TV_I</td>
413b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>A rating string for {@code ES_TV}. This rating is for the recommended programs
414b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         especially for children.</td>
415b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     </tr>
416b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     <tr>
417b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>ES_TV_7</td>
418b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>A rating string for {@code ES_TV}. This rating is for programs not recommended for
419b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         children under 7.</td>
420b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     </tr>
421b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     <tr>
422b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>ES_TV_13</td>
423b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>A rating string for {@code ES_TV}. This rating is for programs not recommended for
424b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         children under 13.</td>
425b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     </tr>
426b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     <tr>
427b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>ES_TV_18</td>
428b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         <td>A rating string for {@code ES_TV}. This rating is for programs not recommended for
429b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *         children under 18.</td>
430b1caf4d8178be53b432399747b5114275c200e43Dongwon Kang *     </tr>
431e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
432e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>FI_TV_ALL</td>
433e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
434e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
4354acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     <tr>
436e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>FR_TV_ALL</td>
4374acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>A rating string for {@code FR_TV}. According to CSA in France, if no rating appears,
4384acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         the program is most likely appropriate for all ages. In Android TV, however,
4394acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         {@code RATING_FR_ALL} is used for handling that case.</td>
4404acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     </tr>
4414acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     <tr>
4424acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>FR_TV_10</td>
4434acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>A rating string for {@code FR_TV}. This rating is for programs that are not
4444acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         recommended for children under 10.</td>
4454acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     </tr>
4464acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     <tr>
4474acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>FR_TV_12</td>
4484acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>A rating string for {@code FR_TV}. This rating is for programs that are not
4494acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         recommended for children under 12. Programs rated this are not allowed to air before
4504acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         10:00 pm (Some channels and programs are subject to exception). </td>
4514acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     </tr>
4524acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     <tr>
4534acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>FR_TV_16</td>
4544acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>A rating string for {@code FR_TV}. This rating is for programs that are not
4554acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         recommended for children under 16. Programs rated this are not allowed to air before
4564acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         10:30 pm (Some channels and programs are subject to exception). </td>
4574acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     </tr>
4584acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     <tr>
4594acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>FR_TV_18</td>
4604acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         <td>A rating string for {@code FR_TV}.  This rating is for programs that are not
4614acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         recommended for persons under 18. Programs rated this are allowed between midnight and
4624acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         5 am and only on some channels. The access to these programs is locked by a personal
4634acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *         password.</td>
4644acc7c3f4e1d63e702b9a4782b01e4a4ef152e71Sungsoo Lim *     </tr>
465e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
466e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>GR_TV_ALL</td>
467e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
468e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
469e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
470e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>HK_TV_ALL</td>
471e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
472e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
473e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
474e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>HU_TV_ALL</td>
475e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
476e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
477e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
478e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ID_TV_ALL</td>
479e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
480e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
481e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
482e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IE_TV_ALL</td>
483e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
484e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
485e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
486e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IL_TV_ALL</td>
487e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
488e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
489e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
490e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IN_TV_ALL</td>
491e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
492e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
493e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
494e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IS_TV_ALL</td>
495e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
496e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
497e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
498e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IT_TV_ALL</td>
499e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
500e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
501e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
502e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KH_TV_ALL</td>
503e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
504e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
505e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <tr>
506e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KR_TV_ALL</td>
507e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code KR_TV}. This rating is for programs that are appropriate
508e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         for all ages. This program usually involves programs designed for children or families.
509e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         </td>
510e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr>
511e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <tr>
512e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KR_TV_7</td>
513e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code KR_TV}. This rating is for programs that may contain
514e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         material inappropriate for children younger than 7, and parental guidance is required.
515e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         </td>
516e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr>
517e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <tr>
518e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KR_TV_12</td>
519e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code KR_TV}. This rating is for programs that may contain
520e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         material inappropriate for children younger than 12, and parental guidance is required.
521e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         </td>
522e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr>
523e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <tr>
524e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KR_TV_15</td>
525e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code KR_TV}. This rating is for programs that may contain
526e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         material inappropriate for children younger than 15, and parental guidance is required.
527e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr>
528e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <tr>
529e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KR_TV_19</td>
530e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code KR_TV}. This rating is for programs designed for adults
531e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         only.</td>
532e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr>
533e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
534e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MV_TV_ALL</td>
535e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
536e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
537e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
538e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MX_TV_ALL</td>
539e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
540e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
541e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
542e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MY_TV_ALL</td>
543e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
544e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
5453596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
5463596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_AL</td>
5473596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>A rating string for {@code NL_TV}. This rating is for programs that are appropriate
5483596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         for all ages.</td>
5493596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
5503596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
5513596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_6</td>
5523596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>A rating string for {@code NL_TV}. This rating is for programs that require parental
5533596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         advisory for children under 6.</td>
5543596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
5553596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
5563596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_9</td>
5573596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>A rating string for {@code NL_TV}. This rating is for programs that require parental
5583596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         advisory for children under 9.</td>
5593596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
5603596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
5613596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_12</td>
5623596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>A rating string for {@code NL_TV}. This rating is for programs that require parental
5633596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         advisory for children under 12.</td>
5643596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
5653596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
5663596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_16</td>
5673596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>A rating string for {@code NL_TV}. This rating is for programs that require parental
5683596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         advisory for children under 16.</td>
5693596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
570e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
571e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>NZ_TV_ALL</td>
572e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
573e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
574e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
575e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PE_TV_ALL</td>
576e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
577e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
578e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
579e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PH_TV_ALL</td>
580e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
581e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
582e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
583e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PL_TV_ALL</td>
584e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
585e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
586e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
587e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PT_TV_ALL</td>
588e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
589e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
590e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
591e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RO_TV_ALL</td>
592e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
593e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
594e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
595e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RU_TV_ALL</td>
596e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
597e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
598e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
599e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RS_TV_ALL</td>
600e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
601e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
602e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
603e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>SG_TV_ALL</td>
604e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
605e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
606e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
607e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>SI_TV_ALL</td>
608e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
609e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
610e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
611e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TH_TV_ALL</td>
612e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
613e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
614e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
615e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TR_TV_ALL</td>
616e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
617e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
618e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
619e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TW_TV_ALL</td>
620e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
621e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
622e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
623e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>UA_TV_ALL</td>
624e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
625e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
6265c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
6275c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_TV_Y</td>
628e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code US_TVPG}. Programs rated this are designed to be
6295c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         appropriate for all children. Whether animated or live-action, the themes and elements
6305c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         in this program are specifically designed for a very young audience, including children
6315c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         from ages 2-6. This program is not expected to frighten younger children.</td>
6325c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
6335c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
6345c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_TV_Y7</td>
635e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code US_TVPG}. Programs rated this are designed for children
6365c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         age 7 and above. It may be more appropriate for children who have acquired the
6375c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         developmental skills needed to distinguish between make-believe and reality. Themes and
6385c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         elements in this program may include mild fantasy violence or comedic violence, or may
6395c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         frighten children under the age of 7. Therefore, parents may wish to consider the
6405c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         suitability of this program for their very young children. This rating may contain
6415c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         fantasy violence (US_TVPG_FV) when programs are generally more intense or more combative
6425c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         than other programs in this category.</td>
6435c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
6445c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
6455c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_TV_G</td>
646e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code US_TVPG}. Most parents would find this program suitable
6475c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         for all ages. Although this rating does not signify a program designed specifically for
6485c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         children, most parents may let younger children watch this program unattended. It
6495c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         contains little or no violence, no strong language and little or no sexual dialogue or
6505c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         situations.</td>
6515c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
6525c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
6535c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_TV_PG</td>
654e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code US_TVPG}. Programs rated this contain material that
6555c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         parents may find unsuitable for younger children. Many parents may want to watch it with
6565c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         their younger children. The theme itself may call for parental guidance and/or the
657e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         program may contain one or more of the following: some suggestive dialogue (
658e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         {@code US_TVPG_D}), infrequent coarse language ({@code US_TVPG_L}), some sexual
659e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         situations ({@code US_TVPG_S}), or moderate violence ({@code US_TVPG_V}).</td>
6605c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
6615c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
6625c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_TV_14</td>
663e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code US_TVPG}. Programs rated this contains some material
6645c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         that many parents would find unsuitable for children under 14 years of age. Parents are
6655c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         strongly urged to exercise greater care in monitoring this program and are cautioned
6665c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         against letting children under the age of 14 watch unattended. This program may contain
667e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         one or more of the following: intensely suggestive dialogue ({@code US_TVPG_D}), strong
668e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         coarse language ({@code US_TVPG_L}), intense sexual situations ({@code US_TVPG_S}), or
669e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         intense violence ({@code US_TVPG_V}).</td>
6705c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
6715c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
6725c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_TV_MA</td>
673e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>A rating string for {@code US_TVPG}. Programs rated TV-MA are specifically
6745c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         designed to be viewed by adults and therefore may be unsuitable for children under 17.
6755c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         This program may contain one or more of the following: crude indecent language
676e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         ({@code US_TVPG_L}), explicit sexual activity ({@code US_TVPG_S}), or graphic violence
677e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         ({@code US_TVPG_V}).</td>
6785c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
679e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
680e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>VE_TV_ALL</td>
681e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
682e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
683e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
684e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ZA_TV_ALL</td>
685e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
686e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
6875c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * </table>
6885c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *
6895c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <u>System defined string for {@code subRating}</u>
6905c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * <table border="0" cellspacing="0" cellpadding="0">
6915c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
6925c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>String value</td>
6935c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Comments</td>
6945c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
695e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
696e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>AM_TV_</td>
697e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
698e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
699e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
700e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>AR_TV_</td>
701e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
702e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
703e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
704e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>BG_TV_</td>
705e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
706e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
707e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
708e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>BR_TV_</td>
709e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
710e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
711e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
712e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CA_TV_</td>
713e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
714e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
715e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
716e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CH_TV_</td>
717e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
718e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
719e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
720e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CL_TV_</td>
721e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
722e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
723e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
724e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>CO_TV_</td>
725e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
726e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
727e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
728e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>DK_TV_</td>
729e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
730e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
731e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
732e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>FI_TV_</td>
733e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
734e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
735e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
736e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>GR_TV_</td>
737e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
738e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
739e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
740e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>HK_TV_</td>
741e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
742e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
743e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
744e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>HU_TV_</td>
745e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
746e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
747e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
748e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ID_TV_</td>
749e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
750e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
751e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
752e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IE_TV_</td>
753e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
754e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
755e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
756e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IL_TV_</td>
757e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
758e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
759e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
760e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IN_TV_</td>
761e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
762e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
763e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
764e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IS_TV_</td>
765e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
766e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
767e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
768e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>IT_TV_</td>
769e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
770e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
771e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
772e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>KH_TV_</td>
773e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
774e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
775e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
776e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MV_TV_</td>
777e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
778e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
779e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
780e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MX_TV_</td>
781e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
782e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
783e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
784e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>MY_TV_</td>
785e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
786e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
7873596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
7883596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_V</td>
7893596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>Violence</td>
7903596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
7913596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
7923596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_F</td>
7933596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>Fear</td>
7943596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
7953596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
7963596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_S</td>
7973596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>Sex</td>
7983596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
7993596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
8003596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_D</td>
8013596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>Discrimination</td>
8023596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
8033596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
8043596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_DA</td>
8053596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>Drugs- and alcoholabuse</td>
8063596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
8073596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     <tr>
8083596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>NL_TV_L</td>
8093596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *         <td>Coarse Language</td>
8103596a9645eae5636706d6d76b3d0e321c3d5c11fSungsoo Lim *     </tr>
811e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
812e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>NZ_TV_</td>
813e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
814e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
815e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
816e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PE_TV_</td>
817e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
818e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
819e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
820e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PH_TV_</td>
821e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
822e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
823e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
824e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PL_TV_</td>
825e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
826e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
827e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
828e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>PT_TV_</td>
829e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
830e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
831e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
832e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RO_TV_</td>
833e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
834e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
835e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
836e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RU_TV_</td>
837e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
838e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
839e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
840e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>RS_TV_</td>
841e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
842e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
843e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
844e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>SG_TV_</td>
845e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
846e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
847e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
848e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>SI_TV_</td>
849e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
850e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
851e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
852e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TH_TV_</td>
853e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
854e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
855e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
856e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TR_TV_</td>
857e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
858e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
859e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
860e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>TW_TV_</td>
861e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
862e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
863e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
864e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>UA_TV_</td>
865e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
866e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
8675c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
8685c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_D</td>
8695c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Suggestive dialogue (Not used with US_TVPG_TV_MA)</td>
8705c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
8715c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
8725c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_L</td>
8735c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Coarse language</td>
8745c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
8755c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
8765c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_S</td>
8775c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Sexual content</td>
8785c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
8795c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
8805c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_V</td>
8815c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Violence</td>
8825c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
8835c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     <tr>
8845c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>US_TVPG_FV</td>
8855c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *         <td>Fantasy violence (exclusive to US_TVPG_TV_Y7)</td>
8865c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim *     </tr>
887e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
888e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>VE_TV_</td>
889e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
890e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
891e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     <!--tr>
892e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td>ZA_TV_</td>
893e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *         <td></td>
894e6dca2cfa4eecd3a45792703b722fc3ef86e8744Sungsoo Lim *     </tr-->
8955c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim * </table>
896e16873467cda89d905027458e2664c759465d463Sungsoo Lim */
8976057102dbb746593a7d59cf377c969b62e38c664Jae Seopublic final class TvContentRating {
898e16873467cda89d905027458e2664c759465d463Sungsoo Lim    private static final String TAG = "TvContentRating";
899e16873467cda89d905027458e2664c759465d463Sungsoo Lim
9005c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    /** @hide */
9015c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    public static final Uri SYSTEM_CONTENT_RATING_SYSTEM_XML = Uri.parse(
9025c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim            "android.resource://system/" + com.android.internal.R.xml.tv_content_rating_systems);
903e16873467cda89d905027458e2664c759465d463Sungsoo Lim
9045c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    // TODO: Consider to use other DELIMITER. In some countries such as India may use this delimiter
9055c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    // in the main ratings.
9065c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    private static final String DELIMITER = "/";
907e16873467cda89d905027458e2664c759465d463Sungsoo Lim
9085c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    private final String mDomain;
9095c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    private final String mRatingSystem;
9105c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    private final String mRating;
9115c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    private final String[] mSubRatings;
912e16873467cda89d905027458e2664c759465d463Sungsoo Lim
913e16873467cda89d905027458e2664c759465d463Sungsoo Lim    /**
9145c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * Creates a TvContentRating object.
9155c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     *
9165c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * @param domain The domain name.
9175c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * @param ratingSystem The rating system id.
9185c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * @param rating The content rating string.
9195c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * @param subRatings The string array of sub-ratings.
9205c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * @return A TvContentRating object, or null if creation failed.
921e16873467cda89d905027458e2664c759465d463Sungsoo Lim     */
922732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim    public static TvContentRating createRating(String domain, String ratingSystem,
923732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim            String rating, String... subRatings) {
9245c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        if (TextUtils.isEmpty(domain)) {
9255c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim            throw new IllegalArgumentException("domain cannot be empty");
9265c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        }
9275c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        if (TextUtils.isEmpty(rating)) {
9285c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim            throw new IllegalArgumentException("rating cannot be empty");
9295c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        }
930732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim        return new TvContentRating(domain, ratingSystem, rating, subRatings);
931e16873467cda89d905027458e2664c759465d463Sungsoo Lim    }
932e16873467cda89d905027458e2664c759465d463Sungsoo Lim
933e16873467cda89d905027458e2664c759465d463Sungsoo Lim    /**
9345c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * Recovers a TvContentRating from a String that was previously created with
9355c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * {@link #flattenToString}.
936e16873467cda89d905027458e2664c759465d463Sungsoo Lim     *
9375c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * @param ratingString The String that was returned by flattenToString().
938732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim     * @return a new TvContentRating containing the domain, rating system, rating and
9395c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     *         sub-ratings information was encoded in {@code ratingString}.
9405c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * @see #flattenToString
941e16873467cda89d905027458e2664c759465d463Sungsoo Lim     */
9425c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    public static TvContentRating unflattenFromString(String ratingString) {
9435c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        if (TextUtils.isEmpty(ratingString)) {
9445c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim            throw new IllegalArgumentException("ratingString cannot be empty");
9455c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        }
9465c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        String[] strs = ratingString.split(DELIMITER);
947732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim        if (strs.length < 3) {
9485c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim            throw new IllegalArgumentException("Invalid rating string: " + ratingString);
9495c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        }
950732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim        if (strs.length > 3) {
951732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim            String[] subRatings = new String[strs.length - 3];
952732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim            System.arraycopy(strs, 3, subRatings, 0, subRatings.length);
953732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim            return new TvContentRating(strs[0], strs[1], strs[2], subRatings);
9545c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        }
955732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim        return new TvContentRating(strs[0], strs[1], strs[2], null);
956e16873467cda89d905027458e2664c759465d463Sungsoo Lim    }
957e16873467cda89d905027458e2664c759465d463Sungsoo Lim
958e16873467cda89d905027458e2664c759465d463Sungsoo Lim    /**
959e16873467cda89d905027458e2664c759465d463Sungsoo Lim     * Constructs a TvContentRating object from a given rating and sub-rating constants.
960e16873467cda89d905027458e2664c759465d463Sungsoo Lim     *
961732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim     * @param domain The domain name.
962732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim     * @param ratingSystem The rating system id.
963732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim     * @param rating The content rating string.
964e16873467cda89d905027458e2664c759465d463Sungsoo Lim     * @param subRatings The String array of sub-rating constants defined in this class.
965e16873467cda89d905027458e2664c759465d463Sungsoo Lim     */
966732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim    private TvContentRating(
967732be11cefc439ea47a6c9cced6ab240aa5f1ea9Sungsoo Lim            String domain, String ratingSystem, String rating, String[] subRatings) {
9685c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        mDomain = domain;
9695c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        mRatingSystem = ratingSystem;
9706057102dbb746593a7d59cf377c969b62e38c664Jae Seo        mRating = rating;
9716057102dbb746593a7d59cf377c969b62e38c664Jae Seo        mSubRatings = subRatings;
972e16873467cda89d905027458e2664c759465d463Sungsoo Lim    }
973e16873467cda89d905027458e2664c759465d463Sungsoo Lim
974e16873467cda89d905027458e2664c759465d463Sungsoo Lim    /**
9755c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * Returns the domain.
9765c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     */
9775c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    public String getDomain() {
9785c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        return mDomain;
9795c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    }
9805c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim
9815c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    /**
9825c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * Returns the rating system id.
9835c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     */
9845c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    public String getRatingSystem() {
9855c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        return mRatingSystem;
9865c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    }
9875c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim
9885c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim    /**
9895c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * Returns the main rating.
9906057102dbb746593a7d59cf377c969b62e38c664Jae Seo     */
9916057102dbb746593a7d59cf377c969b62e38c664Jae Seo    public String getMainRating() {
9926057102dbb746593a7d59cf377c969b62e38c664Jae Seo        return mRating;
9936057102dbb746593a7d59cf377c969b62e38c664Jae Seo    }
9946057102dbb746593a7d59cf377c969b62e38c664Jae Seo
9956057102dbb746593a7d59cf377c969b62e38c664Jae Seo    /**
9965c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim     * Returns the unmodifiable {@code List} of sub-rating strings.
9976057102dbb746593a7d59cf377c969b62e38c664Jae Seo     */
9986057102dbb746593a7d59cf377c969b62e38c664Jae Seo    public List<String> getSubRatings() {
9996057102dbb746593a7d59cf377c969b62e38c664Jae Seo        if (mSubRatings == null) {
10006057102dbb746593a7d59cf377c969b62e38c664Jae Seo            return null;
10016057102dbb746593a7d59cf377c969b62e38c664Jae Seo        }
10026057102dbb746593a7d59cf377c969b62e38c664Jae Seo        return Collections.unmodifiableList(Arrays.asList(mSubRatings));
10036057102dbb746593a7d59cf377c969b62e38c664Jae Seo    }
10046057102dbb746593a7d59cf377c969b62e38c664Jae Seo
10056057102dbb746593a7d59cf377c969b62e38c664Jae Seo    /**
10066057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * Returns a String that unambiguously describes both the rating and sub-rating information
10076057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * contained in the TvContentRating. You can later recover the TvContentRating from this string
10086057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * through {@link #unflattenFromString}.
10096057102dbb746593a7d59cf377c969b62e38c664Jae Seo     *
10106057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * @return a new String holding rating/sub-rating information, which can later be stored in the
10116057102dbb746593a7d59cf377c969b62e38c664Jae Seo     *         database and settings.
10126057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * @see #unflattenFromString
10136057102dbb746593a7d59cf377c969b62e38c664Jae Seo     */
10146057102dbb746593a7d59cf377c969b62e38c664Jae Seo    public String flattenToString() {
10155c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        StringBuilder builder = new StringBuilder();
10165c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        builder.append(mDomain);
10175c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        builder.append(DELIMITER);
10185c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        builder.append(mRatingSystem);
10195c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        builder.append(DELIMITER);
10205c5b83fcd58d21c9ab7ac986bf84f604ec5bb4b5Sungsoo Lim        builder.append(mRating);
10216057102dbb746593a7d59cf377c969b62e38c664Jae Seo        if (mSubRatings != null) {
10226057102dbb746593a7d59cf377c969b62e38c664Jae Seo            for (String subRating : mSubRatings) {
10236057102dbb746593a7d59cf377c969b62e38c664Jae Seo                builder.append(DELIMITER);
10246057102dbb746593a7d59cf377c969b62e38c664Jae Seo                builder.append(subRating);
10256057102dbb746593a7d59cf377c969b62e38c664Jae Seo            }
10266057102dbb746593a7d59cf377c969b62e38c664Jae Seo        }
10276057102dbb746593a7d59cf377c969b62e38c664Jae Seo        return builder.toString();
10286057102dbb746593a7d59cf377c969b62e38c664Jae Seo    }
10296057102dbb746593a7d59cf377c969b62e38c664Jae Seo
10306057102dbb746593a7d59cf377c969b62e38c664Jae Seo    /**
10316057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * Returns true if this rating has the same main rating as the specified rating and when this
10326057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * rating's sub-ratings contain the other's.
10336057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * <p>
10346057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * For example, a TvContentRating object that represents TV-PG with S(Sexual content) and
10356057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * V(Violence) contains TV-PG, TV-PG/S, TV-PG/V and itself.
10366057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * </p>
10376057102dbb746593a7d59cf377c969b62e38c664Jae Seo     *
10386057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * @param rating The {@link TvContentRating} to check.
10396057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * @return {@code true} if this object contains {@code rating}, {@code false} otherwise.
10406057102dbb746593a7d59cf377c969b62e38c664Jae Seo     * @hide
1041e16873467cda89d905027458e2664c759465d463Sungsoo Lim     */
10426057102dbb746593a7d59cf377c969b62e38c664Jae Seo    @SystemApi
10436057102dbb746593a7d59cf377c969b62e38c664Jae Seo    public final boolean contains(TvContentRating rating) {
10446057102dbb746593a7d59cf377c969b62e38c664Jae Seo        if (rating == null) {
10456057102dbb746593a7d59cf377c969b62e38c664Jae Seo            throw new IllegalArgumentException("rating cannot be null");
10466057102dbb746593a7d59cf377c969b62e38c664Jae Seo        }
10476057102dbb746593a7d59cf377c969b62e38c664Jae Seo        if (!rating.getMainRating().equals(mRating)) {
10486057102dbb746593a7d59cf377c969b62e38c664Jae Seo            return false;
10496057102dbb746593a7d59cf377c969b62e38c664Jae Seo        }
10506057102dbb746593a7d59cf377c969b62e38c664Jae Seo        List<String> subRatings = getSubRatings();
10516057102dbb746593a7d59cf377c969b62e38c664Jae Seo        List<String> subRatingsOther = rating.getSubRatings();
10526057102dbb746593a7d59cf377c969b62e38c664Jae Seo        if (subRatings == null && subRatingsOther == null) {
10536057102dbb746593a7d59cf377c969b62e38c664Jae Seo            return true;
10546057102dbb746593a7d59cf377c969b62e38c664Jae Seo        } else if (subRatings == null && subRatingsOther != null) {
10556057102dbb746593a7d59cf377c969b62e38c664Jae Seo            return false;
10566057102dbb746593a7d59cf377c969b62e38c664Jae Seo        } else if (subRatings != null && subRatingsOther == null) {
10576057102dbb746593a7d59cf377c969b62e38c664Jae Seo            return true;
10586057102dbb746593a7d59cf377c969b62e38c664Jae Seo        } else {
10596057102dbb746593a7d59cf377c969b62e38c664Jae Seo            return subRatings.containsAll(subRatingsOther);
1060e16873467cda89d905027458e2664c759465d463Sungsoo Lim        }
1061e16873467cda89d905027458e2664c759465d463Sungsoo Lim    }
1062e16873467cda89d905027458e2664c759465d463Sungsoo Lim}
1063