Loading core/api/current.txt +6 −0 Original line number Original line Diff line number Diff line Loading @@ -27863,6 +27863,7 @@ package android.media.tv.interactive { method public void onAdResponse(@NonNull android.media.tv.AdResponse); method public void onAdResponse(@NonNull android.media.tv.AdResponse); method public void onAvailableSpeeds(@NonNull float[]); method public void onAvailableSpeeds(@NonNull float[]); method public void onBroadcastInfoResponse(@NonNull android.media.tv.BroadcastInfoResponse); method public void onBroadcastInfoResponse(@NonNull android.media.tv.BroadcastInfoResponse); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onCertificate(@NonNull String, int, @NonNull android.net.http.SslCertificate); method public void onContentAllowed(); method public void onContentAllowed(); method public void onContentBlocked(@NonNull android.media.tv.TvContentRating); method public void onContentBlocked(@NonNull android.media.tv.TvContentRating); method public void onCreateBiInteractiveAppRequest(@NonNull android.net.Uri, @Nullable android.os.Bundle); method public void onCreateBiInteractiveAppRequest(@NonNull android.net.Uri, @Nullable android.os.Bundle); Loading Loading @@ -27918,6 +27919,7 @@ package android.media.tv.interactive { method @CallSuper public void requestAd(@NonNull android.media.tv.AdRequest); method @CallSuper public void requestAd(@NonNull android.media.tv.AdRequest); method @CallSuper public void requestAvailableSpeeds(); method @CallSuper public void requestAvailableSpeeds(); method @CallSuper public void requestBroadcastInfo(@NonNull android.media.tv.BroadcastInfoRequest); method @CallSuper public void requestBroadcastInfo(@NonNull android.media.tv.BroadcastInfoRequest); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestCertificate(@NonNull String, int); method @CallSuper public void requestCurrentChannelLcn(); method @CallSuper public void requestCurrentChannelLcn(); method @CallSuper public void requestCurrentChannelUri(); method @CallSuper public void requestCurrentChannelUri(); method @CallSuper public void requestCurrentTvInputId(); method @CallSuper public void requestCurrentTvInputId(); Loading @@ -27926,6 +27928,7 @@ package android.media.tv.interactive { method @CallSuper public void requestScheduleRecording(@NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method @CallSuper public void requestScheduleRecording(@NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestSelectedTrackInfo(); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestSelectedTrackInfo(); method @CallSuper public void requestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method @CallSuper public void requestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestSigning(@NonNull String, @NonNull String, @NonNull String, int, @NonNull byte[]); method @CallSuper public void requestStartRecording(@NonNull String, @Nullable android.net.Uri); method @CallSuper public void requestStartRecording(@NonNull String, @Nullable android.net.Uri); method @CallSuper public void requestStopRecording(@NonNull String); method @CallSuper public void requestStopRecording(@NonNull String); method @CallSuper public void requestStreamVolume(); method @CallSuper public void requestStreamVolume(); Loading Loading @@ -27986,6 +27989,7 @@ package android.media.tv.interactive { method public void reset(); method public void reset(); method public void resetInteractiveApp(); method public void resetInteractiveApp(); method public void sendAvailableSpeeds(@NonNull float[]); method public void sendAvailableSpeeds(@NonNull float[]); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void sendCertificate(@NonNull String, int, @NonNull android.net.http.SslCertificate); method public void sendCurrentChannelLcn(int); method public void sendCurrentChannelLcn(int); method public void sendCurrentChannelUri(@Nullable android.net.Uri); method public void sendCurrentChannelUri(@Nullable android.net.Uri); method public void sendCurrentTvInputId(@Nullable String); method public void sendCurrentTvInputId(@Nullable String); Loading Loading @@ -28020,6 +28024,7 @@ package android.media.tv.interactive { method public void onBiInteractiveAppCreated(@NonNull String, @NonNull android.net.Uri, @Nullable String); method public void onBiInteractiveAppCreated(@NonNull String, @NonNull android.net.Uri, @Nullable String); method public void onPlaybackCommandRequest(@NonNull String, @NonNull String, @NonNull android.os.Bundle); method public void onPlaybackCommandRequest(@NonNull String, @NonNull String, @NonNull android.os.Bundle); method public void onRequestAvailableSpeeds(@NonNull String); method public void onRequestAvailableSpeeds(@NonNull String); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestCertificate(@NonNull String, @NonNull String, int); method public void onRequestCurrentChannelLcn(@NonNull String); method public void onRequestCurrentChannelLcn(@NonNull String); method public void onRequestCurrentChannelUri(@NonNull String); method public void onRequestCurrentChannelUri(@NonNull String); method public void onRequestCurrentTvInputId(@NonNull String); method public void onRequestCurrentTvInputId(@NonNull String); Loading @@ -28028,6 +28033,7 @@ package android.media.tv.interactive { method public void onRequestScheduleRecording(@NonNull String, @NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method public void onRequestScheduleRecording(@NonNull String, @NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestSelectedTrackInfo(@NonNull String); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestSelectedTrackInfo(@NonNull String); method public void onRequestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method public void onRequestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull String, int, @NonNull byte[]); method public void onRequestStartRecording(@NonNull String, @NonNull String, @Nullable android.net.Uri); method public void onRequestStartRecording(@NonNull String, @NonNull String, @Nullable android.net.Uri); method public void onRequestStopRecording(@NonNull String, @NonNull String); method public void onRequestStopRecording(@NonNull String, @NonNull String); method public void onRequestStreamVolume(@NonNull String); method public void onRequestStreamVolume(@NonNull String); media/java/android/media/tv/interactive/TvInteractiveAppManager.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -2634,8 +2634,8 @@ public final class TvInteractiveAppManager { /** /** * This is called when * This is called when * {@link TvInteractiveAppService.Session#requestSigning(String, String, String, int, byte[])} is * {@link TvInteractiveAppService.Session#requestSigning(String, String, String, int, byte[])} * called. * is called. * * * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param signingId the ID to identify the request. * @param signingId the ID to identify the request. Loading @@ -2644,7 +2644,6 @@ public final class TvInteractiveAppManager { * @param host The host of the SSL CLient Authentication Server * @param host The host of the SSL CLient Authentication Server * @param port The port of the SSL Client Authentication Server * @param port The port of the SSL Client Authentication Server * @param data the original bytes to be signed. * @param data the original bytes to be signed. * @hide */ */ public void onRequestSigning( public void onRequestSigning( Session session, String signingId, String algorithm, String host, Session session, String signingId, String algorithm, String host, Loading @@ -2657,7 +2656,6 @@ public final class TvInteractiveAppManager { * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @hide */ */ public void onRequestCertificate(Session session, String host, int port) { public void onRequestCertificate(Session session, String host, int port) { } } Loading media/java/android/media/tv/interactive/TvInteractiveAppService.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -742,8 +742,8 @@ public abstract class TvInteractiveAppService extends Service { * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @param cert the SSL certificate received. * @param cert the SSL certificate received. * @hide */ */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void onCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { public void onCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { } } Loading Loading @@ -1666,9 +1666,9 @@ public abstract class TvInteractiveAppService extends Service { * @see #onSigningResult(String, byte[]) * @see #onSigningResult(String, byte[]) * @see TvInteractiveAppView#createBiInteractiveApp(Uri, Bundle) * @see TvInteractiveAppView#createBiInteractiveApp(Uri, Bundle) * @see TvInteractiveAppView#BI_INTERACTIVE_APP_KEY_ALIAS * @see TvInteractiveAppView#BI_INTERACTIVE_APP_KEY_ALIAS * @hide */ */ @CallSuper @CallSuper @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void requestSigning(@NonNull String signingId, @NonNull String algorithm, public void requestSigning(@NonNull String signingId, @NonNull String algorithm, @NonNull String host, int port, @NonNull byte[] data) { @NonNull String host, int port, @NonNull byte[] data) { executeOrPostRunnableOnMainThread(new Runnable() { executeOrPostRunnableOnMainThread(new Runnable() { Loading @@ -1695,8 +1695,9 @@ public abstract class TvInteractiveAppService extends Service { * * * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @hide */ */ @CallSuper @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void requestCertificate(@NonNull String host, int port) { public void requestCertificate(@NonNull String host, int port) { executeOrPostRunnableOnMainThread(new Runnable() { executeOrPostRunnableOnMainThread(new Runnable() { @MainThread @MainThread Loading media/java/android/media/tv/interactive/TvInteractiveAppView.java +62 −2 Original line number Original line Diff line number Diff line Loading @@ -760,12 +760,12 @@ public class TvInteractiveAppView extends ViewGroup { } } /** /** * Send the requested SSL certificate to the TV Interactive App * Sends the requested SSL certificate to the TV Interactive App * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @param cert the SSL certificate requested * @param cert the SSL certificate requested * @hide */ */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void sendCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { public void sendCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { if (DEBUG) { if (DEBUG) { Log.d(TAG, "sendCertificate"); Log.d(TAG, "sendCertificate"); Loading Loading @@ -1389,6 +1389,37 @@ public class TvInteractiveAppView extends ViewGroup { @NonNull String algorithm, @NonNull String alias, @NonNull byte[] data) { @NonNull String algorithm, @NonNull String alias, @NonNull byte[] data) { } } /** * This is called when * {@link TvInteractiveAppService.Session#requestSigning(String, String, String, int, byte[])} * is called. * * @param iAppServiceId The ID of the TV interactive app service bound to this view. * @param signingId the ID to identify the request. * @param algorithm the standard name of the signature algorithm requested, such as * MD5withRSA, SHA256withDSA, etc. * @param host The hostname of the SSL authentication server. * @param port The port of the SSL authentication server. * @param data the original bytes to be signed. */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void onRequestSigning(@NonNull String iAppServiceId, @NonNull String signingId, @NonNull String algorithm, @NonNull String host, int port, @NonNull byte[] data) { } /** * This is called when * {@link TvInteractiveAppService.Session#requestCertificate(String, int)} is called. * * @param iAppServiceId The ID of the TV interactive app service bound to this view. * @param host The hostname of the SSL authentication server. * @param port The port of the SSL authentication server. */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void onRequestCertificate(@NonNull String iAppServiceId, @NonNull String host, int port) { } /** /** * This is called when {@link TvInteractiveAppService.Session#setTvRecordingInfo(String, * This is called when {@link TvInteractiveAppService.Session#setTvRecordingInfo(String, * TvRecordingInfo)} is called. * TvRecordingInfo)} is called. Loading Loading @@ -1957,5 +1988,34 @@ public class TvInteractiveAppView extends ViewGroup { mCallback.onRequestSigning(mIAppServiceId, id, algorithm, alias, data); mCallback.onRequestSigning(mIAppServiceId, id, algorithm, alias, data); } } } } @Override public void onRequestSigning( Session session, String id, String algorithm, String host, int port, byte[] data) { if (DEBUG) { Log.d(TAG, "onRequestSigning"); } if (this != mSessionCallback) { Log.w(TAG, "onRequestSigning - session not created"); return; } if (mCallback != null && Flags.tiafVApis()) { mCallback.onRequestSigning(mIAppServiceId, id, algorithm, host, port, data); } } @Override public void onRequestCertificate(Session session, String host, int port) { if (DEBUG) { Log.d(TAG, "onRequestCertificate"); } if (this != mSessionCallback) { Log.w(TAG, "onRequestCertificate - session not created"); return; } if (mCallback != null && Flags.tiafVApis()) { mCallback.onRequestCertificate(mIAppServiceId, host, port); } } } } } } Loading
core/api/current.txt +6 −0 Original line number Original line Diff line number Diff line Loading @@ -27863,6 +27863,7 @@ package android.media.tv.interactive { method public void onAdResponse(@NonNull android.media.tv.AdResponse); method public void onAdResponse(@NonNull android.media.tv.AdResponse); method public void onAvailableSpeeds(@NonNull float[]); method public void onAvailableSpeeds(@NonNull float[]); method public void onBroadcastInfoResponse(@NonNull android.media.tv.BroadcastInfoResponse); method public void onBroadcastInfoResponse(@NonNull android.media.tv.BroadcastInfoResponse); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onCertificate(@NonNull String, int, @NonNull android.net.http.SslCertificate); method public void onContentAllowed(); method public void onContentAllowed(); method public void onContentBlocked(@NonNull android.media.tv.TvContentRating); method public void onContentBlocked(@NonNull android.media.tv.TvContentRating); method public void onCreateBiInteractiveAppRequest(@NonNull android.net.Uri, @Nullable android.os.Bundle); method public void onCreateBiInteractiveAppRequest(@NonNull android.net.Uri, @Nullable android.os.Bundle); Loading Loading @@ -27918,6 +27919,7 @@ package android.media.tv.interactive { method @CallSuper public void requestAd(@NonNull android.media.tv.AdRequest); method @CallSuper public void requestAd(@NonNull android.media.tv.AdRequest); method @CallSuper public void requestAvailableSpeeds(); method @CallSuper public void requestAvailableSpeeds(); method @CallSuper public void requestBroadcastInfo(@NonNull android.media.tv.BroadcastInfoRequest); method @CallSuper public void requestBroadcastInfo(@NonNull android.media.tv.BroadcastInfoRequest); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestCertificate(@NonNull String, int); method @CallSuper public void requestCurrentChannelLcn(); method @CallSuper public void requestCurrentChannelLcn(); method @CallSuper public void requestCurrentChannelUri(); method @CallSuper public void requestCurrentChannelUri(); method @CallSuper public void requestCurrentTvInputId(); method @CallSuper public void requestCurrentTvInputId(); Loading @@ -27926,6 +27928,7 @@ package android.media.tv.interactive { method @CallSuper public void requestScheduleRecording(@NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method @CallSuper public void requestScheduleRecording(@NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestSelectedTrackInfo(); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestSelectedTrackInfo(); method @CallSuper public void requestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method @CallSuper public void requestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") @CallSuper public void requestSigning(@NonNull String, @NonNull String, @NonNull String, int, @NonNull byte[]); method @CallSuper public void requestStartRecording(@NonNull String, @Nullable android.net.Uri); method @CallSuper public void requestStartRecording(@NonNull String, @Nullable android.net.Uri); method @CallSuper public void requestStopRecording(@NonNull String); method @CallSuper public void requestStopRecording(@NonNull String); method @CallSuper public void requestStreamVolume(); method @CallSuper public void requestStreamVolume(); Loading Loading @@ -27986,6 +27989,7 @@ package android.media.tv.interactive { method public void reset(); method public void reset(); method public void resetInteractiveApp(); method public void resetInteractiveApp(); method public void sendAvailableSpeeds(@NonNull float[]); method public void sendAvailableSpeeds(@NonNull float[]); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void sendCertificate(@NonNull String, int, @NonNull android.net.http.SslCertificate); method public void sendCurrentChannelLcn(int); method public void sendCurrentChannelLcn(int); method public void sendCurrentChannelUri(@Nullable android.net.Uri); method public void sendCurrentChannelUri(@Nullable android.net.Uri); method public void sendCurrentTvInputId(@Nullable String); method public void sendCurrentTvInputId(@Nullable String); Loading Loading @@ -28020,6 +28024,7 @@ package android.media.tv.interactive { method public void onBiInteractiveAppCreated(@NonNull String, @NonNull android.net.Uri, @Nullable String); method public void onBiInteractiveAppCreated(@NonNull String, @NonNull android.net.Uri, @Nullable String); method public void onPlaybackCommandRequest(@NonNull String, @NonNull String, @NonNull android.os.Bundle); method public void onPlaybackCommandRequest(@NonNull String, @NonNull String, @NonNull android.os.Bundle); method public void onRequestAvailableSpeeds(@NonNull String); method public void onRequestAvailableSpeeds(@NonNull String); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestCertificate(@NonNull String, @NonNull String, int); method public void onRequestCurrentChannelLcn(@NonNull String); method public void onRequestCurrentChannelLcn(@NonNull String); method public void onRequestCurrentChannelUri(@NonNull String); method public void onRequestCurrentChannelUri(@NonNull String); method public void onRequestCurrentTvInputId(@NonNull String); method public void onRequestCurrentTvInputId(@NonNull String); Loading @@ -28028,6 +28033,7 @@ package android.media.tv.interactive { method public void onRequestScheduleRecording(@NonNull String, @NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method public void onRequestScheduleRecording(@NonNull String, @NonNull String, @NonNull String, @NonNull android.net.Uri, long, long, int, @NonNull android.os.Bundle); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestSelectedTrackInfo(@NonNull String); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestSelectedTrackInfo(@NonNull String); method public void onRequestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method public void onRequestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method @FlaggedApi("android.media.tv.flags.tiaf_v_apis") public void onRequestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull String, int, @NonNull byte[]); method public void onRequestStartRecording(@NonNull String, @NonNull String, @Nullable android.net.Uri); method public void onRequestStartRecording(@NonNull String, @NonNull String, @Nullable android.net.Uri); method public void onRequestStopRecording(@NonNull String, @NonNull String); method public void onRequestStopRecording(@NonNull String, @NonNull String); method public void onRequestStreamVolume(@NonNull String); method public void onRequestStreamVolume(@NonNull String);
media/java/android/media/tv/interactive/TvInteractiveAppManager.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -2634,8 +2634,8 @@ public final class TvInteractiveAppManager { /** /** * This is called when * This is called when * {@link TvInteractiveAppService.Session#requestSigning(String, String, String, int, byte[])} is * {@link TvInteractiveAppService.Session#requestSigning(String, String, String, int, byte[])} * called. * is called. * * * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param signingId the ID to identify the request. * @param signingId the ID to identify the request. Loading @@ -2644,7 +2644,6 @@ public final class TvInteractiveAppManager { * @param host The host of the SSL CLient Authentication Server * @param host The host of the SSL CLient Authentication Server * @param port The port of the SSL Client Authentication Server * @param port The port of the SSL Client Authentication Server * @param data the original bytes to be signed. * @param data the original bytes to be signed. * @hide */ */ public void onRequestSigning( public void onRequestSigning( Session session, String signingId, String algorithm, String host, Session session, String signingId, String algorithm, String host, Loading @@ -2657,7 +2656,6 @@ public final class TvInteractiveAppManager { * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param session A {@link TvInteractiveAppService.Session} associated with this callback. * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @hide */ */ public void onRequestCertificate(Session session, String host, int port) { public void onRequestCertificate(Session session, String host, int port) { } } Loading
media/java/android/media/tv/interactive/TvInteractiveAppService.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -742,8 +742,8 @@ public abstract class TvInteractiveAppService extends Service { * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @param cert the SSL certificate received. * @param cert the SSL certificate received. * @hide */ */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void onCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { public void onCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { } } Loading Loading @@ -1666,9 +1666,9 @@ public abstract class TvInteractiveAppService extends Service { * @see #onSigningResult(String, byte[]) * @see #onSigningResult(String, byte[]) * @see TvInteractiveAppView#createBiInteractiveApp(Uri, Bundle) * @see TvInteractiveAppView#createBiInteractiveApp(Uri, Bundle) * @see TvInteractiveAppView#BI_INTERACTIVE_APP_KEY_ALIAS * @see TvInteractiveAppView#BI_INTERACTIVE_APP_KEY_ALIAS * @hide */ */ @CallSuper @CallSuper @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void requestSigning(@NonNull String signingId, @NonNull String algorithm, public void requestSigning(@NonNull String signingId, @NonNull String algorithm, @NonNull String host, int port, @NonNull byte[] data) { @NonNull String host, int port, @NonNull byte[] data) { executeOrPostRunnableOnMainThread(new Runnable() { executeOrPostRunnableOnMainThread(new Runnable() { Loading @@ -1695,8 +1695,9 @@ public abstract class TvInteractiveAppService extends Service { * * * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @hide */ */ @CallSuper @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void requestCertificate(@NonNull String host, int port) { public void requestCertificate(@NonNull String host, int port) { executeOrPostRunnableOnMainThread(new Runnable() { executeOrPostRunnableOnMainThread(new Runnable() { @MainThread @MainThread Loading
media/java/android/media/tv/interactive/TvInteractiveAppView.java +62 −2 Original line number Original line Diff line number Diff line Loading @@ -760,12 +760,12 @@ public class TvInteractiveAppView extends ViewGroup { } } /** /** * Send the requested SSL certificate to the TV Interactive App * Sends the requested SSL certificate to the TV Interactive App * @param host the host name of the SSL authentication server. * @param host the host name of the SSL authentication server. * @param port the port of the SSL authentication server. E.g., 443 * @param port the port of the SSL authentication server. E.g., 443 * @param cert the SSL certificate requested * @param cert the SSL certificate requested * @hide */ */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void sendCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { public void sendCertificate(@NonNull String host, int port, @NonNull SslCertificate cert) { if (DEBUG) { if (DEBUG) { Log.d(TAG, "sendCertificate"); Log.d(TAG, "sendCertificate"); Loading Loading @@ -1389,6 +1389,37 @@ public class TvInteractiveAppView extends ViewGroup { @NonNull String algorithm, @NonNull String alias, @NonNull byte[] data) { @NonNull String algorithm, @NonNull String alias, @NonNull byte[] data) { } } /** * This is called when * {@link TvInteractiveAppService.Session#requestSigning(String, String, String, int, byte[])} * is called. * * @param iAppServiceId The ID of the TV interactive app service bound to this view. * @param signingId the ID to identify the request. * @param algorithm the standard name of the signature algorithm requested, such as * MD5withRSA, SHA256withDSA, etc. * @param host The hostname of the SSL authentication server. * @param port The port of the SSL authentication server. * @param data the original bytes to be signed. */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void onRequestSigning(@NonNull String iAppServiceId, @NonNull String signingId, @NonNull String algorithm, @NonNull String host, int port, @NonNull byte[] data) { } /** * This is called when * {@link TvInteractiveAppService.Session#requestCertificate(String, int)} is called. * * @param iAppServiceId The ID of the TV interactive app service bound to this view. * @param host The hostname of the SSL authentication server. * @param port The port of the SSL authentication server. */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) public void onRequestCertificate(@NonNull String iAppServiceId, @NonNull String host, int port) { } /** /** * This is called when {@link TvInteractiveAppService.Session#setTvRecordingInfo(String, * This is called when {@link TvInteractiveAppService.Session#setTvRecordingInfo(String, * TvRecordingInfo)} is called. * TvRecordingInfo)} is called. Loading Loading @@ -1957,5 +1988,34 @@ public class TvInteractiveAppView extends ViewGroup { mCallback.onRequestSigning(mIAppServiceId, id, algorithm, alias, data); mCallback.onRequestSigning(mIAppServiceId, id, algorithm, alias, data); } } } } @Override public void onRequestSigning( Session session, String id, String algorithm, String host, int port, byte[] data) { if (DEBUG) { Log.d(TAG, "onRequestSigning"); } if (this != mSessionCallback) { Log.w(TAG, "onRequestSigning - session not created"); return; } if (mCallback != null && Flags.tiafVApis()) { mCallback.onRequestSigning(mIAppServiceId, id, algorithm, host, port, data); } } @Override public void onRequestCertificate(Session session, String host, int port) { if (DEBUG) { Log.d(TAG, "onRequestCertificate"); } if (this != mSessionCallback) { Log.w(TAG, "onRequestCertificate - session not created"); return; } if (mCallback != null && Flags.tiafVApis()) { mCallback.onRequestCertificate(mIAppServiceId, host, port); } } } } } }