Allow to use device's own physical address.

- Fixed JavaDoc.

Change-Id: I6fdbf6596b5f2e41a238b36e128ba0889725c813
This commit is contained in:
Yuncheol Heo
2014-08-07 17:58:59 +09:00
parent 2849b7ccd1
commit 7dea98f6f9

View File

@@ -250,6 +250,9 @@ public final class HdmiCecMessageValidator {
return true;
}
int path = HdmiUtils.twoBytesToInt(params, offset);
if (path != Constants.INVALID_PHYSICAL_ADDRESS && path == mService.getPhysicalAddress()) {
return true;
}
int portId = mService.pathToPortId(path);
if (portId == Constants.INVALID_PORT_ID) {
return false;
@@ -259,10 +262,10 @@ public final class HdmiCecMessageValidator {
/**
* Check if the given type is valid. A valid type is one of the actual logical device types
* defined in the standard ({@link HdmiCecDeviceInfo#DEVICE_TV},
* {@link HdmiCecDeviceInfo#DEVICE_PLAYBACK}, {@link HdmiCecDeviceInfo#DEVICE_TUNER},
* {@link HdmiCecDeviceInfo#DEVICE_RECORDER}, and
* {@link HdmiCecDeviceInfo#DEVICE_AUDIO_SYSTEM}).
* defined in the standard ({@link HdmiDeviceInfo#DEVICE_TV},
* {@link HdmiDeviceInfo#DEVICE_PLAYBACK}, {@link HdmiDeviceInfo#DEVICE_TUNER},
* {@link HdmiDeviceInfo#DEVICE_RECORDER}, and
* {@link HdmiDeviceInfo#DEVICE_AUDIO_SYSTEM}).
*
* @param type device type
* @return true if the given type is valid