ITvInputClient.aidl revision b93ccca6139a7ee2dba5c110e5f8213a2bd231e5
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.os.Bundle; 23import android.view.InputChannel; 24 25/** 26 * Interface a client of the ITvInputManager implements, to identify itself and receive information 27 * about changes to the state of each TV input service. 28 * @hide 29 */ 30oneway interface ITvInputClient { 31 void onSessionCreated(in String inputId, IBinder token, in InputChannel channel, int seq); 32 void onAvailabilityChanged(in String inputId, boolean isAvailable); 33 void onSessionReleased(int seq); 34 void onSessionEvent(in String name, in Bundle args, int seq); 35 void onVideoStreamChanged(int width, int height, boolean interlaced, int seq); 36 void onAudioStreamChanged(int channelCount, int seq); 37 void onClosedCaptionStreamChanged(boolean hasClosedCaption, int seq); 38 void onChannelRetuned(in Uri channelUri, int seq); 39} 40