Merge "CEC: Let the caller check CEC device type" into lmp-mr1-dev
This commit is contained in:
@@ -1248,7 +1248,7 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void invokeDeviceEventListener(HdmiDeviceInfo info, int status) {
|
private void invokeDeviceEventListener(HdmiDeviceInfo info, int status) {
|
||||||
if (info.isSourceType() && !hideDevicesBehindLegacySwitch(info)) {
|
if (!hideDevicesBehindLegacySwitch(info)) {
|
||||||
mService.invokeDeviceEventListeners(info, status);
|
mService.invokeDeviceEventListeners(info, status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1108,6 +1108,7 @@ class TvInputHardwareManager implements TvInputHal.Callback {
|
|||||||
private final class HdmiDeviceEventListener extends IHdmiDeviceEventListener.Stub {
|
private final class HdmiDeviceEventListener extends IHdmiDeviceEventListener.Stub {
|
||||||
@Override
|
@Override
|
||||||
public void onStatusChanged(HdmiDeviceInfo deviceInfo, int status) {
|
public void onStatusChanged(HdmiDeviceInfo deviceInfo, int status) {
|
||||||
|
if (!deviceInfo.isSourceType()) return;
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
int messageType = 0;
|
int messageType = 0;
|
||||||
Object obj = null;
|
Object obj = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user