Home
last modified time | relevance | path

Searched refs:mMockHal (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantAwarenessServiceTest.java121 private MockOasHal mMockHal; field in OccupantAwarenessServiceTest
130 mMockHal = new MockOasHal(); in setUp()
131 mOasService = new com.android.car.OccupantAwarenessService(context, mMockHal); in setUp()
145 mMockHal.fireStatusEvent(IOccupantAwareness.CAP_NONE, OccupantAwarenessStatus.READY); in testWithNoRegisteredListeners()
159 mMockHal.fireStatusEvent( in testRegisterEventListener_returnsSystemStatusReady()
174 mMockHal.fireStatusEvent( in testRegisterEventListener_returnsSystemStatusFailure()
189 mMockHal.fireStatusEvent( in testRegisterEventListener_returnsSystemStatusNotReady()
206 mMockHal.fireStatusEvent( in testRegisterEventListener_returnsSystemStatusNotSupported()
226 mMockHal.fireStatusEvent(IOccupantAwareness.CAP_NONE, OccupantAwarenessStatus.READY); in test_unregisteredListeners()
227 mMockHal.fireStatusEvent( in test_unregisteredListeners()
[all …]
DCarFeatureControllerUnitTest.java52 private VehicleHal mMockHal; field in CarFeatureControllerUnitTest
75 when(mMockHal.getIfSupportedOrFailForEarlyStage( in testIsFeatureEnabled_enabled()
79 new CarFeatureController(mContext, mTestDir.getDirectory(), mMockHal); in testIsFeatureEnabled_enabled()
91 when(mMockHal.getIfSupportedOrFailForEarlyStage( in testIsFeatureEnabled_disabled()
95 new CarFeatureController(mContext, mTestDir.getDirectory(), mMockHal); in testIsFeatureEnabled_disabled()