Methods Summary |
---|
public static final android.media.tv.TvContentRatingSystemInfo | createTvContentRatingSystemInfo(int xmlResourceId, android.content.pm.ApplicationInfo applicationInfo)Creates a TvContentRatingSystemInfo object with given resource ID and receiver info.
Uri uri = new Uri.Builder()
.scheme(ContentResolver.SCHEME_ANDROID_RESOURCE)
.authority(applicationInfo.packageName)
.appendPath(String.valueOf(xmlResourceId))
.build();
return new TvContentRatingSystemInfo(uri, applicationInfo);
|
public int | describeContents()
return 0;
|
public final android.net.Uri | getXmlUri()Returns the URI to the XML resource that defines the TV content rating system.
TODO: Remove. Instead, parse the XML resource and provide an interface to directly access
parsed information.
return mXmlUri;
|
public final boolean | isSystemDefined()Returns {@code true} if the TV content rating system is defined by a system app,
{@code false} otherwise.
return (mApplicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;
|
public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeParcelable(mXmlUri, flags);
dest.writeParcelable(mApplicationInfo, flags);
|