Loading core/api/current.txt +4 −2 Original line number Diff line number Diff line Loading @@ -26078,7 +26078,7 @@ package android.media.tv { method public void onContentAllowed(String); method public void onContentBlocked(String, android.media.tv.TvContentRating); method public void onDisconnected(String); method public void onSignalStrength(@NonNull String, int); method public void onSignalStrengthUpdated(@NonNull String, int); method public void onTimeShiftStatusChanged(String, int); method public void onTrackSelected(String, int, String); method public void onTracksChanged(String, java.util.List<android.media.tv.TvTrackInfo>); Loading Loading @@ -26186,6 +26186,7 @@ package android.media.tv.interactive { public abstract static class TvInteractiveAppService.Session implements android.view.KeyEvent.Callback { ctor public TvInteractiveAppService.Session(@NonNull android.content.Context); method public boolean isMediaViewEnabled(); method @CallSuper public void layoutSurface(int, int, int, int); method @CallSuper public final void notifyBiInteractiveAppCreated(@NonNull android.net.Uri, @Nullable String); method @CallSuper public void notifySessionStateChanged(int, int); Loading @@ -26205,7 +26206,7 @@ package android.media.tv.interactive { method public boolean onKeyLongPress(int, @NonNull android.view.KeyEvent); method public boolean onKeyMultiple(int, int, @NonNull android.view.KeyEvent); method public boolean onKeyUp(int, @NonNull android.view.KeyEvent); method public void onMediaViewSizeChanged(int, int); method public void onMediaViewSizeChanged(@Px int, @Px int); method public abstract void onRelease(); method public void onResetInteractiveApp(); method public abstract boolean onSetSurface(@Nullable android.view.Surface); Loading Loading @@ -26260,6 +26261,7 @@ package android.media.tv.interactive { method public void createBiInteractiveApp(@NonNull android.net.Uri, @Nullable android.os.Bundle); method public void destroyBiInteractiveApp(@NonNull String); method public boolean dispatchUnhandledInputEvent(@NonNull android.view.InputEvent); method @Nullable public android.media.tv.interactive.TvInteractiveAppView.OnUnhandledInputEventListener getOnUnhandledInputEventListener(); method public void onAttachedToWindow(); method public void onDetachedFromWindow(); method public void onLayout(boolean, int, int, int, int); media/java/android/media/tv/TvInputManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -680,7 +680,7 @@ public final class TvInputManager { * @param session A {@link TvInputManager.Session} associated with this callback. * @param strength The current signal strength. */ public void onSignalStrength(Session session, @SignalStrength int strength) { public void onSignalStrengthUpdated(Session session, @SignalStrength int strength) { } /** Loading Loading @@ -898,7 +898,7 @@ public final class TvInputManager { mHandler.post(new Runnable() { @Override public void run() { mSessionCallback.onSignalStrength(mSession, strength); mSessionCallback.onSignalStrengthUpdated(mSession, strength); if (mSession.mIAppNotificationEnabled && mSession.getInteractiveAppSession() != null) { mSession.getInteractiveAppSession().notifySignalStrength(strength); Loading media/java/android/media/tv/TvView.java +5 −5 Original line number Diff line number Diff line Loading @@ -1083,7 +1083,7 @@ public class TvView extends ViewGroup { * @param inputId The ID of the TV input bound to this view. * @param strength The current signal strength. */ public void onSignalStrength( public void onSignalStrengthUpdated( @NonNull String inputId, @TvInputManager.SignalStrength int strength) { } Loading Loading @@ -1406,16 +1406,16 @@ public class TvView extends ViewGroup { } @Override public void onSignalStrength(Session session, int strength) { public void onSignalStrengthUpdated(Session session, int strength) { if (DEBUG) { Log.d(TAG, "onSignalStrength(strength=" + strength + ")"); Log.d(TAG, "onSignalStrengthUpdated(strength=" + strength + ")"); } if (this != mSessionCallback) { Log.w(TAG, "onSignalStrength - session not created"); Log.w(TAG, "onSignalStrengthUpdated - session not created"); return; } if (mCallback != null) { mCallback.onSignalStrength(mInputId, strength); mCallback.onSignalStrengthUpdated(mInputId, strength); } } Loading media/java/android/media/tv/interactive/TvInteractiveAppManager.java +13 −5 Original line number Diff line number Diff line Loading @@ -28,9 +28,9 @@ import android.media.tv.AdResponse; import android.media.tv.BroadcastInfoRequest; import android.media.tv.BroadcastInfoResponse; import android.media.tv.TvContentRating; import android.media.tv.TvInputInfo; import android.media.tv.TvInputManager; import android.media.tv.TvTrackInfo; import android.media.tv.interactive.TvInteractiveAppServiceInfo.InteractiveAppType; import android.net.Uri; import android.os.Bundle; import android.os.Handler; Loading Loading @@ -776,8 +776,16 @@ public final class TvInteractiveAppManager { /** * Prepares TV Interactive App service environment for the given type. * * <p>This method brings up the corresponding {@link TvInteractiveAppService} and prepare needed * resources. It's used to set up the resources in advance, or handle non-session operations. * * @param tvIAppServiceId The ID of TV interactive service to prepare the resources. The * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * * @see TvInteractiveAppService.Session */ public void prepare(@NonNull String tvIAppServiceId, int type) { public void prepare(@NonNull String tvIAppServiceId, @InteractiveAppType int type) { try { mService.prepare(tvIAppServiceId, type, mUserId); } catch (RemoteException e) { Loading @@ -790,7 +798,7 @@ public final class TvInteractiveAppManager { * Android application by TV interactive App RTE. * * @param tvIAppServiceId The ID of TV interactive service which the command to be sent to. The * ID can be found in {@link TvInputInfo#getId()}. * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * @param appLinkInfo The Android application link info record to be registered. */ public void registerAppLinkInfo( Loading @@ -807,7 +815,7 @@ public final class TvInteractiveAppManager { * Android application by TV interactive App RTE. * * @param tvIAppServiceId The ID of TV interactive service which the command to be sent to. The * ID can be found in {@link TvInputInfo#getId()}. * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * @param appLinkInfo The Android application link info record to be unregistered. */ public void unregisterAppLinkInfo( Loading @@ -823,7 +831,7 @@ public final class TvInteractiveAppManager { * Sends app link command. * * @param tvIAppServiceId The ID of TV interactive service which the command to be sent to. The * ID can be found in {@link TvInputInfo#getId()}. * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * @param command The command to be sent. */ public void sendAppLinkCommand(@NonNull String tvIAppServiceId, @NonNull Bundle command) { Loading media/java/android/media/tv/interactive/TvInteractiveAppService.java +15 −3 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.CallSuper; import android.annotation.MainThread; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Px; import android.annotation.SdkConstant; import android.annotation.StringDef; import android.annotation.SuppressLint; Loading Loading @@ -372,6 +373,15 @@ public abstract class TvInteractiveAppService extends Service { }); } /** * Returns {@code true} if media view is enabled, {@code false} otherwise. * * @see #setMediaViewEnabled(boolean) */ public boolean isMediaViewEnabled() { return mMediaViewEnabled; } /** * Starts TvInteractiveAppService session. */ Loading Loading @@ -435,6 +445,8 @@ public abstract class TvInteractiveAppService extends Service { /** * Receives current stream volume. * * @param volume a volume value between {@code 0.0f} and {@code 1.0f}, inclusive. */ public void onStreamVolume(float volume) { } Loading Loading @@ -495,10 +507,10 @@ public abstract class TvInteractiveAppService extends Service { * containing {@link TvInteractiveAppView}. Note that the size of the underlying surface can * be different if the surface was changed by calling {@link #layoutSurface}. * * @param width The width of the media view. * @param height The height of the media view. * @param width The width of the media view, in pixels. * @param height The height of the media view, in pixels. */ public void onMediaViewSizeChanged(int width, int height) { public void onMediaViewSizeChanged(@Px int width, @Px int height) { } /** Loading Loading
core/api/current.txt +4 −2 Original line number Diff line number Diff line Loading @@ -26078,7 +26078,7 @@ package android.media.tv { method public void onContentAllowed(String); method public void onContentBlocked(String, android.media.tv.TvContentRating); method public void onDisconnected(String); method public void onSignalStrength(@NonNull String, int); method public void onSignalStrengthUpdated(@NonNull String, int); method public void onTimeShiftStatusChanged(String, int); method public void onTrackSelected(String, int, String); method public void onTracksChanged(String, java.util.List<android.media.tv.TvTrackInfo>); Loading Loading @@ -26186,6 +26186,7 @@ package android.media.tv.interactive { public abstract static class TvInteractiveAppService.Session implements android.view.KeyEvent.Callback { ctor public TvInteractiveAppService.Session(@NonNull android.content.Context); method public boolean isMediaViewEnabled(); method @CallSuper public void layoutSurface(int, int, int, int); method @CallSuper public final void notifyBiInteractiveAppCreated(@NonNull android.net.Uri, @Nullable String); method @CallSuper public void notifySessionStateChanged(int, int); Loading @@ -26205,7 +26206,7 @@ package android.media.tv.interactive { method public boolean onKeyLongPress(int, @NonNull android.view.KeyEvent); method public boolean onKeyMultiple(int, int, @NonNull android.view.KeyEvent); method public boolean onKeyUp(int, @NonNull android.view.KeyEvent); method public void onMediaViewSizeChanged(int, int); method public void onMediaViewSizeChanged(@Px int, @Px int); method public abstract void onRelease(); method public void onResetInteractiveApp(); method public abstract boolean onSetSurface(@Nullable android.view.Surface); Loading Loading @@ -26260,6 +26261,7 @@ package android.media.tv.interactive { method public void createBiInteractiveApp(@NonNull android.net.Uri, @Nullable android.os.Bundle); method public void destroyBiInteractiveApp(@NonNull String); method public boolean dispatchUnhandledInputEvent(@NonNull android.view.InputEvent); method @Nullable public android.media.tv.interactive.TvInteractiveAppView.OnUnhandledInputEventListener getOnUnhandledInputEventListener(); method public void onAttachedToWindow(); method public void onDetachedFromWindow(); method public void onLayout(boolean, int, int, int, int);
media/java/android/media/tv/TvInputManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -680,7 +680,7 @@ public final class TvInputManager { * @param session A {@link TvInputManager.Session} associated with this callback. * @param strength The current signal strength. */ public void onSignalStrength(Session session, @SignalStrength int strength) { public void onSignalStrengthUpdated(Session session, @SignalStrength int strength) { } /** Loading Loading @@ -898,7 +898,7 @@ public final class TvInputManager { mHandler.post(new Runnable() { @Override public void run() { mSessionCallback.onSignalStrength(mSession, strength); mSessionCallback.onSignalStrengthUpdated(mSession, strength); if (mSession.mIAppNotificationEnabled && mSession.getInteractiveAppSession() != null) { mSession.getInteractiveAppSession().notifySignalStrength(strength); Loading
media/java/android/media/tv/TvView.java +5 −5 Original line number Diff line number Diff line Loading @@ -1083,7 +1083,7 @@ public class TvView extends ViewGroup { * @param inputId The ID of the TV input bound to this view. * @param strength The current signal strength. */ public void onSignalStrength( public void onSignalStrengthUpdated( @NonNull String inputId, @TvInputManager.SignalStrength int strength) { } Loading Loading @@ -1406,16 +1406,16 @@ public class TvView extends ViewGroup { } @Override public void onSignalStrength(Session session, int strength) { public void onSignalStrengthUpdated(Session session, int strength) { if (DEBUG) { Log.d(TAG, "onSignalStrength(strength=" + strength + ")"); Log.d(TAG, "onSignalStrengthUpdated(strength=" + strength + ")"); } if (this != mSessionCallback) { Log.w(TAG, "onSignalStrength - session not created"); Log.w(TAG, "onSignalStrengthUpdated - session not created"); return; } if (mCallback != null) { mCallback.onSignalStrength(mInputId, strength); mCallback.onSignalStrengthUpdated(mInputId, strength); } } Loading
media/java/android/media/tv/interactive/TvInteractiveAppManager.java +13 −5 Original line number Diff line number Diff line Loading @@ -28,9 +28,9 @@ import android.media.tv.AdResponse; import android.media.tv.BroadcastInfoRequest; import android.media.tv.BroadcastInfoResponse; import android.media.tv.TvContentRating; import android.media.tv.TvInputInfo; import android.media.tv.TvInputManager; import android.media.tv.TvTrackInfo; import android.media.tv.interactive.TvInteractiveAppServiceInfo.InteractiveAppType; import android.net.Uri; import android.os.Bundle; import android.os.Handler; Loading Loading @@ -776,8 +776,16 @@ public final class TvInteractiveAppManager { /** * Prepares TV Interactive App service environment for the given type. * * <p>This method brings up the corresponding {@link TvInteractiveAppService} and prepare needed * resources. It's used to set up the resources in advance, or handle non-session operations. * * @param tvIAppServiceId The ID of TV interactive service to prepare the resources. The * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * * @see TvInteractiveAppService.Session */ public void prepare(@NonNull String tvIAppServiceId, int type) { public void prepare(@NonNull String tvIAppServiceId, @InteractiveAppType int type) { try { mService.prepare(tvIAppServiceId, type, mUserId); } catch (RemoteException e) { Loading @@ -790,7 +798,7 @@ public final class TvInteractiveAppManager { * Android application by TV interactive App RTE. * * @param tvIAppServiceId The ID of TV interactive service which the command to be sent to. The * ID can be found in {@link TvInputInfo#getId()}. * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * @param appLinkInfo The Android application link info record to be registered. */ public void registerAppLinkInfo( Loading @@ -807,7 +815,7 @@ public final class TvInteractiveAppManager { * Android application by TV interactive App RTE. * * @param tvIAppServiceId The ID of TV interactive service which the command to be sent to. The * ID can be found in {@link TvInputInfo#getId()}. * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * @param appLinkInfo The Android application link info record to be unregistered. */ public void unregisterAppLinkInfo( Loading @@ -823,7 +831,7 @@ public final class TvInteractiveAppManager { * Sends app link command. * * @param tvIAppServiceId The ID of TV interactive service which the command to be sent to. The * ID can be found in {@link TvInputInfo#getId()}. * ID can be found in {@link TvInteractiveAppServiceInfo#getId()}. * @param command The command to be sent. */ public void sendAppLinkCommand(@NonNull String tvIAppServiceId, @NonNull Bundle command) { Loading
media/java/android/media/tv/interactive/TvInteractiveAppService.java +15 −3 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.CallSuper; import android.annotation.MainThread; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Px; import android.annotation.SdkConstant; import android.annotation.StringDef; import android.annotation.SuppressLint; Loading Loading @@ -372,6 +373,15 @@ public abstract class TvInteractiveAppService extends Service { }); } /** * Returns {@code true} if media view is enabled, {@code false} otherwise. * * @see #setMediaViewEnabled(boolean) */ public boolean isMediaViewEnabled() { return mMediaViewEnabled; } /** * Starts TvInteractiveAppService session. */ Loading Loading @@ -435,6 +445,8 @@ public abstract class TvInteractiveAppService extends Service { /** * Receives current stream volume. * * @param volume a volume value between {@code 0.0f} and {@code 1.0f}, inclusive. */ public void onStreamVolume(float volume) { } Loading Loading @@ -495,10 +507,10 @@ public abstract class TvInteractiveAppService extends Service { * containing {@link TvInteractiveAppView}. Note that the size of the underlying surface can * be different if the surface was changed by calling {@link #layoutSurface}. * * @param width The width of the media view. * @param height The height of the media view. * @param width The width of the media view, in pixels. * @param height The height of the media view, in pixels. */ public void onMediaViewSizeChanged(int width, int height) { public void onMediaViewSizeChanged(@Px int width, @Px int height) { } /** Loading