From 61791075f4422cfef00fda325d6ae07293dd262f Mon Sep 17 00:00:00 2001 From: Jinsuk Kim Date: Mon, 7 Apr 2014 13:39:17 +0900 Subject: Delegate HdmiCecService method impl to HdmiCecDevice subclass Most of the methods in the interface IHdmiCecService should be implemented based on the device type. This CL makes a change such that the HdmiCecDevice just has stub methods that should be overriden by subclasses. Other changes: - Fixed a bug of not sending its physical address in its message body. Also the command should have been sent to TV only rather than broadcast. - Put back sendGiveDevicePowerStatus interface method. It allows the client to keep track of the other device(like TV) power status more closely. Devices goes through the status from standby -> transient to on -> on but the CEC spec doesn't require that they broacast it actively. The restored method can be used to let the playback device to get up-to-date power status of TV/display when it is booting up. This method should work the same across all the device types. So it was implemented in the service, not delegated to HdmiCecDevice. - Send when a new logical device is registered, which is required by CEC spec: "it should report the association between its logical and physical address by broadcasting Change-Id: Iac1d2cf5783d947f2dcd6965a54670fbdb8e6a63 --- api/current.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index 9a0c738..7666a4e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -11033,6 +11033,7 @@ package android.hardware.hdmi { public final class HdmiCecClient { method public boolean isTvOn(); method public void sendActiveSource(); + method public void sendGiveDevicePowerStatus(int); method public void sendImageViewOn(); method public void sendInactiveSource(); method public void sendTextViewOn(); -- cgit v1.1