Home
last modified time | relevance | path

Searched refs:mNativeWrapper (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DResendCecCommandActionPlaybackTest.java52 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 …]
DResendCecCommandActionTvTest.java51 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 …]
DHdmiCecLocalDeviceTvTest.java100 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 …]
DOneTouchPlayActionTest.java78 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 …]
DHdmiCecControllerTest.java82 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 …]
DDevicePowerStatusActionTest.java63 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 …]
DRequestSadActionTest.java70 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 …]
DDeviceSelectActionFromPlaybackTest.java86 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 …]
DHdmiCecLocalDevicePlaybackTest.java85 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 …]
DDeviceSelectActionFromTvTest.java101 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 …]
DSystemAudioAutoInitiationActionTest.java58 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 …]
DArcInitiationActionFromAvrTest.java53 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 …]
DPowerStatusMonitorActionTest.java58 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 …]
DBaseTvToAudioSystemAvbTest.java144 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 …]
DHdmiCecPowerStatusControllerTest.java58 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 …]
DHdmiCecLocalDeviceAudioSystemTest.java69 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 …]
DBaseAbsoluteVolumeBehaviorTest.java93 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 …]
DArcTerminationActionFromAvrTest.java60 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()
DSetAudioVolumeLevelDiscoveryActionTest.java65 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()
DHdmiControlServiceTvTest.java55 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()
DHdmiCecLocalDeviceTest.java71 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 …]
DActiveSourceActionTest.java54 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()
DRoutingControlActionTest.java134 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()
DHdmiCecAtomLoggingTvTest.java68 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/
DVibratorController.java44 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 …]

12