Loading services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java +7 −1 Original line number Diff line number Diff line Loading @@ -581,6 +581,12 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { if (!isInDeviceList(address, path)) { handleNewDeviceAtTheTailOfActivePath(path); } // Add the device ahead with default information to handle <Active Source> // promptly, rather than waiting till the new device action is finished. HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo(address, path, getPortId(path), type, Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(address)); addCecDevice(deviceInfo); startNewDeviceAction(ActiveSource.of(address, path), type); return true; } Loading Loading @@ -1496,7 +1502,7 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { * @return true if exist; otherwise false */ @ServiceThreadOnly private boolean isInDeviceList(int logicalAddress, int physicalAddress) { boolean isInDeviceList(int logicalAddress, int physicalAddress) { assertRunOnServiceThread(); HdmiDeviceInfo device = getCecDeviceInfo(logicalAddress); if (device == null) { Loading services/core/java/com/android/server/hdmi/NewDeviceAction.java +6 −0 Original line number Diff line number Diff line Loading @@ -163,6 +163,12 @@ final class NewDeviceAction extends HdmiCecFeatureAction { } private void addDeviceInfo() { // The device should be in the device list with default information. if (!tv().isInDeviceList(mDeviceLogicalAddress, mDevicePhysicalAddress)) { Slog.w(TAG, String.format("Device not found (%02x, %04x)", mDeviceLogicalAddress, mDevicePhysicalAddress)); return; } if (mDisplayName == null) { mDisplayName = HdmiUtils.getDefaultDeviceName(mDeviceLogicalAddress); } Loading Loading
services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java +7 −1 Original line number Diff line number Diff line Loading @@ -581,6 +581,12 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { if (!isInDeviceList(address, path)) { handleNewDeviceAtTheTailOfActivePath(path); } // Add the device ahead with default information to handle <Active Source> // promptly, rather than waiting till the new device action is finished. HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo(address, path, getPortId(path), type, Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(address)); addCecDevice(deviceInfo); startNewDeviceAction(ActiveSource.of(address, path), type); return true; } Loading Loading @@ -1496,7 +1502,7 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { * @return true if exist; otherwise false */ @ServiceThreadOnly private boolean isInDeviceList(int logicalAddress, int physicalAddress) { boolean isInDeviceList(int logicalAddress, int physicalAddress) { assertRunOnServiceThread(); HdmiDeviceInfo device = getCecDeviceInfo(logicalAddress); if (device == null) { Loading
services/core/java/com/android/server/hdmi/NewDeviceAction.java +6 −0 Original line number Diff line number Diff line Loading @@ -163,6 +163,12 @@ final class NewDeviceAction extends HdmiCecFeatureAction { } private void addDeviceInfo() { // The device should be in the device list with default information. if (!tv().isInDeviceList(mDeviceLogicalAddress, mDevicePhysicalAddress)) { Slog.w(TAG, String.format("Device not found (%02x, %04x)", mDeviceLogicalAddress, mDevicePhysicalAddress)); return; } if (mDisplayName == null) { mDisplayName = HdmiUtils.getDefaultDeviceName(mDeviceLogicalAddress); } Loading