diff options
| author | Paul Colța <donpaul@google.com> | 2021-08-11 15:53:54 +0000 |
|---|---|---|
| committer | Paul Colța <donpaul@google.com> | 2021-08-17 14:33:10 +0000 |
| commit | 35cc37299c4fd5d2b58b322fbb02d625fb599ea8 (patch) | |
| tree | 6d2d50db0516536e2c7f6c7de801a55c5c67414c /core/java | |
| parent | 62962cb74a393af2a6607ae44ed14f7cf76cfba5 (diff) | |
HDMICEC: Deprecate HdmiTvClient#getDeviceList
Move the implementation of the getDeviceList method from HdmiTvClient and HdmiSwitchClient to the HdmiClient abstract class in order to avoid duplicate code and to make it visible for HdmiPlaybackClient.
Add unit test for HdmiCecNetwork#getSafeCecDevicesLocked method which is
called by HdmiControlService#getDeviceList.
Bug: 196043550
Test: make && atest HdmiCecNetworkTest
Change-Id: If4727d582348022a0317d9fce6459d56a7affa5a
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/hardware/hdmi/HdmiSwitchClient.java | 2 | ||||
| -rw-r--r-- | core/java/android/hardware/hdmi/HdmiTvClient.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/hardware/hdmi/HdmiSwitchClient.java b/core/java/android/hardware/hdmi/HdmiSwitchClient.java index cbfbe3940e47..79846cd70784 100644 --- a/core/java/android/hardware/hdmi/HdmiSwitchClient.java +++ b/core/java/android/hardware/hdmi/HdmiSwitchClient.java @@ -165,7 +165,9 @@ public class HdmiSwitchClient extends HdmiClient { * there is none. * * @hide + * @deprecated Please use {@link HdmiControlManager#getConnectedDevices()} instead. */ + @Deprecated public List<HdmiDeviceInfo> getDeviceList() { try { return mService.getDeviceList(); diff --git a/core/java/android/hardware/hdmi/HdmiTvClient.java b/core/java/android/hardware/hdmi/HdmiTvClient.java index f33a1370b3c1..e1ed3eaff1e1 100644 --- a/core/java/android/hardware/hdmi/HdmiTvClient.java +++ b/core/java/android/hardware/hdmi/HdmiTvClient.java @@ -158,7 +158,9 @@ public final class HdmiTvClient extends HdmiClient { * * @return list of {@link HdmiDeviceInfo} for connected CEC devices. * Empty list is returned if there is none. + * @deprecated Please use {@link HdmiControlManager#getConnectedDevices()} instead. */ + @Deprecated public List<HdmiDeviceInfo> getDeviceList() { try { return mService.getDeviceList(); |
