Merge "CEC : Add method for check range" am: aaae72e029 am: 92acccbbcd am: 704c2bb241 am: aee8e7d310 am: 4ffc59aaa5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1413607 Change-Id: Ia378c88ec812b629de6de5b830393a77146d956e
This commit is contained in:
@@ -293,6 +293,11 @@ public class HdmiCecMessageValidator {
|
||||
return success ? OK : ERROR_PARAMETER;
|
||||
}
|
||||
|
||||
private boolean isWithinRange(int value, int min, int max) {
|
||||
value = value & 0xFF;
|
||||
return (value >= min && value <= max);
|
||||
}
|
||||
|
||||
private class PhysicalAddressValidator implements ParameterValidator {
|
||||
@Override
|
||||
public int isValid(byte[] params) {
|
||||
|
||||
Reference in New Issue
Block a user