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

* commit '41f1050aa3c03a7625f13ad0b2975ef2dc9ef672':
  TIF: Use @SystemApi for APIs that we intend to open to OEMs
This commit is contained in:
Jae Seo
2014-07-23 16:46:13 +00:00
committed by Android Git Automerger
3 changed files with 8 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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");

View File

@@ -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) {
}
}