blob: 07983111a8c9523f0b0a3470c6467f2a5a9c29d4 [file] [log] [blame]
Jinsuk Kim91120c52014-05-08 17:12:51 +09001/*
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.hardware.hdmi;
18
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090019import android.hardware.hdmi.HdmiCecDeviceInfo;
20import android.hardware.hdmi.HdmiPortInfo;
Jinsuk Kim91120c52014-05-08 17:12:51 +090021import android.hardware.hdmi.IHdmiControlCallback;
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090022import android.hardware.hdmi.IHdmiDeviceEventListener;
Jinsuk Kim78d695d2014-05-13 16:36:15 +090023import android.hardware.hdmi.IHdmiHotplugEventListener;
Jungshik Jangea67c182014-06-19 22:19:20 +090024import android.hardware.hdmi.IHdmiSystemAudioModeChangeListener;
Jinsuk Kim91120c52014-05-08 17:12:51 +090025
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090026import java.util.List;
27
Jinsuk Kim91120c52014-05-08 17:12:51 +090028/**
29 * Binder interface that clients running in the application process
30 * will use to perform HDMI-CEC features by communicating with other devices
31 * on the bus.
32 *
33 * @hide
34 */
35interface IHdmiControlService {
Jinsuk Kim78d695d2014-05-13 16:36:15 +090036 int[] getSupportedTypes();
37 void oneTouchPlay(IHdmiControlCallback callback);
38 void queryDisplayStatus(IHdmiControlCallback callback);
39 void addHotplugEventListener(IHdmiHotplugEventListener listener);
40 void removeHotplugEventListener(IHdmiHotplugEventListener listener);
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090041 void addDeviceEventListener(IHdmiDeviceEventListener listener);
Jinsuk Kima6ce7702014-05-11 06:54:49 +090042 void deviceSelect(int logicalAddress, IHdmiControlCallback callback);
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090043 void portSelect(int portId, IHdmiControlCallback callback);
Jinsuk Kim0d3985a2014-06-16 17:26:10 +090044 void sendKeyEvent(int keyCode, boolean isPressed);
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090045 List<HdmiPortInfo> getPortInfo();
Jungshik Jangea67c182014-06-19 22:19:20 +090046 boolean canChangeSystemAudioMode();
47 boolean getSystemAudioMode();
48 void setSystemAudioMode(boolean enabled, IHdmiControlCallback callback);
49 void addSystemAudioModeChangeListener(IHdmiSystemAudioModeChangeListener listener);
50 void removeSystemAudioModeChangeListener(IHdmiSystemAudioModeChangeListener listener);
Jinsuk Kim92b77cf2014-06-27 16:39:26 +090051 void setControlEnabled(boolean enabled);
Jungshik Janga13da0d2014-06-30 16:26:06 +090052 void setArcMode(boolean enabled);
Jinsuk Kim160a6e52014-07-02 06:16:36 +090053 void setOption(int option, int value);
Jinsuk Kim4d43d932014-07-03 16:43:58 +090054 void setProhibitMode(boolean enabled);
Jungshik Jang41d97462014-06-30 22:26:29 +090055 oneway void setSystemAudioVolume(int oldIndex, int newIndex, int maxIndex);
56 oneway void setSystemAudioMute(boolean mute);
Jinsuk Kim91120c52014-05-08 17:12:51 +090057}