Home
last modified time | relevance | path

Searched refs:ADDR_PLAYBACK_1 (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DPowerStatusMonitorActionTest.java21 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
127 sendMessageFromPlaybackDevice(ADDR_PLAYBACK_1, 0x1000); in sourceDevice_1_4_updatesPowerState()
131 assertPowerStatus(ADDR_PLAYBACK_1, HdmiControlManager.POWER_STATUS_UNKNOWN); in sourceDevice_1_4_updatesPowerState()
136 mTvDevice.getDeviceInfo().getLogicalAddress(), ADDR_PLAYBACK_1); in sourceDevice_1_4_updatesPowerState()
139 reportPowerStatus(ADDR_PLAYBACK_1, false, HdmiControlManager.POWER_STATUS_ON); in sourceDevice_1_4_updatesPowerState()
140 assertPowerStatus(ADDR_PLAYBACK_1, HdmiControlManager.POWER_STATUS_ON); in sourceDevice_1_4_updatesPowerState()
146 reportPowerStatus(ADDR_PLAYBACK_1, false, HdmiControlManager.POWER_STATUS_STANDBY); in sourceDevice_1_4_updatesPowerState()
147 assertPowerStatus(ADDR_PLAYBACK_1, HdmiControlManager.POWER_STATUS_STANDBY); in sourceDevice_1_4_updatesPowerState()
163 sendMessageFromPlaybackDevice(ADDR_PLAYBACK_1, 0x1000); in sourceDevice_2_0_doesNotUpdatePowerState()
164 reportPowerStatus(ADDR_PLAYBACK_1, true, HdmiControlManager.POWER_STATUS_ON); in sourceDevice_2_0_doesNotUpdatePowerState()
[all …]
DHdmiCecLocalDeviceTest.java22 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
230 ADDR_PLAYBACK_1, in dispatchMessage_logicalAddressDoesNotMatch()
247 ADDR_PLAYBACK_1, ADDR_TV)); in handleGivePhysicalAddress_success()
260 ADDR_PLAYBACK_1, in handleGivePhysicalAddress_failure()
267 ADDR_PLAYBACK_1, ADDR_TV)); in handleGivePhysicalAddress_failure()
283 ADDR_PLAYBACK_1, ADDR_TV)); in handleGiveDeviceVendorId_success()
295 ADDR_PLAYBACK_1, in handleGiveDeviceVendorId_failure()
302 ADDR_PLAYBACK_1, ADDR_TV)); in handleGiveDeviceVendorId_failure()
323 HdmiCecMessageBuilder.buildUserControlPressed(ADDR_PLAYBACK_1, ADDR_TV, in handleUserControlPressed_volumeUp()
334 HdmiCecMessageBuilder.buildUserControlPressed(ADDR_PLAYBACK_1, ADDR_TV, in handleUserControlPressed_volumeDown()
[all …]
DHdmiCecMessageBuilderTest.java19 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
44 ADDR_PLAYBACK_1, 0x1234, HdmiDeviceInfo.DEVICE_PLAYBACK); in buildReportPhysicalAddressCommand()
69 HdmiCecMessage message = HdmiCecMessageBuilder.buildSetOsdNameCommand(ADDR_PLAYBACK_1, in buildSetOsdName_short()
77 HdmiCecMessage message = HdmiCecMessageBuilder.buildSetOsdNameCommand(ADDR_PLAYBACK_1, in buildSetOsdName_maximumLength()
86 HdmiCecMessage message = HdmiCecMessageBuilder.buildSetOsdNameCommand(ADDR_PLAYBACK_1, in buildSetOsdName_tooLong()
94 HdmiCecMessage message = HdmiCecMessageBuilder.buildGiveFeatures(ADDR_PLAYBACK_1, ADDR_TV); in buildGiveFeatures()
DHdmiCecControllerTest.java28 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
196 mHdmiCecController.allocateLogicalAddress(DEVICE_PLAYBACK, ADDR_PLAYBACK_1, mCallback); in testAllocateLogicalAddress_PlaybackPreferredNotOccupied()
198 assertEquals(ADDR_PLAYBACK_1, mLogicalAddress); in testAllocateLogicalAddress_PlaybackPreferredNotOccupied()
203 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackPreferredOccupied()
204 mHdmiCecController.allocateLogicalAddress(DEVICE_PLAYBACK, ADDR_PLAYBACK_1, mCallback); in testAllocateLogicalAddress_PlaybackPreferredOccupied()
213 assertEquals(ADDR_PLAYBACK_1, mLogicalAddress); in testAllocateLogicalAddress_PlaybackNoPreferredNotOccupied()
218 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackNoPreferredFirstOccupied()
226 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackNonPreferredFirstTwoOccupied()
235 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackNonPreferredAllOccupied()
247 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackNonPreferred_2_0_BackupOne()
[all …]
DHdmiCecAtomLoggingTest.java19 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
162 HdmiCecMessage message = HdmiCecMessageBuilder.buildActiveSource(ADDR_PLAYBACK_1, in testMessageReported_calledOnOutgoingMessage()
216 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_userControlPressed()
230 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_userControlPressed()
242 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_userControlPressed_noParams()
256 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_userControlPressed_noParams()
268 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_featureAbort()
283 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_featureAbort()
295 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_featureAbort_noParams()
309 Constants.ADDR_PLAYBACK_1, in testMessageReported_writesAtom_featureAbort_noParams()
DHdmiCecNetworkTest.java214 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_logicalAddressOnly()
236 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_logicalAddressOnly_doesntNotifyAgain()
248 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_reportPhysicalAddress()
274 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_updateDeviceInfo_sameDoesntNotify()
295 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_reportPowerStatus()
318 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_reportOsdName()
341 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_reportVendorId()
364 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_updatesDeviceInfo()
400 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_updatesPhysicalAddress()
427 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_updatesPowerStatus()
[all …]
DDeviceSelectActionFromTvTest.java24 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
70 ADDR_PLAYBACK_1, ADDR_TV, Constants.MESSAGE_REPORT_POWER_STATUS, POWER_ON);
72 ADDR_PLAYBACK_1, ADDR_TV, Constants.MESSAGE_REPORT_POWER_STATUS, POWER_STANDBY);
74 ADDR_PLAYBACK_1, ADDR_TV, Constants.MESSAGE_REPORT_POWER_STATUS, POWER_TRANSIENT_TO_ON);
78 .setLogicalAddress(ADDR_PLAYBACK_1)
214 mHdmiControlService.getHdmiCecNetwork().getCecDeviceInfo(ADDR_PLAYBACK_1); in createDeviceSelectAction()
257 ADDR_TV, ADDR_PLAYBACK_1, HdmiCecKeycode.CEC_KEYCODE_POWER); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
325 mHdmiControlService.getHdmiCecNetwork().updateDevicePowerStatus(ADDR_PLAYBACK_1, in testDeviceSelect_DeviceInPowerOnStatus_Cec20()
341 mHdmiControlService.getHdmiCecNetwork().updateDevicePowerStatus(ADDR_PLAYBACK_1, in testDeviceSelect_DeviceInPowerUnknownStatus_Cec20()
362 mHdmiControlService.getHdmiCecNetwork().updateDevicePowerStatus(ADDR_PLAYBACK_1, in testDeviceSelect_DeviceInStandbyStatus_Cec20()
[all …]
DHdmiCecLocalDeviceTvTest.java22 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
321 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in onAddressAllocated_invokesDeviceDiscovery()
329 ADDR_PLAYBACK_1); in onAddressAllocated_invokesDeviceDiscovery()
348 .setDeviceType(Constants.ADDR_PLAYBACK_1) in getActiveSource_deviceInNetworkIsActiveSource()
379 .setDeviceType(ADDR_PLAYBACK_1) in getActiveSource_unknownDeviceIsActiveSource()
410 HdmiCecMessage textViewOn = HdmiCecMessageBuilder.buildTextViewOn(ADDR_PLAYBACK_1, in tvWakeOnOneTouchPlay_TextViewOn_Enabled()
424 HdmiCecMessage imageViewOn = HdmiCecMessage.build(ADDR_PLAYBACK_1, mTvLogicalAddress, in tvWakeOnOneTouchPlay_ImageViewOn_Enabled()
438 HdmiCecMessage textViewOn = HdmiCecMessageBuilder.buildTextViewOn(ADDR_PLAYBACK_1, in tvWakeOnOneTouchPlay_TextViewOn_Disabled()
452 HdmiCecMessage imageViewOn = HdmiCecMessage.build(ADDR_PLAYBACK_1, mTvLogicalAddress, in tvWakeOnOneTouchPlay_ImageViewOn_Disabled()
467 HdmiCecMessage textViewOn = HdmiCecMessageBuilder.buildTextViewOn(ADDR_PLAYBACK_1, in handleTextViewOn_Dreaming()
[all …]
DHdmiUtilsTest.java299 assertThat(HdmiUtils.getTypeFromAddress(Constants.ADDR_PLAYBACK_1)).containsExactly( in getTypeFromAddress()
396 Constants.ADDR_PLAYBACK_1)).isFalse(); in isEligibleAddressForDevice()
398 Constants.ADDR_PLAYBACK_1)).isFalse(); in isEligibleAddressForDevice()
400 Constants.ADDR_PLAYBACK_1)).isFalse(); in isEligibleAddressForDevice()
402 Constants.ADDR_PLAYBACK_1)).isFalse(); in isEligibleAddressForDevice()
404 Constants.ADDR_PLAYBACK_1)).isTrue(); in isEligibleAddressForDevice()
406 Constants.ADDR_PLAYBACK_1)).isFalse(); in isEligibleAddressForDevice()
408 Constants.ADDR_PLAYBACK_1)).isFalse(); in isEligibleAddressForDevice()
410 Constants.ADDR_PLAYBACK_1)).isFalse(); in isEligibleAddressForDevice()
599 Constants.ADDR_PLAYBACK_1)).isTrue(); in isEligibleAddressForCecVersion_1_4()
[all …]
DReportFeaturesMessageTest.java19 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
88 HdmiCecMessage message = ReportFeaturesMessage.build(ADDR_PLAYBACK_1, in build_basicPlayback_1_4()
100 HdmiCecMessage message = ReportFeaturesMessage.build(ADDR_PLAYBACK_1, in build_basicPlaybackAudioSystem_1_4()
DRoutingControlActionTest.java22 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
115 .setLogicalAddress(ADDR_PLAYBACK_1)
129 ADDR_PLAYBACK_1, ADDR_BROADCAST, MESSAGE_ACTIVE_SOURCE, PLAYER_PARAM);
DHdmiControlServiceTest.java25 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
338 Constants.ADDR_PLAYBACK_1, Constants.ADDR_BROADCAST, in initialPowerStatus_normalBoot_goToStandby_doesNotBroadcastsPowerStatus_1_4()
373 Constants.ADDR_PLAYBACK_1, Constants.ADDR_BROADCAST, in initialPowerStatus_normalBoot_goToStandby_broadcastsPowerStatus_2_0()
460 HdmiCecMessage reportFeatures = ReportFeaturesMessage.build(Constants.ADDR_PLAYBACK_1, in setRcProfileSourceDeviceTestHelper()
652 Constants.ADDR_PLAYBACK_1)); in handleGiveFeatures_cec14_featureAbort()
656 Constants.ADDR_PLAYBACK_1, Constants.ADDR_TV, Constants.MESSAGE_GIVE_FEATURES, in handleGiveFeatures_cec14_featureAbort()
671 Constants.ADDR_PLAYBACK_1)); in handleGiveFeatures_cec20_reportsFeatures()
675 Constants.ADDR_PLAYBACK_1, HdmiControlManager.HDMI_CEC_VERSION_2_0, in handleGiveFeatures_cec20_reportsFeatures()
693 Constants.ADDR_PLAYBACK_1, HdmiControlManager.HDMI_CEC_VERSION_2_0, in initializeCec_14_doesNotBroadcastReportFeatures()
710 Constants.ADDR_PLAYBACK_1, HdmiControlManager.HDMI_CEC_VERSION_2_0, in initializeCec_20_reportsFeaturesBroadcast()
[all …]
DSetAudioVolumeLevelMessageTest.java41 Constants.ADDR_TV, Constants.ADDR_PLAYBACK_1, 100); in build_maxVolume()
DHdmiCecLocalDeviceAudioSystemTest.java21 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
136 return ADDR_PLAYBACK_1; in setUp()
630 HdmiCecMessageBuilder.buildActiveSource(ADDR_PLAYBACK_1, SELF_PHYSICAL_ADDRESS); in handleRoutingChange_currentActivePortIsHome()
631 ActiveSource expectedActiveSource = ActiveSource.of(ADDR_PLAYBACK_1, SELF_PHYSICAL_ADDRESS); in handleRoutingChange_currentActivePortIsHome()
666 HdmiCecMessageBuilder.buildActiveSource(ADDR_PLAYBACK_1, 0x2000); in handleRoutingChange_homeIsActive_playbackSendActiveSource()
DDeviceSelectActionFromPlaybackTest.java24 import static com.android.server.hdmi.Constants.ADDR_PLAYBACK_1;
166 ? ADDR_PLAYBACK_1 : ADDR_PLAYBACK_2; in setUp()
168 ? ADDR_PLAYBACK_1 : ADDR_PLAYBACK_3; in setUp()
DHdmiControlServiceTvTest.java111 Constants.ADDR_TV, Constants.ADDR_PLAYBACK_1, Constants.MESSAGE_INACTIVE_SOURCE, in onCecMessage_shortPhysicalAddress_featureAbortInvalidOperand()
DHdmiCecLocalDevicePlaybackTest.java1873 Constants.ADDR_PLAYBACK_1, in onAddressAllocated_invokesDeviceDiscovery()
1897 Constants.ADDR_PLAYBACK_1, in wakeUp_hotPlugIn_invokesDeviceDiscoveryOnce()
1906 ? Constants.ADDR_PLAYBACK_1 : Constants.ADDR_PLAYBACK_2; in hotplugDetectionAction_addDevice()
1978 .setDeviceType(Constants.ADDR_PLAYBACK_1) in getActiveSource_deviceInNetworkIsActiveSource()
1998 .setDeviceType(Constants.ADDR_PLAYBACK_1) in getActiveSource_unknownDeviceIsActiveSource()
/frameworks/base/services/core/java/com/android/server/hdmi/
DConstants.java47 public static final int ADDR_PLAYBACK_1 = 4; field in Constants
DHdmiUtils.java68 entry(Constants.ADDR_PLAYBACK_1,
DHdmiCecMessageValidator.java64 static final int ADDR_PLAYBACK_1 = 1 << 4; field in HdmiCecMessageValidator
DHdmiCecNetwork.java530 case Constants.ADDR_PLAYBACK_1: in logicalAddressToDeviceType()