forceDrivingState

abstract suspend fun forceDrivingState(drivingState: DrivingState?)

Forces VehicleDrivingStateService.drivingState to be set to the given value, regardless of what the regular logic would lead to.

When drivingState is null, the forced value will be clear and the regular logic will be restored.

This is useful for manual and automated testing and debugging, for example to mock the driving state in a functional test.