1 /* 2 * Copyright 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.media.tv.interactive; 18 19 import android.graphics.Rect; 20 import android.media.tv.AdRequest; 21 import android.media.tv.BroadcastInfoRequest; 22 import android.net.Uri; 23 import android.os.Bundle; 24 import android.view.InputChannel; 25 26 /** 27 * Interface a client of the ITvInteractiveAppManager implements, to identify itself and receive 28 * information about changes to the state of each TV interactive application service. 29 * @hide 30 */ 31 oneway interface ITvInteractiveAppClient { onSessionCreated(in String iAppServiceId, IBinder token, in InputChannel channel, int seq)32 void onSessionCreated(in String iAppServiceId, IBinder token, in InputChannel channel, int seq); onSessionReleased(int seq)33 void onSessionReleased(int seq); onLayoutSurface(int left, int top, int right, int bottom, int seq)34 void onLayoutSurface(int left, int top, int right, int bottom, int seq); onBroadcastInfoRequest(in BroadcastInfoRequest request, int seq)35 void onBroadcastInfoRequest(in BroadcastInfoRequest request, int seq); onRemoveBroadcastInfo(int id, int seq)36 void onRemoveBroadcastInfo(int id, int seq); onSessionStateChanged(int state, int err, int seq)37 void onSessionStateChanged(int state, int err, int seq); onBiInteractiveAppCreated(in Uri biIAppUri, in String biIAppId, int seq)38 void onBiInteractiveAppCreated(in Uri biIAppUri, in String biIAppId, int seq); onTeletextAppStateChanged(int state, int seq)39 void onTeletextAppStateChanged(int state, int seq); onCommandRequest(in String cmdType, in Bundle parameters, int seq)40 void onCommandRequest(in String cmdType, in Bundle parameters, int seq); onSetVideoBounds(in Rect rect, int seq)41 void onSetVideoBounds(in Rect rect, int seq); onRequestCurrentChannelUri(int seq)42 void onRequestCurrentChannelUri(int seq); onRequestCurrentChannelLcn(int seq)43 void onRequestCurrentChannelLcn(int seq); onRequestStreamVolume(int seq)44 void onRequestStreamVolume(int seq); onRequestTrackInfoList(int seq)45 void onRequestTrackInfoList(int seq); onRequestCurrentTvInputId(int seq)46 void onRequestCurrentTvInputId(int seq); onRequestSigning( in String id, in String algorithm, in String alias, in byte[] data, int seq)47 void onRequestSigning( 48 in String id, in String algorithm, in String alias, in byte[] data, int seq); onAdRequest(in AdRequest request, int Seq)49 void onAdRequest(in AdRequest request, int Seq); 50 } 51