OSDN Git Service

CEC: add getDeviceList()
authorJinsuk Kim <jinsukkim@google.com>
Mon, 20 Oct 2014 01:00:04 +0000 (10:00 +0900)
committerJinsuk Kim <jinsukkim@google.com>
Mon, 20 Oct 2014 02:32:47 +0000 (11:32 +0900)
commitbdf27fbf746bee11430c4db2ea6dfd026bae77fe
tree1ec49e6871736b476e80e23252c3ec68cb7212f9
parent512c2330c652c56996bf3ef63ddad242752cebcd
CEC: add getDeviceList()

Returns the list of all the connected CEC device information. This is
different from getInputDevices() which returns devices of source type only.

For this, turned the local device address list to unmodifiable so that it can
be used by any threads.

Now respects the device type info passed through <Report Physical Address>
rather than always defaulting to the one from HdmiUtil.getTypeFromAddress().
This ensures future compatibility when a device of reserved logical address
comes with a specific type.

Bug: 18046603
Change-Id: I5f7d5e31706efba1ad5dcf4bcfd4ffc918d1d940
core/java/android/hardware/hdmi/HdmiTvClient.java
core/java/android/hardware/hdmi/IHdmiControlService.aidl
services/core/java/com/android/server/hdmi/ActiveSourceHandler.java
services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java
services/core/java/com/android/server/hdmi/HdmiControlService.java
services/core/java/com/android/server/hdmi/NewDeviceAction.java