diff --git a/media/java/android/media/tv/TvContract.java b/media/java/android/media/tv/TvContract.java index cd0e77697323e..d2071ef07415e 100644 --- a/media/java/android/media/tv/TvContract.java +++ b/media/java/android/media/tv/TvContract.java @@ -1109,6 +1109,7 @@ public final class TvContract { * @return {@code true} if the genre is canonical, otherwise {@code false}. * @hide */ + @SystemApi public static boolean isCanonical(String genre) { return CANONICAL_GENRES.contains(genre); } diff --git a/media/java/android/media/tv/TvInputManager.java b/media/java/android/media/tv/TvInputManager.java index 5235a531520d0..5bed40bbbceda 100644 --- a/media/java/android/media/tv/TvInputManager.java +++ b/media/java/android/media/tv/TvInputManager.java @@ -126,6 +126,7 @@ public final class TvInputManager { * Interface used to receive the created session. * @hide */ + @SystemApi public abstract static class SessionCallback { /** * This is called after {@link TvInputManager#createSession} has been processed. @@ -214,6 +215,7 @@ public final class TvInputManager { * @param eventArgs Optional arguments of the event. * @hide */ + @SystemApi public void onSessionEvent(Session session, String eventType, Bundle eventArgs) { } } @@ -656,6 +658,7 @@ public final class TvInputManager { * @throws IllegalArgumentException if any of the arguments is {@code null}. * @hide */ + @SystemApi public void createSession(String inputId, final SessionCallback callback, Handler handler) { if (inputId == null) { @@ -683,6 +686,7 @@ public final class TvInputManager { * The Session provides the per-session functionality of TV inputs. * @hide */ + @SystemApi public static final class Session { static final int DISPATCH_IN_PROGRESS = -1; static final int DISPATCH_NOT_HANDLED = 0; @@ -707,7 +711,6 @@ public final class TvInputManager { private InputChannel mChannel; private List mTracks; - /** @hide */ private Session(IBinder token, InputChannel channel, ITvInputManager service, int userId, int seq, SparseArray sessionCallbackRecordMap) { mToken = token; @@ -739,7 +742,6 @@ public final class TvInputManager { * Sets the {@link android.view.Surface} for this session. * * @param surface A {@link android.view.Surface} used to render video. - * @hide */ public void setSurface(Surface surface) { if (mToken == null) { @@ -763,6 +765,7 @@ public final class TvInputManager { * @param height The new height of the {@link Surface}. * @hide */ + @SystemApi public void dispatchSurfaceChanged(int format, int width, int height) { if (mToken == null) { Log.w(TAG, "The session has been already released"); diff --git a/media/java/android/media/tv/TvView.java b/media/java/android/media/tv/TvView.java index 0d36e847c740a..35dd71e29b6b2 100644 --- a/media/java/android/media/tv/TvView.java +++ b/media/java/android/media/tv/TvView.java @@ -230,6 +230,7 @@ public class TvView extends ViewGroup { * @see TvInputService.Session#dispatchContentBlocked(TvContentRating) * @hide */ + @SystemApi public void requestUnblockContent(TvContentRating unblockedRating) { if (mSession != null) { mSession.requestUnblockContent(unblockedRating); @@ -622,6 +623,7 @@ public class TvView extends ViewGroup { * @param eventArgs Optional arguments of the event. * @hide */ + @SystemApi public void onEvent(String inputId, String eventType, Bundle eventArgs) { } }