/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/audio/ |
D | HdmiCecSystemAudioModeTest.java | 24 import android.hdmicec.cts.CecMessage; 73 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in sendSystemAudioModeInitiation() 83 return CecMessage.getParams(message); in getDutAudioStatus() 90 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in initateSystemAudioModeFromTuner() 98 CecMessage.formatParams("2000")); in handleSetSystemAudioModeOnToTv() 101 assertThat(CecMessage.getParams(message)).isEqualTo(ON); in handleSetSystemAudioModeOnToTv() 129 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in cect_11_2_15_1_SystemAudioModeRequestAsFollower() 132 assertThat(CecMessage.getParams(message)).isEqualTo(ON); in cect_11_2_15_1_SystemAudioModeRequestAsFollower() 137 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in cect_11_2_15_1_SystemAudioModeRequestAsFollower() 140 assertThat(CecMessage.getParams(message)).isEqualTo(ON); in cect_11_2_15_1_SystemAudioModeRequestAsFollower() [all …]
|
D | HdmiCecAudioReturnChannelControlTest.java | 21 import android.hdmicec.cts.CecMessage; 78 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in cect_11_2_17_1_InitiateArc() 95 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in cect_11_2_17_2_TerminateArc() 114 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in cect_11_2_17_3_RequestToInitiateArc() 131 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in cect_11_2_17_4_RequestToTerminateArc()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/ |
D | HdmiCecGeneralProtocolTest.java | 20 import android.hdmicec.cts.CecMessage; 58 String dutPhysicalAddress = CecMessage.formatParams(getDumpsysPhysicalAddress(), in cect_hf_ignoreAdditionalParams() 60 String routingChange = CecMessage.formatParams(String.valueOf(CecOperand.ROUTING_CHANGE)); in cect_hf_ignoreAdditionalParams() 67 CecMessage.assertPhysicalAddressValid(message, getDumpsysPhysicalAddress()); in cect_hf_ignoreAdditionalParams() 84 String tvPhysicalAddress = CecMessage.formatParams(0x0000, in cectIgnoreAdditionalParamsAsMessage() 86 String dutPhysicalAddress = CecMessage.formatParams(getDumpsysPhysicalAddress(), in cectIgnoreAdditionalParamsAsMessage() 88 String routingChange = CecMessage.formatParams(String.valueOf(CecOperand.ROUTING_CHANGE)); in cectIgnoreAdditionalParamsAsMessage() 96 CecMessage.assertPhysicalAddressValid(message, getDumpsysPhysicalAddress()); in cectIgnoreAdditionalParamsAsMessage()
|
D | HdmiCecAvbToTvTest.java | 26 import android.hdmicec.cts.CecMessage; 97 CecMessage.formatParams(50)); in testEnableDisableAvb_cec20_triggeredByReportFeatures() 131 CecMessage.formatParams(50)); in testEnableDisableAvb_triggeredByAvbSupportChanged() 137 CecMessage.formatParams(CecOperand.SET_AUDIO_VOLUME_LEVEL + "00")); in testEnableDisableAvb_triggeredByAvbSupportChanged() 166 CecMessage.formatParams(50)); in testEnableAndDisableAvb_triggeredByVolumeControlSettingChange() 192 CecMessage.formatParams(50)); in testOutgoingVolumeUpdates() 200 assertThat(CecMessage.getParams(setAudioVolumeLevelMessage)).isEqualTo(80); in testOutgoingVolumeUpdates() 207 assertThat(CecMessage.getParams(userControlPressedMessage)) in testOutgoingVolumeUpdates() 232 CecMessage.formatParams(50)); // Volume 50, mute off in testIncomingVolumeUpdates() 240 CecMessage.formatParams(90)); // Volume 90, mute off in testIncomingVolumeUpdates() [all …]
|
D | HdmiCecRoutingControlTest.java | 24 import android.hdmicec.cts.CecMessage; 74 CecMessage.formatParams(HdmiCecConstants.TV_PHYSICAL_ADDRESS, in cect_11_1_2_2_RequestActiveSource() 109 CecOperand.ACTIVE_SOURCE, CecMessage.formatParams(alternateAddress)); in cect_11_2_2_1_SetStreamPathToDut() 113 CecMessage.formatParams(dumpsysPhysicalAddress)); in cect_11_2_2_1_SetStreamPathToDut() 115 CecMessage.assertPhysicalAddressValid(message, dumpsysPhysicalAddress); in cect_11_2_2_1_SetStreamPathToDut() 130 CecMessage.assertPhysicalAddressValid(message, getDumpsysPhysicalAddress()); in cect_11_2_2_2_RequestActiveSource() 147 CecMessage.formatParams(dumpsysPhysicalAddress)); in cect_11_2_2_4_InactiveSourceOnStandby() 152 CecMessage.assertPhysicalAddressValid(message, dumpsysPhysicalAddress); in cect_11_2_2_4_InactiveSourceOnStandby() 179 CecOperand.ACTIVE_SOURCE, CecMessage.formatParams("0000")); in testPowerStateChangeOnActiveSourceLost_standby() 206 CecOperand.ACTIVE_SOURCE, CecMessage.formatParams("0000")); in testPowerStateChangeOnActiveSourceLost_none()
|
D | HdmiCecPowerStatusTest.java | 20 import android.hdmicec.cts.CecMessage; 51 CecMessage.buildCecMessage(LogicalAddress.PLAYBACK_1, LogicalAddress.TV, 53 CecMessage.buildCecMessage(LogicalAddress.PLAYBACK_1, LogicalAddress.TV, 56 CecMessage.buildCecMessage(LogicalAddress.PLAYBACK_1, LogicalAddress.TV, 59 CecMessage.buildCecMessage(LogicalAddress.PLAYBACK_1, LogicalAddress.TV, 93 CecOperand.REPORT_POWER_STATUS, CecMessage.formatParams(OFF)); in cect_hf4_6_1_otp_viewOnBeforeUcp_20() 100 CecMessage.assertPhysicalAddressValid(message, getDumpsysPhysicalAddress()); in cect_hf4_6_1_otp_viewOnBeforeUcp_20() 120 CecMessage.formatParams(getDumpsysPhysicalAddress(), in cect_hf4_6_7_setStreamPath_powerOn()
|
D | HdmiCecDeviceSelectForPlaybackTest.java | 20 import android.hdmicec.cts.CecMessage; 88 String formattedPhysicalAddress = CecMessage.formatParams(physicalAddress, in reportPhysicalAddress() 90 String formattedDeviceType = CecMessage.formatParams(deviceType); in reportPhysicalAddress() 132 CecMessage.assertPhysicalAddressValid(message, playback3PhysicalAddress); in cectDeviceSelectDifferentSource() 133 CecMessage.assertTargetPhysicalAddressValid(message, in cectDeviceSelectDifferentSource() 153 CecMessage.formatParams(HdmiCecConstants.CEC_POWER_STATUS_ON)); in cectDeviceSelectSameSource() 173 CecMessage.assertPhysicalAddressValid(message, dumpsysPhysicalAddress); in cectDeviceSelectSameSource()
|
D | HdmiCecSystemInformationTest.java | 24 import android.hdmicec.cts.CecMessage; 62 int abortedOpcode = CecMessage.getParams(message, in cect_11_2_6_7_GetMenuLanguage() 79 CecOperand.SET_MENU_LANGUAGE, CecMessage.convertStringToHexParams(language)); in cect_11_2_6_4_SetInvalidMenuLanguage() 99 CecOperand.SET_MENU_LANGUAGE, CecMessage.convertStringToHexParams(language)); in cect_11_2_6_5_SetValidMenuLanguageFromInvalidSource() 117 int params = CecMessage.getParams(message, 6, 8); in cect_hf_4_11_4_SinkArcTxBitReset() 132 int params = CecMessage.getParams(message, 6, 8); in cect_hf_4_11_5_CheckArcTxRxBits()
|
D | HdmiCecRemoteControlPassThroughTest.java | 26 import android.hdmicec.cts.CecMessage; 123 int remoteControlProfileSource = CecMessage.getParams(message, 4, 6); in cect_hf4_8_12_UCPForRcProfileSearchOperand() 173 assertThat(CecMessage.getParams(message)).isEqualTo(HdmiCecConstants.CEC_KEYCODE_UP); in cect_hf4_8_9_SendLongPress() 181 assertThat(CecMessage.getParams(message)).isEqualTo(HdmiCecConstants.CEC_KEYCODE_DOWN); in cect_hf4_8_9_SendLongPress() 199 int reason = CecMessage.getParams(message) & 0xFF; in cect_hf4_8_13_AbortIncorrectMode() 242 assertThat(CecMessage.getParams(ucpMessage)) in cect_sendVolumeKeyPressToTv() 248 assertThat(CecMessage.getParams(ucpMessage)) in cect_sendVolumeKeyPressToTv() 254 assertThat(CecMessage.getParams(ucpMessage)) in cect_sendVolumeKeyPressToTv()
|
D | HdmiCecDeviceOsdNameTest.java | 22 import android.hdmicec.cts.CecMessage; 76 assertThat(CecMessage.getAsciiString(message)).isEqualTo(deviceName); in cect_11_2_11_1a_GiveOsdNameTest() 96 if (CecMessage.getOperand(message) != CecOperand.FEATURE_ABORT) { in cectGiveOsdNameTestInStandby() 97 assertThat(CecMessage.getAsciiString(message)).isEqualTo(deviceName); in cectGiveOsdNameTestInStandby() 119 assertThat(CecMessage.getAsciiString(message)).isEqualTo(testName); in cect_11_2_11_1b_UpdateAndGiveOsdNameTest()
|
D | HdmiCecActiveTrackingTest.java | 22 import android.hdmicec.cts.CecMessage; 77 String formattedPhysicalAddress = CecMessage.formatParams(playback2PhysicalAddress, in cect_RemoveDeviceFromNetwork() 79 String formattedDeviceType = CecMessage.formatParams( in cect_RemoveDeviceFromNetwork() 92 CecMessage.convertStringToHexParams(deviceName) in cect_RemoveDeviceFromNetwork()
|
D | HdmiCecTvPowerToggleTest.java | 20 import android.hdmicec.cts.CecMessage; 78 CecOperand.ACTIVE_SOURCE, CecMessage.formatParams("0000")); in cectTvPowerToggleTest_awake_noActiveSource_tvOn() 85 CecOperand.REPORT_POWER_STATUS, CecMessage.formatParams(ON)); in cectTvPowerToggleTest_awake_noActiveSource_tvOn() 117 CecOperand.REPORT_POWER_STATUS, CecMessage.formatParams(ON)); in cectTvPowerToggleTest_awake_activeSource_tvOn() 147 CecOperand.REPORT_POWER_STATUS, CecMessage.formatParams(ON)); in cectTvPowerToggleTest_asleep_tvOn() 177 CecOperand.REPORT_POWER_STATUS, CecMessage.formatParams(OFF)); in cectTvPowerToggleTest_asleep_tvOff()
|
D | HdmiCecOneTouchPlayTest.java | 20 import android.hdmicec.cts.CecMessage; 77 CecMessage.assertPhysicalAddressValid(message, getDumpsysPhysicalAddress()); in cect_11_2_1_1_OneTouchPlay() 91 CecMessage.assertPhysicalAddressValid(message, getDumpsysPhysicalAddress()); in cect_PairingActivity_OneTouchPlay()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/common/ |
D | HdmiCecSystemInformationTest.java | 24 import android.hdmicec.cts.CecMessage; 77 CecMessage.assertPhysicalAddressValid(message, getDumpsysPhysicalAddress()); in cect_11_2_6_2_GivePhysicalAddress() 78 int receivedParams = CecMessage.getParams(message); in cect_11_2_6_2_GivePhysicalAddress() 107 int receivedParams = CecMessage.getParams(message, 2, 4); in cect_reportFeatures_deviceTypeContainedInAllDeviceTypes() 149 assertThat(CecMessage.getParams(message)).isEqualTo(cecVersion); in cect_11_2_6_6_GiveCecVersion() 168 assertThat(CecMessage.getParams(reportCecVersion)).isEqualTo(cecVersion); in cect_hf4_2_12_GiveCecVersion() 175 assertThat(CecMessage.getParams(reportFeatures, 2)).isEqualTo(cecVersion); in cect_hf4_2_12_GiveCecVersion() 194 assertThat(CecMessage.getParams(message)) in cectGiveCecVersionInStandby() 222 if (CecMessage.getOperand(message) == CecOperand.GIVE_DEVICE_VENDOR_ID) { in cect_hf_4_2_16_GiveDeviceVendorId() 223 assertThat(CecMessage.getParams(message)) in cect_hf_4_2_16_GiveDeviceVendorId() [all …]
|
D | HdmiCecGeneralProtocolTest.java | 22 import android.hdmicec.cts.CecMessage; 141 assertThat(CecMessage.getParams(message)).isEqualTo(cecVersion); in cect_hf_4_2_15() 147 physicalAddressParams = CecMessage.getParams(message); in cect_hf_4_2_15() 152 features = CecMessage.getParams(message); in cect_hf_4_2_15() 160 assertThat(CecMessage.getParams(message)) in cect_hf_4_2_15() 168 osdName = CecMessage.getParamsAsString(message); in cect_hf_4_2_15() 186 assertThat(CecMessage.getParams(message)).isEqualTo(cecVersion); in cect_hf_4_2_15() 192 assertThat(CecMessage.getParams(message)).isEqualTo(physicalAddressParams); in cect_hf_4_2_15() 197 assertThat(CecMessage.getParams(message)).isEqualTo(features); in cect_hf_4_2_15() 204 assertThat(CecMessage.getParams(message)).isEqualTo(HdmiCecConstants.CEC_POWER_STATUS_ON); in cect_hf_4_2_15() [all …]
|
D | HdmiCecVendorCommandsTest.java | 22 import android.hdmicec.cts.CecMessage; 83 assertThat(CecMessage.getParams(message)).isNotEqualTo(INCORRECT_VENDOR_ID); in cect_11_2_9_1_GiveDeviceVendorId() 111 assertThat(CecMessage.getParams(message)).isNotEqualTo(INCORRECT_VENDOR_ID); in cect_11_2_9_2_DeviceVendorIdOnInit() 158 String params = CecMessage.formatParams(VENDOR_ID); 159 params += CecMessage.formatParams("010203"); 179 String params = CecMessage.formatParams("010203"); 198 String params = CecMessage.formatParams("010203"); 217 String params = CecMessage.formatParams(VENDOR_ID); 218 params += CecMessage.formatParams("010203");
|
D | HdmiCecPowerStatusTest.java | 22 import android.hdmicec.cts.CecMessage; 81 if (CecMessage.getParams(reportPowerStatus) == HdmiCecConstants.CEC_POWER_STATUS_STANDBY) { in cect_hf4_6_20_broadcastsWhenTurningOn() 87 assertThat(CecMessage.getParams(reportPowerStatus)).isEqualTo( in cect_hf4_6_20_broadcastsWhenTurningOn() 113 if (CecMessage.getParams(reportPowerStatus) == HdmiCecConstants.CEC_POWER_STATUS_ON) { in cect_hf4_6_21_broadcastsWhenGoingToStandby() 120 assertThat(CecMessage.getParams(reportPowerStatus)) in cect_hf4_6_21_broadcastsWhenGoingToStandby() 149 switch (CecMessage.getParams(reportPowerStatus)) { in cect_hf4_6_22_interruptedPowerOn() 156 assertThat(CecMessage.getParams(reportPowerStatus)) in cect_hf4_6_22_interruptedPowerOn() 163 int powerState = CecMessage.getParams(reportPowerStatus); in cect_hf4_6_22_interruptedPowerOn() 168 powerState = CecMessage.getParams(reportPowerStatus); in cect_hf4_6_22_interruptedPowerOn() 205 switch (CecMessage.getParams(reportPowerStatus)) { in cect_hf4_6_23_interruptedStandby() [all …]
|
D | HdmiCecSystemAudioControlTest.java | 25 import android.hdmicec.cts.CecMessage; 96 CecMessage.formatParams(1)); in cect_VolumeUpDownUserControlPressedWhenSystemAudioControlOn() 101 assertThat(CecMessage.getParams(message)).isEqualTo(HdmiCecConstants.CEC_KEYCODE_VOLUME_UP); in cect_VolumeUpDownUserControlPressedWhenSystemAudioControlOn() 110 assertThat(CecMessage.getParams(message)) in cect_VolumeUpDownUserControlPressedWhenSystemAudioControlOn() 137 CecMessage.formatParams(1)); in cect_MuteUserControlPressedWhenSystemAudioControlOn() 142 assertThat(CecMessage.getParams(message)).isEqualTo(HdmiCecConstants.CEC_KEYCODE_MUTE); in cect_MuteUserControlPressedWhenSystemAudioControlOn()
|
D | HdmiCecLogicalAddressTest.java | 22 import android.hdmicec.cts.CecMessage; 58 int deviceType = CecMessage.getParams(message, 4, 6); in cect_RebootLogicalAddress() 59 assertThat(CecMessage.getSource(message).getDeviceType()).isEqualTo(deviceType); in cect_RebootLogicalAddress()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/tv/ |
D | HdmiCecGeneralProtocolTest.java | 20 import android.hdmicec.cts.CecMessage; 64 String parameterPlaybackPhysicalAddress = CecMessage.formatParams(playbackPhysicalAddress, in cect_hf_ignoreAdditionalParams() 66 String routingChange = CecMessage.formatParams(String.valueOf(CecOperand.ROUTING_CHANGE)); in cect_hf_ignoreAdditionalParams() 102 String parameterClientPhysicalAddress = CecMessage.formatParams(clientPhysicalAddress, in cectIgnoreAdditionalParamsAsMessage() 104 String parameterPlaybackPhysicalAddress = CecMessage.formatParams(playbackPhysicalAddress, in cectIgnoreAdditionalParamsAsMessage() 106 String routingChange = CecMessage.formatParams(String.valueOf(CecOperand.ROUTING_CHANGE)); in cectIgnoreAdditionalParamsAsMessage()
|
D | HdmiCecSystemAudioControlTest.java | 23 import android.hdmicec.cts.CecMessage; 118 CecMessage.formatParams(OFF)); in cect_11_1_15_7_DutMutesForSetSystemAudioModeOn() 123 CecMessage.formatParams(ON)); in cect_11_1_15_7_DutMutesForSetSystemAudioModeOn() 146 CecMessage.formatParams(ON)); in cect_11_1_15_8_DutUnmutesForSetSystemAudioModeOff() 151 CecMessage.formatParams(OFF)); in cect_11_1_15_8_DutUnmutesForSetSystemAudioModeOff() 168 return enabled ^ CecMessage.getParamsAsString(message).equals(""); in setSystemAudioMode()
|
D | HdmiCecAvbToAudioSystemTest.java | 24 import android.hdmicec.cts.CecMessage; 91 CecMessage.formatParams(50)); in testEnableDisableAdjustOnlyAvb_triggeredBySystemAudioModeChange() 128 CecMessage.formatParams(50)); in testEnableDisableAdjustOnlyAvb_triggeredByVolumeControlSettingChange() 159 CecMessage.formatParams(50)); in adjustOnlyAvb_testOutgoingVolumeUpdates() 175 assertThat(CecMessage.getParams(userControlPressedMessage)) in adjustOnlyAvb_testOutgoingVolumeUpdates() 201 CecMessage.formatParams(50)); // Volume 50, mute off in adjustOnlyAvb_testIncomingVolumeUpdates() 209 CecMessage.formatParams(90)); // Volume 90, mute off in adjustOnlyAvb_testIncomingVolumeUpdates() 214 CecMessage.formatParams(70 + 0b1000_0000)); // Volume 70, mute on in adjustOnlyAvb_testIncomingVolumeUpdates()
|
D | HdmiCecAbsoluteVolumeControlFollowerTest.java | 24 import android.hdmicec.cts.CecMessage; 67 CecMessage.formatParams((initialDeviceVolume + 50) % 101)); in testSystemAudioModeOn_respondsFeatureAbort() 73 assertThat(CecOperand.getOperand(CecMessage.getParams(featureAbort, 0, 2))) in testSystemAudioModeOn_respondsFeatureAbort() 75 assertThat(CecMessage.getParams(featureAbort, 2, 4)).isEqualTo(1); in testSystemAudioModeOn_respondsFeatureAbort() 101 CecMessage.formatParams(volumeToSet)); in testSystemAudioModeOff_updatesVolume()
|
D | HdmiCecAudioReturnChannelControlTest.java | 22 import android.hdmicec.cts.CecMessage; 88 CecMessage.formatParams(params)); in cect_11_1_17_2_ReportArcInitiated() 138 CecMessage.formatParams(nonAdjacentPhyAdd) in cect_11_1_17_5_NonAdjacentDeviceArcInitiation() 139 + CecMessage.formatParams( in cect_11_1_17_5_NonAdjacentDeviceArcInitiation() 214 CecMessage.formatParams(params)); in shortAudioDescriptorsRequested() 221 codecs.add(CecMessage.getParams(requestSad1, 2 * i, 2 * i + 2)); in shortAudioDescriptorsRequested() 226 CecMessage.formatParams("A403")); in shortAudioDescriptorsRequested() 230 codecs.add(CecMessage.getParams(requestSad2, 2 * i, 2 * i + 2)); in shortAudioDescriptorsRequested()
|
D | HdmiCecRoutingControlTest.java | 22 import android.hdmicec.cts.CecMessage; 106 .that(CecMessage.getParams(message)) in cect_11_1_2_1_DutSendsSetStreamPathMessage() 159 CecMessage.formatParams(hdmiCecClient.getPhysicalAddress())); in cect_11_1_2_4_DutAcceptsInactiveSourceMessage() 163 CecMessage.formatParams(CecOperand.INACTIVE_SOURCE.toString())); in cect_11_1_2_4_DutAcceptsInactiveSourceMessage()
|