ITvInputSessionCallback.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.media.tv.ITvInputSession;
20import android.net.Uri;
21import android.os.Bundle;
22
23/**
24 * Helper interface for ITvInputSession to allow the TV input to notify the system service when a
25 * new session has been created.
26 * @hide
27 */
28oneway interface ITvInputSessionCallback {
29    void onSessionCreated(ITvInputSession session);
30    void onSessionEvent(in String name, in Bundle args);
31    void onVideoStreamChanged(int width, int height, boolean interlaced);
32    void onAudioStreamChanged(int channelCount);
33    void onClosedCaptionStreamChanged(boolean hasClosedCaption);
34    void onChannelRetuned(in Uri channelUri);
35}
36