diff options
Diffstat (limited to 'services/core/java/com/android/server/hdmi/HdmiCecController.java')
-rw-r--r-- | services/core/java/com/android/server/hdmi/HdmiCecController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/hdmi/HdmiCecController.java b/services/core/java/com/android/server/hdmi/HdmiCecController.java index 9087354dee40..3f89f236dfc3 100644 --- a/services/core/java/com/android/server/hdmi/HdmiCecController.java +++ b/services/core/java/com/android/server/hdmi/HdmiCecController.java @@ -347,7 +347,7 @@ final class HdmiCecController { * {@link HdmiCecNetwork} only. * * @return CEC physical address of the device. The range of success address - * is between 0x0000 and 0xFFFF. If failed it returns -1 + * is between 0x0000 and 0xFFFE. If failed it returns INVALID_PHYSICAL_ADDRESS. */ @ServiceThreadOnly int getPhysicalAddress() { @@ -1299,7 +1299,7 @@ final class HdmiCecController { hdmiPortInfo[i] = new HdmiPortInfo.Builder( portInfo.portId, portInfo.type, - portInfo.physicalAddress) + Short.toUnsignedInt(portInfo.physicalAddress)) .setCecSupported(portInfo.cecSupported) .setMhlSupported(false) .setArcSupported(portInfo.arcSupported) @@ -1496,7 +1496,7 @@ final class HdmiCecController { hdmiPortInfo[i] = new HdmiPortInfo.Builder( portInfo.portId, portInfo.type, - portInfo.physicalAddress) + Short.toUnsignedInt(portInfo.physicalAddress)) .setCecSupported(portInfo.cecSupported) .setMhlSupported(false) .setArcSupported(portInfo.arcSupported) |