am e1b81079: am 480dd588: am 5fec7afe: Merge "TIF: change onCreateSession() method signature" into lmp-dev
* commit 'e1b810793924956eb5517cd4e2c57a721e8f750e': TIF: change onCreateSession() method signature
This commit is contained in:
@@ -16629,7 +16629,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";
|
||||
}
|
||||
|
||||
@@ -143,27 +143,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};
|
||||
|
||||
Reference in New Issue
Block a user