1 /* 2 * Copyright (C) 2019 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 17 package android.hardware.hdmi; 18 19 /** 20 * Callback interface definition for HDMI client to get informed of 21 * the CEC availability change event. 22 * 23 * @hide 24 */ 25 oneway interface IHdmiControlStatusChangeListener { 26 27 /** 28 * Called when HDMI Control (CEC) is enabled/disabled. 29 * 30 * @param isCecEnabled status of HDMI Control 31 * {@link android.hardware.hdmi.HdmiControlManager#CEC_SETTING_NAME_HDMI_CEC_ENABLED}: {@link android.hardware.hdmi.HdmiControlManager#HDMI_CEC_CONTROL_ENABLED} if enabled. 32 * @param isCecAvailable status of CEC support of the connected display (the TV). 33 * {@code true} if supported. 34 * 35 * Note: Value of isCecAvailable is only valid when isCecEnabled is {@link android.hardware.hdmi.HdmiControlManager#HDMI_CEC_CONTROL_ENABLED}. 36 **/ onStatusChange(int isCecEnabled, boolean isCecAvailable)37 void onStatusChange(int isCecEnabled, boolean isCecAvailable); 38 } 39