IHdmiControlService.aidl revision 0f94217e9043e9dee329fa7167ee5be75eef0c23
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.hardware.hdmi; 18 19import android.hardware.hdmi.HdmiCecDeviceInfo; 20import android.hardware.hdmi.HdmiPortInfo; 21import android.hardware.hdmi.IHdmiControlCallback; 22import android.hardware.hdmi.IHdmiDeviceEventListener; 23import android.hardware.hdmi.IHdmiHotplugEventListener; 24import android.hardware.hdmi.IHdmiInputChangeListener; 25import android.hardware.hdmi.IHdmiSystemAudioModeChangeListener; 26 27import java.util.List; 28 29/** 30 * Binder interface that clients running in the application process 31 * will use to perform HDMI-CEC features by communicating with other devices 32 * on the bus. 33 * 34 * @hide 35 */ 36interface IHdmiControlService { 37 int[] getSupportedTypes(); 38 void oneTouchPlay(IHdmiControlCallback callback); 39 void queryDisplayStatus(IHdmiControlCallback callback); 40 void addHotplugEventListener(IHdmiHotplugEventListener listener); 41 void removeHotplugEventListener(IHdmiHotplugEventListener listener); 42 void addDeviceEventListener(IHdmiDeviceEventListener listener); 43 void deviceSelect(int logicalAddress, IHdmiControlCallback callback); 44 void portSelect(int portId, IHdmiControlCallback callback); 45 void sendKeyEvent(int keyCode, boolean isPressed); 46 List<HdmiPortInfo> getPortInfo(); 47 boolean canChangeSystemAudioMode(); 48 boolean getSystemAudioMode(); 49 void setSystemAudioMode(boolean enabled, IHdmiControlCallback callback); 50 void addSystemAudioModeChangeListener(IHdmiSystemAudioModeChangeListener listener); 51 void removeSystemAudioModeChangeListener(IHdmiSystemAudioModeChangeListener listener); 52 void setControlEnabled(boolean enabled); 53 void setArcMode(boolean enabled); 54 void setOption(int option, int value); 55 void setProhibitMode(boolean enabled); 56 oneway void setSystemAudioVolume(int oldIndex, int newIndex, int maxIndex); 57 oneway void setSystemAudioMute(boolean mute); 58 void setInputChangeListener(IHdmiInputChangeListener listener); 59 List<HdmiCecDeviceInfo> getInputDevices(); 60} 61