Fix pathToPort logic in HdmiControlService

ag/5306538

The logic is not correct. Only correct when the target device is directly connected
to the current device.

Test: atest com.android.server.hdmi
Change-Id: Ia090bd70069b3457a975b03574347640151cf5ac
2 files changed