ITvInputSession.aidl revision 1f213914c45c23c653f721690da2ce0718e63139
13957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo/*
23957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * Copyright (C) 2014 The Android Open Source Project
33957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo *
43957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * Licensed under the Apache License, Version 2.0 (the "License");
53957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * you may not use this file except in compliance with the License.
63957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * You may obtain a copy of the License at
73957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo *
83957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo *      http://www.apache.org/licenses/LICENSE-2.0
93957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo *
103957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * Unless required by applicable law or agreed to in writing, software
113957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * distributed under the License is distributed on an "AS IS" BASIS,
123957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * See the License for the specific language governing permissions and
143957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * limitations under the License.
153957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo */
163957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo
17d5cc4a281e7ce29d1e8687ff3394b57a3a549260Jae Seopackage android.media.tv;
183957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo
199a22f0f0a631849d9c622c642d3ab0395f77584bYoungsang Choimport android.graphics.Rect;
201f213914c45c23c653f721690da2ce0718e63139Dongwon Kangimport android.media.tv.TvTrackInfo;
213957091ba8f08c02b5e781098cb955a5f697a1ffJae Seoimport android.net.Uri;
223957091ba8f08c02b5e781098cb955a5f697a1ffJae Seoimport android.view.Surface;
233957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo
243957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo/**
253957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * Sub-interface of ITvInputService which is created per session and has its own context.
263957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo * @hide
273957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo */
283957091ba8f08c02b5e781098cb955a5f697a1ffJae Seooneway interface ITvInputSession {
293957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo    void release();
303957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo
313957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo    void setSurface(in Surface surface);
323957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo    // TODO: Remove this once it becomes irrelevant for applications to handle audio focus. The plan
333957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo    // is to introduce some new concepts that will solve a number of problems in audio policy today.
343957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo    void setVolume(float volume);
353957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo    void tune(in Uri channelUri);
361f213914c45c23c653f721690da2ce0718e63139Dongwon Kang    void selectTrack(in TvTrackInfo track);
371f213914c45c23c653f721690da2ce0718e63139Dongwon Kang    void unselectTrack(in TvTrackInfo track);
389a22f0f0a631849d9c622c642d3ab0395f77584bYoungsang Cho
399a22f0f0a631849d9c622c642d3ab0395f77584bYoungsang Cho    void createOverlayView(in IBinder windowToken, in Rect frame);
409a22f0f0a631849d9c622c642d3ab0395f77584bYoungsang Cho    void relayoutOverlayView(in Rect frame);
419a22f0f0a631849d9c622c642d3ab0395f77584bYoungsang Cho    void removeOverlayView();
423957091ba8f08c02b5e781098cb955a5f697a1ffJae Seo}
43