diff options
| author | 2014-07-20 19:28:08 -0700 | |
|---|---|---|
| committer | 2014-07-22 19:58:30 -0700 | |
| commit | 15bbf3b220fdd22df62f2bfa04452f4cdf11d2bb (patch) | |
| tree | ab683fc0e1e74b74e1856c077bede8202e707576 | |
| parent | 52ff21d841ad5b39b6def0c286a737fd4b74b2e2 (diff) | |
TIF: Use @SystemApi for APIs that we intend to open to OEMs
Bug: 16374058
Change-Id: Ifdf8188d3791e7e8ab6cc0a30696bde24b16ac5c
| -rw-r--r-- | media/java/android/media/tv/TvContract.java | 2 | ||||
| -rw-r--r-- | media/java/android/media/tv/TvInputManager.java | 7 | ||||
| -rw-r--r-- | media/java/android/media/tv/TvView.java | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/media/java/android/media/tv/TvContract.java b/media/java/android/media/tv/TvContract.java index e98c5c8f96fe..4a0bd7bcd1fb 100644 --- a/media/java/android/media/tv/TvContract.java +++ b/media/java/android/media/tv/TvContract.java @@ -16,6 +16,7 @@ package android.media.tv; +import android.annotation.SystemApi; import android.content.ComponentName; import android.content.ContentResolver; import android.content.ContentUris; @@ -1099,6 +1100,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 5235a531520d..5bed40bbbced 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<TvTrackInfo> mTracks; - /** @hide */ private Session(IBinder token, InputChannel channel, ITvInputManager service, int userId, int seq, SparseArray<SessionCallbackRecord> 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 0d36e847c740..35dd71e29b6b 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) { } } |