Merge "CEC: Let MHL device be of type 'source'" into lmp-mr1-dev

This commit is contained in:
Jinsuk Kim
2015-01-05 07:10:05 +00:00
committed by Android (Google) Code Review

View File

@@ -336,9 +336,15 @@ public class HdmiDeviceInfo implements Parcelable {
* Returns {@code true} if the device is of a type that can be an input source. * Returns {@code true} if the device is of a type that can be an input source.
*/ */
public boolean isSourceType() { public boolean isSourceType() {
return mDeviceType == DEVICE_PLAYBACK if (isCecDevice()) {
|| mDeviceType == DEVICE_RECORDER return mDeviceType == DEVICE_PLAYBACK
|| mDeviceType == DEVICE_TUNER; || mDeviceType == DEVICE_RECORDER
|| mDeviceType == DEVICE_TUNER;
} else if (isMhlDevice()) {
return true;
} else {
return false;
}
} }
/** /**