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

Commit 1032f034 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

TIF: change onCreateSession() method signature

Bug: 16138420
Change-Id: I73f4992bd76b888c7e5bc6260b3ed849760ee707
parent 76291774
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16624,7 +16624,7 @@ package android.media.tv {
  public abstract class TvInputService extends android.app.Service {
    ctor public TvInputService();
    method public final android.os.IBinder onBind(android.content.Intent);
    method public abstract android.media.tv.TvInputService.Session onCreateSession();
    method public abstract android.media.tv.TvInputService.Session onCreateSession(java.lang.String);
    field public static final java.lang.String SERVICE_INTERFACE = "android.media.tv.TvInputService";
    field public static final java.lang.String SERVICE_META_DATA = "android.media.tv.input";
  }
+1 −14
Original line number Diff line number Diff line
@@ -144,27 +144,14 @@ public abstract class TvInputService extends Service {
        return mCallbacks.getRegisteredCallbackCount();
    }

    /**
     * Returns a concrete implementation of {@link Session}.
     * <p>
     * May return {@code null} if this TV input service fails to create a session for some reason.
     * </p>
     */
    public abstract Session onCreateSession();

    /**
     * Returns a concrete implementation of {@link Session}.
     * <p>
     * May return {@code null} if this TV input service fails to create a session for some reason.
     * </p>
     * @param inputId The ID of the TV input associated with the session.
     *
     * @hide
     */
    @SystemApi
    public Session onCreateSession(String inputId) {
        return onCreateSession();
    }
    public abstract Session onCreateSession(String inputId);

    /**
     * Returns a new TvInputInfo object if this service is responsible for {@code hardwareInfo};