ITvInputHardwarepublic interface ITvInputHardware implements android.os.IInterfaceTvInputService representing a physical port should connect to HAL through this interface.
Framework will take care of communication among system services including TvInputManagerService,
HdmiControlService, AudioService, etc. |
Methods Summary |
---|
public boolean | dispatchKeyEventToHdmi(android.view.KeyEvent event)Dispatch key event to HDMI service. The events would be automatically converted to
HDMI CEC commands. If the hardware is not representing an HDMI port, this method will fail.
| public void | overrideAudioSink(int audioType, java.lang.String audioAddress, int samplingRate, int channelMask, int format)Override default audio sink from audio policy. When override is on, it is
TvInputService's responsibility to adjust to audio configuration change
(for example, when the audio sink becomes unavailable or more desirable
audio sink is detected).
| public void | setStreamVolume(float volume)Set volume for this stream via AudioGain.
| public boolean | setSurface(android.view.Surface surface, android.media.tv.TvStreamConfig config)Make the input render on the surface according to the config. In case of HDMI, this will
trigger CEC commands for adjusting active HDMI source. Returns true on success.
|
|