1 package com.android.server.hdmi; 2 3 import android.hardware.hdmi.HdmiDeviceInfo; 4 import android.hardware.hdmi.IHdmiControlCallback; 5 6 /** 7 * Stub class that models a logical mhl device hosted in this system. 8 */ 9 final class HdmiMhlLocalDeviceStub { 10 11 private static final HdmiDeviceInfo INFO = new HdmiDeviceInfo( 12 Constants.INVALID_PHYSICAL_ADDRESS, Constants.INVALID_PORT_ID, -1, -1); 13 private final HdmiControlService mService; 14 private final int mPortId; 15 HdmiMhlLocalDeviceStub(HdmiControlService service, int portId)16 protected HdmiMhlLocalDeviceStub(HdmiControlService service, int portId) { 17 mService = service; 18 mPortId = portId; 19 } 20 onDeviceRemoved()21 void onDeviceRemoved() { 22 } 23 getInfo()24 HdmiDeviceInfo getInfo() { 25 return INFO; 26 } 27 setBusMode(int cbusmode)28 void setBusMode(int cbusmode) { 29 } 30 onBusOvercurrentDetected(boolean on)31 void onBusOvercurrentDetected(boolean on) { 32 } 33 setDeviceStatusChange(int adopterId, int deviceId)34 void setDeviceStatusChange(int adopterId, int deviceId) { 35 } 36 getPortId()37 int getPortId() { 38 return mPortId; 39 } 40 turnOn(IHdmiControlCallback callback)41 void turnOn(IHdmiControlCallback callback) { 42 } 43 sendKeyEvent(int keycode, boolean isPressed)44 void sendKeyEvent(int keycode, boolean isPressed) { 45 } 46 sendStandby()47 void sendStandby() { 48 } 49 } 50