Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01a96b47 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "CEC : Add method for check range" am: aaae72e0 am: 92acccbb am:...

Merge "CEC : Add method for check range" am: aaae72e0 am: 92acccbb am: 704c2bb2 am: aee8e7d3 am: 4ffc59aa

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1413607

Change-Id: Ia378c88ec812b629de6de5b830393a77146d956e
parents 9be49913 4ffc59aa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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) {