Loading services/core/java/com/android/server/hdmi/HdmiCecMessageValidator.java +8 −4 Original line number Diff line number Diff line Loading @@ -717,7 +717,10 @@ public class HdmiCecMessageValidator { // Programmed int programedInfo = params[offset] & 0x0F; if (isValidProgrammedInfo(programedInfo)) { if (programedInfo == 0x09 || programedInfo == 0x0B) { offset = offset + 1; // Duration Available (2 bytes) if ((programedInfo == 0x09 || programedInfo == 0x0B) && params.length - offset >= 2) { durationAvailable = true; } else { return true; Loading @@ -727,16 +730,17 @@ public class HdmiCecMessageValidator { // Non programmed int nonProgramedErrorInfo = params[offset] & 0x0F; if (isValidNotProgrammedErrorInfo(nonProgramedErrorInfo)) { if (nonProgramedErrorInfo == 0x0E) { offset = offset + 1; // Duration Available (2 bytes) if (nonProgramedErrorInfo == 0x0E && params.length - offset >= 2) { durationAvailable = true; } else { return true; } } } offset = offset + 1; // Duration Available (2 bytes) if (durationAvailable && params.length - offset >= 2) { if (durationAvailable) { return (isValidDurationHours(params[offset]) && isValidMinute(params[offset + 1])); } return false; Loading Loading
services/core/java/com/android/server/hdmi/HdmiCecMessageValidator.java +8 −4 Original line number Diff line number Diff line Loading @@ -717,7 +717,10 @@ public class HdmiCecMessageValidator { // Programmed int programedInfo = params[offset] & 0x0F; if (isValidProgrammedInfo(programedInfo)) { if (programedInfo == 0x09 || programedInfo == 0x0B) { offset = offset + 1; // Duration Available (2 bytes) if ((programedInfo == 0x09 || programedInfo == 0x0B) && params.length - offset >= 2) { durationAvailable = true; } else { return true; Loading @@ -727,16 +730,17 @@ public class HdmiCecMessageValidator { // Non programmed int nonProgramedErrorInfo = params[offset] & 0x0F; if (isValidNotProgrammedErrorInfo(nonProgramedErrorInfo)) { if (nonProgramedErrorInfo == 0x0E) { offset = offset + 1; // Duration Available (2 bytes) if (nonProgramedErrorInfo == 0x0E && params.length - offset >= 2) { durationAvailable = true; } else { return true; } } } offset = offset + 1; // Duration Available (2 bytes) if (durationAvailable && params.length - offset >= 2) { if (durationAvailable) { return (isValidDurationHours(params[offset]) && isValidMinute(params[offset + 1])); } return false; Loading