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