blob: 17f290bd3970e7ab239ac42d2397735207b968c1 [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
Jungshik Jang61f4fbd2014-08-06 19:21:12 +090019import android.hardware.hdmi.HdmiDeviceInfo;
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090020import 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;
Jinsuk Kim9c37e1f2014-07-02 08:29:26 +090024import android.hardware.hdmi.IHdmiInputChangeListener;
Jungshik Jang12e5dce2014-07-24 15:27:44 +090025import android.hardware.hdmi.IHdmiRecordListener;
Jungshik Jangea67c182014-06-19 22:19:20 +090026import android.hardware.hdmi.IHdmiSystemAudioModeChangeListener;
Jinsuk Kim119160a2014-07-07 18:48:10 +090027import android.hardware.hdmi.IHdmiVendorCommandListener;
Jinsuk Kim91120c52014-05-08 17:12:51 +090028
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090029import java.util.List;
30
Jinsuk Kim91120c52014-05-08 17:12:51 +090031/**
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 {
Jinsuk Kim78d695d2014-05-13 16:36:15 +090039 int[] getSupportedTypes();
Jungshik Jang61f4fbd2014-08-06 19:21:12 +090040 HdmiDeviceInfo getActiveSource();
Jinsuk Kim78d695d2014-05-13 16:36:15 +090041 void oneTouchPlay(IHdmiControlCallback callback);
42 void queryDisplayStatus(IHdmiControlCallback callback);
43 void addHotplugEventListener(IHdmiHotplugEventListener listener);
44 void removeHotplugEventListener(IHdmiHotplugEventListener listener);
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090045 void addDeviceEventListener(IHdmiDeviceEventListener listener);
Jinsuk Kim8960d1b2014-08-13 10:48:30 +090046 void deviceSelect(int deviceId, IHdmiControlCallback callback);
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090047 void portSelect(int portId, IHdmiControlCallback callback);
Jinsuk Kimc068bb52014-07-07 16:59:20 +090048 void sendKeyEvent(int deviceType, int keyCode, boolean isPressed);
Jinsuk Kim6d97f5b2014-06-16 11:41:42 +090049 List<HdmiPortInfo> getPortInfo();
Jungshik Jangea67c182014-06-19 22:19:20 +090050 boolean canChangeSystemAudioMode();
51 boolean getSystemAudioMode();
52 void setSystemAudioMode(boolean enabled, IHdmiControlCallback callback);
53 void addSystemAudioModeChangeListener(IHdmiSystemAudioModeChangeListener listener);
54 void removeSystemAudioModeChangeListener(IHdmiSystemAudioModeChangeListener listener);
Jungshik Janga13da0d2014-06-30 16:26:06 +090055 void setArcMode(boolean enabled);
Jinsuk Kim4d43d932014-07-03 16:43:58 +090056 void setProhibitMode(boolean enabled);
Jungshik Jangbffb0632014-07-22 16:56:52 +090057 void setSystemAudioVolume(int oldIndex, int newIndex, int maxIndex);
58 void setSystemAudioMute(boolean mute);
Jinsuk Kim9c37e1f2014-07-02 08:29:26 +090059 void setInputChangeListener(IHdmiInputChangeListener listener);
Jungshik Jang61f4fbd2014-08-06 19:21:12 +090060 List<HdmiDeviceInfo> getInputDevices();
Jinsuk Kim119160a2014-07-07 18:48:10 +090061 void sendVendorCommand(int deviceType, int targetAddress, in byte[] params,
62 boolean hasVendorId);
63 void addVendorCommandListener(IHdmiVendorCommandListener listener, int deviceType);
Jungshik Jang12e5dce2014-07-24 15:27:44 +090064 void setHdmiRecordListener(IHdmiRecordListener callback);
Jungshik Jangbffb0632014-07-22 16:56:52 +090065 void startOneTouchRecord(int recorderAddress, in byte[] recordSource);
Jungshik Jangb6591b82014-07-23 16:10:23 +090066 void stopOneTouchRecord(int recorderAddress);
67 void startTimerRecording(int recorderAddress, int sourceType, in byte[] recordSource);
68 void clearTimerRecording(int recorderAddress, int sourceType, in byte[] recordSource);
Jinsuk Kim91120c52014-05-08 17:12:51 +090069}