From c51b95471c05bdb2d1e424ffb625bc4512887577 Mon Sep 17 00:00:00 2001 From: Dongwon Kang Date: Mon, 24 Apr 2017 17:21:43 -0700 Subject: [PATCH] TIF: specify that selection is not allowed in CONTENT_URI Test: build Bug: 36788441 Change-Id: Iddca6d6d2083aa0e6d12d896787c0a91d200c56d --- media/java/android/media/tv/TvContract.java | 35 ++++++++++++++++++--- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/media/java/android/media/tv/TvContract.java b/media/java/android/media/tv/TvContract.java index 71f9ba257aa37..cd6021aa4774c 100644 --- a/media/java/android/media/tv/TvContract.java +++ b/media/java/android/media/tv/TvContract.java @@ -1613,7 +1613,12 @@ public final class TvContract { /** Column definitions for the TV channels table. */ public static final class Channels implements BaseTvColumns { - /** The content:// style URI for this table. */ + /** + * The content:// style URI for this table. + * + *

SQL selection is not supported for {@link ContentResolver#query}, + * {@link ContentResolver#update} and {@link ContentResolver#delete} operations. + */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH_CHANNEL); @@ -2412,7 +2417,12 @@ public final class TvContract { */ public static final class Programs implements BaseTvColumns, ProgramColumns { - /** The content:// style URI for this table. */ + /** + * The content:// style URI for this table. + * + *

SQL selection is not supported for {@link ContentResolver#query}, + * {@link ContentResolver#update} and {@link ContentResolver#delete} operations. + */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH_PROGRAM); @@ -2726,7 +2736,12 @@ public final class TvContract { */ public static final class RecordedPrograms implements BaseTvColumns, ProgramColumns { - /** The content:// style URI for this table. */ + /** + * The content:// style URI for this table. + * + *

SQL selection is not supported for {@link ContentResolver#query}, + * {@link ContentResolver#update} and {@link ContentResolver#delete} operations. + */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH_RECORDED_PROGRAM); @@ -2849,7 +2864,12 @@ public final class TvContract { public static final class PreviewPrograms implements BaseTvColumns, ProgramColumns, PreviewProgramColumns { - /** The content:// style URI for this table. */ + /** + * The content:// style URI for this table. + * + *

SQL selection is not supported for {@link ContentResolver#query}, + * {@link ContentResolver#update} and {@link ContentResolver#delete} operations. + */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH_PREVIEW_PROGRAM); @@ -2896,7 +2916,12 @@ public final class TvContract { public static final class WatchNextPrograms implements BaseTvColumns, ProgramColumns, PreviewProgramColumns { - /** The content:// style URI for this table. */ + /** + * The content:// style URI for this table. + * + *

SQL selection is not supported for {@link ContentResolver#query}, + * {@link ContentResolver#update} and {@link ContentResolver#delete} operations. + */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH_WATCH_NEXT_PROGRAM);