commit | 0361dd75f164332cae1180ebf9fa677479c5d6f9 | [log] [tgz] |
---|---|---|
author | Amy <amyjojo@google.com> | Wed Nov 07 16:54:25 2018 -0800 |
committer | shubang <shubang@google.com> | Tue Jan 15 18:12:01 2019 -0800 |
tree | c4b03577e3ef0a4ef8be1edd5766c2f68baa24ce | |
parent | f4b66f62d44877de9ddff97dca444fd4c8db9e98 [diff] |
Make getActiveSource in HdmiControlService work for non-TV device. ag/5463663 Adding a getSafeDeviceInfo() to get the local device info since the getDeviceInfo() is service thread only. This device info is returned when the current device is the Active Source. Otherwise we look for the device info in the remote device list maintained by the switch device type. Test: manual Bug: 119041273 Change-Id: Iaa2e87eaa9e430205a92a30ebd4506a6e8ef5f2b