Home
last modified time | relevance | path

Searched refs:isValidPhysicalAddress (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
DHdmiUtilsTest.java131 assertThat(HdmiUtils.isValidPhysicalAddress(0)).isTrue(); in isValidPysicalAddress_true()
132 assertThat(HdmiUtils.isValidPhysicalAddress(0xFFFE)).isTrue(); in isValidPysicalAddress_true()
133 assertThat(HdmiUtils.isValidPhysicalAddress(0x1200)).isTrue(); in isValidPysicalAddress_true()
138 assertThat(HdmiUtils.isValidPhysicalAddress(-1)).isFalse(); in isValidPysicalAddress_outOfRange()
139 assertThat(HdmiUtils.isValidPhysicalAddress(0xFFFF)).isFalse(); in isValidPysicalAddress_outOfRange()
140 assertThat(HdmiUtils.isValidPhysicalAddress(0x10000)).isFalse(); in isValidPysicalAddress_outOfRange()
145 assertThat(HdmiUtils.isValidPhysicalAddress(0x0001)).isFalse(); in isValidPysicalAddress_nonTrailingZeros()
146 assertThat(HdmiUtils.isValidPhysicalAddress(0x0213)).isFalse(); in isValidPysicalAddress_nonTrailingZeros()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiUtils.java151 public static boolean isValidPhysicalAddress(int address) { in isValidPhysicalAddress() method in HdmiUtils
228 if (!isValidPhysicalAddress(address1)) { in physicalAddressFirstDifferentDigitPos()
231 if (!isValidPhysicalAddress(address2)) { in physicalAddressFirstDifferentDigitPos()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageValidator.java391 private static boolean isValidPhysicalAddress(byte[] params, int offset) { in isValidPhysicalAddress() method in HdmiCecMessageValidator
697 return isValidPhysicalAddress(params, offset); in isValidExternalSource()
841 return toErrorCode(isValidPhysicalAddress(params, 0)); in isValid()
862 return toErrorCode(isValidPhysicalAddress(params, 0) && isValidType(params[2])); in isValid()
873 isValidPhysicalAddress(params, 0) && isValidPhysicalAddress(params, 2)); in isValid()