Home
last modified time | relevance | path

Searched refs:mHalMock (Results 1 – 6 of 6) sorted by relevance

/packages/services/Car/tests/libvehiclenetwork-native-test/
DIVehicleNetworkMockedTest.cpp56 mHalMock = new VehicleHalMock(); in SetUp()
60 mVN->stopMocking(mHalMock); in TearDown()
63 sp<VehicleHalMock> mHalMock; member in android::IVehicleNetworkMockedTest
75 mVN->startMocking(mHalMock); in TEST_F()
78 ASSERT_TRUE(mHalMock->isTheSameProperties(properties)); in TEST_F()
85 ASSERT_EQ(NO_ERROR, mVN->startMocking(mHalMock)); in TEST_F()
88 mVN->stopMocking(mHalMock); in TEST_F()
96 ASSERT_EQ(NO_ERROR, mVN->startMocking(mHalMock)); in TEST_F()
107 ASSERT_EQ(NO_ERROR, mVN->startMocking(mHalMock)); in TEST_F()
DVehicleNetworkAudioHelperTest.cpp115 mHalMock(NULL), in VehicleNetworkAudioHelperTest()
129 mHalMock = new VehicleHalMockForAudioFocus(mVN); in SetUp()
130 sp<VehicleHalMock> halMock = mHalMock; in SetUp()
138 sp<VehicleHalMock> halMock = mHalMock; in TearDown()
143 mHalMock->setFocusState(state, streams, extState); in changeFocusState()
144 mVN->injectEvent(mHalMock->getCurrentFocus()); in changeFocusState()
148 sp<VehicleHalMockForAudioFocus> mHalMock; member in android::VehicleNetworkAudioHelperTest
189 mHalMock->setFocusState(VEHICLE_AUDIO_FOCUS_REQUEST_GAIN, 0x1, 0); in TEST_F()
199 mHalMock->setFocusState(VEHICLE_AUDIO_FOCUS_REQUEST_GAIN, 0x3, 0); in TEST_F()
/packages/services/Car/car-systemtest-lib/src/android/car/test/
DCarTestManager.java57 private VehicleNetworkHalMock mHalMock; field in CarTestManager
103 mHalMock = mock; in startMocking()
120 mHalMock = null; in stopMocking()
131 return mHalMock; in getHalMock()
/packages/services/Car/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/
DVehicleNetwork.java72 private VehicleNetworkHalMock mHalMock; field in VehicleNetwork
448 mHalMock = mock; in startMocking()
469 mHalMock = null; in stopMocking()
478 mHalMock = null; in startMocking()
499 mHalMock = null; in stopMocking()
545 return mHalMock; in getHalMock()
/packages/services/Car/vehicle_network_service/
DVehicleNetworkService.cpp514 status_t r = mHalMock->onPropertyGet(data); in getProperty()
576 status_t r = mHalMock->onPropertySet(data); in setProperty()
678 r = mHalMock->onPropertySubscribe(prop, sampleRate, newZones); in subscribe()
722 mHalMock->onPropertyUnsubscribe(prop); in unsubscribe()
819 if (mHalMock != NULL) { in startMocking()
820 IInterface::asBinder(mHalMock)->unlinkToDeath(mHalMockDeathHandler.get()); in startMocking()
829 mHalMock = mock; in startMocking()
850 if (mHalMock.get() == NULL) { in stopMocking()
854 if (ibinder != IInterface::asBinder(mHalMock)) { in stopMocking()
860 mHalMock = NULL; in stopMocking()
DVehicleNetworkService.h356 sp<IVehicleNetworkHalMock> mHalMock; variable