Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9c1e38e authored by Jae Seo's avatar Jae Seo Committed by Android Git Automerger
Browse files

am b6dee043: am 41f1050a: am e3316cfe: Merge "TIF: Use @SystemApi for APIs...

am b6dee043: am 41f1050a: am e3316cfe: Merge "TIF: Use @SystemApi for APIs that we intend to open to OEMs" into lmp-dev

* commit 'b6dee0435ec2073627d3c01370af9110e3249451':
  TIF: Use @SystemApi for APIs that we intend to open to OEMs
parents a80c8147 a54c87e6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
            }
+5 −2
Original line number Diff line number Diff line
@@ -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");
+2 −0
Original line number Diff line number Diff line
@@ -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) {
        }
    }