Home
last modified time | relevance | path

Searched refs:HdmiUtils (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
DHdmiUtilsTest.java37 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0, -1)) in testInvalidAddress()
38 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN); in testInvalidAddress()
39 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0xFFFF, 0xFFFF)) in testInvalidAddress()
40 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN); in testInvalidAddress()
41 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0xFFFFF, 0)) in testInvalidAddress()
42 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN); in testInvalidAddress()
47 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0x1000, 0x1000)) in testSameAddress()
48 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_SAME); in testSameAddress()
53 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0x1000, 0x1200)) in testDirectlyAbove()
54 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_DIRECTLY_ABOVE); in testDirectlyAbove()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiUtilsTest.java31 import com.android.server.hdmi.HdmiUtils.CodecSad;
32 import com.android.server.hdmi.HdmiUtils.DeviceConfig;
72 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isMe()
74 HdmiUtils.TARGET_SAME_PHYSICAL_ADDRESS); in pathToPort_isMe()
81 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isDirectlyBelow()
89 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isBelow()
97 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow()
99 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow()
103 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow()
105 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow()
[all …]
DHdmiControlServiceTvTest.java105 HdmiCecMessage message = HdmiUtils.buildMessage("40:9D:14"); in onCecMessage_shortPhysicalAddress_featureAbortInvalidOperand()
119 HdmiCecMessage message = HdmiUtils.buildMessage("4F:82:10"); in handleCecCommand_shortPhysicalAddress_returnsAbortInvalidOperand()
131 .verifyPhysicalAddresses(HdmiUtils.buildMessage("0F:80:10:00:40:00"))).isTrue(); in test_verifyPhysicalAddresses()
133 .verifyPhysicalAddresses(HdmiUtils.buildMessage("0F:80:10:00:40"))).isFalse(); in test_verifyPhysicalAddresses()
135 .verifyPhysicalAddresses(HdmiUtils.buildMessage("0F:80:10"))).isFalse(); in test_verifyPhysicalAddresses()
139 .verifyPhysicalAddresses(HdmiUtils.buildMessage("40:70:00:00"))).isTrue(); in test_verifyPhysicalAddresses()
141 .verifyPhysicalAddresses(HdmiUtils.buildMessage("40:70:00"))).isFalse(); in test_verifyPhysicalAddresses()
145 .verifyPhysicalAddresses(HdmiUtils.buildMessage("4F:82:10:00"))).isTrue(); in test_verifyPhysicalAddresses()
147 .verifyPhysicalAddresses(HdmiUtils.buildMessage("4F:82:10"))).isFalse(); in test_verifyPhysicalAddresses()
DReportFeaturesMessageTest.java25 import static com.android.server.hdmi.HdmiUtils.buildMessage;
48 assertThat(HdmiUtils.buildMessage("FF:A6:05:80:00:00") in build_invalidMessages()
50 assertThat(HdmiUtils.buildMessage("04:A6:05:80:00:00") in build_invalidMessages()
52 assertThat(HdmiUtils.buildMessage("0F:A6") in build_invalidMessages()
54 assertThat(HdmiUtils.buildMessage("4F:A6:06:00:80:80:00") in build_invalidMessages()
60 HdmiCecMessage longMessage = HdmiUtils.buildMessage("4F:A6:05:00:80:80:00:81:80:00"); in build_longMessage()
64 HdmiCecMessage shortMessage = HdmiUtils.buildMessage("4F:A6:05:00:00:01"); in build_longMessage()
DSetAudioVolumeLevelMessageTest.java22 import static com.android.server.hdmi.HdmiUtils.buildMessage;
64 assertThat(HdmiUtils.buildMessage("04:73") in build_invalid()
/frameworks/base/core/tests/coretests/src/android/hardware/hdmi/
DHdmiUtilsTest.java38 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isMe()
40 HdmiUtils.TARGET_SAME_PHYSICAL_ADDRESS); in pathToPort_isMe()
47 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isDirectlyBelow()
55 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isBelow()
63 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow()
65 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow()
69 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow()
71 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow()
75 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow()
77 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DRequestArcAction.java45 if (!HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV) || in RequestArcAction()
46 !HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM)) { in RequestArcAction()
DSystemAudioAction.java64 if (!HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM)) { in SystemAudioAction()
153 || !HdmiUtils.checkCommandSource(cmd, mAvrLogicalAddress, TAG)) { in processCommand()
156 boolean receivedStatus = HdmiUtils.parseCommandParamSystemAudioStatus(cmd); in processCommand()
DDetectTvSystemAudioModeSupportAction.java55 if (HdmiUtils.getAbortFeatureOpcode(cmd) == Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE) { in processCommand()
56 if (HdmiUtils.getAbortReason(cmd) == Constants.ABORT_NOT_IN_CORRECT_MODE) { in processCommand()
DRoutingControlAction.java84 int routingPath = HdmiUtils.twoBytesToInt(params); in processCommand()
85 if (!HdmiUtils.isInActiveRoutingPath(mCurrentRoutingPath, routingPath)) { in processCommand()
DAbsoluteVolumeAudioStatusAction.java87 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus()
88 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
DReportFeaturesMessage.java149 int rcProfileEnd = HdmiUtils.getEndOfSequence(params, 2); in build()
153 int deviceFeaturesEnd = HdmiUtils.getEndOfSequence( in build()
158 int deviceFeaturesStart = HdmiUtils.getEndOfSequence(params, 2) + 1; in build()
DSetArcTransmissionStateAction.java50 if (!HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV) || in SetArcTransmissionStateAction()
51 !HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM)) { in SetArcTransmissionStateAction()
DHdmiCecNetwork.java161 return HdmiUtils.sparseArrayToList(mLocalDevices); in getLocalDeviceList()
311 List<HdmiDeviceInfo> copiedDevices = HdmiUtils.sparseArrayToList(mDeviceInfos); in updateSafeDeviceInfoList()
328 return HdmiUtils.sparseArrayToList(mDeviceInfos); in getDeviceInfoList()
554 .setDisplayName(HdmiUtils.getDefaultDeviceName(sourceAddress)) in handleCecMessage()
649 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleReportPhysicalAddress()
736 int vendorId = HdmiUtils.threeBytesToInt(message.getParams()); in handleDeviceVendorId()
903 for (HdmiDeviceInfo info : HdmiUtils.sparseArrayToList(mDeviceInfos)) { in clearDeviceList()
1003 HdmiUtils.dumpIterable(pw, "mPortInfo:", mPortInfo); in dump()
1020 HdmiUtils.dumpIterable(pw, "mDeviceInfos:", mSafeAllDeviceInfos); in dump()
DHdmiCecLocalDeviceAudioSystem.java51 import com.android.server.hdmi.HdmiUtils.CodecSad;
52 import com.android.server.hdmi.HdmiUtils.DeviceConfig;
356 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource()
357 if (HdmiUtils.getLocalPortFromPhysicalAddress( in handleActiveSource()
359 == HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE) { in handleActiveSource()
507 config = HdmiUtils.ShortAudioDescriptorXmlParser.parse(in); in handleRequestShortAudioDescriptor()
840 int sourcePhysicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleSystemAudioModeRequest()
841 if (HdmiUtils.getLocalPortFromPhysicalAddress( in handleSystemAudioModeRequest()
843 != HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE) { in handleSystemAudioModeRequest()
861 HdmiUtils.parseCommandParamSystemAudioStatus(message))) { in handleSetSystemAudioMode()
[all …]
DVolumeControlAction.java141 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus()
142 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
DHdmiCecLocalDeviceSource.java217 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource()
243 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleSetStreamPath()
263 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams(), 2); in handleRoutingChange()
281 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleRoutingInformation()
DSystemAudioActionFromTv.java40 if (!HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV)) { in SystemAudioActionFromTv()
DHdmiCecLocalDevicePlayback.java554 boolean setSystemAudioModeOn = HdmiUtils.parseCommandParamSystemAudioStatus(message); in handleSetSystemAudioMode()
568 boolean setSystemAudioModeOn = HdmiUtils.parseCommandParamSystemAudioStatus(message); in handleSystemAudioModeStatus()
581 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams(), 2); in handleRoutingChange()
591 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleRoutingInformation()
619 if (HdmiUtils.isInActiveRoutingPath(mService.getPhysicalAddress(), physicalAddress) in handleRoutingChangeAndInformation()
DNewDeviceAction.java159 mVendorId = HdmiUtils.threeBytesToInt(params); in processCommand()
238 if (HdmiUtils.isEligibleAddressForDevice(HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM, in addDeviceInfo()
DSystemAudioActionFromAvr.java41 if (!HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV)) { in SystemAudioActionFromAvr()
DHdmiCecLocalDeviceTv.java466 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource()
584 int path = HdmiUtils.twoBytesToInt(message.getParams()); in handleReportPhysicalAddress()
673 int currentPath = HdmiUtils.twoBytesToInt(params); in handleRoutingChange()
674 if (HdmiUtils.isAffectingActiveRoutingPath(getActivePath(), currentPath)) { in handleRoutingChange()
677 int newPath = HdmiUtils.twoBytesToInt(params, 2); in handleRoutingChange()
693 boolean mute = HdmiUtils.isAudioStatusMute(message); in handleReportAudioStatus()
694 int volume = HdmiUtils.getAudioStatusVolume(message); in handleReportAudioStatus()
1145 boolean systemAudioStatus = HdmiUtils.parseCommandParamSystemAudioStatus(message); in handleSetSystemAudioMode()
1177 boolean avrSystemAudioMode = HdmiUtils.parseCommandParamSystemAudioStatus(message); in handleSystemAudioModeStatus()
1556 return (device != null) && (HdmiUtils.isEligibleAddressForDevice( in checkRecorder()
DRequestArcInitiationAction.java74 || !HdmiUtils.checkCommandSource(cmd, mAvrAddress, TAG)) { in processCommand()
DRequestArcTerminationAction.java74 || !HdmiUtils.checkCommandSource(cmd, mAvrAddress, TAG)) { in processCommand()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiUtils.java29 public final class HdmiUtils { class
36 private HdmiUtils() { /* cannot be instantiated */ } in HdmiUtils() method in HdmiUtils

12