Inject getS2rS2dConfig through constructor.

getS2rS2dConfig is used during FakeVehicleHardware constructor so
at that point the subclass is not initialized yet and it cannot
call into subclass's virtual methods. We need to inject the function
directly into constructor.

Flag: EXEMPT reference HAL
Test: atest FakeVehicleHardwareTest
Bug: 365994148
Change-Id: I79b9a22a2f60239e192c9f5fd4aad7338abae490
3 files changed