ITvInputClient.aidl revision 9b08edff236fc68d836eccfaa1a5f028dc390cec
1/* 2 * Copyright (C) 2014 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 17package android.media.tv; 18 19import android.content.ComponentName; 20import android.media.tv.ITvInputSession; 21import android.net.Uri; 22import android.media.tv.TvTrackInfo; 23import android.os.Bundle; 24import android.view.InputChannel; 25 26/** 27 * Interface a client of the ITvInputManager implements, to identify itself and receive information 28 * about changes to the state of each TV input service. 29 * @hide 30 */ 31oneway interface ITvInputClient { 32 void onSessionCreated(in String inputId, IBinder token, in InputChannel channel, int seq); 33 void onAvailabilityChanged(in String inputId, boolean isAvailable); 34 void onSessionReleased(int seq); 35 void onSessionEvent(in String name, in Bundle args, int seq); 36 void onChannelRetuned(in Uri channelUri, int seq); 37 void onTrackInfoChanged(in List<TvTrackInfo> tracks, int seq); 38 void onVideoAvailable(int seq); 39 void onVideoUnavailable(int reason, int seq); 40} 41