/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | ResendCecCommandActionPlaybackTest.java | 52 private FakeNativeWrapper mNativeWrapper; field in ResendCecCommandActionPlaybackTest 89 mNativeWrapper = new FakeNativeWrapper(); in setUp() 91 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 93 this.mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 104 mNativeWrapper.clearResultMessages(); in setUp() 109 mNativeWrapper.setMessageSendResult(Constants.MESSAGE_ACTIVE_SOURCE, in sendCecCommand_activeSource_sendMessageFails_resendMessage() 116 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in sendCecCommand_activeSource_sendMessageFails_resendMessage() 118 mNativeWrapper.clearResultMessages(); in sendCecCommand_activeSource_sendMessageFails_resendMessage() 121 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in sendCecCommand_activeSource_sendMessageFails_resendMessage() 123 mNativeWrapper.clearResultMessages(); in sendCecCommand_activeSource_sendMessageFails_resendMessage() [all …]
|
D | ResendCecCommandActionTvTest.java | 51 private FakeNativeWrapper mNativeWrapper; field in ResendCecCommandActionTvTest 91 mNativeWrapper = new FakeNativeWrapper(); in setUp() 93 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 95 this.mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 106 mNativeWrapper.clearResultMessages(); in setUp() 111 mNativeWrapper.setMessageSendResult(Constants.MESSAGE_ACTIVE_SOURCE, in sendCecCommand_activeSource_sendMessageFails_resendMessage() 118 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in sendCecCommand_activeSource_sendMessageFails_resendMessage() 120 mNativeWrapper.clearResultMessages(); in sendCecCommand_activeSource_sendMessageFails_resendMessage() 123 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in sendCecCommand_activeSource_sendMessageFails_resendMessage() 125 mNativeWrapper.clearResultMessages(); in sendCecCommand_activeSource_sendMessageFails_resendMessage() [all …]
|
D | HdmiCecLocalDeviceTvTest.java | 100 private FakeNativeWrapper mNativeWrapper; field in HdmiCecLocalDeviceTvTest 200 mNativeWrapper = new FakeNativeWrapper(); in setUp() 202 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 223 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 225 mNativeWrapper.setPhysicalAddress(mTvPhysicalAddress); in setUp() 240 mNativeWrapper.clearResultMessages(); in setUp() 263 mNativeWrapper.onCecMessage(initiateArc); in initiateArcAndValidate() 270 assertThat(mNativeWrapper.getResultMessages()).doesNotContain(reportArcInitiated); in initiateArcAndValidate() 273 assertThat(mNativeWrapper.getResultMessages()).contains(SAD_QUERY); in initiateArcAndValidate() 274 mNativeWrapper.clearResultMessages(); in initiateArcAndValidate() [all …]
|
D | OneTouchPlayActionTest.java | 78 private FakeNativeWrapper mNativeWrapper; field in OneTouchPlayActionTest 120 mNativeWrapper = new FakeNativeWrapper(); in setUp() 122 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 124 this.mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 133 mNativeWrapper.clearResultMessages(); in setUp() 149 mNativeWrapper.clearResultMessages(); in succeedWithUnknownTvDevice() 168 assertThat(mNativeWrapper.getResultMessages()).contains(textViewOn); in succeedWithUnknownTvDevice() 169 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in succeedWithUnknownTvDevice() 170 assertThat(mNativeWrapper.getResultMessages()).contains(giveDevicePowerStatus); in succeedWithUnknownTvDevice() 171 mNativeWrapper.clearResultMessages(); in succeedWithUnknownTvDevice() [all …]
|
D | HdmiCecControllerTest.java | 82 private FakeNativeWrapper mNativeWrapper; field in HdmiCecControllerTest 118 mNativeWrapper = new FakeNativeWrapper(); in SetUp() 120 mHdmiControlServiceSpy, mNativeWrapper, mHdmiControlServiceSpy.getAtomWriter()); in SetUp() 162 mNativeWrapper.setPollAddressResponse(ADDR_TV, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_TvDeviceNonPreferredFirstOccupied() 170 mNativeWrapper.setPollAddressResponse(ADDR_TV, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_TvDeviceNonPreferredAllOccupied() 171 mNativeWrapper.setPollAddressResponse(ADDR_SPECIFIC_USE, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_TvDeviceNonPreferredAllOccupied() 187 mNativeWrapper.setPollAddressResponse(ADDR_AUDIO_SYSTEM, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_AudioSystemNonPreferredAllOccupied() 203 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackPreferredOccupied() 218 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackNoPreferredFirstOccupied() 226 mNativeWrapper.setPollAddressResponse(ADDR_PLAYBACK_1, SendMessageResult.SUCCESS); in testAllocateLogicalAddress_PlaybackNonPreferredFirstTwoOccupied() [all …]
|
D | DevicePowerStatusActionTest.java | 63 private FakeNativeWrapper mNativeWrapper; field in DevicePowerStatusActionTest 106 mNativeWrapper = new FakeNativeWrapper(); in setUp() 108 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 110 this.mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 122 mNativeWrapper.clearResultMessages(); in setUp() 133 assertThat(mNativeWrapper.getResultMessages()).contains(expected); in queryDisplayStatus_sendsRequestAndHandlesResponse() 140 mNativeWrapper.onCecMessage(response); in queryDisplayStatus_sendsRequestAndHandlesResponse() 148 mNativeWrapper.setMessageSendResult(Constants.MESSAGE_GIVE_DEVICE_POWER_STATUS, in queryDisplayStatus_sendsRequest_nack() 166 assertThat(mNativeWrapper.getResultMessages()).contains(expected); in queryDisplayStatus_sendsRequest_timeout_retriesSuccessfully() 167 mNativeWrapper.clearResultMessages(); in queryDisplayStatus_sendsRequest_timeout_retriesSuccessfully() [all …]
|
D | RequestSadActionTest.java | 70 private FakeNativeWrapper mNativeWrapper; field in RequestSadActionTest 130 mNativeWrapper = new FakeNativeWrapper(); in setUp() 131 mNativeWrapper.setPhysicalAddress(0x0000); in setUp() 133 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 143 mNativeWrapper.clearResultMessages(); in setUp() 157 assertThat(mNativeWrapper.getResultMessages()).contains(expected1); in noResponse_queryAgainOnce_emptyResult() 158 mNativeWrapper.clearResultMessages(); in noResponse_queryAgainOnce_emptyResult() 161 assertThat(mNativeWrapper.getResultMessages()).contains(expected1); in noResponse_queryAgainOnce_emptyResult() 191 assertThat(mNativeWrapper.getResultMessages()).doesNotContain(expected2); in noResponse_queryAgainOnce_emptyResult() 192 assertThat(mNativeWrapper.getResultMessages()).doesNotContain(expected3); in noResponse_queryAgainOnce_emptyResult() [all …]
|
D | DeviceSelectActionFromPlaybackTest.java | 86 private FakeNativeWrapper mNativeWrapper; field in DeviceSelectActionFromPlaybackTest 139 mNativeWrapper = new FakeNativeWrapper(); in setUp() 140 mNativeWrapper.setPhysicalAddress(0x0000); in setUp() 142 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 158 mNativeWrapper.clearResultMessages(); in setUp() 280 assertThat(mNativeWrapper.getResultMessages()).contains(mRoutingChange); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b() 281 mNativeWrapper.clearResultMessages(); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b() 285 assertThat(mNativeWrapper.getResultMessages()).contains(mRoutingChange); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b() 300 assertThat(mNativeWrapper.getResultMessages()).contains(mRoutingChange); in testDeviceSelect_DeviceInStandbyStatus_Cec14b() 301 mNativeWrapper.clearResultMessages(); in testDeviceSelect_DeviceInStandbyStatus_Cec14b() [all …]
|
D | HdmiCecLocalDevicePlaybackTest.java | 85 private FakeNativeWrapper mNativeWrapper; field in HdmiCecLocalDevicePlaybackTest 153 mNativeWrapper = new FakeNativeWrapper(); in setUp() 155 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 178 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 179 mNativeWrapper.setPortConnectionStatus(1, true); in setUp() 180 mNativeWrapper.setPhysicalAddress(mPlaybackPhysicalAddress); in setUp() 189 mNativeWrapper.clearResultMessages(); in setUp() 217 assertThat(mNativeWrapper.getResultMessages().contains(expectedMessage)).isFalse(); in handleRoutingChange_None() 239 assertThat(mNativeWrapper.getResultMessages().contains(expectedMessage)).isFalse(); in handleRoutingInformation_None() 261 assertThat(mNativeWrapper.getResultMessages().contains(expectedMessage)).isFalse(); in handleRoutingChange_WakeUpOnly() [all …]
|
D | DeviceSelectActionFromTvTest.java | 101 private FakeNativeWrapper mNativeWrapper; field in DeviceSelectActionFromTvTest 148 mNativeWrapper = new FakeNativeWrapper(); in setUp() 149 mNativeWrapper.setPhysicalAddress(0x0000); in setUp() 151 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 167 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 173 mNativeWrapper.clearResultMessages(); in setUp() 233 assertThat(mNativeWrapper.getResultMessages()).contains(SET_STREAM_PATH); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b() 234 mNativeWrapper.clearResultMessages(); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b() 238 assertThat(mNativeWrapper.getResultMessages()).contains(SET_STREAM_PATH); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b() 252 assertThat(mNativeWrapper.getResultMessages()).contains(SET_STREAM_PATH); in testDeviceSelect_DeviceInStandbyStatus_Cec14b() [all …]
|
D | SystemAudioAutoInitiationActionTest.java | 58 private FakeNativeWrapper mNativeWrapper; field in SystemAudioAutoInitiationActionTest 94 mNativeWrapper = new FakeNativeWrapper(); in setUp() 96 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 98 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 115 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 123 mNativeWrapper.clearResultMessages(); in setUp() 151 assertThat(mNativeWrapper.getResultMessages()).contains(giveSystemAudioModeStatus); in testReceiveSystemAudioMode_systemAudioOn() 181 assertThat(mNativeWrapper.getResultMessages()).contains(giveSystemAudioModeStatus); in testReceiveSystemAudioMode_systemAudioOnAndImpossibleToChangeSystemAudio() 209 assertThat(mNativeWrapper.getResultMessages()).contains(giveSystemAudioModeStatus); in testReceiveSystemAudioMode_systemAudioOnAndResponseOff() 240 assertThat(mNativeWrapper.getResultMessages()).contains(giveSystemAudioModeStatus); in testReceiveSystemAudioMode_settingOffAndResponseOn() [all …]
|
D | ArcInitiationActionFromAvrTest.java | 53 private FakeNativeWrapper mNativeWrapper; field in ArcInitiationActionFromAvrTest 107 mNativeWrapper = new FakeNativeWrapper(); in setUp() 109 hdmiControlService, mNativeWrapper, hdmiControlService.getAtomWriter()); in setUp() 130 assertThat(mNativeWrapper.getResultMessages()).contains(initiateArc); in arcInitiation_initiated() 132 mNativeWrapper.onCecMessage( in arcInitiation_initiated() 143 mNativeWrapper.setMessageSendResult(Constants.MESSAGE_INITIATE_ARC, SendMessageResult.NACK); in arcInitiation_sendFailed() 149 assertThat(mNativeWrapper.getResultMessages()).contains(initiateArc); in arcInitiation_sendFailed() 162 assertThat(mNativeWrapper.getResultMessages()).contains(initiateArc); in arcInitiation_terminated() 164 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildReportArcTerminated( in arcInitiation_terminated() 180 assertThat(mNativeWrapper.getResultMessages()).contains(initiateArc); in arcInitiation_abort() [all …]
|
D | PowerStatusMonitorActionTest.java | 58 private FakeNativeWrapper mNativeWrapper; field in PowerStatusMonitorActionTest 94 mNativeWrapper = new FakeNativeWrapper(); in setUp() 96 this.mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 113 mNativeWrapper.setPortInfo(hdmiPortInfo); in setUp() 115 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 122 mNativeWrapper.clearResultMessages(); in setUp() 137 assertThat(mNativeWrapper.getResultMessages()).contains(giveDevicePowerStatus); in sourceDevice_1_4_updatesPowerState() 144 assertThat(mNativeWrapper.getResultMessages()).contains(giveDevicePowerStatus); in sourceDevice_1_4_updatesPowerState() 177 assertThat(mNativeWrapper.getResultMessages()).doesNotContain(giveDevicePowerStatus); in sourceDevice_2_0_doesNotUpdatePowerState() 205 assertThat(mNativeWrapper.getResultMessages()).contains(giveDevicePowerStatus); in mixedSourceDevices_localDevice_1_4_updatesAll() [all …]
|
D | BaseTvToAudioSystemAvbTest.java | 144 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildFeatureAbortCommand( in avbEnabled_savlFeatureAborted_receiveReportAudioStatus_switchToAdjustOnlyAvb() 213 mNativeWrapper.clearResultMessages(); in adjustOnlyAvbEnabled_audioDeviceVolumeAdjusted_sendsUcpAndGiveAudioStatus() 226 assertThat(mNativeWrapper.getResultMessages()).contains( in adjustOnlyAvbEnabled_audioDeviceVolumeAdjusted_sendsUcpAndGiveAudioStatus() 229 assertThat(mNativeWrapper.getResultMessages()).contains( in adjustOnlyAvbEnabled_audioDeviceVolumeAdjusted_sendsUcpAndGiveAudioStatus() 232 assertThat(mNativeWrapper.getResultMessages()).contains( in adjustOnlyAvbEnabled_audioDeviceVolumeAdjusted_sendsUcpAndGiveAudioStatus() 241 mNativeWrapper.clearResultMessages(); in adjustOnlyAvbEnabled_audioDeviceVolumeChanged_requestsAndUpdatesAudioStatus() 257 assertThat(mNativeWrapper.getResultMessages().size()).isEqualTo(1); in adjustOnlyAvbEnabled_audioDeviceVolumeChanged_requestsAndUpdatesAudioStatus() 258 assertThat(mNativeWrapper.getResultMessages()).contains( in adjustOnlyAvbEnabled_audioDeviceVolumeChanged_requestsAndUpdatesAudioStatus() 274 mNativeWrapper.clearResultMessages(); in adjustOnlyAvbEnabled_savlBecomesSupported_switchToAvb() 303 mNativeWrapper.clearResultMessages(); in adjustOnlyAvbEnabled_savlSupportBecomesUnknown_keepUsingAdjustOnlyAvb() [all …]
|
D | HdmiCecPowerStatusControllerTest.java | 58 private FakeNativeWrapper mNativeWrapper; field in HdmiCecPowerStatusControllerTest 104 mNativeWrapper = new FakeNativeWrapper(); in setUp() 106 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 116 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 117 mNativeWrapper.setPortConnectionStatus(1, true); in setUp() 118 mNativeWrapper.setPhysicalAddress(0x2000); in setUp() 127 mNativeWrapper.clearResultMessages(); in setUp() 185 assertThat(mNativeWrapper.getResultMessages()).doesNotContain(reportPowerStatus); in setPowerStatus_doesntSendBroadcast_1_4() 200 assertThat(mNativeWrapper.getResultMessages()).doesNotContain(reportPowerStatus); in setPowerStatus_transient_doesntSendBroadcast_1_4() 215 assertThat(mNativeWrapper.getResultMessages()).doesNotContain(reportPowerStatus); in setPowerStatus_fast_transient_doesntSendBroadcast_1_4() [all …]
|
D | HdmiCecLocalDeviceAudioSystemTest.java | 69 private FakeNativeWrapper mNativeWrapper; field in HdmiCecLocalDeviceAudioSystemTest 142 mNativeWrapper = new FakeNativeWrapper(); in setUp() 143 mNativeWrapper.setPhysicalAddress(SELF_PHYSICAL_ADDRESS); in setUp() 145 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 176 mNativeWrapper.setPortInfo(mHdmiPortInfo); in setUp() 184 mNativeWrapper.clearResultMessages(); in setUp() 206 assertThat(mNativeWrapper.getOnlyResultMessage()).isEqualTo(expectedMessage); in handleGiveAudioStatus_volume_10_mute_true() 220 assertThat(mNativeWrapper.getOnlyResultMessage()).isEqualTo(expectedMessage); in handleGiveSystemAudioModeStatus_originalOff() 255 assertThat(mNativeWrapper.getOnlyResultMessage()).isEqualTo(expectedMessage); in handleRequestShortAudioDescriptor_noAudioDeviceInfo() 272 assertThat(mNativeWrapper.getOnlyResultMessage()).isEqualTo(expectedMessage); in handleSetSystemAudioMode_setOn_orignalOff() [all …]
|
D | BaseAbsoluteVolumeBehaviorTest.java | 93 protected FakeNativeWrapper mNativeWrapper; field in BaseAbsoluteVolumeBehaviorTest 164 mNativeWrapper = new FakeNativeWrapper(); in setUp() 165 mNativeWrapper.setPhysicalAddress(getPhysicalAddress()); in setUp() 166 mNativeWrapper.setPollAddressResponse(Constants.ADDR_TV, SendMessageResult.SUCCESS); in setUp() 169 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 188 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 189 mNativeWrapper.setPortConnectionStatus(1, true); in setUp() 202 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildGiveDevicePowerStatus( in setUp() 205 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildGiveDevicePowerStatus( in setUp() 250 mNativeWrapper.onCecMessage(ReportFeaturesMessage.build( in receiveSetAudioVolumeLevelSupport() [all …]
|
D | ArcTerminationActionFromAvrTest.java | 60 private FakeNativeWrapper mNativeWrapper; field in ArcTerminationActionFromAvrTest 106 mNativeWrapper = new FakeNativeWrapper(); in setUp() 108 hdmiControlService, mNativeWrapper, hdmiControlService.getAtomWriter()); in setUp() 147 mNativeWrapper.setMessageSendResult(Constants.MESSAGE_TERMINATE_ARC, in testSendMessage_sendFailed() 154 assertThat(mNativeWrapper.getResultMessages()).contains(terminateArc); in testSendMessage_sendFailed() 167 assertThat(mNativeWrapper.getResultMessages()).contains(terminateArc); in testReportArcTerminated_timeout() 184 assertThat(mNativeWrapper.getResultMessages()).contains(terminateArc); in testReportArcTerminated_received() 189 mNativeWrapper.onCecMessage(arcTerminatedResponse); in testReportArcTerminated_received() 203 assertThat(mNativeWrapper.getResultMessages()).contains(terminateArc); in testReportArcTerminated_featureAbort() 211 mNativeWrapper.onCecMessage(arcTerminatedResponse); in testReportArcTerminated_featureAbort()
|
D | SetAudioVolumeLevelDiscoveryActionTest.java | 65 private FakeNativeWrapper mNativeWrapper; field in SetAudioVolumeLevelDiscoveryActionTest 100 mNativeWrapper = new FakeNativeWrapper(); in setUp() 101 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 104 mHdmiControlServiceSpy, mNativeWrapper, mHdmiControlServiceSpy.getAtomWriter()); in setUp() 120 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildReportPhysicalAddressCommand( in setUp() 136 assertThat(mNativeWrapper.getResultMessages()).contains(setAudioVolumeLevel); in sendsSetAudioVolumeLevel() 145 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildFeatureAbortCommand( in noMatchingFeatureAbortReceived_actionSucceedsAndSetsFeatureSupported() 151 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildFeatureAbortCommand( in noMatchingFeatureAbortReceived_actionSucceedsAndSetsFeatureSupported() 174 mNativeWrapper.onCecMessage(HdmiCecMessageBuilder.buildFeatureAbortCommand( in matchingFeatureAbortReceived_actionSucceedsAndSetsFeatureNotSupported() 191 mNativeWrapper.setMessageSendResult(Constants.MESSAGE_SET_AUDIO_VOLUME_LEVEL, in messageFailedToSend_actionFailsAndDoesNotUpdateFeatureSupport()
|
D | HdmiControlServiceTvTest.java | 55 private FakeNativeWrapper mNativeWrapper; field in HdmiControlServiceTvTest 85 mNativeWrapper = new FakeNativeWrapper(); in setUp() 87 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 107 mNativeWrapper.onCecMessage(message); in onCecMessage_shortPhysicalAddress_featureAbortInvalidOperand() 113 assertThat(mNativeWrapper.getResultMessages()).contains(featureAbort); in onCecMessage_shortPhysicalAddress_featureAbortInvalidOperand() 152 mNativeWrapper.clearResultMessages(); in setRcProfileTv_reportFeatureBroadcast() 166 assertThat(mNativeWrapper.getResultMessages()).contains(reportFeatures); in setRcProfileTv_reportFeatureBroadcast()
|
D | HdmiCecLocalDeviceTest.java | 71 private FakeNativeWrapper mNativeWrapper; field in HdmiCecLocalDeviceTest 183 mNativeWrapper = new FakeNativeWrapper(); in SetUp() 184 mNativeWrapper.setPhysicalAddress(0x2000); in SetUp() 186 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in SetUp() 198 mNativeWrapper.setPortInfo(hdmiPortInfos); in SetUp() 199 mNativeWrapper.setPortConnectionStatus(1, true); in SetUp() 204 mNativeWrapper.clearResultMessages(); in SetUp() 239 mNativeWrapper.setPhysicalAddress(0x0); in handleGivePhysicalAddress_success() 250 assertThat(mNativeWrapper.getOnlyResultMessage()).isEqualTo(expectedMessage); in handleGivePhysicalAddress_success() 255 mNativeWrapper.setPhysicalAddress(Constants.INVALID_PHYSICAL_ADDRESS); in handleGivePhysicalAddress_failure() [all …]
|
D | ActiveSourceActionTest.java | 54 private FakeNativeWrapper mNativeWrapper; field in ActiveSourceActionTest 88 mNativeWrapper = new FakeNativeWrapper(); in setUp() 90 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 92 this.mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 125 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in playbackDevice_sendsActiveSource_sendsMenuStatus() 126 assertThat(mNativeWrapper.getResultMessages()).contains(menuStatus); in playbackDevice_sendsActiveSource_sendsMenuStatus()
|
D | RoutingControlActionTest.java | 134 private FakeNativeWrapper mNativeWrapper; field in RoutingControlActionTest 190 mNativeWrapper = new FakeNativeWrapper(); in setUp() 191 mNativeWrapper.setPhysicalAddress(0x0000); in setUp() 193 mHdmiControlService, mNativeWrapper, mHdmiControlService.getAtomWriter()); in setUp() 204 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 211 mNativeWrapper.clearResultMessages(); in setUp() 233 assertThat(mNativeWrapper.getResultMessages()).contains(setStreamPath); in testRoutingControl_succeedForDirectlyConnectedDevice() 256 assertThat(mNativeWrapper.getResultMessages()).contains(setStreamPath); in testRoutingControl_succeedForDeviceBehindSwitch()
|
D | HdmiCecAtomLoggingTvTest.java | 68 private FakeNativeWrapper mNativeWrapper; field in HdmiCecAtomLoggingTvTest 106 mNativeWrapper = new FakeNativeWrapper(); in setUp() 107 mNativeWrapper.setPhysicalAddress(mPhysicalAddress); in setUp() 110 mHdmiControlServiceSpy, mNativeWrapper, mHdmiCecAtomWriterSpy); in setUp() 135 mNativeWrapper.setPortInfo(hdmiPortInfos); in setUp() 136 mNativeWrapper.setPortConnectionStatus(EARC_PORT_ID, true); in setUp() 227 mNativeWrapper.setPortInfo(hdmiPortInfos); in testEarcStatusChanged_handleEarcStateChange_unSupportedPort_writesAtom() 228 mNativeWrapper.setPortConnectionStatus(EARC_PORT_ID, true); in testEarcStatusChanged_handleEarcStateChange_unSupportedPort_writesAtom()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibratorController.java | 44 private final NativeWrapper mNativeWrapper; field in VibratorController 80 mNativeWrapper = nativeWrapper; in VibratorController() 81 mNativeWrapper.init(vibratorId, listener); in VibratorController() 83 mVibratorInfoLoadSuccessful = mNativeWrapper.getInfo(vibratorInfoBuilder); in VibratorController() 134 mVibratorInfoLoadSuccessful = mNativeWrapper.getInfo(vibratorInfoBuilder); in reloadVibratorInfoIfNeeded() 195 return mNativeWrapper.isAvailable(); in isAvailable() 210 mNativeWrapper.setExternalControl(externalControl); in setExternalControl() 224 mNativeWrapper.alwaysOnDisable(id); in updateAlwaysOn() 226 mNativeWrapper.alwaysOnEnable(id, prebaked.getEffectId(), in updateAlwaysOn() 236 mNativeWrapper.setAmplitude(amplitude); in setAmplitude() [all …]
|